/* ==========================================================================
   Home page (pages/home.html) — motion + layout
   Canvas wireframe orb, word reveals, scroll-drawn
   connectors, comet wires, feature rows with live phone demos.
   Vanilla CSS; the scroll/IO wiring lives in /js/home.js. Theme-aware through
   the liquid-glass.css variables, so it works in light and dark.
   ========================================================================== */

:root {
  --h-line: color-mix(in oklab, var(--gradient-start) 26%, var(--border));
  --h-glow: var(--gradient-start);
  --h-halo: color-mix(in oklab, var(--gradient-start) 35%, transparent);
  --h-ease: cubic-bezier(.2, .7, .2, 1);
}
:root.dark {
  --h-line: color-mix(in oklab, var(--gradient-start) 35%, var(--background));
  --h-glow: color-mix(in oklab, var(--gradient-start) 45%, white);
  --h-halo: color-mix(in oklab, var(--gradient-start) 30%, transparent);
}
html { scroll-behavior: smooth; }


/* ---------- shared bits ---------- */
.h-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); }
.h-title { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; color: var(--foreground); }
.h-lead { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); }

.qb-tile { position: relative; width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; color: var(--foreground); background: linear-gradient(160deg, color-mix(in oklab, var(--gradient-start) 18%, var(--glass-bg-strong)), color-mix(in oklab, var(--gradient-end) 18%, var(--glass-bg-strong))); border: 1px solid var(--glass-border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow); backdrop-filter: blur(var(--blur-md)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%); }
.qb-tile::before { content: none; }
.qb-tile svg { width: 54%; height: 54%; fill: currentColor; }

