/* Hallmark · shape: read-through, the page reads its own headline, then walks through the documents it takes · genre: atmospheric · theme: custom (Lamplight on white) · job: try · idea: "The page is read aloud to you, the way the app reads your documents: one amber word at a time." · vibe: "warm lamplight on a clean white page"
 * paper: oklch(99% 0.003 75) · accent: oklch(77% 0.145 70) · display: Rethink Sans 800 · body: Rethink Sans 400 · outlier: Newsreader (document text only) · hero: the headline lit word by word by a working mini player; Ottee (Higgsfield Kling clips cut into sprite sheets on a canvas) peeks in from the right edge, walks over, presses play, then sits and listens · nav: wordmark left, quiet links, sign in, download, App Store badge · footer: a warm-black band of links and the language picker · imagery: real app screenshots (a paper on iPhone, Darwin on iPad and iPhone), the 28 voice characters from the app, Ottee · signature: the headline highlighted word by word as Hope reads it
 * axes: light/grotesk-heavy/warm · posture: committed (warm-black night bands carry about a third of the page; amber stays the highlight signal) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, a reading app could fake a highlighted headline; tied it to Hope by name and moving portrait, Ottee, and the same page on two devices */
/* waive 47b: the screenshots carry the device's own status bar but no drawn frame */
/* waive 80: Ottee is the product's own mascot, staged live, not a stand-in illustration */
/* waive 79: the open space right of the hero copy is Ottee's stage */
/* waive 39b: carousel cards are tap targets the size of the card, as in the app's narrator picker */
/* waive 82: the 24 equalizer bars are the playing sample's level meter, not a count */
/* waive 58: the features list and FAQ are long-standing search content kept from the previous page */
/* answered loops: Ottee listens on while visible; offscreen pauses it, reduced motion stops it; one control pauses the voice characters */

:root { --dur-word: 520ms; }
.num { font-variant-numeric: tabular-nums; }
.home header nav { gap: var(--space-xl); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); padding-block: var(--space-3xl) var(--space-2xl); position: relative; z-index: var(--z-raised); }
.hero h1 { grid-column: 1 / 10; font-size: var(--text-hero); font-weight: 800; line-height: 0.94; letter-spacing: var(--tracking-display); max-width: 11ch; isolation: isolate; }
.word { position: relative; display: inline-block; }
.word::before { content: ""; position: absolute; inset: 0.1em -0.06em 0.02em; background: var(--color-accent); border-radius: 0.08em; z-index: -1; transform: scaleX(0); transform-origin: left center; }
.ra .word::before { animation: lit-a calc(var(--dur-word) * 5) var(--ease-out) calc(var(--i) * var(--dur-word)) both; }
.rb .word::before { animation: lit-b calc(var(--dur-word) * 5) var(--ease-out) calc(var(--i) * var(--dur-word)) both; }
@keyframes lit-a { 0% { transform: scaleX(0); opacity: 1; } 7% { transform: scaleX(1); opacity: 1; } 20% { transform: scaleX(1); opacity: 1; } 27%, 100% { transform: scaleX(1); opacity: 0.32; } }
@keyframes lit-b { 0% { transform: scaleX(0); opacity: 1; } 7% { transform: scaleX(1); opacity: 1; } 20% { transform: scaleX(1); opacity: 1; } 27%, 100% { transform: scaleX(1); opacity: 0.32; } }
.hero__body { grid-column: 1 / 9; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl) var(--space-2xl); align-items: end; margin-top: var(--space-xl); }
.hero-sub { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 32ch; }
.hero-sub strong { color: var(--color-ink); font-weight: 600; }
.hero-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.hero-fine { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); margin-top: calc(var(--space-md) * -1); }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm) var(--space-md); padding: var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); min-width: 320px; }
.player img, .player video { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.player b { display: block; font-weight: 600; font-size: var(--text-md); line-height: 1.2; }
.player span { display: block; font-size: var(--text-sm); color: var(--color-muted); line-height: 1.3; }
.play { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--color-accent); color: var(--color-accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.play:hover { background: var(--color-wash); }
.play:active { transform: scale(0.96); }
.play:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.play:disabled { opacity: 0.55; cursor: not-allowed; }
.play svg { display: block; }
.play .i-stop { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.play::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--color-accent); opacity: 0; pointer-events: none; }
.play.tapped::after { animation: ring 0.8s var(--ease-out); }
@keyframes ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.track { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--color-rule); overflow: hidden; margin: 0 var(--space-md) var(--space-2xs); }
.track i { display: block; height: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; }
.ra .track i { animation: prog-a calc(var(--dur-word) * 5) linear both; }
.rb .track i { animation: prog-b calc(var(--dur-word) * 5) linear both; }
@keyframes prog-a { to { transform: scaleX(1); } }
@keyframes prog-b { to { transform: scaleX(1); } }
.ottee { position: absolute; display: block; pointer-events: none; z-index: calc(var(--z-raised) + 1); }

