/* Luma Reader website. Colours follow mobile/src/theme.ts. System fonts only: no third-party requests. */
:root {
  --bg: #F7F8FC;
  --card: #FFFFFF;
  --ink: #171B32;
  --muted: #646C84;
  --line: #E8EBF3;
  --accent: #555CF2;
  --focus: #F04B6B;
  --accent-ink: #FFFFFF;
  --highlight: #E1E3FF;
  --cream: #FFF8EE;
  --shadow: 0 1px 2px rgba(23, 27, 50, .04), 0 12px 40px -12px rgba(23, 27, 50, .14);
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111423;
    --card: #1C2033;
    --ink: #F7F8FF;
    --muted: #ADB4C8;
    --line: #30364B;
    --accent: #9298FF;
    --accent-ink: #111423;
    --highlight: #33387A;
    --cream: #1C2033;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 14px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.navlinks { display: flex; gap: 24px; margin-left: auto; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 15px; }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 720px) { .navlinks { display: none; } .nav .button { margin-left: auto; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.button.small { padding: 9px 16px; font-size: 14px; }
.button[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* Type */
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 72px); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 22px 0 32px; }
.muted { color: var(--muted); }

section { padding: clamp(72px, 10vw, 120px) 0; }
.sectionhead { max-width: 640px; margin-bottom: 52px; }
.sectionhead.center { margin-inline: auto; text-align: center; }
.sectionhead p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.pills li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

/* RSVP demo */
.demo {
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow);
  padding: 26px 26px 22px; position: relative; overflow: hidden;
}
.demo::before {
  content: ""; position: absolute; inset: auto -30% -55% 35%; height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}
.demo-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); position: relative; }
.demo-badge { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--highlight); padding: 6px 10px; border-radius: 999px; }
.stage { position: relative; margin: 26px 0 18px; height: 150px; display: grid; place-items: center; }
.stage::before, .stage::after { content: ""; position: absolute; left: 50%; width: 2px; height: 16px; background: var(--accent); opacity: .55; transform: translateX(-50%); }
.stage::before { top: 22px; }
.stage::after { bottom: 22px; }
.word {
  display: grid; grid-template-columns: 1fr auto 1fr; width: 100%;
  font: 500 clamp(34px, 5vw, 46px)/1 var(--serif); letter-spacing: .005em; white-space: pre;
}
.word .l { text-align: right; }
.word .f { color: var(--focus); font-weight: 700; }
.word .r { text-align: left; }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .12s linear; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; position: relative; }
.play {
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 17px;
  display: grid; place-items: center; flex: none;
}
.speeds { display: flex; gap: 4px; margin-left: auto; background: var(--bg); padding: 4px; border-radius: 999px; }
.speeds button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 13px/1 var(--sans); padding: 8px 11px; border-radius: 999px;
}
.speeds button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.demo-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; position: relative; }

/* Values strip */
.strip { border-block: 1px solid var(--line); padding: 26px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip li { display: flex; flex-direction: column; gap: 2px; }
.strip b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.strip span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .strip ul { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots figure { scroll-snap-align: start; }
}
.shots figure { margin: 0; }
.shots figcaption { margin-top: 16px; }
.shots figcaption b { display: block; font-size: 16px; }
.shots figcaption span { color: var(--muted); font-size: 14.5px; }
.phone {
  aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 9px;
  background: var(--ink); box-shadow: var(--shadow);
}
.phone .screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--bg); position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.empty .screen {
  display: grid; place-items: center; text-align: center; padding: 18px;
  background: repeating-linear-gradient(135deg, var(--card) 0 12px, var(--bg) 12px 24px);
  color: var(--muted); font: 13px/1.5 var(--mono);
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--highlight); color: var(--accent); margin-bottom: 20px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* Split section (floating reader) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .phone { max-width: 300px; margin-inline: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--muted); }
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--highlight); color: var(--accent); font-weight: 700;
}
.steps b { color: var(--ink); display: block; }
.note { font-size: 14.5px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin-top: 28px; }

/* Privacy band */
.band {
  background: var(--ink); color: #F7F8FF; border-radius: 32px;
  padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
@media (prefers-color-scheme: dark) { .band { background: var(--card); } }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.band .eyebrow { color: #B4B8FF; }
.band p { color: #C9CDE0; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: baseline; color: #E4E6F2; }
.band li::before { content: "●"; color: #9298FF; font-size: 10px; transform: translateY(-2px); }
.band a { color: #B4B8FF; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 600 19px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--sans); color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); }

/* Download CTA */
.cta { text-align: center; }
.cta img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 28px; box-shadow: var(--shadow); }
.cta .actions { justify-content: center; margin-top: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14.5px; color: var(--muted); }
.footgrid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.copyright { margin: 24px 0 0; }

/* Legal pages */
.doc { max-width: 760px; padding: clamp(48px, 7vw, 88px) 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { color: var(--muted); margin: 14px 0 40px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--ink); }
.doc address { font-style: normal; }
.langswitch { font-size: 14.5px; color: var(--muted); }