/* glowing wires: base line + travelling comet (pathLength=1 everywhere) */
.w-base { fill: none; stroke: var(--h-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-comet, .w-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; }
.w-comet { stroke: var(--h-glow); stroke-width: 2.5; }
.w-halo { stroke: var(--h-halo); stroke-width: 10; filter: blur(4px); }
.w-run .w-comet, .w-run .w-halo { animation: w-comet var(--dur, 3s) cubic-bezier(.5,0,.6,1) var(--dl, 0s) infinite; }
.w-draw .w-base { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.w-draw.in .w-base { animation: w-draw 1.4s var(--h-ease) var(--dl, 0s) forwards; }
@keyframes w-comet { 0% { stroke-dashoffset: .07; } 55%, 100% { stroke-dashoffset: -1; } }
@keyframes w-draw { to { stroke-dashoffset: 0; } }

/* blob canvas */
.blob { position: absolute; pointer-events: none; z-index: -1; }

/* scroll-in primitives (toggled by home.js) */
.wipe { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s cubic-bezier(.3,1,.3,1), transform .9s cubic-bezier(.3,1,.3,1); }
.in .wipe, .wipe.in { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.stagger > * { opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s var(--h-ease); }
.in .stagger > *, .stagger.in > * { opacity: 1; transform: none; }
.stagger > *:nth-child(2) { transition-delay: .08s; } .stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; } .stagger > *:nth-child(5) { transition-delay: .32s; }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero2 { position: relative; isolation: isolate; overflow-x: clip; padding: 7rem 0 4rem; }
.hero2 .blob-hero { left: 60%; top: -4rem; width: min(1500px, 130vw); height: 900px; transform: translateX(-50%); }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 70% 40%, color-mix(in oklab, var(--gradient-end) 5%, transparent), transparent 70%); }
.hero2-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; max-width: 80rem; margin: 0 auto; padding: 0 2rem; min-height: calc(100vh - 11rem); }
.hero2-title { margin-top: .25rem; font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; color: var(--foreground); }
.hero2-title .l1, .hero2-title .l2 { display: block; }
.hero2-title .l2 { white-space: nowrap; } /* one line on desktop; the size above is tuned to fit the column */
.hero2-title .w { display: inline-block; }
.hero2-title .l2 { padding-bottom: .08em; background-image: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%), linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: h-in 1.1s var(--h-ease) .75s both, h-shine 7s ease-in-out 2.4s infinite; }
@keyframes h-shine { 0% { background-position: 150% 0, 0 0; } 35%, 100% { background-position: -50% 0, 0 0; } }
.h-in { animation: h-in 1s var(--h-ease) var(--d, 0s) both; }
@keyframes h-in { from { opacity: 0; transform: translateY(26px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

.hero2-phone { position: relative; display: flex; justify-content: center; }
.hero2-phone .float { animation: h-phone-in 1.5s cubic-bezier(.16,1,.3,1) .2s both; }
.hero2-phone .bob { animation: h-bob 6s ease-in-out 1.7s infinite; transform: translateY(var(--py, 0)); }
@keyframes h-phone-in { from { opacity: 0; transform: translateY(-80px) rotate(14deg); } to { opacity: 1; transform: none; } }
@keyframes h-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: -1.5deg; } }
.hero2-phone .hero-float-badge { opacity: 0; animation: h-in .8s var(--h-ease) var(--d) both, float-badge 5s ease-in-out calc(var(--d) + .8s) infinite; }

/* ==========================================================================
   WHY — words light up, scroll-drawn spine
   ========================================================================== */
.why { position: relative; padding: 3rem 1.5rem 12rem; text-align: center; overflow-x: clip; }
.why .spine { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.why-in { position: relative; z-index: 1; max-width: 62rem; margin: 0 auto; }
.why-big { margin: 2.5rem auto 0; font-size: clamp(1.75rem, 3.6vw, 3.1rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.why-big .lw { color: color-mix(in oklab, var(--foreground) 16%, transparent); transition: color .25s; }
.why-big .lw.on { color: var(--foreground); }
.why-sub { max-width: 40rem; margin: 2.5rem auto 0; font-size: 1.15rem; line-height: 1.65; color: var(--muted-foreground); }
.spine path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sp-base { stroke: var(--h-line); stroke-width: 2; stroke-dasharray: 1 1; }
.sp-head { stroke: var(--h-glow); stroke-width: 3.5; stroke-dasharray: .05 2; }
.sp-halo { stroke: var(--h-halo); stroke-width: 10; stroke-dasharray: .05 2; filter: blur(4px); }

/* ==========================================================================
   FEATURES — alternating rows with live phone demos
   ========================================================================== */
.feats { position: relative; padding: 2rem 0 4rem; overflow-x: clip; }
.feats-head { text-align: center; padding: 0 1.5rem; }
.feat { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; max-width: 74rem; margin: 0 auto; padding: 6rem 2.5rem; }
.feat.rev .feat-txt { order: 2; }
.feat-badge { display: inline-flex; align-items: center; gap: .55rem; height: 2.4rem; padding: 0 1.2rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--foreground); background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow-sm); backdrop-filter: blur(var(--blur-md)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%); opacity: 0; transform: scale(.85); transition: opacity .6s, transform .6s cubic-bezier(.3,1.6,.5,1); }
.feat.in .feat-badge { opacity: 1; transform: none; }
.feat-h { margin-top: 1.4rem; font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; color: var(--foreground); }
.feat-h .beta { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; letter-spacing: .1em; font-weight: 800; color: var(--primary); background: color-mix(in oklab, var(--primary) 14%, transparent); }
.feat-txt > p { margin-top: 1.4rem; max-width: 32rem; font-size: 1.15rem; line-height: 1.65; color: var(--muted-foreground); opacity: 0; transform: translateY(14px); transition: opacity .7s .25s, transform .7s .25s var(--h-ease); }
.feat.in .feat-txt > p { opacity: 1; transform: none; }
.feat-bul { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.feat-bul li { display: flex; gap: 1rem; font-size: 1.05rem; color: var(--foreground); }
.feat-bul li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .3rem; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.feat-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.8rem; font-weight: 700; color: var(--primary); }
.feat-link svg { width: 1rem; height: 1rem; transition: transform .3s; }
.feat-link:hover svg { transform: translateX(4px); }
.feat-ph { position: relative; display: flex; justify-content: center; }
.feat-ph::before { content: ""; position: absolute; inset: -8% -12%; z-index: -1; background: radial-gradient(circle, color-mix(in oklab, var(--gradient-start) 10%, transparent), transparent 62%); }
.feat-ph .phone-frame { transform: translateY(var(--py, 0)) rotate(var(--pr, 0deg)); will-change: transform; }
.feat-ph .phone-screen, .app-scr { height: 560px; padding: 0; color: var(--foreground); font-size: 13px; }
.feat-ph .phone-screen::after { position: absolute; left: 50%; bottom: 8px; margin: 0 0 0 -50px; z-index: 9; }
.dm { position: absolute; inset: 0; padding: 3.2rem 1.05rem 1.5rem; overflow: hidden; }
.dm-pop { opacity: 0; }
.play .dm-pop { animation: hw-pop .55s cubic-bezier(.2,.8,.3,1.25) var(--d, 0s) both; }

/* shared demo atoms */
.dm-ava { display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: var(--c, linear-gradient(135deg, var(--gradient-start), var(--gradient-end))); }
.dm-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); font-weight: 600; }
.dm-row small { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--muted-foreground); }