/* ---- night bands ---- */
.night { background: var(--color-night); color: var(--color-night-ink); --color-focus: var(--color-accent); }
.night .btn { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.night .btn:hover { background: var(--color-wash); }
.night .btn.ghost { background: transparent; color: var(--color-night-ink); border-color: var(--color-night-rule); }
.night .btn.ghost:hover { background: var(--color-night-2); }
.night .fine, .night .hero-fine { color: var(--color-night-muted); }

/* iPhone and iPad: the paper you skipped */
.inputs { padding-block: var(--section-gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.inputs__shot { grid-column: 1 / 7; justify-self: center; width: min(320px, 100%); aspect-ratio: 1206 / 2622; border-radius: var(--radius-shot); overflow: hidden; background: var(--color-night-2); margin: 0; }
.inputs__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.inputs__text { grid-column: 7 / 13; }
.inputs h2 { font-size: var(--text-section); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-display); max-width: 14ch; }
.inputs .body-lg { margin-top: var(--space-lg); color: var(--color-night-muted); max-width: 44ch; }
.inputs dl { margin: var(--space-xl) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.inputs dt { font-weight: 600; font-size: var(--text-lg); }
.inputs dd { margin: var(--space-2xs) 0 0; color: var(--color-night-muted); }
.ios-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }

/* voices */
.voices { padding-top: var(--section-gap); }
.voices__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.voices h2 { grid-column: 1 / 8; font-size: var(--text-section); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-display); }
.voices__head .copy { grid-column: 9 / 13; display: grid; gap: var(--space-sm); }
.voices__head p { color: var(--color-ink-2); max-width: 36ch; }
.voices__head .langs-note { font-size: var(--text-sm); color: var(--color-muted); }
.motion { margin-top: var(--space-lg); }
.carousel { --cw: 206px; --chh: 272px; position: relative; margin-top: var(--space-2xl); }
.carousel__glow { position: absolute; left: 50%; top: var(--space-lg); width: var(--cw); height: var(--chh); margin-left: calc(var(--cw) / -2); border-radius: 20px; background: var(--color-accent); opacity: 0.32; filter: blur(24px); transform: translateY(8px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out); }
.carousel.playing .carousel__glow { opacity: 0.5; }
.carousel__track { list-style: none; margin: 0; padding: var(--space-lg) calc(50% - var(--cw) / 2); display: flex; gap: var(--space-2xs); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.vcard { flex: 0 0 var(--cw); height: var(--chh); scroll-snap-align: center; will-change: transform; }
.vcard__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--color-rule); border-radius: 20px; overflow: hidden; background: var(--color-paper-2); cursor: pointer; color: var(--color-night-ink); font: inherit; text-align: center; }
.vcard__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.vcard.on .vcard__btn { border: 2px solid var(--color-accent); }
.vcard__img, .vcard__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard:not(.on) .vcard__img { filter: grayscale(1) brightness(0.92); }
.vcard__ink { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, var(--color-card-ink)); }
.vcard__text { position: absolute; left: 0; right: 0; bottom: var(--space-md); display: grid; justify-items: center; gap: var(--space-2xs); }
.vcard__text b { font: 800 1.375rem/1.1 var(--font-display); }
.vcard__text > span:not(.vcard__pill) { font-size: 0.8125rem; opacity: 0.95; }
.vcard__pill { display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-pill-glass); font-size: 0.8125rem; font-weight: 600; }
.vcard__pill svg { display: block; }
.vcard.on .vcard__pill { background: var(--color-accent); color: var(--color-accent-ink); }
.vcard__pill .i-stop, .vcard.playing .vcard__pill .i-play { display: none; }
.vcard.playing .vcard__pill .i-stop { display: block; }
.vcard.far .vcard__text { visibility: hidden; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); }
.carousel__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-rule-strong); background: var(--color-paper); color: var(--color-ink-2); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), opacity var(--dur-micro) linear; }
.carousel__arrow:hover { background: var(--color-paper-2); }
.carousel__arrow:active { transform: translateY(1px); }
.carousel__arrow:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.carousel__arrow:disabled { opacity: 0; cursor: default; }
.eq { display: flex; align-items: center; gap: var(--space-2xs); width: calc(var(--cw) * 0.9); height: 24px; }
.eq i { flex: 1; height: 100%; border-radius: 2px; background: var(--color-accent); opacity: 0.55; transform: scaleY(0.18); transform-origin: center; }
.carousel.playing .eq i { opacity: 0.95; animation: eq 0.9s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--d) * -1s); }
@keyframes eq { 0% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.45); } }
.carousel__count { margin: var(--space-xs) 0 0; text-align: center; font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
@media (min-width: 60rem) { .carousel { --cw: 236px; --chh: 312px; } }

/* devices */
.devices { padding-top: var(--section-gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.devices__pair { grid-column: 1 / 8; position: relative; padding-right: var(--space-4xl); }
.devices__ipad, .devices__iphone { margin: 0; overflow: hidden; border-radius: var(--radius-shot); box-shadow: var(--shadow-shot); background: var(--color-paper-2); }
.devices__ipad { aspect-ratio: 2064 / 2752; max-height: 760px; }
.devices__ipad img, .devices__iphone img { width: 100%; height: 100%; object-fit: cover; }
.devices__iphone { position: absolute; right: 0; bottom: calc(var(--space-2xl) * -1); width: 34%; aspect-ratio: 1206 / 2622; }
.devices__text { grid-column: 8 / 13; padding-left: var(--space-xl); }
.devices h2 { font-size: var(--text-section); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-display); }
.devices p { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 32ch; }

/* everything it does: a plain two-column list */
.features-sec { padding-top: calc(var(--section-gap) + var(--space-2xl)); }
.features-sec h2, .where h2, .plans h2 { font-size: var(--text-section); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-display); max-width: 16ch; }
.features-sec .body-lg { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 52ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin-top: var(--space-2xl); }
.feature { padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule); }
.feature h3 { font-size: var(--text-lg); font-weight: 600; }
.feature p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.feature .plat { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* where it runs + plans: tables */
.where { padding-top: var(--section-gap); }
.where .body-lg { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 52ch; }
.home table { width: 100%; border-collapse: collapse; margin-top: var(--space-2xl); font-variant-numeric: tabular-nums; }
.home th { text-align: left; font-weight: 600; font-size: var(--text-sm); color: var(--color-muted); padding: 0 var(--space-lg) var(--space-sm) 0; white-space: nowrap; }
.home td { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-top: 1px solid var(--color-rule); vertical-align: baseline; }
.home td:first-child { font-weight: 600; font-size: var(--text-lg); width: 36%; }
.home tr > :last-child { padding-right: 0; }
.where td.here { color: var(--color-accent-text); font-weight: 600; }
.plans { padding-top: var(--section-gap); }
.plans .body-lg { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 56ch; }
.plans .price { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.plans .price small { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); letter-spacing: 0; }
.best { display: inline-block; margin-left: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-text); }
.plans ul { margin: var(--space-xl) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--gap-columns); }
.plans li { padding-left: var(--space-lg); position: relative; color: var(--color-ink-2); }
.plans li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 3px; border-radius: 2px; background: var(--color-accent); }
.plans__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-top: var(--space-xl); }
.plans .fine { margin-top: var(--space-lg); max-width: 72ch; }
.plans .fine a { color: var(--color-ink); text-decoration-color: var(--color-accent); }

