/* SaaS launch template by uniDev.
   Brand colors: --p1 and --p2 drive the gradient, buttons and charts. */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --p1: #6a5cff;
  --p2: #c04bf0;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
[data-theme="light"] {
  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f0f0f8;
  --ink: #12122a;
  --muted: #5d5e78;
  --line: rgba(18, 18, 42, .1);
  --shadow: 0 1px 2px rgba(18, 18, 42, .06), 0 24px 48px -24px rgba(60, 50, 160, .25);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0a16;
  --surface: #12122a;
  --surface-2: #1a1a36;
  --ink: #ececfb;
  --muted: #9a9bbb;
  --line: rgba(236, 236, 251, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px -24px rgba(106, 92, 255, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
a { color: inherit; }
main { overflow-x: clip; } /* keeps the wide hero glow from widening the page on phones */
h1, h2, h3, h4 { margin: 0; letter-spacing: -.035em; line-height: 1.08; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--p1); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.grad { background: linear-gradient(100deg, var(--p1), var(--p2) 60%, #ff7aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header: floating pill */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top)); transition: transform .45s var(--ease); }
.top.hide { transform: translateY(-120%); }
.top-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.top.scrolled .top-inner { background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
#nav { display: flex; align-items: center; gap: 2px; }
#nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background-color .2s; }
#nav a:hover { color: var(--ink); background: var(--surface-2); }
#nav .nav-cta { margin-left: 6px; background: var(--ink); color: var(--bg); font-weight: 600; }
#nav .nav-cta:hover { background: var(--p1); color: #fff; }
.top-actions { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { border-color: var(--p1); }
.icon-btn:active { transform: scale(.93); }
[data-theme="light"] .i-moon, [data-theme="dark"] .i-sun { display: none; }
.menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 0; background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; font: 600 15px var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px -10px var(--p1), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--p1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--p1); }
.btn.light { background: #fff; color: #1b1240; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* Hero */
.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(120px, 18vh, 170px) var(--pad) 40px; max-width: var(--max); margin: 0 auto; display: grid; justify-items: center; gap: 22px; }
.glow { position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 140vw); height: 700px; transform: translateX(-50%); background: radial-gradient(40% 50% at 35% 40%, color-mix(in srgb, var(--p1) 35%, transparent), transparent 70%), radial-gradient(35% 45% at 68% 45%, color-mix(in srgb, var(--p2) 28%, transparent), transparent 70%); filter: blur(30px); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translateX(-50%) scale(1.12); opacity: .8; } }
.grid-bg { position: absolute; z-index: -1; inset: 0 -50vw; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%); opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); text-decoration: none; transition: border-color .2s; }
.pill:hover { border-color: var(--p1); }
.pill span { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; font-weight: 600; font-size: 12px; }
.hero h1 { font-size: clamp(44px, 7.6vw, 96px); letter-spacing: -.05em; line-height: 1; }
.lead { max-width: 56ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.waitlist { display: flex; gap: 8px; width: 100%; max-width: 480px; padding: 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.waitlist input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 16px var(--font); }
.waitlist input:focus { outline: none; }
.waitlist:focus-within { border-color: var(--p1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p1) 18%, transparent), var(--shadow); }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.5em; }