/* demo 1 · profiles (pure CSS loop, 9s) */
.pf-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.pf-seg span { position: relative; z-index: 1; padding: 6px 0; color: var(--foreground); }
.pf-seg i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--card); box-shadow: 0 1px 5px rgba(0,0,0,.14); }
.play .pf-seg i { animation: pf-pill 9s var(--h-ease) infinite; }
@keyframes pf-pill { 0%, 30% { transform: translateX(0); } 34%, 63% { transform: translateX(100%); } 67%, 96% { transform: translateX(200%); } 100% { transform: translateX(0); } }
.pf-stack { position: relative; height: 420px; margin-top: 1rem; }
.pf { position: absolute; inset: 0; text-align: center; opacity: 0; }
.pf:first-child { opacity: 1; }
.play .pf { animation: pf-cycle 9s var(--h-ease) var(--d) infinite both; }
@keyframes pf-cycle { 0% { opacity: 0; transform: translateX(18px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateX(-18px); } }
.pf .dm-ava { width: 68px; height: 68px; margin: .4rem auto .55rem; font-size: 20px; box-shadow: 0 8px 24px color-mix(in oklab, var(--gradient-end) 35%, transparent); }
.pf b { display: block; font-size: 15px; }
.pf em { display: block; font-style: normal; font-size: 11px; color: var(--muted-foreground); }
.pf .rows { display: flex; flex-direction: column; gap: 7px; margin-top: 1.1rem; text-align: left; }
.pf .ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 11px; background: var(--c); }

/* demo 2 · AI twin chat (play-triggered, looped by JS) */
.tw-head { display: flex; align-items: center; gap: 10px; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.tw-head .dm-ava { width: 34px; height: 34px; font-size: 12px; }
.tw-head b { display: block; font-size: 13px; }
.tw-head small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #16a34a; }
.tw-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.tw-body { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }
.bub { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 12px; line-height: 1.45; }
.bub.me { align-self: flex-end; color: #fff; border-bottom-right-radius: 5px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.bub.ai { align-self: flex-start; background: var(--muted); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.tw-dots { display: inline-flex; gap: 4px; padding: 12px 14px; opacity: 0; }
.tw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); animation: tw-dot 1s infinite; }
.tw-dots i:nth-child(2) { animation-delay: .15s; } .tw-dots i:nth-child(3) { animation-delay: .3s; }
.play .tw-dots { animation: tw-dots 1.3s 1s both; }
@keyframes tw-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes tw-dots { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -4px 0; } }
.tw-type .k { opacity: 0; }
.play .tw-type .k { animation: tw-k .2s calc(2.3s + var(--i) * .07s) both; }
@keyframes tw-k { from { opacity: 0; } to { opacity: 1; } }
.tw-chips { display: flex; gap: 6px; }
.tw-chips span { position: relative; isolation: isolate; overflow: hidden; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--gradient-start); color: var(--primary); font-size: 11px; font-weight: 700; background: var(--card); }
.tw-chips span.pick::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
.tw-chips span.pick { display: inline-grid; }
.tw-chips span.pick em { grid-area: 1 / 1; font-style: normal; }
.tw-chips span.pick em + em { color: #fff; opacity: 0; }
.play .tw-chips span.pick { animation: hw-pop .55s 4.6s both; }
.play .tw-chips span.pick::before, .play .tw-chips span.pick em + em { animation: tw-k .3s 5.7s both; }

/* demo 3 · catalog */
.ct-head b { display: block; font-size: 17px; letter-spacing: -.02em; }
.ct-head small { font-size: 11px; color: var(--muted-foreground); }
.ct-tabs { display: flex; gap: 6px; margin-top: .8rem; }
.ct-tabs span { padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--muted); color: var(--muted-foreground); }
.ct-tabs span.on { background: var(--foreground); color: var(--background); }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: .9rem; }
.ct-card { border-radius: 14px; border: 1px solid var(--border); background: var(--card); overflow: hidden; transition: box-shadow .4s; }
.ct-img { height: 92px; background: var(--g); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 26px; }
.ct-card div:last-child { padding: 7px 9px 9px; }
.ct-card b { display: block; font-size: 11.5px; }
.ct-card small { font-size: 11px; font-weight: 700; color: var(--primary); }
.play .ct-card.sug { animation: hw-pop .55s .35s both, ct-sug .5s 2.6s both; }
@keyframes ct-sug { to { box-shadow: 0 0 0 2px var(--gradient-start), 0 10px 26px color-mix(in oklab, var(--gradient-start) 30%, transparent); } }
.ct-ai { position: absolute; left: .8rem; right: .8rem; bottom: 1.6rem; display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.16); font-size: 11.5px; line-height: 1.4; opacity: 0; transform: translateY(30px); }
.ct-ai b { color: var(--primary); }
.ct-ai .dm-ava { flex: none; width: 26px; height: 26px; font-size: 12px; }
.play .ct-ai { animation: hw-rise .6s cubic-bezier(.2,.8,.3,1.2) 2.2s both; }

