/*
 * Author: Hariram S <ramhari4090@gmail.com>
 *
 * Styles for the marketing home page: the app's colours (violet "wave",
 * royal blue, sky and pink glows on a cool canvas), Plus Jakarta Sans, and the
 * page's motion. Motion is CSS-first so it runs off the main thread; home.js
 * only flips data attributes and classes. Looping animations are paused while
 * off screen (.is-live is set by home.js) and everything settles to its final
 * state under prefers-reduced-motion.
 *
 * Only transform, translate, scale, opacity, filter and clip-path animate.
 * backdrop-filter is limited to the fixed navigation and its menu.
 *
 * Used by:
 *     landing/index.html
 *
 * Depends on:
 *     landing/assets/home.js (data-stage, data-active, .is-in, .is-live, --mx/--my)
 *     landing/assets/site.js (.scrolled on #nav, .open on #navMobile, .consent-banner)
 */

:root {
  --ink: hsl(224 24% 10%);
  --ink-2: hsl(224 18% 22%);
  --muted: hsl(222 10% 40%);
  --faint: hsl(222 12% 62%);
  --canvas: hsl(222 25% 97%);
  --card: #fff;
  --line: hsl(224 24% 10% / 0.08);
  --violet: hsl(250 100% 66%);
  --royal: hsl(226 90% 56%);
  --sky: hsl(196 95% 55%);
  --pink: hsl(330 90% 68%);
  --amber: hsl(36 96% 54%);
  --mint: hsl(158 64% 42%);
  --aurora: linear-gradient(120deg, var(--violet) 0%, var(--royal) 100%);
  --aurora-wide: linear-gradient(100deg, var(--violet), var(--royal) 45%, var(--sky) 75%, var(--pink));
  --shadow: 0 1px 2px hsl(224 30% 20% / 0.05), 0 18px 40px -22px hsl(224 30% 20% / 0.28);
  --shadow-lg: 0 2px 4px hsl(224 30% 20% / 0.04), 0 40px 80px -36px hsl(250 60% 30% / 0.4);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --r-lg: 28px;
  --maxw: 1180px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 17px;
  /* Plus Jakarta's space is narrow at display sizes; a touch of word spacing reads better. */
  word-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-xs { width: 14px; height: 14px; }

/* Ambient background: three slow orbs and a fine grain, fixed so scrolling never repaints them. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.38; will-change: translate; }
.o1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--violet); animation: drift1 26s var(--ease-inout) infinite alternate; }
.o2 { width: 38vw; height: 38vw; right: -10vw; top: 8vh; background: var(--sky); opacity: 0.3; animation: drift2 30s var(--ease-inout) infinite alternate; }
.o3 { width: 30vw; height: 30vw; left: 30vw; top: 55vh; background: var(--pink); opacity: 0.18; animation: drift3 34s var(--ease-inout) infinite alternate; }
@keyframes drift1 { to { translate: 12vw 10vh; scale: 1.15; } }
@keyframes drift2 { to { translate: -14vw 16vh; scale: 0.9; } }
@keyframes drift3 { to { translate: 10vw -20vh; scale: 1.2; } }

/* Reading progress, where scroll-driven animations are supported. */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; background: var(--aurora-wide); transform-origin: 0 50%; scale: 0 1; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { scale: 1 1; } }
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 0;
  transition: scale 0.16s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.2s ease, translate 0.5s var(--ease-expo), filter 0.2s ease;
}
.btn:active { scale: 0.97; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 8px 8px 8px 28px; font-size: 16px; min-height: 56px; }
.btn-lg:not(:has(.btn-orb)) { padding: 18px 28px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px hsl(224 24% 10% / 0.6); }
.btn-ink:hover { background: var(--ink-2); }
.btn-aurora { background: var(--aurora); color: #fff; box-shadow: 0 1px 0 hsl(0 0% 100% / 0.3) inset, 0 16px 34px -14px hsl(250 100% 55% / 0.7); }
.btn-aurora:hover { filter: brightness(1.08) saturate(1.05); box-shadow: 0 1px 0 hsl(0 0% 100% / 0.3) inset, 0 22px 44px -14px hsl(250 100% 55% / 0.8); }
.btn-glass { background: hsl(0 0% 100% / 0.7); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.btn-glass:hover { background: #fff; }
.btn-orb {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: hsl(0 0% 100% / 0.2); transition: translate 0.4s var(--ease-expo), scale 0.4s var(--ease-expo);
}
.btn:hover .btn-orb { translate: 3px -2px; scale: 1.06; }
.linkish { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Navigation: a floating island that firms up once the page scrolls. */
.site-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 16px; pointer-events: none; }
.nav-island {
  pointer-events: auto; position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; height: 60px; padding: 0 8px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; background: hsl(0 0% 100% / 0.55);
  box-shadow: 0 0 0 1px hsl(224 24% 10% / 0.06) inset;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  animation: nav-in 0.9s var(--ease-expo) both;
}
@keyframes nav-in { from { opacity: 0; translate: 0 -16px; } }
.site-nav.scrolled .nav-island { background: hsl(0 0% 100% / 0.82); box-shadow: 0 0 0 1px hsl(224 24% 10% / 0.06) inset, var(--shadow); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links > li > a:hover { color: var(--ink); background: hsl(224 24% 10% / 0.05); }
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 240px; list-style: none; padding: 8px;
  background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  transform-origin: 50% 0; translate: -50% 0; opacity: 0; scale: 0.96; visibility: hidden;
  transition: opacity 0.18s var(--ease-out), scale 0.18s var(--ease-out), visibility 0.18s;
}
.nav-dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-has-dropdown:hover .nav-dropdown, .nav-has-dropdown:focus-within .nav-dropdown { opacity: 1; scale: 1; visibility: visible; }
.nav-dropdown a { display: block; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); transition: background-color 0.15s ease; }
.nav-dropdown a:hover { background: hsl(250 100% 66% / 0.08); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-signin { padding: 9px 14px; font-size: 14.5px; font-weight: 550; color: var(--muted); border-radius: 999px; }
.nav-signin:hover { color: var(--ink); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: hsl(224 24% 10% / 0.05); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; top: calc(50% - 0.75px); height: 1.5px; background: var(--ink); border-radius: 2px; transition: translate 0.4s var(--ease-expo), rotate 0.4s var(--ease-expo); }
.nav-toggle span:first-child { translate: 0 -4px; }
.nav-toggle span:last-child { translate: 0 4px; }
.nav-toggle[aria-expanded="true"] span:first-child { translate: 0 0; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] span:last-child { translate: 0 0; rotate: -45deg; }
.nav-mobile {
  pointer-events: auto; position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 4px; padding: 96px 28px 40px; background: hsl(222 25% 97% / 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile a { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; padding: 8px 0; opacity: 0; translate: 0 24px; transition: opacity 0.5s var(--ease-expo), translate 0.6s var(--ease-expo); transition-delay: calc(var(--i) * 45ms); }
.nav-mobile a.btn { font-size: 16px; margin-top: 20px; padding: 18px; letter-spacing: 0; }
.nav-mobile.open a { opacity: 1; translate: 0 0; transition-delay: calc(80ms + var(--i) * 45ms); }
@media (min-width: 901px) { .nav-mobile { display: none; } }
@media (max-width: 900px) {
  .site-nav nav, .nav-signin { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* Reveal on scroll (home.js adds .is-in). Delay comes from --i on the element. */
/* Hidden only when scripts can run, so the page stays readable without JavaScript. */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; translate: 0 28px; filter: blur(8px); transition: opacity 0.9s var(--ease-expo), translate 1s var(--ease-expo), filter 0.9s var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
  [data-reveal].is-in { opacity: 1; translate: 0 0; filter: none; }
}

/* Hero */
.hero { position: relative; padding: 150px 0 40px; text-align: center; }
.hero-wave { position: absolute; left: 0; right: 0; top: 120px; width: 100%; height: 340px; z-index: -1; opacity: 0.85; }
.hero-wave-line { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 3.2s var(--ease-expo) 0.4s forwards; }
.hero-wave-dot { fill: var(--violet); filter: drop-shadow(0 0 8px hsl(250 100% 66% / 0.9)); opacity: 0; animation: fade-in 0.6s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.hero-copy { max-width: 980px; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: hsl(0 0% 100% / 0.7);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow);
}
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--mint); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { opacity: 0.8; scale: 0.6; } to { opacity: 0; scale: 1.8; } }
.hero-title {
  margin: 26px auto 0; font-size: clamp(2.6rem, 7vw, 5.9rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title .w {
  display: inline-block; opacity: 0; translate: 0 0.5em; filter: blur(12px); rotate: 0 0 1 4deg;
  animation: word-in 1s var(--ease-expo) forwards; animation-delay: calc(140ms + var(--i) * 70ms);
}
/* The last two words carry the gradient, which then keeps drifting slowly. */
.hero-title .w:nth-last-child(-n+2) {
  background: var(--aurora-wide); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-in 1s var(--ease-expo) forwards, sheen 8s linear 1.4s infinite;
  animation-delay: calc(140ms + var(--i) * 70ms), 1.4s;
  padding-bottom: 0.08em;
}
@keyframes word-in { to { opacity: 1; translate: 0 0; filter: blur(0); rotate: 0 0 1 0deg; } }
@keyframes sheen { to { background-position: -220% 0; } }
.hero-sub { max-width: 680px; margin: 26px auto 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-fine { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* Double-bezel frame (outer tray + inner card). */
.bezel { padding: 8px; border-radius: 34px; background: hsl(0 0% 100% / 0.45); box-shadow: 0 0 0 1px hsl(224 24% 10% / 0.06) inset, var(--shadow-lg); }
.bezel-core { border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 0 hsl(0 0% 100%) inset; overflow: hidden; }

/* Hero demo */
.demo-wrap { max-width: 1080px; margin-top: 64px; perspective: 1600px; }
.demo { transform-origin: 50% 0; animation: tilt-in 1.4s var(--ease-expo) 0.7s both; text-align: left; }
@keyframes tilt-in { from { opacity: 0; transform: rotateX(16deg) translateY(40px) scale(0.96); } }
.demo-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: hsl(224 24% 10% / 0.1); }
.demo-file { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.demo-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.demo-count b { color: var(--ink); }
.demo-grid { display: grid; grid-template-columns: 1.25fr 1fr; }
.demo-table { position: relative; padding: 18px 18px 112px; border-right: 1px solid var(--line); overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.15fr 1fr 0.8fr; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tr + .tr { border-top: 1px dashed var(--line); }
.th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--faint); padding-bottom: 10px; }
.cell { position: relative; display: grid; align-items: center; min-height: 22px; border-radius: 6px; }
.cell > span { grid-area: 1 / 1; white-space: pre; transition: opacity 0.45s var(--ease-out), translate 0.5s var(--ease-expo), filter 0.45s var(--ease-out); transition-delay: calc(var(--r) * 140ms + 200ms); }
.cell.num { justify-items: end; }
.cell.chg .m { color: hsl(8 72% 52%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cell .c { opacity: 0; translate: 0 8px; filter: blur(4px); font-weight: 600; color: var(--ink); }
.cell.chg::before { content: ""; position: absolute; inset: -3px -6px; border-radius: 7px; background: hsl(158 64% 42% / 0.14); opacity: 0; }
.demo[data-stage="3"] .cell.chg .m, .demo[data-stage="4"] .cell.chg .m { opacity: 0; translate: 0 -8px; filter: blur(4px); }
.demo[data-stage="3"] .cell .c, .demo[data-stage="4"] .cell .c { opacity: 1; translate: 0 0; filter: none; }
.demo[data-stage="3"] .cell.chg::before { animation: flash 1.2s var(--ease-out) both; animation-delay: calc(var(--r) * 140ms + 200ms); }
@keyframes flash { 20% { opacity: 1; } to { opacity: 0; } }
.tr { --r: 0; }
.scan { position: absolute; left: 0; right: 0; top: 40px; height: 70px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, hsl(250 100% 66% / 0.14) 70%, hsl(250 100% 66% / 0.7) 98%, transparent); }
.demo[data-stage="3"] .scan { animation: scan 1.2s var(--ease-inout) both; }
@keyframes scan { from { opacity: 1; translate: 0 -60px; } 90% { opacity: 1; } to { opacity: 0; translate: 0 200px; } }

.suggest {
  position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--ink); color: #fff;
  box-shadow: 0 24px 40px -20px hsl(224 30% 10% / 0.7);
  opacity: 0; translate: 0 14px; scale: 0.97; transition: opacity 0.5s var(--ease-expo), translate 0.6s var(--ease-expo), scale 0.6s var(--ease-expo);
}
.demo[data-stage="1"] .suggest, .demo[data-stage="2"] .suggest { opacity: 1; translate: 0 0; scale: 1; }
.suggest-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--aurora); }
.suggest-txt { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; min-width: 0; }
.suggest-txt small { color: hsl(0 0% 100% / 0.6); font-size: 12px; }
.suggest-btns { display: flex; gap: 6px; margin-left: auto; }
.mini-btn { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; transition: scale 0.15s var(--ease-out), filter 0.15s ease; }
.mini-btn.ghost { background: hsl(0 0% 100% / 0.12); }
.mini-btn.apply { background: var(--aurora); color: #fff; }
.demo[data-stage="2"] .suggest .apply { scale: 0.92; filter: brightness(1.2); }
.cursor { position: absolute; right: 10px; bottom: -6px; width: 22px; height: 22px; opacity: 0; translate: 40px 40px; transition: translate 0.9s var(--ease-drawer), opacity 0.3s ease; }
.cursor svg { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 4px 6px hsl(0 0% 0% / 0.3)); }
.demo[data-stage="1"] .cursor { opacity: 1; translate: -18px -12px; transition-delay: 0.5s; }
.demo[data-stage="2"] .cursor { opacity: 1; translate: -20px -14px; scale: 0.88; }

.demo-chart { position: relative; display: flex; flex-direction: column; padding: 22px 24px; background: linear-gradient(180deg, hsl(250 100% 66% / 0.04), transparent 50%); }
.chart-title { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.chart-take { margin-top: 6px; min-height: 2.8em; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.chart-take span { display: inline; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s steps(36, end) 0.7s; }
.demo[data-stage="4"] .chart-take span { clip-path: inset(0 0 0 0); }
.bars { flex: 1; min-height: 170px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 18px; margin-top: 14px; }
.bar-col { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: 100%; justify-content: flex-end; text-align: center; }
.bar-col small { font-size: 12px; color: var(--muted); }
.bar {
  position: relative; display: block; height: var(--h); min-height: 6px; border-radius: 10px 10px 4px 4px;
  background: hsl(224 24% 10% / 0.07); transform-origin: 50% 100%; scale: 1 0.06;
  transition: scale 0.9s var(--ease-expo), background-color 0.5s ease; transition-delay: calc(var(--d) * 110ms);
}
.bar.lead { background: hsl(224 24% 10% / 0.07); }
.demo[data-stage="4"] .bar { scale: 1 1; background: hsl(226 90% 56% / 0.38); }
.demo[data-stage="4"] .bar.lead { background: var(--aurora); box-shadow: 0 14px 28px -14px hsl(250 100% 55% / 0.8); }
.bar em { position: absolute; left: 0; right: 0; top: -22px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); opacity: 0; transition: opacity 0.4s ease 0.8s; }
.demo[data-stage="4"] .bar em { opacity: 1; }
.audit-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--mint); background: hsl(158 64% 42% / 0.08); opacity: 0; translate: 0 8px; transition: opacity 0.5s var(--ease-out) 1.6s, translate 0.6s var(--ease-expo) 1.6s; }
.demo[data-stage="4"] .audit-line { opacity: 1; translate: 0 0; }

/* Sources marquee */
.sources { padding: 72px 0 24px; }
.kicker { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 28px; }
.marquee {
  display: flex; overflow: hidden; gap: 14px; padding: 7px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; flex: none; min-width: max-content; animation: marquee 46s linear infinite; animation-play-state: paused; }
.marquee.is-live .marquee-track { animation-play-state: running; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { translate: calc(-100% - 14px) 0; } }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: hsl(0 0% 100% / 0.75); box-shadow: 0 0 0 1px var(--line) inset; }
.chip .ic { color: var(--violet); }
.chip.out .ic { color: var(--royal); }

/* Section heads */
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head h2, .final h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.lead { margin-top: 18px; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }
.lead a { color: var(--violet); font-weight: 600; }
.head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; text-align: left; }
.head-row h2 { max-width: 640px; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card { padding: 26px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.p-card h3 { margin-top: 22px; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.02em; }
.p-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.p-visual { height: 136px; border-radius: 18px; background: var(--canvas); position: relative; overflow: hidden; }
.p-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; align-content: center; }
.p-dates span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: #fff; color: hsl(8 72% 52%); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.is-in .p-dates span { animation: jitter 3.2s var(--ease-inout) infinite; }
.p-dates span:nth-child(2) { animation-delay: 0.3s; } .p-dates span:nth-child(3) { animation-delay: 0.6s; } .p-dates span:nth-child(4) { animation-delay: 0.9s; }
@keyframes jitter { 0%, 70%, 100% { rotate: 0deg; } 76% { rotate: -2deg; } 84% { rotate: 2deg; } 92% { rotate: -1deg; } }
.p-split { display: flex; align-items: end; justify-content: center; gap: 14px; padding: 18px 18px 0; }
.p-split span { position: relative; width: 26%; height: var(--h); border-radius: 10px 10px 0 0; background: hsl(226 90% 56% / 0.3); font-size: 11px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: center; padding-top: 8px; transform-origin: 50% 100%; scale: 1 0; transition: scale 1s var(--ease-expo); }
.p-split span:nth-child(2) { transition-delay: 0.12s; background: hsl(250 100% 66% / 0.32); } .p-split span:nth-child(3) { transition-delay: 0.24s; background: hsl(196 95% 55% / 0.32); }
.is-in .p-split span { scale: 1 1; }
.p-invoice { display: grid; align-content: center; gap: 10px; padding: 18px; }
.p-invoice span { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.p-invoice em { font-style: normal; color: var(--ink-2); }
.p-invoice b { color: var(--mint); }
.p-invoice .q b { color: hsl(8 72% 52%); display: inline-block; }
.is-in .p-invoice .q b { animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 0%, 60%, 100% { scale: 1; } 75% { scale: 1.5; } }

/* How it works: dark section with a sticky stage on wide screens */
.how { color: #fff; background: var(--ink); border-radius: 48px; margin: 0 12px; overflow: clip; isolation: isolate; }
.how::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 85% 10%, hsl(250 100% 66% / 0.35), transparent 70%), radial-gradient(50% 40% at 5% 90%, hsl(196 95% 55% / 0.22), transparent 70%); }
.how .lead { color: hsl(0 0% 100% / 0.62); }
.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); }
.steps { list-style: none; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: 0.3; transition: opacity 0.6s var(--ease-out); }
.step:first-child { min-height: 46vh; justify-content: flex-start; padding-top: 24px; }
.step:last-child { min-height: 52vh; }
.step.is-active { opacity: 1; }
.step-n { font-size: 15px; font-weight: 800; background: var(--aurora-wide); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin-top: 10px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.step p { margin-top: 14px; max-width: 460px; color: hsl(0 0% 100% / 0.66); font-size: 16.5px; }
.stage-col { position: relative; }
.stage { position: sticky; top: calc(50vh - 220px); height: 440px; border-radius: 32px; background: hsl(0 0% 100% / 0.05); box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.1) inset; }
.rail { position: absolute; left: 24px; right: 24px; top: 18px; height: 3px; border-radius: 3px; background: hsl(0 0% 100% / 0.1); overflow: hidden; }
.rail span { position: absolute; inset: 0; background: var(--aurora-wide); transform-origin: 0 50%; scale: 0.25 1; transition: scale 0.8s var(--ease-expo); }
.stage[data-active="1"] .rail span { scale: 0.5 1; } .stage[data-active="2"] .rail span { scale: 0.75 1; } .stage[data-active="3"] .rail span { scale: 1 1; }
.panel { position: absolute; inset: 40px 24px 24px; opacity: 0; scale: 0.96; filter: blur(10px); visibility: hidden; transition: opacity 0.6s var(--ease-expo), scale 0.8s var(--ease-expo), filter 0.6s var(--ease-expo), visibility 0.6s; }
.stage[data-active="0"] .pn-connect, .stage[data-active="1"] .pn-clean, .stage[data-active="2"] .pn-build, .stage[data-active="3"] .pn-deliver { opacity: 1; scale: 1; filter: none; visibility: visible; }

.pn-connect .flows { position: absolute; inset: 0; width: 100%; height: 100%; }
.pn-connect .flows path { fill: none; stroke: hsl(250 100% 75% / 0.55); stroke-width: 1.5; stroke-dasharray: 4 8; animation: flow 1.6s linear infinite; animation-play-state: paused; }
.stage.is-live .pn-connect .flows path { animation-play-state: running; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 10px hsl(250 100% 66% / 0.16), 0 0 60px hsl(250 100% 66% / 0.6); }
.hub img { border-radius: 10px; }
.src { position: absolute; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 650; background: hsl(0 0% 100% / 0.1); box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.14) inset; translate: -50% -50%; }
.src .ic { width: 16px; height: 16px; color: hsl(250 100% 80%); }
.s1 { left: 16%; top: 18%; } .s2 { left: 13%; top: 50%; } .s3 { left: 16%; top: 82%; }
.s4 { left: 84%; top: 18%; } .s5 { left: 86%; top: 50%; } .s6 { left: 84%; top: 82%; }
.stage[data-active="0"] .src { animation: bob 4s var(--ease-inout) infinite alternate; }
.s2, .s5 { animation-delay: -1.3s !important; } .s3, .s6 { animation-delay: -2.6s !important; }
@keyframes bob { to { translate: -50% calc(-50% - 6px); } }

