/* Home page. Base = static, stacked layout (no JS or reduced motion). html.mo = scroll-linked motion (set by story.js). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.home main { padding: 0; }
.home { --tone-sage: #E3EADF; --rv-bg: #14201C; transition: background-color .7s ease; overflow-x: clip; }
@media (prefers-color-scheme: dark) { .home { --tone-sage: #0F1A16; --rv-bg: #0A1410; } }
.home[data-tone="sage"] { background-color: var(--tone-sage); }
.home .site-header { position: fixed; z-index: 20; top: 10px; left: 10px; right: 10px; max-width: 920px; margin: 0 auto; border: 1px solid var(--line-soft); border-radius: 18px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 24px rgba(40, 32, 18, .10); }
.home .site-header .wrap { padding-top: 8px; padding-bottom: 8px; max-width: none; }
.home .site-nav a { padding: 6px 10px; }

/* hero */
.home .hero { position: relative; padding: 118px 0 30px; text-align: center; overflow: clip; }
.home .hero .wrap { display: block; position: relative; z-index: 2; max-width: 1040px; }
.home .hero h1 { font-size: 38px; max-width: 18em; margin-left: auto; margin-right: auto; }
.home .hero p { margin-left: auto; margin-right: auto; }
.home .hero .appstore { margin-top: 18px; }
.hero-sub { margin: 14px 0 0; font-size: 15px; }
.hw { display: inline-block; }
.hero-fx { display: none; }