/* close */
.close { margin-top: var(--section-gap); padding-block: var(--section-gap-s); }
.close__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.close h2 { grid-column: 1 / 9; font-size: var(--text-hero); font-weight: 800; line-height: 0.94; letter-spacing: var(--tracking-display); max-width: 12ch; }
.close__act { grid-column: 9 / 13; display: grid; gap: var(--space-md); justify-items: start; }
.close__ottee { width: 173px; height: auto; aspect-ratio: 259 / 306; margin-bottom: var(--space-md); }
.close__act p { color: var(--color-night-muted); font-size: var(--text-sm); }
.close .link { color: var(--color-night-ink); }
.soon-badge { margin-right: var(--space-xs); color: var(--color-accent); font-weight: 600; }
.home .newsletter { margin-top: 0; }
.home footer { border-top: 1px solid var(--color-night-rule); }

/* newsletter popup */
.nl-pop { position: fixed; inset: 0; z-index: var(--z-modal); background: oklch(10% 0.01 70 / 0.6); display: flex; align-items: center; justify-content: center; padding: var(--space-lg); }
.nl-pop[hidden] { display: none; }
.nl-pop-card { position: relative; background: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-xl); max-width: 480px; width: 100%; }
.nl-pop-card h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.nl-pop-sub { margin-top: var(--space-xs); color: var(--color-ink-2); }
.nl-pop-card .news-offer { margin-top: var(--space-xs); }
.nl-pop-card form { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.nl-pop-card input { flex: 1 1 200px; height: var(--control-h); padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-paper); color: var(--color-ink); font-size: 16px; }
.nl-pop-card input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.nl-pop-msg { flex-basis: 100%; min-height: 1lh; font-size: var(--text-sm); color: var(--color-ink-2); }
.nl-pop-x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--color-muted); font-size: 1.5rem; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.nl-pop-x:hover { background: var(--color-paper-2); color: var(--color-ink); }
.nl-pop-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* phone and tablet menu: the header links, behind one button, below 60rem */
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: var(--control-h-sm); height: var(--control-h-sm); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-control-sm); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--color-paper-2); }
.nav-menu summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.nav-menu__list { position: absolute; right: 0; top: calc(100% + var(--space-xs)); min-width: 220px; display: grid; padding: var(--space-xs); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-tile); box-shadow: var(--shadow-shot); }
.nav-menu__list a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-control-sm); font-size: var(--text-md); text-decoration: none; color: var(--color-ink); }
.nav-menu__list a:hover { background: var(--color-paper-2); }
.nav-menu__list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

