/* Marketing site, third edition: the home page builder, colour bands, ways to share, the follow-up story,
   templates, use-case pages, the phone menu and the pinned call-to-action bar. Loaded after site.css. */

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.pain-grid .rv:nth-child(2), .pp .rv:nth-child(2) { transition-delay: .08s; }
.pain-grid .rv:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- home: the builder hero ---------- */
.hb { padding: 44px 0 64px; }
.hb-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 52px; align-items: center; }
.hb-copy h1 { font-size: clamp(38px, 5.8vw, 66px); font-weight: 800; letter-spacing: -.04em; line-height: 1.03; }
.hb-copy h1 em { font-style: normal; background: linear-gradient(100deg, #0891b2, #8b5cf6 55%, #f0657a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-form { margin-top: 28px; display: grid; gap: 12px; max-width: 560px; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hb-f { display: grid; gap: 5px; }
.hb-f span { font-size: 12.5px; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.hb-f input, .hb-slug { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; width: 100%; }
.hb-f input:focus, .hb-slug:focus-within { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.hb-f input.hb-need { border-color: var(--danger); animation: hbShake .4s; }
@keyframes hbShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hb-colors { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px; }
.hb-colors button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; transition: transform .14s; }
.hb-colors button:hover { transform: scale(1.12); }
.hb-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--brand); transform: scale(1.08); }
.hb-slug { display: flex; align-items: center; gap: 0; padding: 0 12px 0 14px; cursor: text; }
.hb-slug-pre { color: var(--muted); font-weight: 600; white-space: nowrap; }
.hb-slug input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 650; padding: 0 2px; height: 46px; outline: 0; }
.hb-slug em { font-style: normal; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hb-slug em.ok { color: var(--ok); }
.hb-slug em.bad { color: var(--danger); }
.hb-slug em.wait { color: var(--muted); }
.hb-go { min-height: 56px; font-size: 17px; }
.hb-fine { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.hb-fine i { color: var(--ok); margin-right: -8px; }
.hb-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hb-phone { width: 320px; height: 620px; }
.hb-try { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 14.5px; cursor: pointer; }
.hb-try:hover { border-color: var(--brand); }
.hb-qr { position: absolute; bottom: 58px; left: 50%; transform: translateX(-50%); width: 250px; z-index: 5; display: grid; justify-items: center; gap: 6px; padding: 16px; border-radius: 22px; background: #fff; color: #111827; box-shadow: var(--shadow-lg); text-align: center; animation: up .2s ease; }
.hb-qr svg { width: 180px; height: 180px; display: block; }
.hb-qr small { color: #4b5563; font-size: 12.5px; line-height: 1.4; }
.hb-chip { right: -24px; bottom: 30%; }

/* ---------- home: works with ---------- */
.works { padding: 6px 0 40px; }
.works p { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.works-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.works-row span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.works-row svg { width: 16px; height: 16px; }

/* ---------- home: paper cards are a dead end ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain-grid article { display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.pain-old, .pain-new { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; font-weight: 600; line-height: 1.35; }
.pain-old { background: var(--surface2); color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.pain-new { background: var(--brand-soft); color: var(--brand-ink); }
.pain-old > i, .pain-new > i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.pain-arrow { justify-self: center; color: var(--brand); transform: rotate(90deg); }

/* ---------- colour bands: one bold idea each ---------- */
.band.colour { color: #fff; position: relative; overflow: hidden; }
.band.colour .sec-head h2 { color: #fff; }
.band.colour .sec-head p { color: rgba(255, 255, 255, .82); }
.band.colour .sec-head h2::after { background: rgba(255, 255, 255, .7); }
.band.cobalt { background: radial-gradient(60% 80% at 90% 0%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(135deg, #0b1b4d, #1e3a8a 55%, #0c4a6e); }
.band.violet { background: radial-gradient(60% 80% at 10% 100%, rgba(240, 101, 122, .4), transparent 60%), linear-gradient(135deg, #2e1065, #6d28d9 55%, #9d174d); }
.eyebrow.on-colour { background: rgba(255, 255, 255, .14); color: #fff; }
.on-colour-btn { background: #fff; color: #1e1b4b; }

/* ---------- home: ways to share ---------- */
.sh { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.sh-tabs { display: grid; gap: 8px; align-content: start; }
.sh-tabs button { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-weight: 650; font-size: 15.5px; text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.sh-tabs button:hover { background: rgba(255, 255, 255, .12); }
.sh-tabs button[aria-selected="true"] { background: #fff; color: #0b1b4d; transform: translateX(4px); }
.sh-tabs svg { width: 19px; height: 19px; }
.sh-stage { position: relative; min-height: 420px; border-radius: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); overflow: hidden; }
.sh-v { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 24px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.sh-v.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }
.sh-v > p { margin: 14px 0 0; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.5; text-align: center; }
.sh-v > p b { color: #fff; }
.sh-v > div { display: flex; align-items: center; justify-content: center; min-height: 0; }
/* QR */
.sv-cam { position: relative; width: 210px; height: 210px; padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.sv-cam svg { width: 100%; height: 100%; display: block; }
.sv-line { position: absolute; left: 10px; right: 10px; top: 14px; height: 3px; border-radius: 3px; background: #22d3ee; box-shadow: 0 0 18px #22d3ee; animation: svScan 2.2s ease-in-out infinite; }
@keyframes svScan { 50% { top: calc(100% - 17px); } }
/* tap */
.sv-tap { gap: 18px; }
.sv-p1, .sv-p2 { width: 120px; height: 210px; border-radius: 26px; background: #0f172a; border: 3px solid #334155; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.sv-p1 svg { width: 40px; height: 40px; color: #22d3ee; }
.sv-p2 { background: #fff; border-color: #e2e8f0; color: #111827; animation: svPop 3s ease-in-out infinite; text-align: center; padding: 10px; }
.sv-p2 b { font-size: 14px; } .sv-p2 small { font-size: 11px; color: #6b7280; }
.sv-waves { position: relative; width: 50px; height: 50px; }
.sv-waves i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #22d3ee; opacity: 0; animation: svWave 2.4s ease-out infinite; }
.sv-waves i:nth-child(2) { animation-delay: .6s; } .sv-waves i:nth-child(3) { animation-delay: 1.2s; }
@keyframes svWave { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes svPop { 0%, 30% { transform: scale(.94); opacity: .55; } 45%, 100% { transform: none; opacity: 1; } }
/* wallet */
.sv-wallet { position: relative; width: 260px; height: 250px; }
.sv-pass { position: absolute; inset: 20px 0 0; border-radius: 22px; padding: 18px; background: linear-gradient(160deg, #111827, #312e81); color: #fff; display: grid; align-content: start; gap: 2px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); z-index: 2; }
.sv-pass small { font-size: 11px; letter-spacing: .14em; opacity: .7; }
.sv-pass b { font-size: 20px; margin-top: 6px; } .sv-pass span { font-size: 13px; opacity: .8; }
.sv-pass > div { justify-self: center; margin-top: 12px; width: 96px; height: 96px; padding: 6px; border-radius: 10px; background: #fff; }
.sv-pass > div svg { width: 100%; height: 100%; display: block; }
.sv-pass.back { inset: 0 18px 30px; z-index: 1; background: linear-gradient(160deg, #0e7490, #22d3ee); opacity: .7; }
/* email signature */
.sv-mail { width: min(100%, 440px); border-radius: 20px; background: #fff; color: #111827; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.sv-mail-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f1f5f9; font-size: 13px; color: #475569; }
.sv-mail-top i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.sv-mail-top span { margin-left: 8px; font-weight: 600; }
.sv-mail-body { padding: 18px; display: grid; gap: 14px; }
.sv-mail-body p { margin: 0; font-size: 14.5px; }
.sv-sig { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.sv-sig > i { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; }
.sv-sig b { display: block; } .sv-sig small { display: block; color: #64748b; font-size: 12.5px; } .sv-sig em { font-style: normal; color: #4f46e5; font-weight: 700; font-size: 13px; }
/* video call */
.sv-call { display: grid !important; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; width: min(100%, 460px); height: 250px; }
.sv-tile { border-radius: 16px; background: linear-gradient(135deg, #334155, #1e293b); }
.sv-tile.me { grid-row: span 2; position: relative; overflow: hidden; }
.sv-bg { position: absolute; inset: 0; padding: 16px; background: linear-gradient(135deg, #0b1b4d, #4f46e5); color: #fff; }
.sv-bg b { display: block; font-size: 17px; } .sv-bg small { opacity: .8; font-size: 12px; }
.sv-bg > div { position: absolute; right: 12px; top: 12px; width: 64px; height: 64px; padding: 4px; border-radius: 8px; background: #fff; }
.sv-bg > div svg { width: 100%; height: 100%; display: block; }
.sv-head { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 110px; height: 120px; border-radius: 55px 55px 18px 18px; background: linear-gradient(#e8b38f 0 46%, #312e81 46%); }
/* any chat */
.sv-chat { flex-direction: column; gap: 10px; width: min(100%, 360px); align-items: stretch !important; }
.sv-msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; }
.sv-msg.in { align-self: flex-start; background: rgba(255, 255, 255, .92); color: #111827; border-bottom-left-radius: 6px; }
.sv-msg.out { align-self: flex-end; background: #22c55e; color: #05230f; border-bottom-right-radius: 6px; animation: svPop 3s ease-in-out infinite; }
.sv-prev { display: flex; gap: 10px; padding: 8px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .85); color: #111827; }
.sv-prev i { flex: none; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.sv-prev b { display: block; font-size: 13px; } .sv-prev small { color: #475569; font-size: 12px; }

/* ---------- home: the follow-up story ---------- */
.fl-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; max-width: 980px; margin: 0 auto; }
.fl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fl-step { display: flex; gap: 16px; padding: 22px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s; opacity: .62; }
.fl-step.on { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.fl-step > b { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); }
.fl-step.on > b { background: var(--brand-grad); color: #fff; }
.fl-step strong { display: block; color: var(--ink); font-size: 18px; }
.fl-step small { color: var(--muted); font-size: 15px; }
.fl-vis { position: sticky; top: 100px; height: 380px; border-radius: 28px; background: linear-gradient(160deg, #0f172a, #1e1b4b); overflow: hidden; }
.fl-pane { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; opacity: 0; transform: scale(.96); transition: opacity .35s, transform .35s; }
.fl-pane.on { opacity: 1; transform: none; }
.fl-form, .fl-mail { width: min(100%, 300px); display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: #fff; color: #111827; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.fl-form span { padding: 10px 12px; border-radius: 10px; background: #f1f5f9; font-size: 14px; }
.fl-form i, .fl-mail i { font-style: normal; text-align: center; padding: 11px; border-radius: 12px; background: #4f46e5; color: #fff; font-weight: 700; font-size: 14px; }
.fl-push { width: min(100%, 320px); display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: #111827; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.fl-push.ghost { opacity: .55; transform: scale(.94); }
.fl-push > i { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; }
.fl-push span { flex: 1; min-width: 0; } .fl-push b { display: block; font-size: 14px; } .fl-push small { font-size: 12.5px; color: #475569; } .fl-push em { font-style: normal; font-size: 12px; color: #64748b; }
.fl-mail small { color: #64748b; font-size: 12px; } .fl-mail b { font-size: 16px; } .fl-mail p { margin: 0; font-size: 14px; color: #374151; }
.fl-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.fl-board > div { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .08); min-height: 180px; }
.fl-board small { color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fl-board span { padding: 10px; border-radius: 10px; background: #fff; color: #111827; font-size: 12.5px; font-weight: 650; }
.fl-board .hot { box-shadow: 0 0 0 2px #f59e0b; } .fl-board .won { background: #dcfce7; color: #14532d; }

/* ---------- small live phones (templates) ---------- */
.phone.mini { display: block; width: 200px; height: 380px; border-radius: 34px; padding: 8px; flex: none; }
.phone.mini .phone-screen { inset: 8px; border-radius: 27px; pointer-events: none; overflow: hidden; }
.phone.mini .phone-notch { top: 14px; width: 60px; height: 18px; }
.phone.mini .phone-screen .bc-page { zoom: .55; padding-top: 58px; }
.tpl-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; margin: 0 -20px; padding-inline: 20px; }
.tpl-rail::-webkit-scrollbar { display: none; }
.tpl-mini { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 10px; width: 216px; color: #fff; text-decoration: none; text-align: center; transition: transform .2s; }
.tpl-mini:hover { transform: translateY(-6px); text-decoration: none; }
.tpl-mini b { font-size: 16px; } .tpl-mini small { margin-top: -6px; color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.35; }

/* ---------- home: paper vs BizCardy ---------- */
.vs { border-radius: 22px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.vs-head { border-top: 0; background: var(--surface2); font-weight: 750; color: var(--ink); }
.vs-row > span:first-child { font-weight: 600; color: var(--ink); }
.vs-no { color: var(--muted); }
.vs-yes { color: var(--ok); font-weight: 700; }
.vs-yes svg { width: 22px; height: 22px; }

/* ---------- home: pricing teaser ---------- */
.pp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.pp-plan { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 24px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pp-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); text-decoration: none; }
.pp-plan > b { font-size: 15px; color: var(--muted); font-weight: 700; }
.pp-plan > strong { font-family: var(--display); font-size: 40px; color: var(--ink); line-height: 1; }
.pp-plan > strong small { font-size: 15px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.pp-plan > small { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.pp-plan > span { margin-top: 6px; font-weight: 700; color: var(--brand-ink); }
.pp-plan.hot { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.pp-plan > em { position: absolute; top: -12px; right: 18px; font-style: normal; font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 99px; background: var(--brand-grad); color: #fff; }
.home-faq { max-width: 760px; margin: 48px auto 0; }

/* ---------- template gallery ---------- */
.tg-head { padding-bottom: 8px; }
.tg-head h1 em { font-style: normal; background: linear-gradient(100deg, #0891b2, #8b5cf6 55%, #f0657a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tg-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 18px; }
.tg-tile { display: grid; justify-items: center; gap: 12px; padding: 18px 10px 16px; border-radius: 28px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tg-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.tg-meta { display: grid; gap: 3px; }
.tg-meta b { font-size: 16.5px; color: var(--ink); }
.tg-meta small { color: var(--muted); font-size: 13.5px; }
.tg-meta em { margin-top: 6px; font-style: normal; font-weight: 700; color: var(--brand-ink); font-size: 14px; }
.tv { position: fixed; inset: 0; z-index: 120; background: rgba(8, 10, 22, .72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .16s ease; }
.tv[hidden] { display: none; }
.tv-in { width: min(100%, 560px); max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 16px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-lg); }
.tv-top { display: flex; align-items: center; gap: 10px; }
.tv-title { flex: 1; min-width: 0; display: grid; text-align: center; }
.tv-title b { font-family: var(--display); font-size: 19px; color: var(--ink); }
.tv-title small { color: var(--muted); font-size: 13.5px; }
.tv-count { min-width: 44px; text-align: right; color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tv-stage { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 0; touch-action: pan-y; }
.tv-phone { width: 300px; height: min(620px, calc(100dvh - 260px)); min-height: 380px; }
.tv-nav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tv-nav:hover { border-color: var(--brand); }
.tv-foot { display: grid; gap: 10px; justify-items: center; }
.tv-hint { margin: 0; color: var(--muted); font-size: 13.5px; text-align: center; }
.tv-foot .btn { width: min(100%, 360px); }
#tv-card.wx-in-r { animation: wxInR .32s cubic-bezier(.2, .8, .2, 1); }
#tv-card.wx-in-l { animation: wxInL .32s cubic-bezier(.2, .8, .2, 1); }
body.tv-open { overflow: hidden; }

/* ---------- use-case pages ---------- */
.uc-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.uc-copy h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.uc-copy h1 em { font-style: normal; background: linear-gradient(100deg, #0891b2, #8b5cf6 55%, #f0657a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uc-blocks { display: grid; gap: 14px; margin-top: 44px; }
.uc-block { display: flex; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.uc-block > b { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.uc-block h3 { font-size: 19px; margin: 0 0 4px; }
.uc-block p { margin: 0; color: var(--muted); }
.uc-demo { position: sticky; top: 92px; }
.uc-pin { display: grid; justify-items: center; gap: 10px; }
.uc-pin small { color: var(--muted); font-size: 13px; }

/* ---------- sign-up with a saved draft ---------- */
.auth-draft { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); }
.auth-draft > i { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.auth-draft > i svg { width: 19px; height: 19px; }
.auth-draft b { display: block; color: var(--ink); } .auth-draft small { color: var(--text); }

/* ---------- the pinned call-to-action bar (phones) ---------- */
.cta-bar { display: none; }
@media (max-width: 900px) {
  .cta-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 20px; background: color-mix(in srgb, var(--ink) 94%, transparent); color: var(--bg); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); backdrop-filter: blur(10px); }
  .cta-bar.on { transform: none; }
  .cta-bar span { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  .cta-bar b { font-size: 14.5px; } .cta-bar small { font-size: 12px; opacity: .72; }
  .cta-bar .btn { flex: none; min-height: 46px; }
  body.menu-open .cta-bar, body.tv-open .cta-bar { display: none; }
  .foot { padding-bottom: 90px; }
}

/* ---------- the phone menu: full screen, big targets ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; left: 0; right: 0; top: 68px; bottom: auto; height: calc(100dvh - 68px); border-radius: 0; /* the blurred header is the containing box here, so the height is set outright */ border: 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); gap: 6px; overflow-y: auto; background: var(--bg); box-shadow: none; }
  .nav-links > a { display: flex; align-items: center; min-height: 58px; padding: 0 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 18px; font-weight: 650; color: var(--ink); }
  .nav-links > a[aria-current] { border-color: var(--brand); }
  .nav-cta { margin-top: auto; padding-top: 16px; }
  .nav-cta .btn { min-height: 56px; font-size: 17px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- phone and tablet layouts ---------- */
@media (max-width: 900px) {
  .hb { padding: 26px 0 40px; }
  .hb-in, .uc-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hb-copy { display: contents; }
  .hb-copy > .eyebrow, .hb-copy > h1, .hb-copy > .lead { order: 1; }
  .hb-copy > .eyebrow { justify-self: start; }
  .hb-copy > .lead { margin-top: 0; }
  /* the card sits right above the form while you type, pinned like the editor */
  .hb-demo { order: 2; position: sticky; top: 72px; z-index: 6; margin: 0 -20px; padding: 10px 0 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hb-form { order: 3; margin-top: 0; }
  .hb-phone { width: 190px; height: 300px; border-radius: 32px; padding: 7px; }
  .hb-phone .phone-screen { inset: 7px; border-radius: 26px; }
  .hb-phone .phone-notch { top: 13px; width: 56px; height: 16px; }
  .hb-phone .phone-screen .bc-page { zoom: .5; padding-top: 58px; }
  .hb-chip { display: none; }
  .hb-try { min-height: 36px; font-size: 13.5px; }
  .hb-qr { bottom: auto; top: 100%; }
  .hb-row { grid-template-columns: minmax(0, 1fr); }
  .pain-grid, .pp { grid-template-columns: minmax(0, 1fr); }
  .sh { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sh-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -20px; padding: 0 20px 2px; }
  .sh-tabs::-webkit-scrollbar { display: none; }
  .sh-tabs button { flex: none; min-height: 46px; padding: 0 14px; font-size: 14.5px; }
  .sh-tabs button[aria-selected="true"] { transform: none; }
  .sh-stage { min-height: 400px; }
  .sh-v { padding: 18px; }
  .sh-v > p { font-size: 15px; }
  .sv-call { height: 200px; }
  .fl-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fl-vis { order: -1; top: 76px; height: 270px; z-index: 4; }
  .fl-step { padding: 18px; }
  .vs-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 70px; padding: 12px 14px; font-size: 14px; }
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .tg-tile { padding: 12px 6px; border-radius: 22px; }
  .tg-tile .phone.mini { width: 150px; height: 290px; border-radius: 28px; padding: 6px; }
  .tg-tile .phone.mini .phone-screen { inset: 6px; border-radius: 23px; }
  .tg-tile .phone.mini .phone-screen .bc-page { zoom: .42; }
  .tg-meta small { display: none; }
  .tv { padding: 0; align-items: stretch; }
  .tv-in { width: 100%; border-radius: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .tv-nav { display: none; }
  .tv-phone { width: min(100%, 330px); height: auto; min-height: 0; flex: 1; align-self: stretch; }
  .tv-stage { align-items: stretch; }
  .uc-demo { order: -1; position: static; }
  .uc-demo .phone { height: 480px; }
  .uc-blocks { margin-top: 28px; }
}
@media (max-width: 380px) { .tg-tile .phone.mini { width: 132px; height: 256px; } .tg-tile .phone.mini .phone-screen .bc-page { zoom: .37; } }

/* the builder hero: clip the glow sideways without breaking the pinned card, and never wider than the screen */
.hero.hb { overflow: clip; }
.hb-form, .hb-copy > * { min-width: 0; }
.hb-form { width: 100%; }
.hb-slug input { width: 0; }

/* footer: brand plus four columns */
.foot-in { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) and (min-width: 701px) { .foot-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } }

/* phones: the headline, then the live card, then the details */
@media (max-width: 900px) {
  .uc-copy { display: contents; }
  .uc-copy > .eyebrow, .uc-copy > h1, .uc-copy > .lead, .uc-copy > .hero-cta { order: 1; }
  .uc-copy > .eyebrow { justify-self: start; }
  .uc-copy > .lead { margin-top: 0; }
  .uc-demo { order: 2; }
  .uc-blocks { order: 3; margin-top: 4px; }
}
@media (max-width: 600px) {
  .hb-copy > .lead { display: none; }
  .hb-copy > h1 { font-size: 34px; }
}

/* ---------- the visitor's own theme choice (footer switch) beats the device setting ---------- */
:root[data-theme="dark"] {
    --ink: #f4f6fa; --text: #d3dae6; --muted: #94a3b8; --faint: #64748b; --line: #233049; --bg: #0a1120; --surface: #0f172a; --surface2: #18223a;
    --brand: #22d3ee; --brand-ink: #67e8f9; --brand-soft: #0d3140; --on-brand: #0a1120;
    --brand-grad: linear-gradient(90deg, #22d3ee, #a78bfa);
    --ok: #4ade80; --ok-soft: #10301f; --warn: #fbbf24; --warn-soft: #33270b; --danger: #f97066; --danger-soft: #3a1512;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 10px 30px rgba(0, 0, 0, .4); --shadow-lg: 0 30px 70px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #0f172a; --text: #1e293b; --muted: #61718f; --faint: #94a3b8; --line: #e2e7f0; --bg: #f4f6fa; --surface: #ffffff; --surface2: #ebeff5;
  --brand: #0c7d9d; --brand-ink: #0b6884; --brand-soft: #e0f5fa; --on-brand: #ffffff; --accent: #f0657a;
  --cyan: #06b6d4; --violet: #8b5cf6; --coral: #f0657a; --gold: #f4c20d; --navy: #0f172a; --navy-dark: #0a1120;
  --brand-grad: linear-gradient(90deg, #0c7d9d, #6d43d9); --brand-glow: linear-gradient(90deg, #06b6d4, #8b5cf6);
  --ok: #12924f; --ok-soft: #e4f7ec; --warn: #b45309; --warn-soft: #fff4dd; --danger: #d92d20; --danger-soft: #fdecea;
  --r-sm: 10px; --r: 14px; --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 4px 10px rgba(16, 24, 40, .04), 0 14px 34px rgba(16, 24, 40, .08);
  --shadow-lg: 0 30px 70px rgba(16, 24, 40, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  color-scheme: light;
}
:root[data-theme="dark"] .ft-tabs a[aria-selected="true"] { background: var(--brand-glow); color: #0a1120; }
@media (prefers-color-scheme: dark) { :root[data-theme="light"] .ft-tabs a[aria-selected="true"] { background: var(--navy); color: #fff; } }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.theme-btn svg { width: 16px; height: 16px; }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ===================== effects, scaled to the device (html[data-fx] is set by marketing.js) ===================== */
/* spotlight: a soft light follows the pointer across cards */
[data-fx="full"] .glow { position: relative; isolation: isolate; }
[data-fx="full"] .glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
[data-fx="full"] .glow.lit::after { opacity: 1; }

/* tilt: the hero phone leans toward the pointer, with light sliding across the glass */
[data-fx="full"] .tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
[data-fx="full"] .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, .22), transparent 45%); mix-blend-mode: soft-light; }

/* colour bands: the light drifts slowly behind the content */
.band.colour::before { content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(30% 40% at 30% 30%, rgba(255, 255, 255, .18), transparent 70%), radial-gradient(30% 40% at 70% 70%, rgba(255, 255, 255, .12), transparent 70%); }
.band.colour > .wrap { position: relative; z-index: 1; }
[data-fx="full"] .band.colour::before { animation: aurora 22s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(8%, -6%, 0) rotate(8deg) scale(1.08); } }

/* scroll-linked depth where the browser can do it without script: the hero glow and the template row */
@supports (animation-timeline: view()) {
  [data-fx="full"] .hb::before { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 600px; }
  [data-fx="full"] .tpl-rail .tpl-mini { animation: railRise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
}
@keyframes heroDrift { to { transform: translateY(120px) scale(1.15); opacity: .4; } }
@keyframes railRise { from { transform: translateY(40px) scale(.94); opacity: .3; } }

/* the theme switch cross-fades (same-page transition); page-to-page transitions are left off: pages that do not opt in (the dashboard, sign-up) make them fail */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* lite and off: no ambient motion at all; content still fades in on lite */
[data-fx="lite"] .band.colour::before, [data-fx="off"] .band.colour::before { animation: none; }
[data-fx="off"] .rv { opacity: 1; transform: none; transition: none; }
[data-fx="off"] .chip, [data-fx="off"] .sv-line, [data-fx="off"] .sv-waves i, [data-fx="off"] .sv-p2, [data-fx="off"] .sv-msg.out, [data-fx="off"] .sc-demo * { animation: none !important; }

/* the live exchange arriving on the desktop */
.hb-chip.hb-arrive { animation: hbArrive .9s cubic-bezier(.2, 1.4, .4, 1) both, float 6s ease-in-out 1s infinite; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 35%, transparent), var(--shadow-lg); }
@keyframes hbArrive { 0% { transform: translateX(40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* screenshots are wrapped in <picture> for WebP; lay them out as the image itself */
.ft-browser picture, .ft-phone picture { display: contents; }

.tg-tile[hidden] { display: none; }

/* lite and off: frosted glass is costly to scroll on weak graphics chips, so those devices get solid panels */
[data-fx="lite"] .nav, [data-fx="off"] .nav, [data-fx="lite"] .ft-tabs, [data-fx="off"] .ft-tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
[data-fx="lite"] .hb-demo, [data-fx="off"] .hb-demo, [data-fx="lite"] .pg-preview, [data-fx="off"] .pg-preview, [data-fx="lite"] .bm-stage, [data-fx="off"] .bm-stage { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
[data-fx="lite"] .cta-bar, [data-fx="off"] .cta-bar, [data-fx="lite"] .tv, [data-fx="off"] .tv { backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-fx="lite"] .chip, [data-fx="lite"] .sv-line, [data-fx="lite"] .sv-waves i { animation-duration: 0s; animation: none; }

/* small phones: the claim button comes sooner */
@media (max-width: 600px) { .hb-copy > .eyebrow { display: none; } .hb-phone { height: 270px; } .hb-demo { gap: 10px; padding: 8px 0 10px; } }
