/* IdealFace landing redesign. Loads after home.css. One accent: gold. */

/* Bodoni Moda (OFL) for the homepage headings. Vietnamese glyphs fall back to Cormorant Garamond from site.css. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bodoni-moda-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bodoni-moda-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.home .brand-name, .home .splash, .splash { --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.home { --serif: "Bodoni Moda", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }


.home { --sans: "Hanken Grotesk", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

:root {
  --r-panel: 4px;
  --r-ctl: 4px;
  --band: #1e1a16;
  --band-ink: #f3ede2;
  --band-text: #d6cdbf;
  --band-muted: #a69c8d;
  --band-rule: rgba(243, 237, 226, 0.16);
  --band-gold: #c9a35a;
  --max: 1240px;
}
html[data-theme="dark"] { --band: #0c0a07; }
html, body.home { overflow-x: clip; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14.5px; text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; color: var(--paper); }
.nav-cta, .store, .faq summary, .getbar a, .tab { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---------- Header: one clear action ---------- */
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; margin-left: 6px; padding: 0 16px;
  border-radius: 12px; background: var(--ink); color: var(--paper);
  font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover { color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-card-hover); }
.nav-cta:active { transform: none; }
.nav-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 759px) {
  .topnav .nav-link:not(#legal-btn) { display: none; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.top {
  max-width: var(--max); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 0;
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) {
  .top { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; min-height: calc(100svh - 92px); padding-top: 0; }
}
.top__copy { text-align: left; }
.top h1 {
  font-size: clamp(46px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.012em;
  margin: 0; max-width: 13ch; text-wrap: balance;
}
.top h1 .soft { color: var(--muted); }
.top .lede { margin: 24px 0 0; max-width: 44ch; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.65; color: var(--text); }
.top .stores { justify-content: flex-start; margin-top: 32px; }
.top .facts { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13.5px; color: var(--muted); }
.top .facts li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: var(--gold); vertical-align: 0.25em; }

@media (max-width: 479px) { .top .stores { flex-direction: column; align-items: stretch; max-width: 260px; } }
.store.is-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.store.is-soon:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.store:active { transform: none; }

.top__visual { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.top__phone { position: relative; width: min(380px, 76vw); height: clamp(460px, 70svh, 720px); }
.top__bezel {
  height: 100%; padding: 9px 9px 0; border-radius: 46px 46px 0 0; background: #17140f; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}
html[data-theme="dark"] .top__bezel { background: #2d2820; }
.top__screen { position: relative; height: 100%; border-radius: 37px 37px 0 0; overflow: hidden; background: var(--paper); }
.top__screen img { display: block; width: 100%; height: auto; }

/* Scan lock-on: four brackets close in around the phone, then one line sweeps down it. Plays once. */
.brk::before {
  content: ""; position: absolute; inset: -16px; pointer-events: none; border-radius: 6px;
  --b: var(--gold); --l: 26px; --w: 2px;
  background:
    linear-gradient(var(--b), var(--b)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--w) var(--l) no-repeat;
}
.js .top__phone.brk::before { opacity: 0; transform: scale(1.16); }
html:not(.splash-on) .top__phone.brk::before { animation: lock 1.1s var(--ease) .15s both; }
.top__screen::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--gold-wash) 70%, var(--gold) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
html:not(.splash-on) .top__screen::after { animation: sweep 2.2s cubic-bezier(.45, 0, .25, 1) .9s 1 both; }
@keyframes lock { to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { opacity: 0; transform: translateY(-90px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(640px); } }
@media (prefers-reduced-motion: reduce) {
  .js .top__phone.brk::before { opacity: 1; transform: none; animation: none !important; }
  .top__screen::after { display: none; }
}

/* ---------- Statement: words light up as it scrolls into view ---------- */
.stmt { max-width: var(--max); margin: clamp(72px, 12vw, 168px) auto clamp(56px, 8vw, 112px); padding: 0 var(--gutter); }
.stmt p {
  margin: 0; max-width: 20ch; font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(36px, 7vw, 104px); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance;
}
.js .stmt .w { opacity: .18; transition: opacity .4s ease-out; }
.js .stmt .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .stmt .w { opacity: 1; transition: none; } }

/* ---------- Dark bands ---------- */
.band { background: var(--band); color: var(--band-text); }
.band .eyebrow { color: var(--band-muted); }
.band h2 { font-family: var(--serif); font-weight: 500; color: var(--band-ink); margin: 12px 0 0; text-wrap: balance; }
.band a { color: var(--band-ink); text-decoration-color: rgba(201, 163, 90, .5); }
.band a:hover { text-decoration-color: var(--band-gold); }
.band :focus-visible { outline-color: var(--band-gold); }

/* ---------- Measures: three groups. On wide screens the section pins and scrolling steps through them. ---------- */
.measures { padding: 0 var(--gutter); margin-top: clamp(72px, 12vw, 160px); }
.measures__pin { padding: clamp(72px, 11vw, 144px) 0; }
.measures__in { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(36px, 6vw, 64px); }
.measures__head h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; max-width: 14ch; }
.measures__head p:not(.eyebrow) { margin: 20px 0 0; max-width: 46ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; }
.m-nav { display: none; }
.m-groups { display: grid; gap: clamp(48px, 9vw, 80px); }
.m-group h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 13vw, 96px); line-height: 1; color: var(--band-gold); }
.m-group__sum { margin: 12px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.65; color: var(--band-text); }
.m-items { list-style: none; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--band-rule); }
.m-items li { display: grid; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--band-rule); }
@media (min-width: 560px) { .m-items li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }
.m-item__top { display: block; }
.m-item__top .m-tag { margin-left: 10px; white-space: nowrap; }
.m-item__top b { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.9vw, 26px); white-space: nowrap; line-height: 1.15; color: var(--band-ink); }
.m-tag { flex: none; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--band-muted); }
.m-tag.is-free { color: var(--band-gold); }
.m-item__body p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--band-text); }
.gauge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; font-size: 12.5px; color: var(--band-muted); }
.gauge__ends { display: contents; }
.gauge__ends span:first-child { order: 0; }
.gauge__bar { order: 1; position: relative; flex: 0 0 120px; height: 2px; background: var(--band-rule); }
.gauge__ends span:last-child { order: 2; }
.m-item__body .gauge__better { order: 3; margin: 0 0 0 6px; font-size: 12.5px; color: var(--band-ink); }
.gauge__bar::after { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--band-gold); box-shadow: 0 0 0 4px rgba(201, 163, 90, .18); transform: translateX(var(--gx, 0px)); }
.gauge--up { --gx: 110px; }
.m-note { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.7; color: var(--band-muted); }

