/*
 * Alet — one-page site, Direction A "Quiet Paper" (Ed, 2026-10-22).
 * Every color, size and spacing value below is from the written brief (BUILD-BRIEF.md in Ed's handoff), not
 * measured off the concept picture. No website green, no gradients, no animation. Shadows on phones only.
 * The screenshots are Ed's store pictures, unchanged, at their own 9:16 shape: never cropped (no object-fit).
 * Privacy, Terms and Support carry their own styles; this file is the home page's only.
 */

:root {
  --paper: #FFFFFF;          /* paper / cards / button text */
  --tint: #EEF0FF;           /* hero, example and audience backgrounds */
  --tint-soft: #F7F8FF;      /* video placeholder surface */
  --ink: #302D29;            /* primary warm ink; also the phone frame */
  --ink-2: #625E58;          /* secondary text */
  --blue: #315FD6;           /* buttons and links (white on it 5.6:1) */
  --blue-press: #254BB0;     /* hover and active */
  --rule: #D9DEEF;           /* hairlines and subtle borders */
  --chip: #DFE8FF;           /* destination chips, step circles */
  --focus: #6646C8;          /* keyboard focus */
  --shadow: rgba(48, 45, 41, 0.10);

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --pad-x: 40px;
  --section-y: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--blue-press); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: 0; }
/* 60px on a full desktop (the brief); it eases down between 900 and 1154px so "it." never sits alone (review F10). */
h1 { font-size: clamp(48px, 5.2vw, 60px); line-height: 1.06; }
h2 { font-size: 38px; line-height: 1.15; }
h3 { font-size: 27px; line-height: 1.2; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: calc(1160px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Buttons: pill, 48px tall, the one blue ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--blue); color: var(--paper);
  font: 700 16px/1.2 var(--sans);
  text-decoration: none;
}
.btn:hover, .btn:active { background: var(--blue-press); color: var(--paper); }

/* The two store buttons: side by side, wrapping onto two lines on a narrow phone. */
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* At the trial's foot they stack, as wide as the wider one. */
.trial-cta .store-btns { display: inline-flex; flex-direction: column; align-items: stretch; }

.availability { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.eyebrow { font: 700 14px/1.5 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.eyebrow-caps { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Header (not sticky) ────────────────────────────────────────────────────────────────────────────── */
.site-header { background: var(--tint); }
.header-row {
  display: flex; align-items: center; gap: 32px;
  min-height: 80px;
  position: relative;
}
.wordmark {
  font: 700 30px/1 var(--serif); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
}
/* Ed 10-22: the app's own icon beside the name (byte-identical to the app's assets/icon.png, the store's icon). */
.brand-icon { width: 40px; height: 40px; border-radius: 10px; }
.nav-desktop { display: flex; gap: 8px; margin-left: auto; }
.nav-desktop a, .menu-panel a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 400 14px/1.5 var(--sans); color: var(--ink); text-decoration: none;
}
.nav-desktop a:hover, .menu-panel a:hover { color: var(--blue); }

.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper);
  font: 700 14px/1.5 var(--sans); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: var(--pad-x); top: calc(100% - 8px); z-index: 10;
  display: flex; flex-direction: column; min-width: 200px; padding: 8px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 16px;
}
.menu-panel a { padding: 0 16px; }

/* ── Hero ───────────────────────────────────────────────────────────────────────────────────────────── */
.hero { background: var(--tint); padding: 48px 0 var(--section-y); }
/* 55/45, per the brief. The headline keeps "your head." together (a no-break space in the HTML), so it never leaves
   "head." alone on a line: it reads "Get it out of / your head. / Let Alet sort it." at every width. */
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; }
.hero h1 .keep { display: inline-block; }
.hero-body { margin: 24px 0 20px; max-width: 34em; }
/* Ed 10-22: the range, in four quiet tags (the example's chip color, not a button look: they don't do anything). */
.hero-tags { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--chip); color: var(--ink);
  font: 400 14px/1.4 var(--sans);
}
.hero-media { display: flex; justify-content: center; }

/* ── The phone-style frame: thin, rounded, no hardware, no status bar ─────────────────────────────── */
.phone {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 32px var(--shadow);
}
.phone img { width: 100%; height: auto; }
/* 320px at most (the brief), and never taller than a laptop screen can show beside the headline and button
   (Ed 10-22, relaying GPT: "the main download button below the visible area"). 240px = the header + the hero's
   padding; 0.45 = the screen's own shape (Ed 10-22: the plain app screens, 1236x2745, "how it will actually look").
   `sitecheck.mjs 1366 650` asserts the button is above the fold. */
.phone-hero { width: 100%; max-width: clamp(220px, calc((100vh - 240px) * 0.45), 320px); }

/* ── Sections ───────────────────────────────────────────────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }

/* How it works: three COMPLETE items, each its own video, number, title, line */
.how h2 { margin-bottom: 48px; }
/* Ed 10-22: the pictures are the highlight; the words sit ABOVE each one. Two steps: what you say, where it went. */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;
}
/* space-between: the words at the top, the picture at the foot, so two pictures side by side line up even when one
   caption runs a line longer (a grid row stretches both items to the same height). */
