/* InteliBuy landing page. Light warm page, dark hero, brand-gradient light.
   Motion states live at the end and only apply under html.js:not(.reduced). */
:root {
  --page: #F3F1EC;
  --page-2: #ECE9E2;
  --ink: #10151F;
  --ink-2: #3E4756;
  --muted: #5E6676;
  --line: rgba(16, 21, 31, .10);
  --line-2: rgba(16, 21, 31, .16);
  --card: #FFFFFF;
  --dark: #05070D;
  --dark-2: #0B1220;
  --on-dark: #F4F6FA;
  --on-dark-2: #B8C2D3;
  --g1: #0593C6; --g2: #7A55E0; --g3: #D83995;
  --grad: linear-gradient(90deg, var(--g1), var(--g2) 52%, var(--g3));
  --google: #0593C6; --meta: #D83995; --crm: #7A55E0; --plan: #8FA3B5;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-xl: 30px; --r-lg: 22px; --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.reduced { scroll-behavior: auto; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--card); color: var(--ink); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- type, buttons, labels ---------- */
.h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; flex-wrap: wrap; gap: 20px; }
.sec-head-row > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.sec-sub { max-width: 58ch; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: 0 1px 2px rgba(16, 21, 31, .05); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.badge-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: var(--on-dark-2); box-shadow: none; }
.lbl { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--card); color: var(--ink); }
.btn-light:hover { background: #E9ECF3; }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-dark:hover { background: #262E3C; }
.btn-outline-light, .btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover, .btn-ghost:hover { border-color: rgba(255, 255, 255, .6); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.sw-google { background: var(--google); } .sw-meta { background: var(--meta); } .sw-crm { background: var(--crm); } .sw-plan { background: transparent; border: 1.5px dashed var(--plan); }

/* ---------- 1 hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); border-radius: 0 0 40px 40px; min-height: max(760px, 100svh); display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* petal flower: the owner's wireframe (petal sizes, rotations, gradients, 60s spin),
   zoomed in (--zoom) so the petals fill the hero instead of sitting as a small bloom */
.hero-bg .petals { --zoom: 1.7; position: absolute; left: 50%; top: 100%; width: 0; height: 0; transform: scale(var(--zoom)); animation: petalspin 60s linear infinite; }
.hero-bg .petal { position: absolute; left: 0; top: 0; border-radius: 50%; transform-origin: 0 50%; filter: blur(12px); opacity: .95; }
@keyframes petalspin { from { transform: scale(var(--zoom)) rotate(0deg); } to { transform: scale(var(--zoom)) rotate(360deg); } }
@media (max-width: 760px) { .hero-bg .petals { --zoom: 1.05; } }
@media (prefers-reduced-motion: reduce) { .hero-bg .petals { animation: none; } }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--dark) 0%, rgba(5, 7, 13, .85) 30%, rgba(5, 7, 13, 0) 62%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark .p { fill: #fff; }
.brand-word { font-size: 21px; letter-spacing: -.01em; font-weight: 400; }
.brand-word b { font-weight: 700; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--on-dark-2); }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta { display: flex; gap: 10px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: clamp(28px, 6vh, 64px); }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.tag-dark { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); color: var(--on-dark-2); }
.tag-dots { display: inline-flex; }
.tag-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dark); margin-left: -6px; }
.tag-dots i:first-child { margin-left: 0; }
.d-google { background: var(--google); } .d-meta { background: var(--meta); } .d-crm { background: var(--crm); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.hero-sub { max-width: 56ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--on-dark-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-cards-wrap { margin-top: auto; padding-top: 40px; padding-bottom: clamp(28px, 6vh, 60px); }
.hero-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: end; }
.glass { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border: 1px solid rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 50px rgba(0, 0, 0, .28); min-width: 0; }
.glass-clear { background: linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .06)), rgba(8, 10, 18, .46); color: var(--on-dark); text-shadow: 0 1px 2px rgba(5, 7, 13, .45); }
.glass-clear .lbl { color: #DCE3EE; }
.glass-frost { background: rgba(255, 255, 255, .86); color: var(--ink); }
.hc-1, .hc-5 { min-height: 300px; } .hc-2, .hc-4 { min-height: 250px; } .hc-3 { min-height: 214px; }
.hc-body { display: flex; flex-direction: column; gap: 10px; }
.hc-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.hc-foot { font-size: 12.5px; line-height: 1.45; opacity: 1; }
.hc-num { font-size: 25px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hc-big { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.hc-bar { height: 10px; border-radius: 6px; background: rgba(16, 21, 31, .1); overflow: hidden; }
.hc-bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.hc-bubble { background: rgba(255, 255, 255, .92); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; box-shadow: 0 2px 8px rgba(16, 21, 31, .08); }
.hc-spark, .hc-donut { min-height: 72px; }
.hc-donut svg, .hc-spark svg { width: 100%; height: auto; display: block; }

/* ---------- 2 platform strip ---------- */
.platforms { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 72px; padding-bottom: 64px; }
.plat-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 500; color: var(--ink-2); }
.plat-list li { display: inline-flex; align-items: center; }
.plat-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--page-2); font-size: 12px; color: var(--muted); }
.plat-soon { color: var(--muted); font-weight: 400; }