/* demo 4 · scan & keep */
.sk { background: #0b0b10; color: #f4f4f6; }
.sk-view { position: relative; height: 270px; margin-top: .4rem; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2b2840, #0d0c14 75%); overflow: hidden; }
.sk-card { width: 70%; padding: 14px; border-radius: 10px; background: #fafaf7; color: #1a1a1a; box-shadow: 0 14px 30px rgba(0,0,0,.5); transform: rotate(-4deg); }
.sk-card b { display: block; font-size: 14px; }
.sk-card small { display: block; font-size: 9.5px; color: #666; }
.sk-card i { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: #ddd; }
.sk-card i:nth-of-type(2) { width: 70%; }
.sk-corners { position: absolute; inset: 22% 10%; }
.sk-corners span { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; opacity: 0; }
.sk-corners span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.sk-corners span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.sk-corners span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.sk-corners span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.play .sk-corners span { animation: sk-lock .5s cubic-bezier(.3,1.6,.5,1) .4s both; }
@keyframes sk-lock { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
.sk-line { position: absolute; left: 10%; right: 10%; top: 22%; height: 2px; background: var(--gradient-start); box-shadow: 0 0 16px 4px color-mix(in oklab, var(--gradient-start) 70%, transparent); opacity: 0; }
.play .sk-line { animation: sk-scan 1.5s ease-in-out .9s 1 both; }
@keyframes sk-scan { 0% { opacity: 0; top: 22%; } 10%, 90% { opacity: 1; } 100% { opacity: 0; top: 78%; } }
.sk-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.play .sk-flash { animation: sk-flash .5s 2.4s both; }
@keyframes sk-flash { 30% { opacity: .7; } 100% { opacity: 0; } }
.sk-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1rem 2rem; border-radius: 22px 22px 0 0; background: var(--card); color: var(--foreground); box-shadow: 0 -12px 30px rgba(0,0,0,.35); transform: translateY(105%); }
.play .sk-sheet { animation: sk-up .7s cubic-bezier(.2,.9,.2,1) 2.7s both; }
@keyframes sk-up { to { transform: none; } }
.sk-sheet .sk-title { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; }
.sk-sheet .sk-title small { font-size: 10px; font-weight: 700; color: #16a34a; }
.sk-f { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 11.5px; opacity: 0; }
.sk-f span { color: var(--muted-foreground); }
.sk-f b { font-weight: 600; }
.play .sk-f { animation: hw-pop .45s ease calc(3.2s + var(--i) * .22s) both; }
.sk-save { margin-top: .8rem; height: 38px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); position: relative; overflow: hidden; }
.sk-save span { grid-area: 1 / 1; transition: none; }
.sk-save span:last-child { opacity: 0; }
.play .sk-save span:first-child { animation: sk-out .3s 5.1s both; }
.play .sk-save span:last-child { animation: hw-pop .45s 5.3s both; }
@keyframes sk-out { to { opacity: 0; transform: translateY(-10px); } }

/* ==========================================================================
   CONNECT — cards wired into the logo tile
   ========================================================================== */
.conn { position: relative; padding: 5rem 0 6rem; overflow-x: clip; }
.conn-head { max-width: 46rem; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.conn-grid { position: relative; display: grid; grid-template-columns: 1fr 300px 1fr; gap: 0 1rem; align-items: center; max-width: 72rem; margin: 4.5rem auto 0; padding: 0 2.5rem; }
.conn-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.conn-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.conn-mid { position: relative; z-index: 1; display: grid; place-items: center; }
.conn-mid .qb-tile { width: 120px; height: 120px; transform: scale(.5) rotate(-12deg); opacity: 0; transition: transform .9s cubic-bezier(.3,1.6,.5,1), opacity .5s; }
.conn.in .conn-mid .qb-tile { transform: none; opacity: 1; }
.fcard { display: flex; align-items: center; gap: 1.1rem; padding: 1.35rem 1.4rem; border-radius: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow-sm); backdrop-filter: blur(var(--blur-md)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%); transition: background .25s, opacity .7s, translate .7s var(--h-ease); opacity: 0; }
.conn-col:first-of-type .fcard { translate: 40px 0; }
.conn-col:last-of-type .fcard { translate: -40px 0; }
.conn.in .fcard { opacity: 1; translate: 0 0; }
.conn.in .fcard:nth-child(2) { transition-delay: 0s, 0s, .12s, .12s; }
.fcard:hover { background: var(--glass-bg-strong); }
.fcard .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--foreground); background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow-sm); }
.fcard .ico svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--foreground); }
.fcard p { font-size: .95rem; color: var(--muted-foreground); margin-top: .15rem; }
.conn-foot { margin-top: 3rem; text-align: center; font-size: .9rem; color: var(--muted-foreground); }