.pn-clean { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.pn-title { font-size: 13px; font-weight: 650; color: hsl(0 0% 100% / 0.6); margin-bottom: 4px; }
.prof { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: hsl(0 0% 100% / 0.06); box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.08) inset; font-size: 13.5px; }
.pc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
.pm, .pf { grid-column: 2; grid-row: 1; justify-self: end; transition: opacity 0.4s ease, translate 0.5s var(--ease-expo); transition-delay: calc(0.5s + var(--i) * 0.35s); }
.pm { color: hsl(30 100% 68%); }
.pf { color: hsl(158 70% 60%); opacity: 0; translate: 0 6px; }
.pb { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: hsl(0 0% 100% / 0.08); overflow: hidden; }
.pb i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, hsl(30 100% 60%), hsl(158 70% 50%)); transform-origin: 0 50%; scale: 0 1; transition: scale 0.8s var(--ease-expo); transition-delay: calc(0.3s + var(--i) * 0.35s); }
.stage[data-active="1"] .pm { opacity: 0; translate: 0 -6px; }
.stage[data-active="1"] .pf { opacity: 1; translate: 0 0; }
.stage[data-active="1"] .pb i { scale: 1 1; }
.pn-note { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; color: hsl(158 70% 62%); }

.pn-build { display: grid; grid-template-columns: 1fr 1.3fr; grid-template-rows: 1fr 1fr auto; gap: 12px; }
.tile { position: relative; padding: 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -24px hsl(0 0% 0% / 0.6); opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease-expo), translate 0.8s var(--ease-expo); transition-delay: calc(0.15s + var(--i) * 0.12s); }
.stage[data-active="2"] .tile { opacity: 1; translate: 0 0; }
.tile small { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.kpi em { font-style: normal; font-size: 12px; color: var(--mint); font-weight: 650; }
.line svg { width: 100%; height: calc(100% - 20px); margin-top: 6px; overflow: visible; }
.line path { fill: none; stroke: var(--royal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.4s var(--ease-expo) 0.6s; }
.stage[data-active="2"] .line path { stroke-dashoffset: 0; }
.bars2 { grid-column: 1 / -1; display: flex; align-items: end; gap: 10px; }
.bars2 small { position: absolute; left: 16px; top: 14px; }
.bars2 span { flex: 1; height: var(--h); max-height: calc(100% - 26px); border-radius: 8px 8px 3px 3px; background: hsl(226 90% 56% / 0.35); transform-origin: 50% 100%; scale: 1 0; transition: scale 0.9s var(--ease-expo) 0.7s; }
.bars2 span:first-of-type { background: var(--aurora); }
.stage[data-active="2"] .bars2 span { scale: 1 1; }
.take { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; background: hsl(250 100% 97%); }
.take .ic { color: var(--violet); }

.pn-deliver { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.link-card .ic { color: var(--violet); }
.link-card b { margin-left: auto; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: hsl(158 64% 42% / 0.12); color: var(--mint); opacity: 0; scale: 0.8; transition: opacity 0.4s ease 1s, scale 0.5s var(--ease-expo) 1s; }
.stage[data-active="3"] .link-card b { opacity: 1; scale: 1; }
.comment { display: flex; gap: 10px; align-items: flex-start; margin-left: 32px; opacity: 0; translate: 0 12px; transition: opacity 0.5s var(--ease-expo) 0.5s, translate 0.7s var(--ease-expo) 0.5s; }
.stage[data-active="3"] .comment { opacity: 1; translate: 0 0; }
.av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--aurora); font-size: 12px; font-weight: 750; }
.comment p { padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: hsl(0 0% 100% / 0.1); font-size: 14px; }
.comment p b { display: block; font-size: 11.5px; color: hsl(0 0% 100% / 0.55); }
.sched { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: hsl(0 0% 100% / 0.08); box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.12) inset; font-size: 14px; font-weight: 600; }
.sched .ic { color: hsl(196 95% 65%); }
.plane { position: absolute; right: 24px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--aurora); }
.stage[data-active="3"].is-live .plane { animation: send 2.8s var(--ease-expo) 1.2s infinite; }
@keyframes send { 0% { translate: 0 0; opacity: 1; } 45% { translate: 60px -70px; opacity: 0; } 46% { translate: 0 20px; opacity: 0; } 70%, 100% { translate: 0 0; opacity: 1; } }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile-b { position: relative; display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; isolation: isolate; transition: translate 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo); }
.tile-b:hover { translate: 0 -4px; box-shadow: 0 0 0 1px hsl(250 100% 66% / 0.25), var(--shadow-lg); }
.tile-b h3 { margin: 22px 12px 0; font-size: 1.22rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.25; }
.tile-b p { margin: 8px 12px 0; color: var(--muted); font-size: 15.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin: 16px 12px 0; font-size: 14px; font-weight: 650; color: var(--violet); }
.more .ic { transition: translate 0.3s var(--ease-out); }
.more:hover .ic { translate: 4px 0; }
.b-ai { grid-column: span 4; } .b-audit { grid-column: span 2; }
.b-recipe, .b-take, .b-ask { grid-column: span 2; }
.b-share { grid-column: span 3; } .b-safe { grid-column: span 3; }
.b-vis { position: relative; height: 180px; border-radius: 20px; background: var(--canvas); overflow: hidden; }
/* Pointer spotlight: home.js sets --mx/--my on hover-capable devices. */
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), hsl(250 100% 66% / 0.1), transparent 60%); }
.spot:hover::before { opacity: 1; }