/* Live dashboard preview */
.stage { width: 100%; margin-top: 32px; perspective: 1600px; }
.app { position: relative; text-align: left; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 60px 120px -40px color-mix(in srgb, var(--p1) 45%, transparent); overflow: hidden; transform: rotateX(var(--tilt, 18deg)) scale(var(--sc, .94)); transform-origin: 50% 0; transition: transform .1s linear; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-bar i:nth-child(1) { background: #ff6159; } .app-bar i:nth-child(2) { background: #ffbd2e; } .app-bar i:nth-child(3) { background: #28c941; }
.app-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--muted); font-family: var(--mono); }
.app-body { display: grid; grid-template-columns: 64px 1fr; min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; gap: 12px; align-content: start; }
.side-item { height: 34px; border-radius: 10px; background: var(--surface-2); }
.side-item.on { background: linear-gradient(135deg, var(--p1), var(--p2)); }
.app-main { padding: 20px; display: grid; gap: 16px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; }
.up { color: #16a34a; }
.chart { border-radius: 14px; border: 1px solid var(--line); padding: 14px 16px 6px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 6px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chart svg { width: 100%; height: 170px; overflow: visible; }
.gridlines path { stroke: var(--line); stroke-dasharray: 4 6; }
.js .chart .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .stage.in .chart .line { animation: draw 2.2s var(--ease) .4s forwards; }
.js .chart .area { opacity: 0; transition: opacity 1.2s ease 1.4s; }
.js .stage.in .chart .area { opacity: 1; }
.dot-end { opacity: 0; }
.stage.in .dot-end { animation: pop .4s var(--ease) 2.4s forwards, pulse 2s 3s infinite; transform-origin: 600px 30px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes pulse { 50% { r: 8; } }
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { border-radius: 14px; border: 1px solid var(--line); padding: 14px 16px; font-size: 13px; display: grid; gap: 10px; }
.bar-set { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.bar-set span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--p1), var(--p2)); transform-origin: bottom; }
.js .bar-set span { transform: scaleY(0); transition: transform 1s var(--ease); }
.js .stage.in .bar-set span { transform: none; }
.bar-set span:nth-child(2) { transition-delay: .1s; opacity: .85; } .bar-set span:nth-child(3) { transition-delay: .2s; opacity: .7; } .bar-set span:nth-child(4) { transition-delay: .3s; opacity: .55; } .bar-set span:nth-child(5) { transition-delay: .4s; opacity: .45; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; animation: slidein .5s var(--ease); }
.feed li span { margin-left: auto; color: var(--muted); }
.feed i, .stream i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }

/* Logos */
.logos { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 24px; text-align: center; }
.logos p { font-size: 14px; color: var(--muted); }
.logos ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(28px, 5vw, 64px); }
.logos li { font-size: 22px; font-weight: 700; letter-spacing: -.04em; color: var(--muted); opacity: .75; }
.logos li:nth-child(2) { letter-spacing: .12em; font-weight: 800; } .logos li:nth-child(3) { font-weight: 400; font-style: italic; } .logos li:nth-child(6) { font-family: var(--mono); font-weight: 500; font-size: 19px; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--pad); }
.head { display: grid; gap: 14px; max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.head p { color: var(--muted); font-size: 18px; }

/* Bento with cursor spotlight */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 260px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.t-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.t-wide .tile-copy { flex: 0 0 38%; }
.tile-copy { display: grid; gap: 8px; }
.tile h3 { font-size: 22px; }
.tile p { color: var(--muted); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--p1) 14%, transparent), transparent 60%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--p1), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.stream { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 8px; }
.stream li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; animation: slidein .5s var(--ease); }
.stream li span { margin-left: auto; color: var(--muted); font-size: 13px; }
.funnel { display: grid; gap: 6px; }
.funnel span { width: var(--w); padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--p1), var(--p2)); transform-origin: left; }
.js .funnel span { transform: scaleX(.1); opacity: 0; transition: transform .9s var(--ease), opacity .5s; }
.js .tile.in .funnel span { transform: none; opacity: 1; }
.funnel span:nth-child(2) { transition-delay: .1s; opacity: .85; } .funnel span:nth-child(3) { transition-delay: .2s; } .funnel span:nth-child(4) { transition-delay: .3s; }
.heat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--p1); opacity: var(--o); transition: opacity .6s; }
.shield { color: var(--p1); }
.shield svg { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.code { margin: 0; padding: 16px; border-radius: 14px; background: #0f0f22; color: #d7d7ff; font: 13px/1.7 var(--mono); overflow-x: auto; }
.c-k { color: #c792ea; } .c-s { color: #a5e3a1; } .c-f { color: #82aaff; }

/* Tabs */
.tabs { display: grid; gap: 20px; }
.tab-list { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab-list button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s; }
.tab-list button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 12px; }
.tab-list button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab-list button[aria-selected="true"] span { background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); animation: fade .5s var(--ease); }
.panel h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: 17px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.panel-art { min-height: 220px; border-radius: 18px; padding: 24px; display: grid; gap: 14px; align-content: center; background: radial-gradient(80% 80% at 100% 0%, color-mix(in srgb, var(--p2) 25%, transparent), transparent), linear-gradient(160deg, color-mix(in srgb, var(--p1) 18%, var(--surface-2)), var(--surface-2)); font-family: var(--mono); font-size: 14px; }
.panel-art span { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.panel-art .ok { color: #16a34a; }
.art-2 .ans { display: flex; align-items: flex-end; gap: 10px; height: 110px; width: 100%; }
.art-2 .ans i { flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: linear-gradient(to top, var(--p1), var(--p2)); animation: grow .8s var(--ease) both; transform-origin: bottom; }
.art-2 .ans i:nth-child(2) { animation-delay: .1s; } .art-2 .ans i:nth-child(3) { animation-delay: .2s; } .art-2 .ans i:nth-child(4) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); } }
.art-3 .msg { font-family: var(--font); display: grid; gap: 4px; }
.art-3 .msg b { color: var(--p1); }