/* flat persona icon (was an inline gradient tile) */
.p-ico { width: 40px; height: 40px; margin-bottom: .75rem; border-radius: 12px; display: grid; place-items: center; color: var(--foreground); background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow-sm); }
.p-ico svg { width: 20px; height: 20px; }

/* ==========================================================================
   THEMES · PERSONAS · COMPARE · PRICING · TRUST · APP · FAQ · CTA
   ========================================================================== */
#themes .phone-frame { transform: translateY(var(--py, 0)); }
#showcase-screen { transition: background .5s; }
#showcase-screen.swap > * { animation: hw-pop .5s var(--h-ease) both; }

.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--gradient-start) 16%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }

.bill { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--border); }
.bill button { position: relative; z-index: 1; height: 2.5rem; padding: 0 1.3rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--muted-foreground); transition: color .3s; }
.bill button[aria-pressed="true"] { color: #fff; }
.bill button small { margin-left: .35rem; font-size: .72rem; font-weight: 800; color: var(--success); }
.bill button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.bill-pill { position: absolute; top: 5px; left: 0; height: 2.5rem; border-radius: 999px; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); box-shadow: 0 6px 20px color-mix(in oklab, var(--gradient-start) 40%, transparent); transition: transform .5s var(--h-ease), width .5s var(--h-ease); }
.price-flip { display: inline-block; animation: price-flip .45s var(--h-ease) both; }
@keyframes price-flip { from { opacity: 0; transform: translateY(40%); } }
.plan-glow { box-shadow: 0 0 70px -20px color-mix(in oklab, var(--gradient-start) 60%, transparent); background-image: radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in oklab, var(--gradient-start) 14%, transparent), transparent 70%); }

.trust-n { display: block; font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: .75rem; }

.app-showcase { --fan: 0; }
@media (min-width: 769px) {
  .app-phone-1 { transform: translateX(calc((1 - var(--fan)) * 90px)) rotate(calc(var(--fan) * -10deg)); opacity: calc(.35 + var(--fan) * .5); }
  .app-phone-3 { transform: translateX(calc((1 - var(--fan)) * -90px)) rotate(calc(var(--fan) * 10deg)); opacity: calc(.35 + var(--fan) * .5); }
  .app-phone-2 { transform: translateX(-50%) translateY(calc((1 - var(--fan)) * 20px)); }
}

.faq-list { max-width: 50rem; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border); }
.qa button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; text-align: left; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; color: var(--foreground); }
.qa .pm { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); transition: background .3s, border-color .3s; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: var(--foreground); transition: transform .35s var(--h-ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa.open .pm { border-color: var(--gradient-start); background: color-mix(in oklab, var(--gradient-start) 12%, transparent); }
.qa.open .pm::after { transform: rotate(0); }
.qa .a { height: 0; overflow: hidden; transition: height .45s var(--h-ease); }
.qa .a p { padding: 0 3.5rem 1.5rem 0; color: var(--muted-foreground); line-height: 1.65; }

.cta2 { position: relative; isolation: isolate; overflow: hidden; padding: 8rem 1.5rem 9rem; text-align: center; }
.cta2 .blob-cta { left: 50%; top: 50%; width: 1100px; height: 900px; transform: translate(-50%, -50%); opacity: .8; }
.cta2 .qb-tile { margin: 0 auto 2.5rem; transform: rotate(var(--tr, -10deg)) scale(var(--ts, .85)); }

.totop { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--foreground); background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow); backdrop-filter: blur(var(--blur-md)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%); opacity: 0; transform: scale(.8); visibility: hidden; transition: opacity .3s, transform .3s, background .25s, visibility 0s .3s; }
.totop.on { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s, background .25s; }
.totop:hover { background: var(--glass-bg); }
.totop svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive + reduced motion
   ========================================================================== */