.b-ai .b-vis { display: grid; align-content: center; gap: 10px; padding: 18px; background: linear-gradient(135deg, hsl(250 100% 97%), hsl(196 95% 96%)); }
.sug-row { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px hsl(224 30% 20% / 0.4); font-size: 14px; font-weight: 600; }
.sug-row span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-row.ok .ic { color: var(--violet); }
.sug-row.warn { color: hsl(30 80% 34%); background: hsl(40 100% 96%); }
.sug-row.warn .ic { color: var(--amber); }
.sug-row .mini-btn.ghost { background: hsl(36 96% 54% / 0.16); }
.tile-b.is-live .sug-row.ok { animation: sug-a 6s var(--ease-expo) infinite; }
.tile-b.is-live .sug-row.warn { animation: sug-b 6s var(--ease-expo) infinite; }
@keyframes sug-a { 0%, 8% { opacity: 0; translate: 0 10px; } 16%, 100% { opacity: 1; translate: 0 0; } }
@keyframes sug-b { 0%, 34% { opacity: 0; translate: 0 10px; } 44%, 92% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }

.paper { padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; background: linear-gradient(180deg, #fff, var(--canvas)); }
.paper-h { font-size: 12px; font-weight: 750; color: var(--ink-2); }
.paper span { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); padding-bottom: 7px; border-bottom: 1px dashed var(--line); clip-path: inset(0 100% 0 0); }
.paper span b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.tile-b.is-live .paper span { animation: type-line 7s steps(28, end) infinite; animation-delay: calc(var(--i) * 0.7s); }
@keyframes type-line { 0% { clip-path: inset(0 100% 0 0); } 14%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }

.b-recipe .b-vis { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px; }
.file { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 650; }
.file .ic { width: 16px; height: 16px; color: var(--mint); }
.spin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--aurora); color: #fff; }
.tile-b.is-live .spin .ic { animation: spin 3s var(--ease-inout) infinite; }
@keyframes spin { to { rotate: 360deg; } }
.tile-b.is-live .f2 { animation: pop-in 3s var(--ease-expo) infinite; }
@keyframes pop-in { 0%, 40% { opacity: 0.35; scale: 0.94; } 55%, 100% { opacity: 1; scale: 1; } }
.map { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: hsl(250 100% 66% / 0.1); color: hsl(250 70% 48%); font-size: 12px; font-weight: 650; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.b-take .b-vis { padding: 18px; display: flex; flex-direction: column; }
.t-line { font-size: 14px; font-weight: 700; clip-path: inset(0 100% 0 0); }
.tile-b.is-in .t-line { clip-path: inset(0 0 0 0); transition: clip-path 1.2s steps(30, end) 0.6s; }
.t-chart { flex: 1; width: 100%; margin-top: 12px; overflow: visible; }
.t-path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.t-area { fill: hsl(250 100% 66% / 0.12); opacity: 0; }
.tile-b.is-in .t-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-expo) 0.3s; }
.tile-b.is-in .t-area { opacity: 1; transition: opacity 1s ease 1s; }