@media (min-width: 900px) {
  .measures.is-pinned .measures__track { height: 240svh; }
  .measures.is-pinned .measures__pin { position: sticky; top: 0; height: 100svh; padding: 0; display: flex; align-items: center; }
  .measures.is-pinned .measures__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head groups" "note groups"; gap: 28px clamp(40px, 6vw, 96px); align-items: center; }
  .measures.is-pinned .measures__head { grid-area: head; align-self: end; }
  .measures.is-pinned .measures__head h2 { font-size: clamp(40px, 4.6vw, 68px); }
  .measures.is-pinned .m-note { grid-area: note; align-self: start; font-size: 13.5px; max-width: 44ch; }
  .measures.is-pinned .m-groups { grid-area: groups; gap: 0; }

  .measures.is-pinned .m-nav { position: relative; display: block; width: min(100%, 280px); height: 2px; margin-top: 32px; }
  .m-nav::before, .m-nav::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--band-rule); }
  .m-nav::after { background: var(--band-gold); transform: scaleX(var(--mp, 0)); transform-origin: left; }

  .measures.is-pinned .m-group { grid-area: 1 / 1; opacity: 0; transform: translateY(-24px); pointer-events: none; transition: opacity .3s ease-out, transform .3s ease-out; }
  .measures.is-pinned .m-group.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s ease-out .15s, transform 0s .15s; }
  .measures.is-pinned .m-group h3 { font-size: clamp(64px, 7.5vw, 112px); }
  .measures.is-pinned .m-group .wd > span { transform: translateY(115%) rotate(4deg); transition: transform 0s .3s; }
  .measures.is-pinned .m-group.on .wd > span { transform: none; transition: transform .9s var(--ease) .15s; }
  .measures.is-pinned .m-items { margin-top: 20px; }
  .measures.is-pinned .m-items li { padding: 12px 0; }
  .measures.is-pinned .rise { opacity: 0; transform: translateY(20px); transition: opacity 0s .3s, transform 0s .3s; }
  .measures.is-pinned .m-group.on .rise { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(.22s + var(--k, 0) * 60ms); }
  .measures.is-pinned .gauge__bar::after { transition: transform 0s .3s; }
  .measures.is-pinned .m-group:not(.on) .gauge--up { --gx: 0px; }
  .measures.is-pinned .m-group:not(.on) .gauge--down { --gx: 110px; }
  .measures.is-pinned .m-group.on .gauge__bar::after { transition: transform .9s var(--ease) .45s; }
}