@media (max-width: 960px) {
  .hero2 { padding-top: 6rem; }
  .hero2-title .l2 { white-space: normal; }
  .hero2-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 3.5rem; padding: 0 1.25rem; }
  .hero2-grid .hero-cta, .hero2-grid .hero-pills, .hero2-grid .hero-stores { justify-content: center; }
  .hero2-grid .hero-sub { margin-left: auto; margin-right: auto; }
  .why { padding: 6rem 1.25rem 7rem; }
  .feat { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.25rem; text-align: center; }
  .feat.rev .feat-txt { order: 0; }
  .feat-txt > p { margin-left: auto; margin-right: auto; }
  .feat-bul { align-items: center; }
  .feat-ph .phone-screen { height: 520px; }
  .conn-grid { grid-template-columns: 1fr; gap: 1.25rem; padding: 0 1.25rem; margin-top: 3rem; }
  .conn-mid { order: -1; margin-bottom: 1rem; }
  .conn-svg { display: none; }
  .conn-col:first-of-type .fcard, .conn-col:last-of-type .fcard { translate: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero2 *, .why *, .feats *, .conn *, .cta2 *, .hw *, .hw *::before, .hw *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .w-comet, .w-halo, .sp-head, .sp-halo, .hw-scanline, .sk-line { display: none; }
  .wipe { clip-path: none; transform: none; }
  .why-big .lw { color: var(--foreground); }
}

/* ---------- How it works (hw-) ---------- */
.hw { position: relative; padding: 6rem 0 2rem; overflow-x: clip; }
.hw::before { content: ""; position: absolute; inset: 10% 0 0; background: radial-gradient(ellipse 70% 45% at 50% 40%, color-mix(in oklab, var(--gradient-end) 6%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.hw-head { text-align: center; padding: 0 1rem; }
.hw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--primary); padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 999px; }
.hw-title { margin-top: 1.25rem; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; color: var(--foreground); }

.hw-scroll { position: relative; height: 320vh; }
.hw-stage { position: sticky; top: 4rem; height: calc(100vh - 4rem); display: flex; align-items: center; }
.hw-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 2.5rem; }

.hw-steps { position: relative; padding-left: 4.5rem; }
.hw-track { position: absolute; left: 1.1rem; top: 1rem; bottom: 1rem; width: 3px; border-radius: 3px; background: var(--border); }
.hw-track-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 3px; background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end)); transition: height .6s cubic-bezier(.2,.7,.2,1); }
.hw-track-dot { position: absolute; left: 50%; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--background); border: 6px solid var(--gradient-start); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gradient-start) 25%, transparent), 0 0 24px color-mix(in oklab, var(--gradient-end) 70%, transparent); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hw-counter { position: absolute; right: 0; top: -1.75rem; display: flex; align-items: baseline; gap: .5rem; font-weight: 600; color: var(--muted-foreground); }
.hw-big { display: inline-block; height: 3.5rem; overflow: hidden; font-size: 3.25rem; line-height: 1; letter-spacing: -.03em; }
.hw-big span { display: block; background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hw-big span.flip { animation: hw-flip .45s cubic-bezier(.2,.7,.2,1); }
.hw-of { font-size: 1.4rem; letter-spacing: .05em; }

.hw-step { display: block; width: 100%; text-align: left; padding: 1.4rem 0 1.5rem; border-top: 1px solid var(--border); cursor: pointer; background: none; color: inherit; font: inherit; }
.hw-counter + .hw-step { border-top-color: transparent; }
.hw-step > * { display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), color .45s, opacity .45s; }
.hw-num { font-size: .85rem; letter-spacing: .3em; font-weight: 600; color: var(--primary); }
.hw-step h3 { margin: .3rem 0 .5rem; font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; color: var(--muted-foreground); opacity: .55; }
.hw-step p { max-width: 30rem; font-size: 1.05rem; line-height: 1.55; color: var(--muted-foreground); opacity: .55; }
.hw-bar { height: 3px; max-width: 30rem; margin-top: 1rem; border-radius: 3px; background: var(--border); overflow: hidden; opacity: 0; }
.hw-bar i, .hw-mbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
.hw-step.is-active > * { transform: translateX(1.5rem); }
.hw-step.is-active h3 { color: var(--foreground); opacity: 1; }
.hw-step.is-active p { opacity: 1; }
.hw-step.is-active .hw-bar { opacity: 1; }
.hw-step:not(.is-active):hover h3 { opacity: .85; }