/* Pricing */
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.bill { position: relative; z-index: 1; min-height: 42px; padding: 0 20px; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); border-radius: 999px; cursor: pointer; transition: color .3s; }
.bill.on { color: #fff; }
.bill em { font-style: normal; color: #16a34a; margin-left: 4px; transition: color .3s; }
.bill.on em { color: #d1fae5; }
.bill-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(135deg, var(--p1), var(--p2)); transition: transform .45s var(--ease); }
.billing.yearly .bill-thumb { transform: translateX(100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--p1), var(--p2)) border-box; border: 2px solid transparent; box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); }
.plan h3 { font-size: 22px; }
.plan-sub { color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 2px; }
.price .cur { font-size: 24px; font-weight: 600; align-self: flex-start; margin-top: 8px; }
.price b { font-size: 56px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; transition: transform .3s var(--ease), opacity .3s; }
.price b.flip { transform: translateY(-30%); opacity: 0; }
.price .per { color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; transform: translateY(3px); background: color-mix(in srgb, var(--p1) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236a5cff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Testimonials marquee */
.voices { overflow: hidden; padding: 24px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.voice-row { display: flex; width: max-content; gap: 16px; animation: marquee 40s linear infinite; }
.voices:hover .voice-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.voice { margin: 0; width: 340px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.voice blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.voice figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.voice figcaption span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 12px; }

/* FAQ */
.faq { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--p1) 45%, transparent); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; min-height: 60px; font-weight: 600; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { padding: 0 22px 20px; color: var(--muted); animation: fade .4s var(--ease); }

/* CTA */
.cta-wrap { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) clamp(72px, 10vw, 120px); }
.cta { position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 16px; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 32px; color: #fff; background: radial-gradient(60% 80% at 20% 0%, #8f84ff, transparent 60%), radial-gradient(50% 70% at 90% 100%, #ff7aa8, transparent 60%), linear-gradient(135deg, var(--p1), var(--p2)); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(32px, 4.8vw, 60px); max-width: 18ch; }
.cta p { opacity: .9; font-size: 18px; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-grid { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 10px; max-width: 30ch; }
.foot h4 { font-size: 14px; margin-bottom: 12px; letter-spacing: -.01em; }
.foot-grid > div:not(.foot-brand) { display: grid; gap: 8px; align-content: start; }
.foot-grid a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .logo { color: var(--ink); }
.copy { max-width: var(--max); margin: 0 auto; padding: 16px var(--pad) max(28px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .stage[data-reveal] { transform: translateY(60px); }
.js .stage[data-reveal].in { transform: none; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  #nav {
    position: fixed; left: var(--pad); right: var(--pad); top: calc(max(12px, env(safe-area-inset-top)) + 72px); z-index: 60;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: top right; visibility: hidden; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  #nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .35s var(--ease); }
  #nav a { padding: 14px 16px; font-size: 17px; color: var(--ink); }
  #nav .nav-cta { margin: 6px 0 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); }
  .top.menu-open .top-inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); border-color: var(--line); }
  .top.menu-open { transform: none; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .app { --tilt: 0deg !important; --sc: 1 !important; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 12px; gap: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hide-sm { display: none; }
  .app-row { grid-template-columns: 1fr; }
  .chart svg { height: 120px; }
  .bento { grid-template-columns: 1fr; }
  .t-wide { flex-direction: column; align-items: stretch; }
  .tile { min-height: 0; }
  .voice { width: 280px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .stage[data-reveal] { opacity: 1; transform: none; }
  .js .chart .line { stroke-dashoffset: 0; }
  .js .chart .area, .dot-end { opacity: 1; }
  .js .bar-set span, .js .funnel span { transform: none; opacity: 1; }
  .app { transform: none; }
}