/* ---------- Routine: three cards that stack as you scroll ---------- */
.plan { max-width: var(--max); margin: clamp(80px, 12vw, 168px) auto 0; padding: 0 var(--gutter); }
.plan__lead { display: grid; gap: 0 96px; }
@media (min-width: 900px) { .plan__lead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } .plan__lead .eyebrow { grid-column: 1 / -1; } }
.plan__lead h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.plan__lead p:not(.eyebrow) { margin: 18px 0 0; max-width: 40ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; color: var(--text); }
.areas { margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.areas li { position: sticky; top: calc(clamp(16px, 7svh, 72px) + var(--n, 0) * 18px); margin-bottom: 24px; }
.areas li:last-child { margin-bottom: 0; }
.area {
  position: relative; display: grid; justify-items: center; align-items: center; gap: 16px 40px; text-align: center; padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
  border: 0; border-radius: var(--r-card); background: var(--fill);
  box-shadow: 0 -12px 24px -16px rgba(30, 26, 22, .28);
  transform: scale(calc(1 - var(--c, 0) * .04)); transform-origin: 50% 0;
}
@media (min-width: 720px) { .area { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.areas h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: 1; color: var(--ink); }
.areas p { margin: 0 auto; max-width: 52ch; text-wrap: balance; font-size: 17px; line-height: 1.7; color: var(--text); }
.areas small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .areas li { position: static; } .area { transform: none; } }

/* ---------- Privacy route ---------- */
.privacy { max-width: var(--max); margin: clamp(80px, 12vw, 168px) auto 0; padding: 0 var(--gutter); display: grid; gap: 40px; }
@media (min-width: 900px) { .privacy { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: center; } }
.privacy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.privacy__copy > p:not(.eyebrow) { margin: 18px 0 0; max-width: 42ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; color: var(--text); }
.privacy__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 15px; }
.route { --pad: 0px; position: relative; margin: 0; padding: var(--pad); list-style: none; background: none; border: 0; }
.route li { position: relative; padding: 0 0 28px 40px; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 6px; box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--ink); }
.route li.out::before { background: var(--surface); }
.route li.num::before { background: var(--gold); border-color: var(--gold); }
.route::before, .route::after { content: ""; position: absolute; left: calc(var(--pad) + 7px); top: calc(var(--pad) + 14px); width: 2px; height: var(--rl, 0px); background: var(--rule); }
.route::after { background: var(--ink); transform: scaleY(var(--rp, 1)); transform-origin: top; }
.js .route li::before { transition: transform .45s var(--ease), background-color .3s ease-out, border-color .3s ease-out; }
.js .route li > * { transition: opacity .5s ease-out, transform .6s var(--ease); }
.js .route li:not(.on)::before { transform: scale(.6); background: var(--surface); border-color: var(--rule-strong); }
.js .route li:not(.on) > * { opacity: .25; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) { .js .route li::before, .js .route li > * { transition: none; } }
.route .where { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.route b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.route p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max); margin: clamp(80px, 12vw, 168px) auto 0; padding: 0 var(--gutter); display: grid; gap: 28px; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 96px; align-items: start; } }
.faq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.1vw, 60px); line-height: 1.04; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.faq__list { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq details > p { margin: 0; padding: 0 0 24px; max-width: 58ch; font-size: 16.5px; line-height: 1.75; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Closing download ---------- */
.get { margin-top: clamp(80px, 12vw, 168px); padding: clamp(80px, 12vw, 160px) var(--gutter); text-align: center; }
.get__in { max-width: var(--max); margin: 0 auto; }
.get h2 { font-size: clamp(48px, 9.4vw, 140px); line-height: .98; letter-spacing: -0.012em; margin: 0 auto; max-width: 12ch; }
.get p { margin: 24px auto 0; max-width: 44ch; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--band-text); }
.get .stores { margin-top: 36px; }
.get .store { background: var(--band-ink); color: var(--band); }
.get .store:hover { color: var(--band); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.get .store.is-soon { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 226, .4); }
.get .store.is-soon:hover { color: var(--band-ink); box-shadow: inset 0 0 0 1.5px var(--band-ink); }
.get .store:focus-visible { outline-color: var(--band-gold); }
.get .fineprint { color: var(--band-muted); }

/* ---------- Footer ---------- */
.home .site-footer { margin-top: 0; padding-top: clamp(36px, 6vw, 56px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(36px, 9vw, 56px)); }
.home .site-footer nav { margin-bottom: 18px; }
@media (max-width: 759px) { .home .site-footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); } }

