/* Hello Later website. Colours and type from Design System v1 (25 Oct 2026), same values as 04-build/app/src/theme.ts.
   Fonts are self-hosted (no Google Fonts calls), so no cookies and no cookie banner. */
@font-face { font-family: "Literata"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Literata_600SemiBold.woff2?v=1") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/Literata_400Regular_Italic.woff2?v=1") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/SchibstedGrotesk_400Regular.woff2?v=1") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/SchibstedGrotesk_600SemiBold.woff2?v=1") format("woff2"); }

:root {
  color-scheme: light dark;
  --ground: #F4F4F2; --surface: #FFFFFF; --panel: #EDEDEA;
  --ink: #141414; --muted: #666666; --on-ink: #FFFFFF; --line: #DDDDDD;
  --note: #FFFFFF; --note-ink: #141414;
  --serif: "Literata", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-note: 6px; --r-photo: 16px; --r-button: 18px; --r-card: 22px;
  --shadow-note: 0 1px 2px rgba(20,20,20,.08), 0 12px 32px rgba(20,20,20,.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0E0E; --surface: #1B1B1B; --panel: #141414;
    --ink: #F4F4F4; --muted: #A6A6A6; --on-ink: #0E0E0E; --line: #333333;
    --shadow-note: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); display: inline-block; padding-block: 10px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer nav a { color: var(--ink); text-decoration: none; }
footer p { margin: 4px 0; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--r-button);
  background: var(--ink); color: var(--on-ink); font: 600 17px/1 var(--sans); text-decoration: none; border: 0; }
.btn.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); cursor: default; }

/* Hero */
.hero { display: grid; gap: 40px; padding: 28px 0 24px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .fine { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0 40px; min-height: min(78svh, 760px); }
}

/* The toy: tap your things, the note fills in */
.toy { background: var(--panel); border-radius: var(--r-card); padding: 22px; display: grid; gap: 18px; }
.toy-hint { font-size: 15px; color: var(--muted); }
.things { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thing { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-photo);
  padding: 0; cursor: pointer; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 3 / 4; overflow: hidden; font: inherit; text-align: left;
  transition: border-color .2s; }
.thing:hover { border-color: var(--ink); }
.thing .pic { display: grid; place-items: center; color: var(--muted); position: relative; }
.thing .pic svg { width: 56%; height: auto; }
.thing .label { padding: 8px 10px 10px; font: 600 14px/1.2 var(--sans); }
.thing .stamp { position: absolute; left: 8px; bottom: 6px; font: 600 12px/1 var(--sans); letter-spacing: .02em; opacity: 0; }
.thing[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.thing[aria-pressed="true"] .pic { color: var(--on-ink); }
.thing[aria-pressed="true"] .stamp { opacity: 1; }
.thing.flash .pic::after { content: ""; position: absolute; inset: 0; background: #FFFFFF; animation: flash .45s ease-out forwards; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }

.note { background: var(--note); color: var(--note-ink); border-radius: var(--r-note); box-shadow: var(--shadow-note);
  padding: 22px 22px 18px; min-height: 168px; display: grid; align-content: start; gap: 10px; }
.note-head { font: 600 24px/1.2 var(--serif); }
.note-body { font-size: 17px; min-height: 2.9em; }
.note-sign { font: italic 400 17px/1.3 var(--serif); color: #666666; }
.note .reset { justify-self: start; appearance: none; background: none; border: 0; padding: 4px 0; color: #666666; font: 400 14px var(--sans);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.note .reset[hidden] { display: none; }

/* Sections */
section.block { padding: 64px 0 8px; display: grid; gap: 28px; }
.block > header { display: grid; gap: 12px; max-width: 40ch; }

/* Two moments: the icon's two dots, now (filled) and later (ring) */
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.moments li { display: grid; grid-template-columns: 28px 1fr; gap: 6px 16px; }
.moments .dot { width: 18px; height: 18px; border-radius: 50%; margin-top: 6px; background: var(--ink); }
.moments li + li .dot { background: transparent; border: 2.5px solid var(--ink); width: 14px; height: 14px; margin: 8px 2px 0; }
.moments p { grid-column: 2; color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) { .moments { grid-template-columns: 1fr 1fr; gap: 48px; } }
.safety { border-left: 3px solid var(--ink); padding: 4px 0 4px 16px; max-width: 60ch; }

/* Private by design */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* Pricing */
.plans { display: grid; gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; align-content: start; }
.plan.plus { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.plan.plus .muted { color: inherit; opacity: .72; }
.plan ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.prices { display: grid; gap: 4px; font-size: 16px; }
.prices b { font: 600 24px/1.2 var(--serif); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.4fr; } }

/* Questions */
details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 680px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; content: "+" / ""; font: 400 22px/1 var(--sans); }
details[open] summary::after { content: "−"; content: "−" / ""; }
details p { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* Plain pages: help, privacy, terms, 404 */
.doc { padding: 24px 0 8px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 16px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .lede { max-width: none; margin-bottom: 18px; }
.doc details p { margin: 10px 0 4px; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
@media (max-width: 620px) {
  /* Tables stack into one block per row on phones; each cell shows its column name. */
  .doc table { min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .doc td { display: block; border: 0; padding: 2px 0 8px; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
  .doc td:first-child::before { content: none; }
}
.placeholder { background: #FFE9A8; color: #141414; padding: 0 4px; border-radius: 3px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; }
  .hide-sm { display: none; }
  .toy { padding: 12px; }
  .things { gap: 8px; }
  .thing .label { padding: 8px 6px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Page fades between pages (iOS 18.2+; ignored elsewhere) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