.b-ask .b-vis { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ask-in { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; }
.ask-in .ic { width: 18px; height: 18px; color: var(--violet); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--violet); width: 28ch; max-width: calc(100% - 26px); }
.tile-b.is-live .typed { animation: typing 6s steps(28, end) infinite, caret 0.8s step-end infinite; }
@keyframes typing { 0% { width: 0; } 40%, 100% { width: 28ch; } }
@keyframes caret { 50% { border-color: transparent; } }
.ask-bars { flex: 1; display: flex; align-items: end; gap: 8px; }
.ask-bars span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: hsl(226 90% 56% / 0.35); transform-origin: 50% 100%; }
.ask-bars span:first-child { background: var(--aurora); }
.tile-b.is-live .ask-bars span { animation: grow 6s var(--ease-expo) infinite; }
.ask-bars span:nth-child(2) { animation-delay: 0.08s !important; } .ask-bars span:nth-child(3) { animation-delay: 0.16s !important; } .ask-bars span:nth-child(4) { animation-delay: 0.24s !important; }
@keyframes grow { 0%, 42% { scale: 1 0; } 60%, 100% { scale: 1 1; } }

.b-share .b-vis { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px 22px; }
.link-card.sm { box-shadow: 0 0 0 1px var(--line); max-width: 300px; }
.bubble { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.tile-b.is-live .bubble { animation: bubble 5s var(--ease-expo) infinite; }
@keyframes bubble { 0%, 20% { opacity: 0; scale: 0.85; translate: 0 8px; } 32%, 90% { opacity: 1; scale: 1; translate: 0 0; } 100% { opacity: 0; } }
.week { display: flex; gap: 6px; }
.week span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.week span:first-child { background: var(--aurora); color: #fff; box-shadow: none; }
.tile-b.is-live .week span:first-child { animation: beat 2.5s var(--ease-out) infinite; }
@keyframes beat { 0%, 100% { scale: 1; } 12% { scale: 1.14; } 24% { scale: 1; } }

.b-safe .b-vis { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, hsl(158 64% 42% / 0.08), var(--canvas) 70%); }
.shield { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: #fff; color: var(--mint); box-shadow: 0 0 0 1px var(--line), 0 18px 30px -16px hsl(158 64% 30% / 0.5); }
.shield .ic { width: 30px; height: 30px; }
.ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 24px; border: 1.5px solid hsl(158 64% 42% / 0.4); opacity: 0; }
.tile-b.is-live .ring { animation: ring 3.6s var(--ease-out) infinite; }
.r2 { animation-delay: 1.2s !important; } .r3 { animation-delay: 2.4s !important; }
@keyframes ring { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 2.8; } }