/* ---------- 3 statement ---------- */
.statement { padding-top: 40px; padding-bottom: clamp(80px, 12vw, 140px); }
.state-text { max-width: 22ch; margin: 0 auto; text-align: center; font-weight: 700; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
.pill-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1em; margin: 0 .12em; border-radius: .32em; background: var(--card); border: 1px solid var(--line); vertical-align: -.12em; box-shadow: 0 2px 6px rgba(16, 21, 31, .06); }
.pill-icon svg { width: .56em; height: .56em; fill: none; stroke: var(--g2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.strike { --k: 1; color: rgba(94, 102, 118, calc(1 - var(--k) * .45)); text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: rgba(216, 57, 149, var(--k)); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.state-end { display: block; margin-top: .5em; }

/* ---------- 4 bento ---------- */
.bento-sec { position: relative; padding-bottom: clamp(80px, 12vw, 140px); }
.bento-glow { position: absolute; inset: 8% 0 4%; z-index: -1; pointer-events: none; }
.bento-glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bento-glow .g1 { width: 46%; height: 42%; left: 2%; top: 14%; background: radial-gradient(closest-side, var(--g1), transparent); }
.bento-glow .g2 { width: 44%; height: 40%; right: 0; top: 34%; background: radial-gradient(closest-side, var(--g3), transparent); }
.bento-glow .g3 { width: 50%; height: 36%; left: 25%; bottom: 2%; background: radial-gradient(closest-side, var(--g2), transparent); }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bc { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 480px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; isolation: isolate; }
.bc-scene { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.bc-copy { display: flex; flex-direction: column; gap: 8px; max-width: 52ch; }
.bc-copy-top { margin-bottom: 4px; }
.bc-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.bc h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
.bc-copy p { font-size: 15.5px; line-height: 1.55; }
.bc-dark { background: var(--dark-2); color: var(--on-dark); }
.bc-dark .bc-copy p { color: var(--on-dark-2); }
.bc-dark::before { content: ""; position: absolute; z-index: -1; width: 80%; height: 70%; left: -10%; bottom: -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 147, 198, .55), transparent); filter: blur(30px); }
.bc-frost { background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .8); }
.bc-frost .bc-copy p, .bc-white .bc-copy p { color: var(--ink-2); }
.bc-white { background: var(--card); border: 1px solid var(--line); }
.bc-white::before { content: ""; position: absolute; z-index: -1; width: 70%; height: 60%; left: 15%; top: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 57, 149, .32), rgba(122, 85, 224, .16) 55%, transparent); filter: blur(24px); }
.bc-accent { background: linear-gradient(150deg, #6A3FD6, #B2328E 70%, #D83995); color: #fff; }
.bc-accent .bc-copy p { color: rgba(255, 255, 255, .92); }
.sec-cta { display: flex; justify-content: center; margin-top: 36px; }


/* ---------- 5 also inside ---------- */
.inside { padding-bottom: clamp(80px, 12vw, 140px); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mini-ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--page); }
.mini-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--g2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.mini p { font-size: 15px; color: var(--ink-2); }

/* ---------- 6 steps ---------- */
.how { padding-bottom: clamp(80px, 12vw, 140px); }
.steps-track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 28px; }
.steps-bar { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font: 500 13px var(--mono); color: var(--g2); }
.steps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 7 where answers land ---------- */
.lands { padding-bottom: clamp(80px, 12vw, 140px); }
.lands-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.land { border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); }
.land h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.land p:not(.lbl) { color: var(--ink-2); font-size: 15.5px; }
.land-soon { background: transparent; border-style: dashed; border-color: var(--line-2); }

