/* BooksTurn: Lovable-inspired composition on the BooksTurn design system.
   Tokens are the brand guideline values: Ink, Lime, Canvas, Sage, Mint, Graphite, Night. */
:root {
  --ink: #111111; --lime: #C7F36B; --lime-soft: #F1FBD9; --canvas: #FAFDF7; --white: #fff;
  --sage: #8EBF91; --mint: #E8F3E4; --graphite: #737373; --graphite-text: #5f5f5f; --border: #E5E5E5;
  --night: #171717; --night-2: #1C1C1C; --on-dark: #F5F5F5; --on-dark-2: #b9bdb4;
  --serif: "Noto Serif", Georgia, serif; --sans: "Roboto", system-ui, sans-serif;
  --r-lg: 32px; --r-md: 24px; --r-sm: 16px; --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1200px;
  /* Gradient recipes, brand colours only */
  --g-hero: radial-gradient(46% 54% at 94% 6%, #C7F36B 0%, rgba(199,243,107,0) 72%),
            radial-gradient(54% 60% at 4% 28%, rgba(142,191,145,.95) 0%, rgba(142,191,145,0) 72%),
            radial-gradient(42% 52% at 0% 100%, #3E9A62 0%, rgba(62,154,98,0) 74%),
            radial-gradient(46% 54% at 100% 94%, #B5EC4A 0%, rgba(181,236,74,0) 72%),
            radial-gradient(60% 40% at 50% 0%, #E8F3E4 0%, rgba(232,243,228,0) 70%),
            linear-gradient(180deg, #F3FBE6 0%, #E2F5C4 100%);
  --g-text-dark: linear-gradient(95deg, #C7F36B 10%, #8EBF91 60%, #E8F3E4 100%);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
p { margin: 0; } a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--lime); }
.hero :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 99px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Shared components ---------- */
.section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; isolation: isolate; overflow: clip; }
.eyebrow { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-text); margin-bottom: 1.25rem; }
.dark .eyebrow { color: var(--on-dark-2); }
.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--graphite-text); max-width: 40rem; }
.dark .lede { color: var(--on-dark-2); }
.center { text-align: center; } .center .lede { margin-inline: auto; }
/* gradient text: dark sections only (Lime on white fails contrast); light sections use an ink highlight band */
.gt { background: var(--g-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mark { background: none; }
.dark { background: var(--night); color: var(--on-dark); }
.dark.ink { background: var(--ink); }
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glow.lime { background: radial-gradient(closest-side, rgba(199,243,107,.30), rgba(199,243,107,0)); } .glow.sage { background: radial-gradient(closest-side, rgba(142,191,145,.34), rgba(142,191,145,0)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.7rem; border-radius: 99px; border: 1.5px solid var(--ink); font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(17,17,17,.55); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { box-shadow: 0 12px 34px -8px rgba(199,243,107,.6); }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; }
.dark .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.12); }
.glass { background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 40px -22px rgba(17,17,17,.35); }
.dark .glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }

.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* Phone: iPhone-style frame (Dynamic Island, metal rail, side buttons) */
.phone { --w: min(300px, 70vw); width: var(--w); aspect-ratio: 9/19.5; position: relative; border-radius: calc(var(--w)*.17); padding: calc(var(--w)*.028);
  background: linear-gradient(145deg, #4a4a4d 0%, #1b1b1d 38%, #333336 62%, #18181a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 calc(var(--w)*.026) #050505, 0 0 0 1px #000, 0 50px 80px -30px rgba(17,17,17,.55), 0 20px 40px -24px rgba(17,17,17,.4); }
.phone::before { content: ""; position: absolute; left: -3px; top: 17%; width: 3px; height: calc(var(--w)*.075); background: #2b2b2e; border-radius: 3px 0 0 3px;
  box-shadow: 0 calc(var(--w)*.13) 0 0 #2b2b2e, 0 calc(var(--w)*.13 + var(--w)*.17) 0 0 #2b2b2e, 0 calc(var(--w)*.13 + var(--w)*.34) 0 0 #2b2b2e; }
.phone::after { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: calc(var(--w)*.2); background: #2b2b2e; border-radius: 0 3px 3px 0; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w)*.142); background: var(--canvas); }
.screen::after { content: ""; position: absolute; z-index: 3; top: calc(var(--w)*.03); left: 50%; width: calc(var(--w)*.3); height: calc(var(--w)*.085); transform: translateX(-50%); background: #000; border-radius: 99px; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .5s var(--ease); }
.screen img.on, .screen img:only-child { opacity: 1; }

/* ---------- Nav ---------- */
.nav-shell { position: fixed; inset: 14px 0 auto; z-index: 100; pointer-events: none; }
.nav { pointer-events: auto; width: min(1120px, 100% - 1.5rem); margin: 0 auto; height: 64px; padding: 0 .75rem 0 1.1rem; border-radius: 99px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 400 1.4rem/1 var(--serif); letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--graphite-text); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { min-height: 44px; padding: 0 1.25rem; font-size: .9375rem; }
.nav.on-dark { background: rgba(23,23,23,.84); border-color: rgba(255,255,255,.14); }
.nav.on-dark .logo, .nav.on-dark a:not(.btn) { color: #fff; }
.nav.on-dark a:not(.btn):not(.logo) { color: var(--on-dark-2); }
.nav.on-dark .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 1. Hero (gradient) ---------- */
.hero { background: var(--g-hero); padding: clamp(8rem, 14vw, 10.5rem) 0 0; overflow: hidden; }
.hero .copy { text-align: center; max-width: 54rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.5rem); margin-bottom: 1.4rem; }
.hero .lede { margin: 0 auto 2rem; }
.cta-row { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 1.1rem; font-size: .875rem; color: var(--graphite-text); }
.stage { --pw: min(600px, 92vw); position: relative; margin: clamp(1rem, 3vw, 2rem) auto 0; width: var(--pw); height: calc(var(--pw) * .98); }
.photo { position: absolute; top: 0; left: 0; width: 100%; transform: translate(9%, var(--py, 0px)); pointer-events: none; user-select: none; }
.photo .hero-photo { display: block; width: 100%; height: auto; max-width: none; filter: brightness(1.07) contrast(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%); mask-composite: intersect; }
.photo .screen-fix { display: none; }
/* white spotlight behind the photo so its pale background melts into the gradient */
.stage::before { content: ""; position: absolute; z-index: 0; left: -22%; right: -22%; top: -8%; bottom: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 64% at 50% 48%, #fff 0%, rgba(255,255,255,.94) 52%, rgba(255,255,255,0) 100%); }
.photo, .float { z-index: 1; }
.hold { position: relative; width: var(--pw); transform: translateY(var(--py, 0px)); }
.hold .phone { position: relative; z-index: 1; --w: var(--pw); }
.hand { position: absolute; width: 213.33%; max-width: none; left: -40%; top: 0; pointer-events: none; user-select: none; }
.hand-back { z-index: 0; } .hand-front { z-index: 2; }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .65rem; border-radius: 18px; padding: .75rem 1rem; font-size: .875rem; font-weight: 500; line-height: 1.25; transform: translateY(var(--py, 0px)); animation: bob 6s ease-in-out infinite; }
.float i { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; flex: none; }
.float i svg { width: 16px; height: 16px; }
.float b { display: block; font-weight: 700; }
.float small { display: block; font-size: .75rem; color: var(--graphite-text); }
.f1 { left: -14%; top: 22%; }
.f2 { right: -16%; top: 30%; animation-delay: -2s; }
.f3 { left: -8%; bottom: 20%; animation-delay: -4s; }
.f4 { right: -10%; bottom: 8%; animation-delay: -1s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(250,253,247,0)); pointer-events: none; }

/* store pills (not links yet) */
.stores { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.store { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .95rem .35rem .75rem; border-radius: 99px; font-size: .8125rem; font-weight: 500; }
.store svg { width: 18px; height: 18px; }
.store small { color: var(--graphite-text); font-weight: 400; }

/* ---------- 2. Features (light bento) ---------- */
.features { background: var(--canvas); padding-top: clamp(4rem, 8vw, 7rem); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 3.5rem; }
.tile { position: relative; border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); overflow: hidden; min-height: 400px; display: flex; flex-direction: column; border: 1px solid var(--border); background: #fff; transition: transform .35s var(--ease), box-shadow .35s; isolation: isolate; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -30px rgba(17,17,17,.35); }
.tile h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.015em; margin-bottom: .6rem; }
.tile p { color: var(--graphite-text); font-size: .9875rem; max-width: 24rem; }
.tile .crop { position: absolute; right: clamp(1rem, 4vw, 2.5rem); bottom: 0; width: min(210px, 42%); aspect-ratio: 9/14; border-radius: 26px 26px 0 0; overflow: hidden; border: 6px solid var(--ink); border-bottom: 0; background: #fff; box-shadow: 0 -20px 40px -20px rgba(17,17,17,.3); transition: transform .5s var(--ease); }
.tile:hover .crop { transform: translateY(-8px); }
.tile .crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile .crop.left { right: auto; left: clamp(1rem, 4vw, 2.5rem); }
.t-a { grid-column: span 7; background: radial-gradient(90% 80% at 85% 110%, rgba(199,243,107,.28), transparent 60%), radial-gradient(60% 60% at 0% 0%, rgba(142,191,145,.25), transparent 60%), var(--night); color: #fff; border-color: transparent; }
.t-a p { color: var(--on-dark-2); }
.t-b { grid-column: span 5; background: linear-gradient(160deg, #fff 30%, var(--mint)); }
.t-c { grid-column: span 4; }
.t-d { grid-column: span 4; background: radial-gradient(120% 90% at 100% 100%, rgba(199,243,107,.6), transparent 60%), linear-gradient(180deg, #fff, var(--lime-soft)); }
.t-e { grid-column: span 4; background: var(--ink); color: #fff; border-color: transparent; background-image: radial-gradient(80% 60% at 20% 110%, rgba(142,191,145,.4), transparent 70%); }
.t-e p { color: var(--on-dark-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.5rem; }
.tag { border-radius: 99px; padding: .4rem .9rem; font-size: .8125rem; font-weight: 500; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.tag.hi { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tile .txt { max-width: 52%; }
.t-c .txt, .t-d .txt, .t-e .txt { max-width: none; }
.t-c .crop, .t-d .crop { width: min(190px, 52%); right: 50%; transform: translateX(50%); }
.t-c:hover .crop, .t-d:hover .crop { transform: translateX(50%) translateY(-8px); }
.t-c, .t-d { min-height: 480px; }
.t-c .txt, .t-d .txt { position: relative; z-index: 1; }

/* ---------- 3. Problem (dark) ---------- */
.problem { padding: clamp(6rem, 13vw, 11rem) 0; }
.lines p { font-family: var(--serif); font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.12; letter-spacing: -.025em; color: rgba(245,245,245,.2); transition: color .8s var(--ease); max-width: 20ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.lines p.lit { color: var(--on-dark); }
.lines p.lit em { font-style: normal; background: var(--g-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lines p:last-child { color: rgba(245,245,245,.2); }
.no-js .lines p, .reduce .lines p { color: var(--on-dark); }

/* ---------- 4. Philosophy (gradient) ---------- */
.philosophy { padding: clamp(6rem, 12vw, 10rem) 0; background: radial-gradient(70% 60% at 85% 20%, rgba(199,243,107,.85), transparent 65%), radial-gradient(60% 60% at 10% 90%, rgba(142,191,145,.7), transparent 65%), linear-gradient(180deg, var(--mint), var(--lime-soft)); }
.philosophy h2 { font-size: clamp(3rem, 9.5vw, 8rem); line-height: .98; letter-spacing: -.035em; }
.philosophy h2 span { display: block; }
.philosophy h2 .b { background: linear-gradient(95deg, var(--ink) 30%, #3d5a40 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.philosophy .lede { margin-top: 1.75rem; color: #2e2e2e; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.vs .side { border-radius: var(--r-lg); min-height: 340px; position: relative; overflow: hidden; padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; }
.vs .scroll { background: var(--night); color: #fff; }
.vs .page { background: #fff; border: 1px solid rgba(17,17,17,.08); }
.vs .feed { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; filter: blur(calc((1 - var(--p, 0)) * 0px + var(--p, 0) * 3px)); opacity: calc(1 - var(--p, 0) * .6); transition: filter .2s; }
.vs .feed i { border-radius: 14px; background: #262626; } .vs .feed i:nth-child(3n) { background: #2c2f27; } .vs .feed i:nth-child(5n) { background: #31381f; }
.vs .scroll::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(23,23,23,.92)); }
.vs .side > * { position: relative; z-index: 1; }
.vs h3 { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; margin-bottom: .35rem; }
.vs .scroll p { color: var(--on-dark-2); } .vs .page p { color: var(--graphite-text); }
.vs .book { position: absolute; top: 12%; left: 50%; width: clamp(110px, 16vw, 170px); transform: translateX(-50%) scale(calc(.85 + var(--p, 0) * .2)); transition: transform .2s; }
.vs .lines-art { position: absolute; left: 12%; right: 12%; top: 58%; display: grid; gap: 10px; opacity: .55; }
.vs .lines-art b { height: 6px; border-radius: 3px; background: var(--border); } .vs .lines-art b:nth-child(2) { width: 82%; } .vs .lines-art b:nth-child(3) { width: 64%; }

/* ---------- 5. How it works (light walkthrough) ---------- */
.how { background: var(--canvas); }
.how-grid { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(2rem, 7vw, 6rem); align-items: start; margin-top: 3.5rem; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s var(--ease); padding: 1rem 0; }
.step.active { opacity: 1; }
.step .n { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 1.1rem/1 var(--serif); margin-bottom: 1.25rem; background: #fff; }
.step.active .n { background: var(--ink); color: #fff; }
.step h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .8rem; }
.step p { color: var(--graphite-text); max-width: 30rem; }
.how-phone { position: sticky; top: 96px; display: grid; justify-items: center; }
.how-phone::before { content: ""; position: absolute; inset: 8% -10% 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(199,243,107,.55), rgba(142,191,145,.2) 60%, transparent); }
.direct { margin-top: 3rem; border-radius: var(--r-md); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; background: var(--mint); max-width: 44rem; font-size: .9375rem; }
.direct svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }

/* ---------- 6. Community (dark) ---------- */
.community { background: var(--ink); }
.community .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.community h2 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); margin-bottom: 1.25rem; }
.cards4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gcard { position: relative; border-radius: var(--r-md); padding: 1.6rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .35s var(--ease), border-color .35s, background .35s; overflow: hidden; }
.gcard::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(199,243,107,.8), rgba(142,191,145,.1) 45%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.gcard:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.gcard:hover::before { opacity: 1; }
.gcard .ico { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(140deg, var(--lime), var(--sage)); color: var(--ink); display: grid; place-items: center; margin-bottom: 1.1rem; }
.gcard .ico svg { width: 22px; height: 22px; }
.gcard h3 { font: 700 1.125rem/1.25 var(--sans); letter-spacing: 0; margin-bottom: .45rem; }
.gcard p { color: var(--on-dark-2); font-size: .9375rem; }
.gcard.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; }
.gcard.wide .ico { margin: 0; flex: none; }

/* ---------- 7. Closing CTA (gradient) ---------- */
.closing { background: radial-gradient(80% 70% at 50% 120%, rgba(199,243,107,.95), rgba(199,243,107,0) 70%), radial-gradient(50% 50% at 10% 100%, rgba(142,191,145,.75), transparent 70%), radial-gradient(50% 50% at 92% 90%, rgba(232,243,228,.5), transparent 70%), linear-gradient(180deg, var(--night) 0%, #1f2a1d 100%); color: #fff; text-align: center; padding: clamp(6rem, 11vw, 9rem) 0 0; }
.closing h2 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); margin-bottom: 1.25rem; }
.closing .lede { color: var(--on-dark-2); margin: 0 auto 2rem; }
.duo { position: relative; height: min(380px, 70vw); margin-top: clamp(3rem, 6vw, 4.5rem); display: flex; justify-content: center; gap: clamp(.75rem, 3vw, 2rem); overflow: hidden; }
.duo .phone { --w: min(260px, 38vw); align-self: flex-start; }
.duo .phone:first-child { transform: rotate(-5deg) translateY(30px); }
.duo .phone:last-child { transform: rotate(5deg) translateY(30px); }
.duo .mid { margin-top: -10px; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding: 3.5rem 0 2.5rem; font-size: .9375rem; }
.foot { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2rem; }
.footer .logo { color: #fff; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem 2rem; list-style: none; margin: 0; padding: 0; }
.foot-links span, .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: #fff; }
.todo em { font-style: normal; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.08); border-radius: 99px; padding: 2px 8px; margin-left: .5rem; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; max-width: 60rem; }

/* Download dialog */
dialog { border: 0; border-radius: var(--r-md); padding: 2rem; max-width: min(440px, 92vw); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(17,17,17,.6); backdrop-filter: blur(6px); }
dialog h2 { font-size: 1.75rem; margin-bottom: .75rem; }
dialog p { color: var(--graphite-text); margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .t-a, .t-b { grid-column: span 12; } .t-c, .t-d, .t-e { grid-column: span 6; }
  .t-e { grid-column: span 12; min-height: 300px; }
  .community .grid { grid-template-columns: 1fr; }
  .float.f1, .float.f4 { display: none; }
}
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; border-radius: 28px; display: none; background: rgba(250,253,247,.96); border: 1px solid var(--border); backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { min-height: 52px; display: flex; align-items: center; font-size: 1.0625rem; color: var(--ink) !important; }
  .menu-btn { display: block; }
  .nav { position: relative; }
  .how-grid { grid-template-columns: 1fr; }
  .how-phone { order: -1; z-index: 5; background: linear-gradient(var(--canvas) 85%, rgba(250,253,247,0)); padding: .5rem 0 1rem; top: 76px; }
  .how-phone .phone { --w: min(180px, 44vw); }
  .step { min-height: 50vh; }
  .vs { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; } .foot-links { grid-template-columns: 1fr 1fr; }
  .float { display: none; }
  .tile .txt { max-width: none; }
  .tile .crop { position: relative; right: auto; left: auto; margin: 1.5rem auto 0; width: min(220px, 70%); aspect-ratio: 9/12; flex: none; }
  .t-a .crop, .t-b .crop { margin-bottom: -2.25rem; }
  .t-c .crop, .t-d .crop { right: auto; transform: none; margin: 1.5rem auto -1.75rem; }
  .t-c:hover .crop, .t-d:hover .crop { transform: translateY(-8px); }
  .t-c, .t-d, .t-a, .t-b { min-height: 0; }
}
@media (max-width: 640px) {
  .t-c, .t-d { grid-column: span 12; }
  .cards4 { grid-template-columns: 1fr; }
  .btn { width: 100%; } .cta-row { width: 100%; }
  .stage { height: min(520px, 125vw); }
  .foot-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Store cards: badge + QR, links come from js/config.js */
.store-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.store-card { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem .8rem .8rem; border-radius: 22px; text-align: left; min-width: 250px; }
.store-card .qr { width: 92px; height: 92px; flex: none; border-radius: 14px; background: #fff; padding: 7px; display: block; }
.store-card .qr svg { width: 100%; height: 100%; }
.store-card .qr.empty { border: 1.5px dashed var(--sage); display: grid; place-items: center; font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; color: var(--graphite-text); }
.store-card .qr.empty::after { content: "QR"; }
.store-card .scan { display: grid; gap: .5rem; }
.store-card small { font-size: .75rem; color: var(--graphite-text); line-height: 1.2; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.1rem 0 .9rem; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; border: 1.5px solid var(--ink); transition: transform .2s var(--ease), box-shadow .2s; }
a.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(17,17,17,.55); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: block; line-height: 1.15; text-align: left; }
.store-badge span small { display: block; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.store-badge span b { display: block; font-size: 1.0625rem; font-weight: 500; }
span.store-badge { opacity: .92; cursor: default; }
.dark-stores .store-card small { color: var(--on-dark-2); }
.dark-stores .store-badge { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.dark-stores .store-badge span small { color: rgba(17,17,17,.7); }
@media (max-width: 640px) { .store-card { width: 100%; } }

.store-row .or { align-self: center; font-size: .875rem; color: var(--graphite-text); }
@media (max-width: 1100px) { .f1 { left: -4%; } .f2 { right: -4%; } .f3 { left: 0; } .f4 { right: 0; } }
@media (max-width: 900px) { .float { display: none; } }