.deeper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.deeper > span { font-size: 14px; font-weight: 600; color: var(--faint); margin-right: 4px; }
.deeper a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: hsl(0 0% 100% / 0.7); box-shadow: 0 0 0 1px var(--line) inset; transition: background-color 0.2s ease, translate 0.3s var(--ease-out); }
.deeper a:hover { background: #fff; translate: 0 -2px; }
.deeper .ic { width: 18px; height: 18px; color: var(--violet); }

/* Comparison */
.table-wrap { max-width: 980px; margin: 0 auto; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 17px 22px; text-align: left; vertical-align: top; }
thead th { font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
thead th.dw { color: var(--violet); }
tbody th { font-weight: 650; }
tbody td { color: var(--muted); }
tbody tr + tr > * { border-top: 1px solid var(--line); }
td.dw { color: var(--ink); background: hsl(250 100% 66% / 0.04); }
td.dw .ic { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 8px; color: var(--violet); }
tbody tr { opacity: 0; translate: -10px 0; transition: opacity 0.6s var(--ease-expo), translate 0.7s var(--ease-expo); transition-delay: calc(0.2s + var(--i) * 60ms); }
.table-wrap.is-in tbody tr { opacity: 1; translate: 0 0; }
.note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tier h3 { font-size: 1.15rem; font-weight: 750; }
.price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.045em; }
.price span { color: var(--muted); font-size: 15px; }
.tier-for { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.tier ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--violet); }
.tier .btn { margin-top: auto; }
.tier-badge { position: absolute; top: 26px; right: 24px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--aurora); }
/* Professional: a slowly rotating gradient border, drawn with a masked conic gradient. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tier-pro { box-shadow: var(--shadow-lg); }
.tier-pro::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--violet), var(--sky), var(--pink), var(--royal), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rotate-border 6s linear infinite;
}
@keyframes rotate-border { to { --angle: 360deg; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; isolation: isolate; transition: translate 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo); }
.post:hover { translate: 0 -4px; box-shadow: 0 0 0 1px hsl(250 100% 66% / 0.25), var(--shadow-lg); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.tag { padding: 4px 10px; border-radius: 999px; font-weight: 650; color: hsl(250 70% 48%); background: hsl(250 100% 66% / 0.1); }
.post h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.3; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p:last-child { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s ease; interpolate-size: allow-keywords; }
.faq-list details[open] { box-shadow: 0 0 0 1px hsl(250 100% 66% / 0.25), var(--shadow); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: hsl(250 100% 66% / 0.1); }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--violet); transition: rotate 0.4s var(--ease-expo); }
.faq-list .pm::after { rotate: 90deg; }
.faq-list details[open] .pm::after { rotate: 0deg; }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 720px; }
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-expo), content-visibility 0.45s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }

/* Final call to action with a travelling equaliser wave */
.final { position: relative; margin: 40px 12px 0; padding: clamp(110px, 14vw, 170px) 0; border-radius: 48px; background: var(--ink); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 60% at 50% 110%, hsl(250 100% 66% / 0.55), transparent 70%), radial-gradient(40% 40% at 90% 0%, hsl(330 90% 68% / 0.25), transparent 70%); }
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; display: flex; align-items: end; gap: 6px; padding: 0 6px; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.eq span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--c), transparent); transform-origin: 50% 100%; animation: eq 2.6s var(--ease-inout) infinite alternate; animation-delay: var(--d); animation-play-state: paused; }
.eq.is-live span { animation-play-state: running; }
@keyframes eq { from { scale: 1 0.25; } to { scale: 1 1; } }
.final-inner { max-width: 760px; }
.final h2 { color: #fff; }
.final p { margin: 18px auto 0; max-width: 560px; color: hsl(0 0% 100% / 0.68); font-size: 1.1rem; }
.final .btn { margin-top: 34px; }
.final .fine { margin-top: 16px; font-size: 13.5px; color: hsl(0 0% 100% / 0.45); }

/* Footer */
.site-footer { padding: 80px 0 28px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: var(--muted); font-size: 15px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; transition: color 0.2s ease, background-color 0.2s ease; }
.footer-social a:hover { color: var(--ink); background: #fff; }
.footer-col h3 { font-size: 13px; font-weight: 700; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--violet); }
.footer-mark {
  margin-top: 56px; font-size: clamp(4.5rem, 19vw, 16rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; text-align: center;
  background: linear-gradient(100deg, hsl(224 24% 10% / 0.08) 30%, var(--violet) 45%, var(--sky) 52%, hsl(224 24% 10% / 0.08) 66%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.footer-mark.is-in { animation: mark-sweep 3.5s var(--ease-inout) forwards; }
@keyframes mark-sweep { to { background-position: 0% 0; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.footer-bottom .linkish { color: var(--faint); font-size: 13.5px; }

/* Cookie banner from site.js */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 620px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px 14px 20px; border-radius: 22px; background: hsl(0 0% 100% / 0.92); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); font-size: 14px; animation: nav-in 0.6s var(--ease-expo) both; }
.consent-banner p { flex: 1 1 280px; color: var(--ink-2); }
.consent-banner a { color: var(--violet); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; background: hsl(224 24% 10% / 0.06); }
.consent-actions .consent-accept { background: var(--ink); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-ai, .b-audit, .b-recipe, .b-take, .b-ask, .b-share, .b-safe { grid-column: span 1; }
  .b-ai { grid-column: 1 / -1; }
  .posts { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-table { border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-grid { grid-template-columns: 1fr; }
  .how { border-radius: 32px; margin: 0 8px; }
  .how-grid { grid-template-columns: 1fr; }
  .stage-col { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid hsl(0 0% 100% / 0.1); }
  .step:first-child { border-top: 0; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .final { border-radius: 32px; margin: 32px 8px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .hero-wave { top: 90px; height: 240px; }
  .btn-lg { width: 100%; justify-content: space-between; }
  .btn-lg:not(:has(.btn-orb)) { justify-content: center; }
  .demo-wrap { margin-top: 44px; }
  .demo-bar { gap: 10px; padding: 12px 14px; }
  .lights { display: none; }
  .demo-table { padding: 12px 10px 196px; }
  .demo-chart { padding: 18px; }
  .bars { min-height: 140px; }
  .tr { font-size: 12.5px; gap: 6px; padding: 8px 6px; }
  .cell.chg .m { font-size: 11.5px; }
  .suggest { left: 10px; right: 10px; bottom: 10px; flex-wrap: wrap; }
  .suggest-btns { margin-left: 48px; }
  .bento, .posts { grid-template-columns: 1fr; }
  .b-ai { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .eq { gap: 3px; }
}

/* Reduced motion: everything is shown in its finished state and nothing loops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .hero-title .w, .demo, .nav-island { opacity: 1 !important; translate: none !important; filter: none !important; transform: none !important; rotate: none !important; }
  .hero-wave-line { stroke-dashoffset: 0; }
  .hero-wave-dot { opacity: 1; }
  .orb { translate: none; }
  .scroll-progress { display: none; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee-track + .marquee-track { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0 16px; }
  .p-split span, .bar, .bars2 span, .ask-bars span, .pb i { scale: 1 1 !important; }
  .paper span, .t-line, .chart-take span { clip-path: none !important; }
  .t-path, .line path { stroke-dashoffset: 0 !important; }
  .typed { width: auto; border-right: 0; }
  .eq span { scale: 1 0.6; }
  .footer-mark { background-position: 50% 0; }
}