/* ---------- 8 proof ---------- */
.proof { padding-bottom: clamp(80px, 12vw, 140px); }
.proof-grid { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat-v { font-weight: 700; font-size: clamp(38px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-end; }
.stat-l { font-size: 15.5px; color: var(--ink-2); }
.stat-s { font: 12px/1.5 var(--mono); color: var(--muted); }
.testimonials { margin-top: 16px; }

/* ---------- 9 early access ---------- */
.access { padding-bottom: clamp(80px, 12vw, 140px); }
.access-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--dark-2); color: var(--on-dark); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; isolation: isolate; }
.access-card::before { content: ""; position: absolute; z-index: -1; width: 60%; height: 120%; right: -15%; top: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 57, 149, .45), rgba(122, 85, 224, .25) 50%, transparent); filter: blur(30px); }
.access-card > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.access-card .sec-sub { color: var(--on-dark-2); }
.access-list { display: grid; gap: 12px; }
.access-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.access-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 35%, #000 37%); mask: radial-gradient(circle, transparent 35%, #000 37%); }
.access-card .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- 10 FAQ ---------- */
.faq { max-width: 880px; padding-bottom: clamp(80px, 12vw, 140px); }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--sans); color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- 11 CTA + footer ---------- */
.cta { padding-bottom: 72px; }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cta-glow { position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 90%; height: 110%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 57, 149, .55), rgba(122, 85, 224, .35) 45%, rgba(5, 147, 198, .2) 70%, transparent); filter: blur(30px); }
.cta-card .sec-sub { color: var(--on-dark-2); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 6px; }
.cta-mail { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: var(--on-dark-2); max-width: 100%; }
.cta-mail .mono { user-select: all; overflow-wrap: anywhere; }
.copy-btn { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: var(--on-dark); font: 500 13px var(--sans); cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .2); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; padding-top: 8px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-note { grid-column: 1 / -1; font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cards { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
  .hero-cards > * { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .bento, .lands-grid, .steps, .proof-grid, .access-card { grid-template-columns: minmax(0, 1fr); }
  .bc { min-height: 0; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .hero { border-radius: 0 0 28px 28px; }
  .hero-cards { grid-template-columns: repeat(5, minmax(220px, 78vw)); }
  .hc-1, .hc-5, .hc-2, .hc-4, .hc-3 { min-height: 200px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .btn-light.btn-sm { padding: 0 12px; }
}
@media (max-width: 560px) { .tag { padding-right: 14px; } }

/* ---------- bento scenes: floating stacked layers ---------- */
.stack { position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding-top: 22px; }
.layer { border-radius: 16px; }
.layer-front { position: relative; z-index: 2; padding: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 24px 48px -18px rgba(5, 7, 13, .45), 0 2px 6px rgba(5, 7, 13, .08); border: 1px solid rgba(255, 255, 255, .6); }
.bc-dark .layer-front, .bc-accent .layer-front { background: rgba(22, 30, 48, .82); color: var(--on-dark); border-color: rgba(255, 255, 255, .16); }
.layer-back { position: absolute; z-index: 1; left: 8%; right: 8%; top: 0; height: 60px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7); }
.layer-file { position: absolute; z-index: 1; left: 6%; right: 6%; top: -14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 34px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: var(--on-dark-2); }
.layer-file .xl { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #1F7A47; color: #fff; font: 700 11px var(--mono); }
.layer-file .dim { margin-left: auto; }
.layer-float { position: absolute; z-index: 3; right: -4%; bottom: -18px; padding: 12px; display: flex; align-items: center; gap: 10px; background: var(--card); box-shadow: 0 18px 36px -14px rgba(5, 7, 13, .4); font-size: 12.5px; line-height: 1.6; }
.dim { opacity: .65; font-size: 11.5px; }
.mt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mt th { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .65; text-align: left; padding: 0 6px 8px; }
.mt td { padding: 8px 6px; border-top: 1px solid currentColor; border-top-color: rgba(127, 127, 127, .18); white-space: nowrap; }
.mt .num { text-align: right; }
.pp { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 500 11.5px var(--mono); }
.pp-good { background: rgba(31, 166, 106, .16); color: #1FA66A; }
.pp-bad { background: rgba(255, 106, 79, .18); color: #FF7A5C; }
.pp-warn { background: rgba(240, 180, 41, .18); color: #E0A219; }
.bc-white .pp-bad, .bc-frost .pp-bad { color: #D2432A; }
.tone-bad { color: #D2432A; }
.bc-accent .tone-bad { color: #FFD3C8; }
/* pace calculator */
.calc { display: flex; flex-direction: column; gap: 10px; }
.calc-l { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.calc input[type=range] { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--g2) var(--fill), rgba(16, 21, 31, .12) var(--fill)); cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--g2); box-shadow: 0 2px 8px rgba(5, 7, 13, .2); }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--g2); }
.calc-row { display: flex; justify-content: space-between; gap: 10px; }
.calc-need { display: flex; flex-direction: column; font-weight: 700; font-size: 32px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-need small { font: 400 13px var(--sans); color: var(--muted); letter-spacing: 0; }
.calc-msg { font-size: 13px; color: var(--ink-2); }
/* channel chart */
.chart-card .dim { display: block; margin-bottom: 8px; }
.bars-host { height: 170px; }
.bars-host svg { display: block; }
.bars-host text { fill: var(--muted); font: 10px var(--mono); }
.donut-card svg { flex: none; }
/* ask */
.ask { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 0; min-height: 300px; }
.bubble-q { align-self: flex-start; max-width: 80%; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 14px; box-shadow: 0 10px 24px -12px rgba(5, 7, 13, .5); }
.bubble-q .dim { font-size: 10.5px; }
.answer { display: flex; flex-direction: column; gap: 10px; }
.answer-s { font-size: 14px; line-height: 1.5; }
/* sparkline in the hero card */
.kpi-spark path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi-spark .prev { stroke: rgba(255, 255, 255, .45); stroke-dasharray: 3 4; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 0; }
@media (max-width: 560px) {
  .layer-float { position: relative; right: auto; bottom: auto; margin-top: 12px; }
  .mt { font-size: 12px; }
  .mt td, .mt th { padding-left: 4px; padding-right: 4px; }
  .stack { padding-top: 18px; }
}

/* ---------- motion (only when JS runs and motion is allowed; final states otherwise) ---------- */
html.js:not(.reduced) [data-rise] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity .5s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js:not(.reduced) [data-rise].in { opacity: 1; transform: none; }
html.js:not(.reduced) .strike { --k: 0; }
html.js:not(.reduced) .steps-bar { transform: scaleX(0); }
[data-drift] { will-change: transform; }
.roll { display: inline-flex; align-items: flex-end; height: 1em; line-height: 1; overflow: hidden; }
.roll-col { display: inline-block; height: 1em; overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; transform: translate3d(0, 0, 0); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.roll-strip span { display: block; height: 1em; line-height: 1; }
.rolled .roll-strip { transform: translate3d(0, calc(var(--d) * -1em), 0); }
.roll-col:nth-child(2) .roll-strip { transition-delay: .08s; } .roll-col:nth-child(4) .roll-strip { transition-delay: .16s; } .roll-col:nth-child(5) .roll-strip { transition-delay: .22s; }
.roll-text { display: inline-block; }
@media (max-width: 560px) {
  .bc { padding: 20px; border-radius: 24px; }
  .layer-front { padding: 12px; overflow-x: auto; }
  .mt { font-size: 11.5px; }
  .mt td:first-child .sw { display: none; }
  .pp { padding: 2px 5px; font-size: 10.5px; }
  .layer-file .dim { display: none; }
  .layer-file .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
.hc-donut svg { width: 96px; height: 96px; }
.layer-file .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.layer-file .dim { flex: none; white-space: nowrap; }
@media (max-width: 1100px) { .layer-file .dim { display: none; } }

/* ======================================================================
   Live motion (Framer-inspired patterns, our own code).
   Everything below runs only under html.motion-on, which is set when motion
   is allowed and IntersectionObserver exists. Reduced motion: all off.
   ====================================================================== */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* entrance: nav drops in, hero copy slides in, glass cards fall into place */
@keyframes nav-in { from { transform: translate3d(0, -120%, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes copy-in { from { transform: translate3d(0, 28px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop-in { from { transform: translate3d(0, -160px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
html.motion-on .nav { animation: nav-in .9s var(--ease) .1s both; }
html.motion-on .hero-copy > * { animation: copy-in .8s var(--ease) both; }
html.motion-on .hero-copy > :nth-child(1) { animation-delay: .05s; } html.motion-on .hero-copy > :nth-child(2) { animation-delay: .12s; }
html.motion-on .hero-copy > :nth-child(3) { animation-delay: .2s; } html.motion-on .hero-copy > :nth-child(4) { animation-delay: .28s; }
html.motion-on .hero-cards > .hc { animation: drop-in .85s var(--spring) both, bob 5.2s ease-in-out infinite; }
html.motion-on .hero-cards > .hc-1 { animation-delay: .25s, 1.3s; } html.motion-on .hero-cards > .hc-2 { animation-delay: .32s, 2.4s; }
html.motion-on .hero-cards > .hc-3 { animation-delay: .39s, 1.8s; } html.motion-on .hero-cards > .hc-4 { animation-delay: .46s, 2.9s; }
html.motion-on .hero-cards > .hc-5 { animation-delay: .53s, 2.1s; }

/* floating scene layers inside the bento cards */
html.motion-on .bc .layer-front:not(.answer) { animation: bob 6s ease-in-out infinite; }
html.motion-on .bc:nth-child(2) .layer-front { animation-delay: -1.5s; } html.motion-on .bc:nth-child(3) .layer-front { animation-delay: -3s; }
html.motion-on .bc:nth-child(4) .layer-front { animation-delay: -4.5s; }
html.motion-on .layer-float { animation: bob 4.6s ease-in-out -2s infinite; }

/* lines that draw themselves: sparklines, plan line, report ring */
@keyframes draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
html.motion-on .kpi-spark .now { stroke-dasharray: 1; animation: draw 4.8s ease-in-out infinite; }
.hc-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.hc-ring circle { fill: none; stroke-width: 4; stroke: rgba(255, 255, 255, .22); }
.hc-ring .ring-on { stroke: #fff; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.motion-on .hc-ring .ring-on { animation: draw 3.6s ease-in-out infinite; }

/* plan card: file drops onto the table, rows fill in, a highlight runs down the pace column */
@keyframes row-in { from { opacity: 0; transform: translate3d(-12px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0%, 100% { opacity: 0; transform: translate3d(0, 0, 0); } 10%, 70% { opacity: 1; } 80% { opacity: 0; transform: translate3d(0, 400%, 0); } }
html.motion-on #scene-plan.play .layer-file { animation: drop-in .9s var(--spring) both; }
html.motion-on #scene-plan.play tbody tr { animation: row-in .5s var(--ease) both; }
html.motion-on #scene-plan.play tbody tr:nth-child(1) { animation-delay: .55s; } html.motion-on #scene-plan.play tbody tr:nth-child(2) { animation-delay: .7s; }
html.motion-on #scene-plan.play tbody tr:nth-child(3) { animation-delay: .85s; } html.motion-on #scene-plan.play tbody tr:nth-child(4) { animation-delay: 1s; }
#scene-plan .layer-front { position: relative; overflow: hidden; }
#scene-plan .layer-front::after { content: ""; position: absolute; right: 12px; top: 42px; width: 92px; height: 34px; border-radius: 10px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); opacity: 0; pointer-events: none; }
html.motion-on #scene-plan.play .layer-front::after { animation: sweep 4.2s ease-in-out 1.6s infinite; }

/* Google + Meta card: bars grow, plan line draws, donut fills */
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dash-in { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
#scene-channels .bar { transform-box: fill-box; transform-origin: bottom; }
html.motion-on #scene-channels.play .bar { animation: grow .7s var(--ease) both; animation-delay: calc(var(--d) * 35ms + .2s); }
html.motion-on #scene-channels.play .plan-path { stroke-dashoffset: 0; animation: dash-in 1.6s ease-out .9s both; }
html.motion-on #scene-channels.play .donut-card svg { animation: copy-in .8s var(--spring) 1.1s both; }

/* Ask + hero chat: caret, thinking dots, answer rises in */
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes think { 0%, 80%, 100% { transform: translate3d(0, 0, 0); opacity: .35; } 40% { transform: translate3d(0, -5px, 0); opacity: 1; } }
.caret { display: none; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; }
html.motion-on .ask.typing .caret { display: inline-block; animation: caret 1s steps(1) infinite; }
.thinking { position: absolute; left: 0; top: 96px; display: none; gap: 5px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
html.motion-on .ask.thinking-on .thinking { display: inline-flex; }
html.motion-on .ask.thinking-on .thinking i { animation: think 1s ease-in-out infinite; }
html.motion-on .ask.thinking-on .thinking i:nth-child(2) { animation-delay: .15s; } html.motion-on .ask.thinking-on .thinking i:nth-child(3) { animation-delay: .3s; }
html.motion-on .ask .answer { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .5s var(--ease), transform .6s var(--spring); }
html.motion-on .ask .answer.show { opacity: 1; transform: none; }
.hc-bubble.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--ink); }
html.motion-on .hc-bubble.typing::after { animation: caret 1s steps(1) infinite; }
html.motion-on .hc-3 .hc-foot { transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.motion-on .hc-3 .hc-foot.hide { opacity: 0; transform: translate3d(0, 8px, 0); }

/* hover: cards lift, a soft glow follows the pointer */
.bc, .glass, .mini, .land, .stat, .steps li { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bc::after, .glass::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 60%); }
.glass { position: relative; }
.bc-white::after, .bc-frost::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(122, 85, 224, .14), transparent 60%); }
.bc > *, .glass > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .bc:hover, html.js:not(.reduced) .bc[data-rise].in:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 30px 60px -30px rgba(5, 7, 13, .45); }
  .bc:hover::after, .glass:hover::after { opacity: 1; }
  .mini:hover, .land:hover, .stat:hover, .steps li:hover, html.js:not(.reduced) [data-rise].in.mini:hover, html.js:not(.reduced) [data-rise].in.land:hover, html.js:not(.reduced) [data-rise].in.stat:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 18px 40px -24px rgba(5, 7, 13, .35); }
}

/* reduced motion: every animation off, final states only */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.bc-accent .bubble-q, .bc .bubble-q { color: var(--ink); }
.bc-accent .bubble-q .dim { color: var(--muted); opacity: 1; }

/* review fixes: kickers keep their own size inside cards; ask bubble reserves two lines */
.bc-copy .bc-kicker { font-size: 12px; }
.bubble-q { min-height: 62px; }
.bc-accent .bc-kicker { opacity: .85; }
@media (max-width: 560px) { .ask { min-height: 340px; } }


/* performance: the hero's endless animations stop while the hero is off screen */
.hero.paused .petals, .hero.paused .hc, .hero.paused .hc * { animation-play-state: paused !important; }

@media (max-width: 860px) { .stats { grid-template-columns: minmax(0, 1fr); } }
