/* The landing page uses the app's Night canvas in both color schemes, over one fixed glow layer.
   Everything is visible and static without JavaScript; motion.mjs adds the scroll-linked motion. */
.marketing-page { --background: #1d1e25; --surface: #202128; --surface-variant: #24252d; --text: #e9edf5; --muted: #a4aec0; --primary: #858cff; --primary-soft: #272a45; --accent: #858cff; --border: #292b36; --shadow: 0 20px 60px rgb(0 0 0 / 28%); }
:root:has(.marketing-page) { color-scheme: dark; scrollbar-color: #a4aec0 #1d1e25; }
.section-shell { max-width: calc(1248px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.landing, .marketing-page .site-footer { position: relative; z-index: 1; }

.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--stage); }
.ambient::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(233 237 245 / 6%) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.orb { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.orb-1 { left: -15vw; top: -20vh; width: 70vw; background: radial-gradient(circle, rgb(133 140 255 / 30%), rgb(133 140 255 / 0%) 62%); }
.orb-2 { right: -20vw; top: 10vh; width: 64vw; background: radial-gradient(circle, rgb(85 94 207 / 32%), rgb(85 94 207 / 0%) 62%); }
.orb-3 { left: 20vw; bottom: -40vh; width: 56vw; background: radial-gradient(circle, rgb(153 159 255 / 20%), rgb(153 159 255 / 0%) 62%); }

/* Floating header: transparent over the hero, a glass bar once the page scrolls. */
.marketing-page .site-header { position: fixed; top: 20px; inset-inline: clamp(.75rem, 3vw, 2rem); max-width: 1248px; margin-inline: auto; display: flex; gap: 1.5rem; padding: .5rem .6rem .5rem 1rem; border: 1px solid transparent; border-radius: 18px; background: transparent; backdrop-filter: blur(18px); transition: translate 400ms var(--ease-out), background-color 400ms, border-color 400ms; }
.marketing-page .site-header.is-scrolled { translate: 0 -10px; background: rgb(29 30 37 / 72%); border-color: var(--border); }
.marketing-page .brand { gap: .65rem; font-size: 1.15rem; }
.marketing-page .brand img { width: 32px; height: 32px; border-radius: 9px; }
.header-cta, .install-cta { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 0 1.1rem; border-radius: 12px; color: #14152a; background: var(--primary); font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color var(--duration-fast), transform var(--duration-fast); }
.header-cta:hover, .install-cta:hover { background: var(--stage-accent); transform: translateY(-1px); }
.header-progress { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.header-progress span { position: absolute; inset: auto 0 0; height: 2px; background: var(--stage-accent); transform: scaleX(0); transform-origin: left; }

/* Hero: the promise and store badges beside the interactive reader. */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 8rem 4rem; }
.hero-stage { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; gap: clamp(3rem, 6vw, 6rem); }
.hero-copy { min-width: 0; will-change: transform, opacity; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.75rem; padding: .3rem .8rem .3rem .4rem; border: 1px solid var(--stage-line); border-radius: 999px; color: var(--muted); background: rgb(32 33 40 / 70%); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.hero-pill span { padding: 0 .55rem; border-radius: 999px; color: var(--stage-accent); background: #2c2f52; font-size: .72rem; font-weight: 700; line-height: 1.6rem; }
.hero h1 { margin: 0 0 1.75rem; font-size: clamp(3.25rem, 7vw, 6.5rem); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--stage-accent); }
.lede { max-width: 36ch; margin: 0; color: var(--muted); font-size: 1.2rem; line-height: 1.7; text-wrap: pretty; }
.hero .store-links { margin-top: 2.25rem; }
.availability { color: var(--muted); font-size: .8rem; margin: .65rem 0 0; }
.store-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .65rem; }
.store-option { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; }
.store-button { display: inline-flex; align-items: center; justify-content: center; min-height: 68px; max-width: 100%; border-radius: 6px; transition: transform var(--duration-fast), filter var(--duration-fast); }
.store-button--apple { padding-inline: .6rem; }
/* Artwork itself is 44px high; dimensions account for each store's native clear space. */
.store-status { color: var(--muted); font-size: .7rem; }
a.store-button:hover { transform: translateY(-3px); filter: brightness(1.12); }
a.store-button:active { transform: scale(.97); }
.hero-visual { position: relative; min-width: 0; min-height: clamp(520px, 78svh, 760px); display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; pointer-events: none; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(133 140 255 / 28%), rgb(133 140 255 / 0%) 65%); }
.hero-back { position: absolute; pointer-events: none; left: 54%; top: 6%; width: min(250px, 30svh); transform: rotate(8deg); will-change: transform; }
.hero-back img { border-radius: 22px; box-shadow: 0 30px 70px rgb(0 0 0 / 45%); opacity: .85; }
.hero-demo { position: relative; width: min(100%, 360px); margin-right: 12%; will-change: transform; }

.marquee { overflow: hidden; padding-block: 1.4rem; border-block: 1px solid var(--border); background: rgb(29 30 37 / 55%); backdrop-filter: blur(6px); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
/* Trailing space instead of a gap keeps the loop seamless: each half is exactly one set. */
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; padding-inline-end: 3rem; white-space: nowrap; color: var(--muted); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.4; letter-spacing: -.03em; }
.marquee-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #555ecf; }

/* Feature story: eight articles in normal flow, each with its own screenshot. On wide screens
   motion.mjs moves the screenshot links into one sticky phone that follows the active article. */
.story-intro { padding-block: clamp(5rem, 10vw, 8rem) 2rem; }
.story-eyebrow { margin: 0 0 1rem; color: var(--stage-accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.story-intro h2 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.055em; }
.story-step { position: relative; padding-block: 3rem; }
.section-anchor { position: absolute; top: 0; }
.story-index { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem; color: var(--stage-accent); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.story-rule { width: 48px; height: 1px; background: var(--stage-line); }
.story-label { color: var(--muted); font-weight: 600; }
.story-step h3 { max-width: 14ch; margin: 0 0 1.25rem; font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 600; line-height: 1.06; letter-spacing: -.05em; }
.story-step > p:not(.story-index, .story-note) { max-width: 38ch; margin: 0 0 .75rem; color: var(--muted); font-size: 1.15rem; line-height: 1.75; text-wrap: pretty; }
.story-note { width: fit-content; margin: .5rem 0 0; padding: .35rem .8rem; border-radius: 8px; color: #c2c9d7; background: #2c2f52; font-size: .85rem; }
.story-art { width: min(100%, 280px); margin-top: 2rem; }
.story-art .screen-link img { border-radius: 20px; box-shadow: 0 30px 70px rgb(0 0 0 / 45%); }
.story-layout.is-staged { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.is-staged .story-step { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transform: translateX(-12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.is-staged .story-step.is-active { opacity: 1; transform: none; }
.is-staged .story-art { display: none; }
.story-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; gap: 2.5rem; }
.story-stage[hidden] { display: none; }
.story-phone { position: relative; width: min(330px, 34svh); aspect-ratio: 1320 / 2868; }
.story-phone::before { content: ''; position: absolute; inset: -30%; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgb(133 140 255 / 26%), rgb(133 140 255 / 0%) 62%); }
.story-phone .screen-link { position: absolute; inset: 0; opacity: 0; transform: translateY(10%) scale(.92) rotate(3deg); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.story-phone .screen-link.is-past { transform: translateY(-8%) scale(.92) rotate(-3deg); }
.story-phone .screen-link.is-active { opacity: 1; transform: none; }
.story-phone .screen-link img { width: 100%; height: 100%; border-radius: 26px; outline: 1px solid rgb(153 159 255 / 30%); outline-offset: -1px; box-shadow: 0 40px 90px rgb(0 0 0 / 55%); }
.story-rail { display: flex; flex-direction: column; align-items: flex-end; }
.story-rail button { display: flex; align-items: center; justify-content: flex-end; width: 44px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.story-rail button::before { content: ''; width: 16px; height: 3px; border-radius: 3px; background: var(--stage-line); transition: width 400ms var(--ease-out), background-color 400ms; }
.story-rail button:hover::before { background: var(--muted); }
.story-rail button[aria-current]::before { width: 44px; background: var(--stage-accent); }
.story-counter { margin: .75rem 0 0; color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.screen-link { cursor: zoom-in; display: block; position: relative; text-decoration: none; border-radius: var(--radius-sm); }
.screen-link img { width: 100%; height: auto; }
.screen-expand { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #555867; border-radius: 50%; color: var(--stage-text); background: var(--stage); transition: transform var(--duration-fast), background var(--duration-fast); }
.screen-link:hover .screen-expand { background: #35394e; transform: scale(1.08); }
.screen-link:active .screen-expand { transform: scale(.94); }

/* Hero reader: an HTML replica of the app's reader on the Night canvas. Without JavaScript
   it shows the story with one explained word; reader-demo.mjs adds selection and listening. */
.reader-hint { margin: 0 0 1rem; color: var(--stage-muted); font-size: .85rem; line-height: 1.6; text-wrap: pretty; }
.reader-hint-badge { display: inline-block; margin-inline-end: .35rem; padding: 0 .5rem; border-radius: 6px; color: var(--stage-accent); background: #2c2f52; font-size: .75rem; font-weight: 650; line-height: 1.6rem; }
.reader { --reader-ink: #e9edf5; --reader-muted: #a4aec0; --reader-sheet: #25262e; --reader-raised: #2d2e38; --reader-line: #3a3c49; --reader-accent: #858cff; --reader-on-accent: #14152a;
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(520px, calc(100svh - 14rem), 640px); overflow: hidden; color: var(--reader-ink); background: #202128; border: 1px solid rgb(153 159 255 / 42%); border-radius: 40px; box-shadow: 0 32px 80px rgb(0 0 0 / 42%), 0 0 90px rgb(133 140 255 / 9%); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; isolation: isolate; }
.reader :focus-visible { outline-color: var(--stage-accent); outline-offset: 2px; }
.reader-bar { display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: .75rem; padding: 1.15rem 1.35rem .5rem; color: var(--reader-ink); font-size: .9rem; font-weight: 600; text-align: center; }
.reader-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-bar svg:last-child { color: var(--reader-muted); }
.reader-page { position: relative; overflow-y: auto; scrollbar-width: none; padding: .75rem 1.4rem 2rem; font-size: 1.02rem; line-height: 1.85; letter-spacing: .01em; transition: opacity var(--duration-state) var(--ease-out); mask-image: linear-gradient(to bottom, transparent, #000 .9rem, #000 calc(100% - 2.25rem), transparent); }
.reader-page::-webkit-scrollbar { display: none; }
.reader-page p { margin: 0 0 1.1rem; }
/* On touch screens the reader covers most of the viewport, so swipes over it must scroll the
   page. The story still scrolls itself for playback and word selection. */
@media (pointer: coarse) {
  .reader-page { overflow-y: hidden; }
}
.reader-sentence { border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color var(--duration-state); }
.reader-sentence.is-current { background: rgb(133 140 255 / 17%); }
::highlight(reader-spoken) { color: #fff; background-color: rgb(133 140 255 / 58%); }
/* Underline longhands: Safari drops the text-decoration shorthand when it includes a thickness. */
.reader-word { padding: 0 .12em; margin: 0 -.12em; font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgb(153 159 255 / 90%); text-decoration-thickness: 2px; text-underline-offset: .32em; transition: background-color var(--duration-fast), text-decoration-color var(--duration-fast); }
.reader-word:hover { background: rgb(133 140 255 / 20%); }
.reader-word[aria-expanded='true'] { color: #fff; background: rgb(133 140 255 / 48%); text-decoration-color: transparent; }
.reader-word.is-saved { text-decoration-style: solid; }
.reader-player { position: relative; padding: 0 1.1rem 1.15rem; background: var(--reader-sheet); border-radius: 22px 22px 0 0; }
.reader-progress { height: 3px; margin-inline: 1.1rem; overflow: hidden; border-radius: 3px; background: var(--reader-line); }
.reader-progress span { display: block; height: 100%; background: var(--reader-accent); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 450ms var(--ease-out); }
.reader.is-playing .reader-progress span { transition: none; }
.reader-transport { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .85rem 0 .8rem; }
.reader-transport button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--reader-ink); background: var(--reader-raised); border: 0; border-radius: 50%; cursor: pointer; transition: background-color var(--duration-fast), transform var(--duration-fast), opacity var(--duration-fast); }
.reader-transport .reader-play { width: 60px; height: 60px; color: var(--reader-on-accent); background: var(--reader-accent); box-shadow: 0 0 26px rgb(133 140 255 / 38%); }
.reader-transport button:hover:not(:disabled) { background: #393b48; }
.reader-transport .reader-play:hover:not(:disabled) { background: #999fff; }
.reader-transport button:active:not(:disabled) { transform: scale(.93); }
.reader-transport button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.reader .icon-pause, .reader.is-playing .icon-play { display: none; }
.reader.is-playing .icon-pause { display: block; }
.reader-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.reader-voice, .reader-lookup { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .35rem .7rem; border-radius: 10px; font: inherit; font-size: .78rem; font-weight: 600; line-height: 1.3; text-align: center; }
.reader-voice { background: #2a3045; }
.reader-lookup { color: var(--reader-muted); background: transparent; border: 1px solid var(--reader-line); cursor: pointer; transition: color var(--duration-fast), border-color var(--duration-fast); }
.reader-lookup:hover { color: var(--reader-ink); border-color: #565a70; }
.reader-sheet { position: absolute; inset: auto 0 0; z-index: 2; max-height: 80%; overflow-y: auto; scrollbar-width: none; padding: .35rem 1.35rem 1.2rem; background: var(--reader-sheet); border-radius: 26px 26px 0 0; box-shadow: 0 -18px 44px rgb(0 0 0 / 38%); outline: none; transition: transform 380ms var(--ease-out), visibility 0s; }
.reader-sheet::-webkit-scrollbar { display: none; }
.reader-sheet-close { display: grid; place-items: center; width: 100%; height: 30px; padding: 0; margin-bottom: .4rem; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.reader-sheet-close span { width: 38px; height: 4px; border-radius: 2px; background: #61647a; transition: background-color var(--duration-fast); }
.reader-sheet-close:hover span { background: var(--reader-muted); }
.reader-gloss-word { margin: 0 0 .55rem; font-size: 1.55rem; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.reader-gloss-pair { margin: 0; color: var(--reader-muted); font-size: .72rem; font-weight: 600; }
.reader-gloss-meaning { margin: 0 0 .45rem; color: var(--stage-accent); font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
.reader-gloss-note { margin: 0; color: #c2c9d7; font-size: .8rem; line-height: 1.55; }
.reader-gloss-note b { padding: 0 .15em; color: var(--reader-ink); background: rgb(133 140 255 / 22%); border-radius: 3px; font-weight: 650; }
.reader-other-label { margin: .9rem 0 .4rem; color: var(--reader-muted); font-size: .72rem; font-weight: 600; }
.reader-other { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.reader-other li { margin: 0; padding: .25rem .6rem; background: var(--reader-raised); border-radius: 8px; font-size: .78rem; }
.reader-actions { display: grid; gap: .5rem; margin-top: 1.1rem; }
.reader-actions button { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; font: inherit; font-size: .85rem; font-weight: 650; line-height: 1.25; border-radius: 22px; cursor: pointer; transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast); }
.reader-actions button:active { transform: scale(.98); }
.reader-add { color: var(--reader-ink); background: #1b1c22; border: 1px solid var(--reader-line); }
.reader-add:hover { border-color: #565a70; }
.reader-add .icon-check, .reader-add .add-done, .reader-add.is-added .icon-plus, .reader-add.is-added .add-idle { display: none; }
.reader-add.is-added .icon-check, .reader-add.is-added .add-done { display: inline; }
.reader-add.is-added { color: var(--stage-accent); border-color: rgb(133 140 255 / 45%); cursor: default; }
.reader-start { color: var(--reader-on-accent); background: var(--reader-accent); border: 0; }
.reader-start:hover { background: #999fff; }
/* With scripting the sheet starts closed; without it, the default word stays explained. */
@media (scripting: enabled) {
  .reader:not(.has-sheet) .reader-sheet { visibility: hidden; transform: translateY(100%); transition: transform 300ms var(--ease-out), visibility 0s 300ms; }
}
.reader.is-enhanced:not(.has-sheet) .reader-sheet { visibility: hidden; transform: translateY(100%); transition: transform 300ms var(--ease-out), visibility 0s 300ms; }
.reader.has-sheet .reader-page { padding-bottom: 20rem; opacity: .5; }
@media (scripting: none) {
  .reader-hint { display: none; }
  .reader-word[data-default] { color: #fff; background: rgb(133 140 255 / 48%); text-decoration-color: transparent; }
}

.privacy-section { padding-block: clamp(5rem, 10vw, 8rem); }
.privacy-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.5rem; align-items: start; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--border); border-radius: 28px; background: rgb(32 33 40 / 72%); backdrop-filter: blur(12px); }
.privacy-heading { display: flex; flex-direction: column; gap: 1.5rem; color: var(--primary); }
.privacy-feature h2 { max-width: 12ch; margin: 0; color: var(--text); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.privacy-feature p { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.faq-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.faq-section h2 { max-width: 11ch; margin: 0; font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; }
.faq-list { min-width: 0; border-top: 1px solid var(--border); interpolate-size: allow-keywords; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem 0; cursor: pointer; list-style: none; font-weight: 600; line-height: 1.5; transition: color var(--duration-fast); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--stage-line); border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform 300ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--stage-accent); }
/* Native disclosures; browsers with ::details-content also animate the answer's height. */
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 400ms var(--ease-out), content-visibility 400ms allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-answer { padding-bottom: 1.5rem; color: var(--muted); font-size: .95rem; }
.faq-answer p { margin-bottom: .75rem; }
.closing-callout { overflow: hidden; padding-top: clamp(5rem, 10vw, 9rem); border-top: 1px solid var(--border); background: linear-gradient(to bottom, rgb(36 37 45 / 0%), rgb(44 47 82 / 55%)); }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-icon { width: 64px; height: 64px; margin-bottom: 2rem; border-radius: 16px; box-shadow: 0 0 60px rgb(133 140 255 / 40%); }
.closing-callout h2 { max-width: 16ch; margin: 0 0 1.5rem; font-size: clamp(2.75rem, 6vw, 5.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.06em; }
.closing-callout em { color: var(--stage-accent); font-style: normal; }
.closing-lede { max-width: 34ch; margin: 0 0 2rem; color: var(--muted); font-size: 1.1rem; }
.closing-inner .store-links { justify-content: center; }
/* Decorative reuse of three store screens; this resting fan is also the reduced-motion state. */
.closing-fan { position: relative; width: min(100%, 760px); height: clamp(260px, 38vw, 420px); margin-top: 4rem; }
.closing-fan img { position: absolute; left: 50%; top: 0; width: min(240px, 32%); translate: -50% 0; border-radius: 22px; box-shadow: 0 30px 70px rgb(0 0 0 / 45%); transform-origin: 50% 100%; will-change: transform; }
.closing-fan img:nth-child(1) { transform: translateX(-70%) rotate(-12deg) translateY(30px); }
.closing-fan img:nth-child(2) { transform: translateX(70%) rotate(12deg) translateY(30px); }
.closing-fan img:nth-child(3) { width: min(260px, 35%); border-radius: 24px; outline: 1px solid rgb(153 159 255 / 35%); outline-offset: -1px; box-shadow: 0 40px 90px rgb(0 0 0 / 55%); }
.marketing-page .site-footer { max-width: none; padding-inline: max(var(--gutter), calc((100% - 1248px) / 2)); background: var(--background); }
.marketing-page .footer-wordmark { margin-top: 2.5rem; font-size: clamp(3rem, 13vw, 11rem); letter-spacing: -.05em; line-height: 1.1; white-space: nowrap; opacity: .1; will-change: transform; }

/* Floating install prompt: shown by motion.mjs between the hero and the closing section. */
.install-bar { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: .9rem; width: max-content; max-width: calc(100vw - 24px); padding: .5rem .5rem .5rem .6rem; border: 1px solid var(--stage-line); border-radius: 999px; background: rgb(32 33 40 / 82%); backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgb(0 0 0 / 45%); translate: -50% 0; transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform 500ms var(--ease-out), opacity 400ms, visibility 0s 500ms; }
.install-bar.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.install-bar img { width: 36px; height: 36px; border-radius: 50%; }
.install-bar p { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.25; }
.install-bar strong { font-size: .9rem; letter-spacing: -.02em; }
.install-bar span { color: var(--muted); font-size: .75rem; }
.install-cta { border-radius: 999px; padding-inline: 1.2rem; }

.screen-placeholder { aspect-ratio: 1320 / 2868; display: grid; place-content: center; gap: 1rem; text-align: center; padding: 2rem; background: var(--surface); }

/* Native dialog owns focus containment, Escape, and inert background behavior. */
.screenshot-viewer { --viewer-ink: var(--stage-text); padding: 0; border: 1px solid var(--stage-line); border-radius: 12px; width: min(760px, calc(100% - 2rem)); max-width: none; max-height: calc(100svh - 2rem); color: var(--viewer-ink); background: var(--stage); overscroll-behavior: contain; }
.screenshot-viewer::backdrop { background: rgb(7 8 14 / 85%); backdrop-filter: blur(8px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 1rem .5rem 1.5rem; border-bottom: 1px solid var(--stage-line); }
.viewer-toolbar h2 { margin: 0; font-size: .9rem; line-height: 1.4; letter-spacing: -.01em; }
.screenshot-viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; flex-shrink: 0; background: transparent; color: var(--viewer-ink); border-radius: 6px; cursor: pointer; transition: background var(--duration-fast), transform var(--duration-fast); }
.screenshot-viewer button:hover { background: #353744; }
.screenshot-viewer button:active { transform: scale(.92); }
.viewer-stage { display: grid; place-items: center; padding: 1rem; min-height: 200px; }
.viewer-image img { max-height: calc(100svh - 12rem); width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 2rem; padding: .25rem 1rem .75rem; }
.viewer-position { font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 4rem; text-align: center; }
html:has(.screenshot-viewer[open]) { overflow: hidden; }

/* Arrivals: motion.mjs adds is-pending (so content stays visible without it) and removes it once. */
[data-reveal] { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
[data-reveal].is-pending { opacity: 0; transform: translateY(40px); transition: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-hero] { animation: hero-enter var(--duration-hero) var(--ease-out) 120ms both; }
  [data-hero="1"] { animation-delay: 230ms; }
  [data-hero="2"] { animation-delay: 340ms; }
  [data-hero="3"] { animation-delay: 450ms; }
  [data-hero="4"] { animation-delay: 560ms; }
  @keyframes hero-enter { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } }
  .reader.is-enhanced:not(.has-interacted) .reader-word[data-default] { animation: reader-invite 1.8s var(--ease-out) 1.6s 3; }
  @keyframes reader-invite { from { box-shadow: 0 0 0 0 rgb(153 159 255 / 65%); } 70%, to { box-shadow: 0 0 0 9px rgb(153 159 255 / 0%); } }
  .screenshot-viewer[open], .viewer-image img { animation: content-enter var(--duration-state) var(--ease-out); }
  @keyframes content-enter { from { opacity: .6; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 899px) {
  .marketing-page .site-header > nav { display: none; }
  .marketing-page .site-header > .language-menu { margin-inline-start: auto; }
}
@media (max-width: 720px) {
  /* The hero badges and the floating install bar carry the install prompt on phones. */
  .header-cta { display: none; }
  .hero-visual { min-height: 0; }
  .hero-back { display: none; }
  .hero-demo { margin-right: 0; }
  .lede { font-size: 1.05rem; }
  .hero .store-links { gap: .3rem; }
  .story-step > p:not(.story-index, .story-note) { font-size: 1.05rem; }
  .screenshot-viewer { width: calc(100% - 1rem); max-height: calc(100svh - 1rem); }
  .viewer-toolbar { padding-left: 1rem; }
  .viewer-stage { padding: .5rem; }
  .viewer-image img { max-height: calc(100svh - 10rem); }
}
@media (max-width: 400px) {
  .install-bar img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-staged .story-step, .story-phone .screen-link { transform: none; }
  .screen-link:hover .screen-expand, .screen-link:active .screen-expand, a.store-button:hover, a.store-button:active, .header-cta:hover, .install-cta:hover { transform: none; }
}
