/* One rule set for every page. Colors are the app's own (its screen background, card and type colors),
   so the screenshots sit on the page without a seam. Every section under the nav is built the same
   way: a centered heading and lede, then content on the same center line, in white cards or in Apple's
   device bezels shown whole. Type is the system font, as in the app. */
:root {
  --bg: #F5F4F1;            /* the app's screen background */
  --card: #FFFFFF;          /* the app's cards */
  --fg: #1C1C1E;
  --fg2: #5C5C61;
  --fg3: #6C6C70;
  --line: #E6E4DF;
  --rec: #E5482A;           /* the record button */
  /* Kind and destination colors: the tinted chips in the app's inbox. */
  --todo-t: #0B67A0;  --todo-b: #D7ECF7;
  --idea-t: #805A00;  --idea-b: #FAEEC6;
  --event-t: #B8235A; --event-b: #FBE2EA;
  --read-t: #08695F;  --read-b: #CDEFE8;
  --plain-t: #5C5C61; --plain-b: #ECEBE7;
  /* System font only, like the app (SF Pro on Apple devices); nothing is loaded from a font service. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 24px;
  --gap: 24px;
  --section: 112px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A18; --card: #2F2F2C; --fg: #F2F2F0; --fg2: #AEAEB2; --fg3: #98989D;
    --line: #34342F; --rec: #FF5B3D;
    --todo-t: #7CC4EE; --todo-b: #14303F;
    --idea-t: #F2C65A; --idea-b: #352C12;
    --event-t: #FF94B8; --event-b: #3E1D29;
    --read-t: #6FD6C9; --read-b: #15332F;
    --plain-t: #AEAEB2; --plain-b: #3A3A36;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Type: one size per level, the same everywhere. */
h1 { font-weight: 700; letter-spacing: -.02em; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .98; margin: 18px 0 22px; text-wrap: balance; }
h2 { font-weight: 700; letter-spacing: -.02em; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; margin: 0 0 14px; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.01em; font-size: 1.2rem; line-height: 1.25; margin: 0; }
.soft { color: var(--fg3); }
/* No uppercase: Apple product names (iPhone, Siri) keep their own case. */
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--rec); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }

/* Nav */
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--rec); display: grid; place-items: center; }
.brand-mark svg { width: 15px; height: 15px; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: .95rem; color: var(--fg2); }
nav ul a { text-decoration: none; }
nav ul a:hover { color: var(--fg); }
nav ul a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Hero: everything on the center line, the phone under the copy. */
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 48px 0; }
.lede { font-size: 1.2rem; color: var(--fg2); max-width: 40ch; margin: 0 0 32px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; }
.cta small { color: var(--fg3); font-size: .9rem; }
/* Apple's official "Download on the App Store" badge, unaltered: black on the light page, white on the
   dark one. The guidelines ask for at least 40 px of height and clear space of a quarter of it all round. */
.store-badge { display: block; }
.store-badge img { display: block; height: 52px; width: auto; }
.hero .phone { margin-top: 64px; }

/* Phones: whole iPhone 18 Pro screens in Apple's Burgundy bezel (assets/src/compose-hero.swift), light
   or dark to match the page, at the phone's real size on a typical screen (330 px for the 1350 px bezel).
   Apple's marketing guidelines: the bezel is shown as is, with no shadow, reflection, crop or overlay. */
.phone { margin: 0 auto; width: 330px; max-width: 100%; }
.phone img { display: block; width: 100%; height: auto; }

/* A single centered line between the hero and the first section. */
.interlude { padding-block: var(--section) 0; text-align: center; }
.interlude p { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }

/* Sections: centered heading and lede, then the content. */
section { padding-block: var(--section) 0; }
section:last-of-type { padding-bottom: var(--section); }
section > .wrap > h2, section > .wrap > .sec-lede { text-align: center; margin-inline: auto; }
.sec-lede { color: var(--fg2); max-width: 56ch; margin-bottom: 56px; text-wrap: pretty; }

/* How it works: three whole phones in a row, each with its step under it. */
/* Each step shares the row lines of the others (subgrid), so the labels, headings, text and chips start
   at the same height in all three columns, however long each step's text is. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.step { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; justify-items: center; align-items: start; text-align: center; }
.step .phone { margin-bottom: 22px; }
.step-n { font-size: .95rem; font-weight: 600; color: var(--fg3); font-variant-numeric: tabular-nums; }
.step p { color: var(--fg2); font-size: 1rem; max-width: 34ch; }

/* Chips: one style, the app's tinted inbox chips. */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-top: 6px; }
.chip { font-size: .82rem; font-weight: 600; line-height: 1.3; padding: 6px 12px; border-radius: 999px; }
.c-todo { color: var(--todo-t); background: var(--todo-b); }
.c-event { color: var(--event-t); background: var(--event-b); }
.c-idea { color: var(--idea-t); background: var(--idea-b); }
.c-read { color: var(--read-t); background: var(--read-b); }
.c-plain { color: var(--plain-t); background: var(--plain-b); }
.c-quote { color: var(--fg); background: var(--card); font-weight: 500; border-radius: 14px; padding: 8px 14px; }
.c-quote b { color: var(--todo-t); background: var(--todo-b); border-radius: 5px; padding: 0 4px; font-weight: 600; white-space: nowrap; }

/* iPhone Duo: the open inner screen inside Apple's Star White inner-open landscape bezel, shown as is,
   at the hero phone's scale (3093 px bezel → 756 px). */
.duo { margin: 0 auto; max-width: 756px; }
.duo img { display: block; width: 100%; height: auto; }

/* Cards: one white card style for the ways to capture and the requirements. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; display: grid; align-content: start; gap: 8px; text-align: center; }
.card p { color: var(--fg2); font-size: 1rem; }

/* Privacy facts: one white card, rows inside. */
.facts { list-style: none; margin: 0 auto; padding: 4px 28px; max-width: 640px; background: var(--card); border-radius: var(--radius); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 1rem; }
.facts li + li { border-top: 1px solid var(--line); }
.facts li span:last-child { color: var(--fg2); text-align: right; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px 48px; color: var(--fg3); font-size: .92rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }
/* Apple trademark credit, required once the site shows Apple product images (App Store marketing guidelines). */
footer .legal { flex-basis: 100%; max-width: 80ch; font-size: .8rem; line-height: 1.5; }
.mail { user-select: all; color: var(--fg2); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 80px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 520px) {
  :root { --section: 80px; }
  nav ul { display: none; }
  .cards-4 { grid-template-columns: 1fr; }
}

/* Policy and help pages: one readable column under the same nav and footer */
.doc .wrap { max-width: 760px; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.02; margin: 12px 0 10px; }
.doc .meta { color: var(--fg3); font-size: .95rem; margin: 0 0 28px; }
.doc .summary { background: var(--card); border-radius: 20px; padding: 20px 22px; margin: 0 0 8px; color: var(--fg); }
.doc .summary strong { font-weight: 600; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 44px 0 12px; }
.doc h3 { font-size: 1.12rem; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--fg2); max-width: 65ch; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--fg); text-decoration-color: var(--rec); text-underline-offset: 3px; }
.doc .placeholder { background: var(--idea-b); color: var(--idea-t); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.doc .contact { margin-top: 12px; background: var(--card); border-radius: 20px; padding: 20px 22px; display: grid; gap: 6px; }
.doc .contact .mail { font-size: 1.15rem; font-weight: 600; color: var(--fg); }
.doc ul + p, .doc ol + p, .doc .contact + p { margin-top: 12px; }