/* phone */
.hw-phone { position: relative; display: flex; justify-content: center; }
.hw-phone::before { content: ""; position: absolute; inset: -10% -25%; background: radial-gradient(circle, color-mix(in oklab, var(--gradient-start) 12%, transparent), transparent 62%); z-index: -1; }
.hw-phone .phone-screen { height: 560px; padding: 0; color: var(--foreground); }
.hw-phone .phone-screen::after { position: absolute; left: 50%; bottom: 8px; margin: 0 0 0 -50px; z-index: 5; }
.hw-scr { position: absolute; inset: 0; padding: 3.25rem 1.1rem 1.5rem; font-size: 13px; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s .6s; }
.hw-scr.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.hw-scr.is-leaving { transform: translateY(-16px); }
.hw-pop { opacity: 0; }
.hw-scr.is-active .hw-pop { animation: hw-pop .55s cubic-bezier(.2,.8,.3,1.25) var(--d, 0s) both; }

/* 01 build */
.hw-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--muted); font-size: 11px; font-weight: 600; text-align: center; }
.hw-seg span { position: relative; z-index: 1; padding: 5px 0; color: var(--muted-foreground); }
.hw-seg span.on { color: var(--foreground); }
.hw-seg-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.hw-avatar { width: 64px; height: 64px; margin: 1.1rem auto .5rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); box-shadow: 0 8px 24px color-mix(in oklab, var(--gradient-end) 40%, transparent); }
.hw-name { text-align: center; font-weight: 800; font-size: 15px; }
.hw-role { text-align: center; font-size: 11px; color: var(--muted-foreground); }
.hw-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 1rem; }
.hw-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--muted); border: 1px solid var(--border); font-weight: 600; }
.hw-row small { margin-left: auto; font-weight: 500; font-size: 10px; color: var(--muted-foreground); }
.hw-ic { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--c); color: #fff; font-size: 11px; }
.hw-row-ai { border-color: color-mix(in oklab, var(--gradient-end) 45%, transparent); background: color-mix(in oklab, var(--gradient-end) 10%, var(--muted)); }
.hw-live { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: .9rem; font-size: 11px; font-weight: 600; color: var(--muted-foreground); }
.hw-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; color: #22c55e; animation: hw-ping 1.6s infinite; }

