:root {
  --bg: #f6f4ef; --panel: #ffffff; --ink: #1b2230; --soft: #5d6677; --line: #e2ded5;
  --navy: #14213d; --navy-ink: #d9deea; --accent: #f4a259; --accent-ink: #1b2230; --link: #2557c7;
  --slot: #ece8df;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Archivo", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151d; --panel: #181e29; --ink: #e6e9ef; --soft: #9aa3b4; --line: #2a3242;
    --navy: #0b1220; --link: #8fb0ff;
    --slot: #1f2632;
    color-scheme: dark;
  }
}
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-italic.woff2) format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
h1, h2, h3, .brand { font-family: var(--display); line-height: 1.15; }
h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 750; margin: 0 0 18px; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 19px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Top bar and hero share the navy, like the app's sidebar. */
.top { background: var(--navy); color: var(--navy-ink); }
.top a { color: inherit; }
nav { display: flex; align-items: center; gap: 22px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a:not(.brand) { text-decoration: none; font-weight: 500; }
nav a:not(.brand):hover { color: #fff; }
.hero { padding: 48px 0 0; }
@media (min-width: 900px) { .hero { padding-top: 72px; } }
.hero h1 { color: #fff; max-width: 15ch; }
.lede { font-size: 20px; max-width: 46ch; color: var(--navy-ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 40px; align-items: center; }
.button { display: inline-block; padding: 12px 20px; border-radius: 9px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #f7b47a; }
.button.plain { border-color: rgba(217, 222, 234, .35); color: #fff; }
.button.plain:hover { border-color: #fff; }
.note { font-size: 15px; color: var(--navy-ink); opacity: .8; }
.shot { border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -2px 40px rgba(0, 0, 0, .35); }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.intro { max-width: 62ch; }
.intro p { color: var(--soft); font-size: 18px; }
.grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card p { color: var(--soft); margin: 0; }
.card .tag { display: inline-block; font-size: 13px; font-weight: 600; background: rgba(244, 162, 89, .22); color: var(--ink); padding: 2px 9px; border-radius: 99px; margin-bottom: 12px; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } .split.flip > :first-child { order: 2; } }
.split img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 33, 61, .12); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border: solid var(--accent); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; margin-right: 10px; vertical-align: 2px; }

.cta { background: var(--navy); color: var(--navy-ink); border-radius: 16px; padding: 36px 28px; }
.cta h2 { color: #fff; }
.cta .actions { margin-bottom: 0; }

/* Questions open like drawers. */
.faq { display: grid; gap: 12px; margin-top: 26px; max-width: 820px; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; interpolate-size: allow-keywords; }
.qa summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-family: var(--display); font-weight: 650; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border: solid var(--soft); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:hover::after { border-color: var(--ink); }
.qa summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 12px; }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--soft); max-width: 70ch; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* How it works: the app's own video stays put while the page scrolls it on. */
.film { margin-top: 30px; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 10px 30px rgba(20, 33, 61, .08); margin: 0 auto; }
.stage video { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--slot); }
.beats { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .beats { grid-template-columns: repeat(5, 1fr); } }
.beat p { color: var(--soft); margin: 0; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 14px var(--display); margin-bottom: 10px; }
/* With the script on: the film is five screens tall and one step shows at a time. */
.story-on .film { height: 520vh; }
.story-on .film-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px 0; }
.story-on .stage { width: min(100%, calc((100svh - 230px) * 14 / 9)); }
.story-on .beats { display: grid; grid-template-columns: none; margin: 0 auto; width: min(100%, 720px); min-height: 120px; }
.story-on .beat { grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.story-on .beat .step { grid-row: span 2; margin: 0; }
.story-on .beat h3 { margin-bottom: 4px; }
.story-on .beat.on { opacity: 1; transform: none; }
@media (max-width: 699px) {
  .story-on .film { height: 460vh; }
  .story-on .stage { padding: 5px; border-radius: 10px; }
  .story-on .stage video { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .story-on .beat { transition: none; transform: none; } }

footer { padding: 36px 0 48px; color: var(--soft); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: inherit; }

.page-head { padding: 44px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: 10px; }
@media (max-width: 520px) {
  nav { gap: 16px; flex-wrap: nowrap; }
  nav a.wide { display: none; }
}
