/* Saygleam site. Light editorial look (landing-page D-10, ADR-2): off-white page, near-black text,
   the app's yellow highlight as the only accent; system serif headlines, system sans body, no font
   file. Contrast numbers for these tokens: decisions.md DEV-8. */
:root {
  --background: #FAF8F3;
  --surface: #F1EDE4;
  --text: #1A1917;
  --text-muted: #5F5B53;
  --hairline: #DDD7CB;
  --highlight: #FFD600;
  --on-highlight: #1A1917;
  --radius: 16px;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--background); }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

/* Type scale: serif headlines, sans body. */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: 40px; letter-spacing: -0.02em; }
h2 { font-size: 30px; letter-spacing: -0.015em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

/* Links keep the text colour (16.6:1) and are told apart by their underline. */
a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--text-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: var(--text); text-decoration-thickness: 2px; }

/* Visible focus: a near-black ring with the yellow highlight around it. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--highlight);
  border-radius: 4px;
}

mark { background: var(--highlight); color: var(--on-highlight); padding: 0 0.08em; border-radius: 0.12em; }

.site-header, main, .site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark .gleam {
  background: var(--highlight);
  color: var(--on-highlight);
  border-radius: 6px;
  padding: 0 4px;
  margin-left: 1px;
}

.languages { display: flex; gap: 12px; font-size: 15px; }
.languages a { text-decoration: none; color: var(--text-muted); }
.languages a[aria-current] { color: var(--text); }

main section { margin: 40px 0; }

/* Home hero (ADR-3): promise and badge beside the marketing video in a phone frame. On a phone
   the scene comes right after the promise so it is on the first screen; the badge follows it. */
.hero {
  display: grid;
  grid-template-areas: "text" "scene" "badge";
  gap: 20px;
  margin-top: 0;
}
.hero-text { grid-area: text; }
.hero .badge { grid-area: badge; }
.scene { grid-area: scene; justify-self: center; margin: 0; }

.eyebrow {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 { font-size: 42px; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 14px; }
.promise { color: var(--text-muted); font-size: 18px; line-height: 1.45; max-width: 30em; margin: 0; }

.badge img, .closing-badge img { display: block; width: 160px; height: auto; }
.badge p { color: var(--text-muted); font-size: 15px; margin: 8px 0 0; }
.hero .badge { justify-self: center; text-align: center; }
.hero .badge img { margin: 0 auto; }

/* The phone: the marketing video (ADR-3) in an iPhone frame, with the browser's own controls so it
   can be paused (WCAG 2.2.2). With reduced motion the autoplaying copy is hidden and a copy that
   only plays when tapped shows its poster. */
.scene-phone {
  position: relative;
  width: 300px;
  padding: 9px;
  border-radius: 50px;
  background: #1D1C1A;
  box-shadow: 0 1px 0 1px #3A3834 inset, 0 24px 48px -16px rgba(40, 32, 16, 0.35);
}
.scene-screen {
  border-radius: 41px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000000;
}
.scene-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-screen .still { display: none; }

@media (prefers-reduced-motion: reduce) {
  .scene-screen .play { display: none; }
  .scene-screen .still { display: block; }
}
}

main section h2 { font-size: 30px; margin-bottom: 16px; }

/* Three features: a plain list between hairlines. */
.features ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); }
.features li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.features h3 { margin-bottom: 4px; }
.features p { color: var(--text-muted); margin: 0; }

.price .free { font-size: 18px; margin-bottom: 12px; }
.plans { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.plan {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 6px 10px;
}
.save {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  vertical-align: 0.25em;
  background: var(--highlight);
  color: var(--on-highlight);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 2px;
}
.price .fine { color: var(--text-muted); font-size: 15px; margin: 0; }

.closing {
  background: var(--highlight);
  color: var(--on-highlight);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}
.closing-line { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.closing-badge { display: inline-block; }
.closing p:last-child { font-size: 15px; margin: 8px 0 0; }

/* Text pages: support, privacy, terms, 404 */
.text-page { max-width: 680px; }
.text-page h1 { margin-top: 24px; }
.text-page h2 { font-size: 24px; margin-top: 36px; }
.text-page h3 { margin-top: 28px; }
.text-page .updated { color: var(--text-muted); font-size: 15px; }
.text-page li { margin-bottom: 0.5em; }

.site-footer {
  /* The hairline spans the content width, not the side padding. */
  background: linear-gradient(var(--hairline), var(--hairline)) center top / calc(100% - 32px) 1px no-repeat;
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  .hero {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    grid-template-areas: "text scene" "badge scene";
    column-gap: 64px;
    row-gap: 32px;
    align-items: start;
    margin-top: 48px;
  }
  .hero-text { align-self: end; padding-top: 64px; }
  .hero h1 { font-size: 72px; margin-bottom: 24px; }
  .promise { font-size: 21px; max-width: 26em; }
  .hero .badge { justify-self: start; text-align: left; }
  .hero .badge img { margin: 0; }
  .scene-phone { width: 330px; }
  main section { margin: 96px 0; }
  main section h2 { font-size: 40px; }
  .features ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border: 0; }
  .features li { border: 0; border-top: 1px solid var(--hairline); padding-top: 20px; }
  .closing { padding: 56px 48px; }
  .closing .closing-line { font-size: 44px; }
}