.step { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; }
.phone-shot { width: 100%; max-width: 340px; }
.video-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 240px; aspect-ratio: 9 / 16; margin: 0 auto;
  background: var(--tint-soft); border: 1px solid var(--rule); border-radius: 16px;
}
/* A phone recording is taller than 9:16; `contain` keeps all of it, on the soft surface rather than black bars (F19). */
video.video-slot { display: block; background: var(--tint-soft); object-fit: contain; }
/* No video slot is drawn until a recording exists (Ed 10-22). When one is added, the step's text sits under it. */
.step-text { display: flex; gap: 16px; align-items: flex-start; width: 100%; max-width: 340px; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--chip); color: var(--ink); font: 700 16px/1 var(--sans);
}
.step h3 { font-size: 22px; line-height: 1.25; margin-bottom: 4px; }
.step p { color: var(--ink-2); }

/* The example: a separate illustration, not a screenshot */
.example {
  margin-top: var(--section-y);
  background: var(--tint); border-radius: 16px; padding: 32px;
}
.example-quote { font: 400 27px/1.3 var(--serif); color: var(--ink); }
.mappings {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
}
.mappings li { display: flex; align-items: center; gap: 12px; }
.from { font: 400 22px/1.3 var(--serif); }
.arrow { color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--chip); color: var(--ink);
  font: 400 16px/1.2 var(--sans);
}

/* Inside Alet: six complete blocks, two across, rows divided by thin rules */
.features { padding-top: 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
/* Ed 10-22: words above, the picture big beneath them — the screenshot is the highlight. */
.feature {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px 0; border-top: 1px solid var(--rule);
}
.feature:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
/* Ed 11-02: the sharing block spans the grid's two columns. */
.feature.feature-wide { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.feature-note { margin-top: 12px; font-size: 0.9em; color: var(--ink-2); }
.feature:nth-child(even) { padding-left: 32px; }
.phone-feature { width: 100%; max-width: 340px; }
.feature-copy { width: 100%; max-width: 340px; }
.feature-copy p { margin-top: 12px; color: var(--ink-2); }

/* Privacy */
.privacy h2 { margin-bottom: 16px; }
.privacy-lead { font-weight: 700; margin-bottom: 8px; }
.privacy p { max-width: 40em; }
.privacy p:not(.eyebrow):not(.privacy-lead):not(.policy-link) { color: var(--ink-2); }
.policy-link { margin-top: 8px; }
.policy-link a { display: inline-flex; align-items: center; min-height: 44px; }

/* Trial: white, a fine top rule, copy left and the button right */
.trial { border-top: 1px solid var(--rule); }
.trial-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.trial h2 { margin-bottom: 16px; }
.trial-copy p { max-width: 40em; }
.supporting { margin-top: 12px; color: var(--ink-2); }
.trial-cta { text-align: center; }

/* Footer: one flexible row */
.site-footer { border-top: 1px solid var(--rule); padding: 24px 0 32px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.wordmark-footer { margin-right: auto; }   /* 30px, the brief's one wordmark size (review F8) */
.footer-row a, .footer-row .company {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: 14px; line-height: 1.5;
}
.footer-row a { min-width: 44px; }   /* "Terms" was 38px wide (review F7) */
.footer-row a { color: var(--ink); }
.footer-row a:hover { color: var(--blue); }
.company { color: var(--ink-2); }

/* ── Tablet ─────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  :root { --pad-x: 24px; }
  .nav-desktop, .header-cta { display: none; }
  .menu { display: block; }
  .header-row { min-height: 72px; }
  h1 { font-size: 48px; line-height: 1.08; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .trial-grid { grid-template-columns: 1fr; gap: 32px; }
  .trial-cta { text-align: left; }
  /* Below 900 the three mappings wrapped two-plus-one (review F4): stack them, as on a phone. */
  .mappings { flex-direction: column; gap: 12px; }
}

/* ── Phone ──────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  :root { --pad-x: 20px; --section-y: 48px; }
  body { font-size: 16px; line-height: 1.55; }
  h1 { font-size: 38px; line-height: 1.1; }
  h2 { font-size: 30px; line-height: 1.15; }
  h3 { font-size: 25px; line-height: 1.2; }
  .hero-body { margin: 16px 0 16px; }
  .hero-tags { margin-bottom: 24px; }
  .phone-hero { max-width: 280px; }
  .how h2 { margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .example { padding: 24px; }
  .example-quote { font-size: 24px; }
  .mappings { flex-direction: column; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd), .feature:nth-child(even) {
    padding: 48px 0; border-right: 0;
  }
  .phone-feature, .phone-shot { max-width: 300px; }
  .footer-row { gap: 4px 24px; }
  .wordmark-footer { flex-basis: 100%; }
}
/* Ed 11-02: keep "back-and-forth." whole when the heading wraps. */
.nowrap { white-space: nowrap; }