/* the features list folds to four on phones; the button opens the rest */
.features-more { display: none; margin-top: var(--space-lg); }

/* lead with the download this visitor can use */
.is-ios #nav-download, .is-ios #hero-download, .is-ios #pro-download, .is-ios #close-download { display: none; }
.is-mac #hero-download, .is-mac #pro-download, .is-mac #close-download { order: -1; }
.close__ottee { order: -2; }   /* Ottee stays above the buttons whichever download leads */

@media (max-width: 60rem) {
  .nav-menu { display: block; }
  .hero h1, .hero__body { grid-column: 1 / -1; }
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .player { justify-self: start; margin-bottom: var(--space-xl); }   /* its own width, so Ottee has room beside the play button; room below for his feet */
  .inputs__shot, .inputs__text, .voices h2, .voices__head .copy, .devices__pair, .devices__text, .close h2, .close__act { grid-column: 1 / -1; }
  .inputs__text, .voices__head .copy, .devices__text, .close__act { margin-top: var(--space-xl); }
  .devices__text { padding-left: 0; margin-top: calc(var(--space-2xl) + var(--space-xl)); }
  .devices__pair { padding-right: var(--space-2xl); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home td:first-child { width: auto; }
}
@media (max-width: 40rem) {
  .player { min-width: 0; max-width: calc(100% - 128px); gap: var(--space-xs) var(--space-sm); }
  .player img, .player video { width: 44px; height: 44px; }
  .player b { font-size: var(--text-sm); text-wrap: balance; }
  .player div > span { display: none; }   /* "American English" goes; the name and line fit beside Ottee */
  .features.folded .feature:nth-child(n+5) { display: none; }
  .features.folded + .features-more { display: inline-flex; }
  .home #nav-download { display: none; }
  .inputs dl, .features, .plans ul { grid-template-columns: minmax(0, 1fr); }
  .where tr, .plans tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .where thead, .plans thead { display: none; }
  .where tr { grid-template-columns: minmax(0, 1fr); }
  .where td, .plans td { border-top: 0; padding-block: var(--space-2xs); }
  .where td:first-child, .plans td:first-child { border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); grid-column: 1 / -1; }
}

/* ---- scrolling: sections settle into place, links glide, content rises in ----
   The settle and the glide are driven from JS (index.html) so they can move slowly: the browser's own smooth scroll and
   snap run at a fixed, quick speed. CSS only marks where sections settle: the band edges and each white heading,
   with this much room above it. */
.home header, .home .night { scroll-margin-top: 0; }
.voices__head, .devices__pair, .features-sec > h2, .where > h2, .plans > h2, .home .newsletter { scroll-margin-top: var(--space-2xl); }
/* the reveal: only once JS has marked the page (never hidden without it), off under reduced motion */
.reveal .rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--rv, 0) * 90ms); }
.reveal .rv.in { opacity: 1; transform: none; }
.reveal .rv.now { transition: none; }