/* ---------- Mobile download bar ---------- */
.getbar { display: none; }
@media (max-width: 759px) {
  .getbar {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border-radius: 20px; background: var(--ink); color: var(--paper); box-shadow: 0 14px 34px -10px rgba(30, 26, 22, .5);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .getbar.show { transform: none; }
  .getbar span { font-size: 14px; line-height: 1.3; }
  .getbar span b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; color: inherit; }
  .getbar a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px; background: var(--paper); color: var(--ink);
    font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  }
  .getbar a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .getbar { transition: none; } }

/* ---------- Legal menu: grows from the Legal button, not the header edge ---------- */
.menu { right: var(--menu-r, var(--gutter)); }

/* ---------- Headings: words rise out of a mask ---------- */
.wd { display: inline-block; clip-path: inset(-0.12em -0.12em -0.22em); }
.wd > span { display: inline-block; }
.sp .wd > span { transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; transition: transform .9s var(--ease); transition-delay: calc(var(--w, 0) * 45ms); }
.sp.go .wd > span { transform: none; }
.js .top h1.rv { transform: none; }

/* ---------- Hero: the screenshot scrolls inside the phone as you leave ---------- */
.top__phone, .top__screen img { will-change: transform; }

/* ---------- Dark bands open like a curtain ---------- */
.js .band { clip-path: inset(0 var(--cx, 0px) round var(--cr, 0px)); }

/* ---------- Big type leans a little with scroll speed ---------- */
.stmt p, .m-group h3, .get h2 { transform: skewY(var(--lean, 0deg)); }

/* ---------- Progress rail stays readable over the dark bands ---------- */
@media (min-width: 1360px) {
  .spine { --d0: 100%; --d1: 100%; --on-dark: rgba(243, 237, 226, .34); }
  .spine__line { background: linear-gradient(to bottom, var(--rule) 0 var(--d0), var(--on-dark) var(--d0) var(--d1), var(--rule) var(--d1) 100%); }
  .spine__fill { height: 100%; clip-path: inset(0 0 calc(100% - var(--p, 0%)) 0); background: linear-gradient(to bottom, var(--ink) 0 var(--d0), var(--band-ink) var(--d0) var(--d1), var(--ink) var(--d1) 100%); }
  .spine li.dk { background: var(--band); border-color: var(--band-muted); }
  .spine li.dk.passed { background: var(--band-ink); border-color: var(--band-ink); }
  .spine li.dk::after { color: var(--band-muted); }
  .spine li.dk.passed::after { color: var(--band-ink); }
}

/* ---------- FAQ: answers open smoothly where the browser supports it ---------- */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .band { clip-path: none; }
  .stmt p, .m-group h3, .get h2 { transform: none; }
}