/* 02 share */
.hw-scr-title { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.hw-qr-wrap { position: relative; width: 168px; margin: 1.1rem auto 0; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.14); overflow: hidden; }
.hw-qr { display: block; width: 100%; height: auto; }
.hw-qr rect { fill: #111827; }
.hw-qr-logo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 8px; border: 3px solid #fff; color: #fff; font-size: 10px; font-weight: 800; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); }
.hw-scanline { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--gradient-start) 35%, transparent)); border-bottom: 2px solid var(--gradient-start); opacity: 0; }
.hw-scr.is-active .hw-scanline { animation: hw-scan 2.2s ease-in-out .6s infinite; }
.hw-chans { display: flex; justify-content: center; gap: 6px; margin-top: 1rem; }
.hw-chan { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--muted); font-size: 11px; font-weight: 700; }
.hw-chan-nfc { border-color: var(--gradient-start); color: var(--primary); }
.hw-chan-nfc i { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient-start); color: var(--gradient-start); animation: hw-ping 1.4s infinite; }
.hw-link { position: relative; margin: .8rem auto 0; width: fit-content; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--border); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted-foreground); }
.hw-copied { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--foreground); color: var(--background); font: 600 10px system-ui, sans-serif; white-space: nowrap; opacity: 0; }
.hw-scr.is-active .hw-copied { animation: hw-blip 1.8s ease 1.4s both; }
.hw-toast { position: absolute; left: .8rem; right: .8rem; bottom: 1.6rem; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 12px 30px rgba(0,0,0,.18); opacity: 0; transform: translateY(30px); }
.hw-scr.is-active .hw-toast { animation: hw-rise .6s cubic-bezier(.2,.8,.3,1.2) 2.4s both; }
.hw-toast strong { display: block; font-size: 12px; }
.hw-toast small { font-size: 10px; color: var(--muted-foreground); }
.hw-toast-av, .hw-cav { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; background: var(--c, linear-gradient(135deg, #9333ea, #ec4899)); }

/* 03 keep */
.hw-lock { font-size: 10px; font-weight: 600; letter-spacing: 0; padding: 4px 8px; border-radius: 999px; background: color-mix(in oklab, #22c55e 14%, transparent); color: #16a34a; }
.hw-search { margin-top: .8rem; padding: 9px 12px; border-radius: 12px; background: var(--muted); color: var(--muted-foreground); font-size: 11px; }
.hw-list { display: flex; flex-direction: column; gap: 7px; margin-top: .8rem; }
.hw-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.hw-cmeta strong { display: block; font-size: 12px; }
.hw-cmeta small { font-size: 10px; color: var(--muted-foreground); }
.hw-tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); }
.hw-new { display: flex; flex-direction: column; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; padding: 3px; margin: -3px; }
.hw-new .hw-card { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gradient-start) 18%, transparent); }
.hw-scr.is-active .hw-new { animation: hw-grow .7s cubic-bezier(.2,.8,.2,1) .5s both; }
.hw-note { padding: 8px 10px; border-radius: 10px; background: color-mix(in oklab, #f59e0b 14%, transparent); font-size: 11px; }
.hw-note span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; width: 0; border-right: 1.5px solid currentColor; }
.hw-scr.is-active .hw-note span { animation: hw-type 1.6s steps(28) 1.4s forwards, hw-caret .7s step-end 1.4s 4; }
.hw-saved { position: absolute; left: 50%; bottom: 1.8rem; transform: translate(-50%, 30px); padding: 8px 16px; border-radius: 999px; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; }
.hw-scr.is-active .hw-saved { animation: hw-rise-c .5s cubic-bezier(.2,.8,.3,1.2) 3.2s both; }

.hw-mobile { display: none; }

@keyframes hw-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hw-flip { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hw-ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 50%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes hw-scan { 0% { top: -36px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes hw-blip { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes hw-rise { to { opacity: 1; transform: none; } }
@keyframes hw-rise-c { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hw-grow { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 120px; } }
@keyframes hw-type { to { width: 28ch; } }
@keyframes hw-caret { 50% { border-color: transparent; } }

@media (max-height: 760px) and (min-width: 961px) {
  .hw-phone .phone-frame { transform: scale(.85); }
  .hw-step { padding: 1rem 0 1.1rem; }
  .hw-step p { font-size: .95rem; }
}
@media (max-width: 960px) {
  .hw { padding-bottom: 5rem; }
  .hw-scroll { height: auto; }
  .hw-stage { position: static; height: auto; display: block; padding-top: 2.5rem; }
  .hw-grid { display: flex; flex-direction: column; gap: 1.75rem; padding: 0 1.25rem; }
  .hw-steps { display: none; }
  .hw-phone .phone-screen { height: 520px; }
  .hw-mobile { display: block; width: 100%; max-width: 28rem; text-align: center; }
  .hw-pills { display: flex; justify-content: center; gap: .6rem; margin-bottom: 1.1rem; }
  .hw-pills button { width: 4rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--border); font-size: .9rem; font-weight: 600; letter-spacing: .1em; color: var(--muted-foreground); transition: all .3s; }
  .hw-pills button[aria-selected="true"] { border-color: var(--gradient-start); background: color-mix(in oklab, var(--gradient-start) 14%, transparent); color: var(--foreground); }
  .hw-m-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--foreground); }
  .hw-m-desc { margin-top: .4rem; min-height: 4.8rem; color: var(--muted-foreground); }
  .hw-m-title.swap, .hw-m-desc.swap { animation: hw-pop .45s ease both; }
  .hw-mbar { height: 3px; margin-top: 1.25rem; border-radius: 3px; background: var(--border); overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .hw *, .hw *::before, .hw *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hw-scanline { display: none; }
}

/* Responsive fixes (2026-10-19 audit) */
section:has(.app-showcase) { overflow-x: clip; }   /* rotated app phones spilled past the viewport at ~770-900px */
.conn-foot { padding: 0 1.25rem; }
.bill small { font-size: .75rem; }
@media (max-width: 767px) {
  .persona-scroll .reveal { opacity: 1; transform: none; }   /* next card must peek so the carousel reads as swipeable */
}
@media (max-width: 640px) {
  .feat-link, .conn-foot a, #pricing p a, .qa .a a { display: inline-block; padding: .6rem .25rem; min-height: 40px; }
  .theme-pill { min-height: 40px; }
}