/* floating pieces: tags, chips, icon tiles (hero and story) */
.hf i, .fx i { display: flex; align-items: center; gap: .45em; font: 650 20px/1 var(--sans); padding: 15px 24px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--tx-mut-2); box-shadow: 0 22px 44px rgba(40, 32, 18, .28), 0 4px 10px rgba(40, 32, 18, .16); color: var(--tx); white-space: nowrap; font-style: normal; }
.ic i { width: 80px; height: 80px; padding: 0; justify-content: center; border-radius: 16px; }
.qr i { width: 104px; height: 104px; padding: 12px; border-radius: 20px; background: #FBF8F1; color: #232B28; }
.qr svg { width: 100%; height: 100%; }
.m i { background: var(--mint); color: var(--mint-ink); border-color: transparent; }
.a i { background: var(--draw); color: #1E1B14; border-color: transparent; }
.hf svg, .fx svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip svg { width: 22px; height: 22px; stroke-width: 2.2; }
.ic svg { width: 40px; height: 40px; }

/* stats row */
.trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1000px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.trust li { margin: 0; padding: 24px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust b { display: block; font: 500 34px/1.2 var(--display); color: var(--tx); font-variant-numeric: tabular-nums; }
.trust span { font-size: 17px; color: var(--tx-mut-2); }
.trust b span { font-size: inherit; color: inherit; }

/* device story: static stack */
.ts-stage { padding: 24px 24px 40px; }
.ts-dots, .ts-tag, .ts-fx { display: none; }
.ts-copy { list-style: none; margin: 0; padding: 0; }
.ts-step { margin: 0 0 26px; }
.ts-step .n { display: block; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: var(--draw); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.ts-step h3 { font: 500 38px/1.08 var(--display); letter-spacing: -.015em; color: var(--tx); margin: 0 0 14px; }
.ts-step h3 em { font-style: normal; color: var(--mint); }
.ts-step p { margin: 0; max-width: 24em; color: var(--tx-mut-2); font-size: 18px; line-height: 1.5; }
.ts-phone { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.ts-screen { position: relative; width: 200px; aspect-ratio: 540 / 1103; background: #0E1011; border-radius: 15% / 7.3%; padding: 2.2%; border: 1px solid #3C4244; box-shadow: 0 0 0 2px #1B1F20, 0 28px 50px rgba(30, 24, 12, .28), 0 6px 14px rgba(30, 24, 12, .18); }
.ts-screen::before { content: ""; position: absolute; z-index: 2; top: 2.6%; left: 50%; width: 28%; height: 3.1%; transform: translateX(-50%); background: #0E1011; border-radius: 999px; }
.ts-shot { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 12.5% / 6.1%; background: #EEF3EF; }
.ts-shot picture { display: block; }
.ts-shot img { position: absolute; left: 0; width: 100%; height: auto; top: 4.6%; }
.tg-body { fill: var(--surface); stroke: var(--tx-mut-2); stroke-width: 3; }
.tg-dot { fill: var(--draw); }
.tg-wave, .tg-line { fill: none; stroke-linecap: round; stroke-width: 6; }
.tg-wave { stroke: var(--draw); }
.tg-line { stroke: var(--line); }

/* word-by-word reveal */
.rv-stage { max-width: 980px; margin: 0 auto; padding: 72px var(--gutter); }
.rv { background: var(--rv-bg); --rv-on: #F3EEE3; --rv-off: rgba(243, 238, 227, .2); }
.rv-text { margin: 0; font: 500 34px/1.22 var(--display); letter-spacing: -.01em; color: var(--rv-on); }
.rv .ico { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* sections below the story */
.sec { padding: 84px 0; }
.sec .wrap { max-width: 980px; }
.sec h2 { margin: 0 0 14px; font-size: 32px; }
.sec p { max-width: 42em; font-size: 19px; }
.sec .lead { font-size: 22px; color: var(--tx-2); }
.sec h2 { font-size: 36px; line-height: 1.12; }
.ft-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.ft { margin: 0; padding: 30px 26px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ft .ico { width: 76px; height: 76px; padding: 18px; border-radius: 22px; background: var(--mint); color: var(--mint-ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft h3 { margin: 20px 0 8px; font: 500 28px/1.15 var(--display); }
.ft p { margin: 0 0 8px; color: var(--tx-mut-2); font-size: 18px; }
.fm-bar { display: flex; gap: 4px; margin: 28px 0 28px; height: 84px; --b: 1; }
.fm-bar span { position: relative; display: grid; place-items: center; min-width: 0; font: 600 16px/1 var(--mono); color: var(--tx); opacity: clamp(0, calc(var(--b) * 5 - var(--j)), 1); overflow: hidden; }
.fm-bar span::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: var(--c); transform-origin: left; transform: scaleX(clamp(0, calc(var(--b) * 5 - var(--j)), 1)); }
.fm-bar .s1 { flex: 1.3; --j: 0; --c: var(--surface-3); }
.fm-bar .s2 { flex: 2; --j: 1; --c: color-mix(in srgb, var(--draw) 45%, var(--surface)); }
.fm-bar .s3 { flex: 1.8; --j: 2; --c: var(--surface-2); }
.fm-bar .s4 { flex: 4.4; --j: 3; --c: color-mix(in srgb, var(--mint) 38%, var(--surface)); }
.fm-bar .s5 { flex: 2.2; --j: 4; --c: color-mix(in srgb, var(--draw) 45%, var(--surface)); }
.fm-bar { isolation: isolate; }
.sf-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.sf-list li { margin: 0; padding: 18px 22px 18px 54px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 20px; line-height: 1.4; color: var(--tx); }
.sf-list li::before { content: "✕"; position: absolute; left: 20px; top: 17px; color: var(--draw); font-weight: 700; }
.more { margin-top: 18px; }
.btn-sec { display: inline-block; font-size: 18px; padding: 16px 26px; border: 1.5px solid var(--tx-mut-2); border-radius: 12px; color: var(--tx); font-weight: 600; text-decoration: none; }
.btn-sec:hover { background: var(--surface); color: var(--tx); }
.sf-grid { display: grid; gap: 14px; margin: 22px 0 8px; }
.sf-h { font: 500 24px/1.2 var(--display); margin: 28px 0 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font: 600 19px/1.35 var(--sans); color: var(--tx); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--draw); border-bottom: 2px solid var(--draw); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--tx-mut-2); font-size: 18px; }
.cta { padding: 72px 0 56px; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: 32px; }
.cta p { margin: 0 auto 18px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.cta .appstore { margin-top: 0; }
.cta-sub { margin-top: 18px !important; font-size: 15px; }
.parts .grid.two { margin-top: 14px; }

@media (max-width: 719px) {
  .home .hero { padding-top: 92px; }
  .home .site-header .wrap { flex-wrap: nowrap; gap: 4px; }
  .home .brand { font-size: 0; gap: 0; }
  .home .site-nav { flex-wrap: nowrap; font-size: 13.5px; gap: 0; }
  .home .site-nav a { padding: 6px 7px; }
  .rv-text { font-size: clamp(26px, 7.8vw, 32px); overflow-wrap: break-word; }
  .sec h2 { font-size: 32px; }
}
@media (max-width: 719px) {
  .fm-bar { flex-wrap: wrap; height: auto; }
  .fm-bar span { flex: 1 1 calc(50% - 4px); height: 52px; font-size: 14px; }
  .fm-bar .s4 { flex-basis: 100%; }
}
@media (min-width: 600px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) {
  .home .hero h1 { font-size: clamp(60px, 6.2vw, 88px); line-height: 1.04; max-width: 14em; }
  .home .hero p { font-size: 20px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .rv-text { font-size: 54px; }
  .sec h2, .cta h2 { font-size: 52px; }
  .ft-grid { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: 1fr 1fr; }
}

/* ===== motion layout: html.mo is set by story.js only when reduced motion is off ===== */
html.mo .hero { padding-bottom: 0; }
html.mo .hero-fx { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
@media (min-width: 1320px) { html.mo .hero-fx { display: block; } }
html.mo .hf { position: absolute; opacity: 0; transition: opacity 1.2s .7s ease; will-change: transform; }
html.mo .hf i { animation: bob 5s ease-in-out infinite alternate; }
html.mo .hf:nth-child(2n) i { animation-duration: 6.4s; animation-delay: -2s; }
html.mo .hf:nth-child(3n) i { animation-duration: 4.2s; animation-delay: -1s; }
@keyframes bob { from { transform: translateY(-7px) rotate(-1.5deg); } to { transform: translateY(7px) rotate(1.5deg); } }
html.mo .hw { animation: hw-in .9s cubic-bezier(.2, .7, .2, 1) both; }
html.mo .hw:nth-child(1) { animation-delay: .10s; } html.mo .hw:nth-child(2) { animation-delay: .17s; } html.mo .hw:nth-child(3) { animation-delay: .24s; }
html.mo .hw:nth-child(4) { animation-delay: .31s; } html.mo .hw:nth-child(5) { animation-delay: .38s; } html.mo .hw:nth-child(6) { animation-delay: .45s; }
@keyframes hw-in { from { opacity: 0; transform: translateY(.7em) rotate(2deg); } to { opacity: 1; transform: none; } }
html.mo .hero .wrap > p, html.mo .hero .appstore { animation: hw-in 1s .6s cubic-bezier(.2, .7, .2, 1) both; }
html.mo .hero-in { will-change: transform, opacity; }

html.mo .ts { height: 720vh; position: relative; }
html.mo .ts-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 72px max(24px, calc((100% - 1100px) / 2)) 24px; }
html.mo .ts-text { position: relative; z-index: 5; display: flex; align-items: center; gap: 26px; }
html.mo .ts-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
html.mo .ts-dots li { margin: 0; width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: height .25s ease, background-color .25s ease; }
html.mo .ts-stage[data-step="0"] .ts-dots li:nth-child(1), html.mo .ts-stage[data-step="1"] .ts-dots li:nth-child(2), html.mo .ts-stage[data-step="2"] .ts-dots li:nth-child(3), html.mo .ts-stage[data-step="3"] .ts-dots li:nth-child(4), html.mo .ts-stage[data-step="4"] .ts-dots li:nth-child(5), html.mo .ts-stage[data-step="5"] .ts-dots li:nth-child(6), html.mo .ts-stage[data-step="6"] .ts-dots li:nth-child(7) { height: 26px; background: var(--draw); }
html.mo .ts-copy { position: relative; flex: 1; min-width: 0; height: 24rem; }
html.mo .ts-step { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
html.mo .ts-step h3 { font-size: 58px; }
html.mo .ts-step p { font-size: 19px; }
html.mo .ts-step > * { will-change: transform, opacity; }
html.mo .ts-device { position: relative; justify-self: center; height: min(78vh, 780px); height: min(78svh, 780px); aspect-ratio: 540 / 1103; }
html.mo .ts-fx { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
html.mo .fx { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }
html.mo .ts-phone { position: absolute; inset: 0; display: block; z-index: 2; will-change: transform; transform-origin: 50% 60%; }
html.mo .ts-screen { position: absolute; inset: 0; width: auto; opacity: 0; visibility: hidden; will-change: transform, opacity; }
html.mo .ts-tag { display: block; position: absolute; z-index: 2; left: 50%; top: 50%; width: min(440px, 78vw); aspect-ratio: 320 / 202; margin: calc(min(440px, 78vw) * -.315) 0 0 calc(min(440px, 78vw) * -.5); opacity: 0; visibility: hidden; filter: drop-shadow(0 14px 24px rgba(40, 32, 18, .22)); will-change: transform, opacity; }
html.mo .ts-tag svg { display: block; width: 100%; height: 100%; }
html.mo .rv { height: 340vh; position: relative; }
html.mo .rv-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: 0; padding-bottom: 0; }
html.mo .rv .w { color: var(--rv-off); color: color-mix(in srgb, var(--rv-on) calc(var(--w, 0) * 100%), var(--rv-off)); }
html.mo [data-in] { opacity: 0; transform: translateY(34px) scale(.95); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.mo [data-in].in { opacity: 1; transform: none; }
html.mo [data-in]:nth-child(2) { transition-delay: .08s; } html.mo [data-in]:nth-child(3) { transition-delay: .16s; } html.mo [data-in]:nth-child(4) { transition-delay: .24s; }
html.mo [data-in]:nth-child(5) { transition-delay: .32s; } html.mo [data-in]:nth-child(6) { transition-delay: .4s; }

@media (max-width: 1199px) {
  html.mo .hero .hf.dm, html.mo .ts-fx .fx.dm { display: none; }
  html.mo .ts { height: 660vh; }
  html.mo .ts-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; justify-items: center; gap: 14px; padding: 70px 20px 16px; }
  html.mo .ts-device { height: 42vh; height: 42svh; order: -1; }
  html.mo .ts-text { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 640px; margin: 0 auto; }
  html.mo .ts-dots { flex-direction: row; justify-content: center; }
  html.mo .ts-dots li { height: 6px !important; }
  html.mo .ts-stage[data-step="0"] .ts-dots li:nth-child(1), html.mo .ts-stage[data-step="1"] .ts-dots li:nth-child(2), html.mo .ts-stage[data-step="2"] .ts-dots li:nth-child(3), html.mo .ts-stage[data-step="3"] .ts-dots li:nth-child(4), html.mo .ts-stage[data-step="4"] .ts-dots li:nth-child(5), html.mo .ts-stage[data-step="5"] .ts-dots li:nth-child(6), html.mo .ts-stage[data-step="6"] .ts-dots li:nth-child(7) { width: 26px; }
  html.mo .ts-copy { width: 100%; height: 12.5rem; flex: none; }
  html.mo .ts-step { justify-content: flex-start; }
  html.mo .ts-step .n { margin-bottom: 8px; }
  html.mo .ts-step h3 { font-size: 30px; margin-bottom: 8px; }
  html.mo .ts-step p { font-size: 16px; }
  .hf i, .fx i { font-size: 15px; padding: 10px 15px; }
  .ic i { width: 56px; height: 56px; padding: 0; }
  .ic svg { width: 28px; height: 28px; }
  .qr i { width: 74px; height: 74px; padding: 8px; }
  .chip svg { width: 16px; height: 16px; }
}

/* compact consent banner on the home page (same consent logic) */
.home .cc-banner { left: 16px; right: auto; bottom: 16px; margin: 0; max-width: 340px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; gap: 8px 12px; }
.home .cc-banner .cc-text { flex: 1 1 100%; }
.home .cc-banner .cc-btn { min-width: 0; min-height: 34px; padding: 5px 14px; flex: 1; }
.home .cc-banner .cc-actions { width: 100%; }
@media (max-width: 719px) {
  .home .cc-banner { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 12px 12px 0 0; padding: 8px 10px; flex-wrap: nowrap; align-items: center; font-size: 12.5px; line-height: 1.3; }
  .home .cc-banner .cc-text { flex: 1 1 auto; }
  .home .cc-banner .cc-actions { width: auto; flex-direction: column; gap: 6px; }
  .home .cc-banner .cc-btn { min-height: 30px; min-width: 72px; padding: 3px 10px; }
}
@media (prefers-reduced-motion: reduce) { .home, .faq summary::after { transition: none; } }