/* ---------- Panels: the legal menu keeps a hairline; Routine and privacy cards are filled, with no outline ---------- */
.home .skip, .home .brand { border-radius: var(--r-ctl); }
/* Menu panel: original rounded treatment, plus a caret that points back at the Legal button. */
.home .menu__panel { border-radius: 24px; }
.home .menu__row { border-radius: 16px; }
.menu__car { position: absolute; top: -6px; right: calc(var(--car-r, 60px) - 8px); width: 15px; height: 15px; background: var(--surface); border-radius: 3px; transform: rotate(45deg) scaleY(.75); pointer-events: none; opacity: 0; transition: opacity .12s ease-out .1s; z-index: 1; }
.menu.is-open .menu__car { opacity: 1; }

@media (max-width: 600px) { .home .menu { --mh: 468px; } }

/* ---------- Buttons: filled pills for the main actions, a pale tinted pill beside them, small chips for switches ---------- */
:root { --r-chip: 8px; --r-card: 28px; --fill: color-mix(in srgb, var(--ink) 7%, var(--paper)); --tint: color-mix(in srgb, var(--ink) 7%, transparent); --tint-2: color-mix(in srgb, var(--ink) 12%, transparent); }
.home .nav-cta, .home .store, .home .getbar a { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
.home .nav-link, .home .theme-btn, .home .sound-btn, .home .tab { border-radius: var(--r-chip); }

.home .nav-cta { min-height: 40px; padding: 0 20px; transition: background-color .2s ease-out, transform .15s ease-out; }
.home .nav-cta:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); color: var(--paper); transform: none; box-shadow: none; }
.home .nav-cta:active { transform: scale(.97); }

.home .store { min-width: 0; min-height: 48px; padding: 0 24px; gap: 10px; justify-content: center; box-shadow: none; transition: background-color .2s ease-out, box-shadow .2s ease-out, transform .15s ease-out; }
.home .store svg { width: 20px; height: 20px; }
.home .store span { flex-direction: row; align-items: baseline; gap: 6px; }
.home .store small { font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .78; }
.home .store b { font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: 0; }
.home .store:hover { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); color: var(--paper); transform: none; box-shadow: none; }
.home .store:active { transform: scale(.97); }
.home .store.is-soon { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.home .store.is-soon:hover { background: var(--tint-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); transform: none; }
@media (max-width: 479px) { .home .top .stores { max-width: 280px; } }

.home .get .store { background: var(--band-ink); color: var(--band); }
.home .get .store:hover { background: color-mix(in srgb, var(--band-ink) 86%, var(--band)); color: var(--band); box-shadow: none; }
.home .get .store.is-soon { background: rgba(243, 237, 226, .08); color: var(--band-ink); box-shadow: inset 0 0 0 1px rgba(243, 237, 226, .22); }
.home .get .store.is-soon:hover { background: rgba(243, 237, 226, .14); color: var(--band-ink); box-shadow: inset 0 0 0 1px rgba(243, 237, 226, .4); }

.home .tab { min-height: 40px; padding: 0 18px; font-weight: 600; background: var(--tint); color: var(--ink); transition: background-color .2s ease-out, color .2s ease-out; }
.home .tab:hover { background: var(--tint-2); }
.home .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.home .tabs { gap: 8px; }


@media (max-width: 759px) {
  .home .getbar { padding: 8px 8px 8px 20px; border-radius: 999px; }
  .home .getbar a { min-height: 44px; padding: 0 18px; background: var(--paper); color: var(--ink); }
}

.home .tab { border: 0; box-shadow: none; }
.home .tab:focus:not(:focus-visible) { outline: 0; }

.home .tabs { gap: 4px; }
.home .tab { position: relative; background: none; padding: 0 14px; color: var(--muted); font-weight: 500; }
.home .tab:hover { background: none; color: var(--ink); }
.home .tab[aria-selected="true"] { background: none; color: var(--ink); font-weight: 600; }
.home .tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.home .tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .home .tab::after { transition: none; } }.home p strong, .home li strong { font-weight: 600; }
.facts strong { color: var(--ink); }
.m-note strong, .band p strong { color: var(--band-ink); }


