/* ============================================================
   KIDSCORP DSP — LANDING (Editorial redesign)
   Built on top of the Kidscorp Design System 2.0 tokens.
   ============================================================ */

/* ---------- Fonts ---------- */
/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* cyrillic-ext */

/* cyrillic */

/* greek */

/* vietnamese */

/* latin-ext */

/* latin */

/* fallback */

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
  /* Brand tokens (from DS) */
  --kc-violet-100: #E8DEFF;
  --kc-violet-200: #D3BBFE;
  --kc-violet-300: #C098FD;
  --kc-violet-400: #AF72FC;
  --kc-violet-500: #9F44FB;
  --kc-violet-600: #8812E3;
  --kc-violet-700: #680CAF;
  --kc-violet-800: #4A057D;
  --kc-violet-900: #2F0544;
  --kc-fuchsia-100: #CC95F7;
  --kc-fuchsia-500: #B33AF0;
  --kc-fuchsia-900: #6E1A98;
  --kc-cyan-100: #D1ECFF;
  --kc-cyan-300: #4CCBFF;
  --kc-cyan-900: #008EB8;
  --kc-success-500: #08A045;
  --kc-alert-500: #F35B04;
  --kc-error-500: #D90429;

  /* Neutrals */
  --kc-base-0: #FAFAFC;
  --kc-base-100: #DFDFDF;
  --kc-base-200: #C4C4C4;
  --kc-base-300: #A6A6A6;
  --kc-base-400: #8B8B8B;
  --kc-base-500: #6F6F6F;
  --kc-base-600: #575757;
  --kc-base-700: #3E3E3E;
  --kc-base-800: #282828;
  --kc-base-900: #121212;

  /* Type */
  --kc-font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --kc-font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --kc-font-mono: "Roboto Mono", ui-monospace, monospace;

  /* Editorial-scale display sizes (much larger than DS defaults) */
  --display-mega: 96px;
  --display-xxl: 84px;
  --display-xl: 58px;
  --display-l: 48px;
  --display-m: 38px;

  /* Spacing */
  --space-section: 100px;
  --space-section-tight: 72px;
  --wrap-max: 1400px;
  --wrap-pad: clamp(20px, 4vw, 64px);

  /* Radii */
  --r-card: 18px;
  --r-card-lg: 28px;
  --r-pill: 999px;
  --r-notch: 105px;

  /* Theme defaults — light */
  --bg: var(--kc-base-0);
  --bg-alt: #F2F2F4;
  --fg: var(--kc-base-900);
  --fg-dim: var(--kc-base-500);
  --fg-faint: var(--kc-base-400);
  --hairline: rgba(18,18,18,0.10);
  --hairline-strong: rgba(18,18,18,0.18);
  --card: #FFFFFF;
  --card-2: #F6F4FA;

  /* Active accent (tweakable) */
  --accent: var(--kc-violet-500);
  --accent-2: var(--kc-cyan-300);
  --accent-3: var(--kc-fuchsia-500);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--kc-font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Utility ---------- */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}
.wrap-wide {
  max-width: 1640px;
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

.eyebrow {
  font-family: var(--kc-font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9414FA;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: currentColor;
  display: inline-block;
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 { font-family: var(--kc-font-display); margin: 0; letter-spacing: -0.025em; }
.display-mega { font-size: var(--display-mega); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
.display-xxl { font-size: var(--display-xxl); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
.display-xl { font-size: var(--display-xl); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
.display-l { font-size: var(--display-l); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
.display-m { font-size: var(--display-m); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

em.brand-em {
  font-style: italic;
  font-weight: 800;
  color: #9414FA;
}

.lead { font-size: 18px; line-height: 1.55; color: var(--fg-dim); max-width: 60ch; }

.mono { font-family: var(--kc-font-mono); }
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), background 200ms, color 200ms, box-shadow 200ms;
  white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 20px; transition: transform 220ms; }
.btn-primary {
  background: linear-gradient(135deg, var(--kc-violet-600) 0%, var(--kc-violet-500) 50%, var(--kc-fuchsia-500) 100%);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(159,68,251,0.55);
}
.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(159,68,251,0.7);
}
.btn-primary:hover .material-symbols-rounded { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: rgba(159,68,251,0.06); border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,0.20); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms cubic-bezier(0.2,0.8,0.2,1), transform 700ms cubic-bezier(0.2,0.8,0.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
[data-anim="0"] .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Section wrappers ---------- */
.section {
  position: relative;
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-tight { padding-top: var(--space-section-tight); padding-bottom: var(--space-section-tight); }

.section-dark {
  background: var(--kc-base-900);
  color: #F5F2FA;
  --fg: #F5F2FA;
  --fg-dim: rgba(245,242,250,0.62);
  --fg-faint: rgba(245,242,250,0.42);
  --hairline: rgba(255,255,255,0.10);
  --hairline-strong: rgba(255,255,255,0.20);
  --card: rgba(255,255,255,0.04);
  --card-2: rgba(255,255,255,0.06);
  --bg: var(--kc-base-900);
}
.section-light {
  background: var(--kc-base-0);
  color: var(--kc-base-900);
}

/* Soft glow blobs */
.blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}
.blob-violet { background: radial-gradient(circle, var(--kc-violet-500) 0%, transparent 60%); }
.blob-fuchsia { background: radial-gradient(circle, var(--kc-fuchsia-500) 0%, transparent 60%); }
.blob-cyan { background: radial-gradient(circle, var(--kc-cyan-300) 0%, transparent 60%); }

/* Grain texture */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 280ms ease, padding 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18,18,18,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0;
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header.scrolled.light {
  background: rgba(250,250,252,0.86);
  border-bottom-color: rgba(18,18,18,0.08);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header .logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--kc-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.site-header .logo img { height: 26px; width: auto; transition: opacity 200ms; }
.site-header .logo .iso { height: 28px; width: auto; }
.site-header nav {
  display: flex; gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
}
.site-header.light nav { color: rgba(18,18,18,0.72); }
.site-header nav a { transition: color 180ms; }
.site-header nav a:hover { color: var(--kc-cyan-300); }
.site-header.light nav a:hover { color: var(--kc-violet-600); }
.site-header .actions { display: flex; gap: 10px; align-items: center; }
.site-header .actions .btn { padding: 10px 18px; font-size: 13.5px; }
@media (max-width: 900px) {
  .site-header nav { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(96px, 12vh, 140px) 0 clamp(60px, 8vh, 96px);
  background: var(--kc-base-900);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  --fg: #F5F2FA;
  --fg-dim: rgba(245,242,250,0.62);
  --hairline: rgba(255,255,255,0.10);
  --card: rgba(255,255,255,0.04);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(159,68,251,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(76,203,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 50%, rgba(179,58,240,0.18) 0%, transparent 60%),
    var(--kc-base-900);
  z-index: 0;
}
.hero .iso-watermark {
  position: absolute;
  bottom: -180px; right: -120px;
  width: 720px;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero .blob-1 {
  width: 520px; height: 520px;
  left: -120px; top: 30%;
  z-index: 0; opacity: 0.35;
  will-change: transform;
}
.hero .blob-2 {
  width: 460px; height: 460px;
  right: -100px; bottom: -80px;
  z-index: 0; opacity: 0.45;
  will-change: transform;
}

.hero .wrap-wide { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 100px;
  align-items: center;
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero h1 {
  font-size: var(--display-mega);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 18px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--kc-cyan-300) 0%, var(--kc-violet-300) 40%, var(--kc-fuchsia-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.hero .lead { color: rgba(245,242,250,0.75); max-width: 52ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.hero-trust .t { display: flex; flex-direction: column; gap: 4px; }
.hero-trust .t b {
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--kc-cyan-300) 0%, #fff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-trust .t span { font-size: 12px; color: rgba(245,242,250,0.55); letter-spacing: 0.02em; line-height: 1.4; }
@media (max-width: 720px) { .hero-trust { grid-template-columns: 1fr 1fr; } }

/* Floating UI mockup */
.hero-ui {
  position: relative;
  perspective: 1600px;
}
.hero-ui-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.2,0.8,0.2,1);
}
.hero-ui-card .chrome {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.hero-ui-card .lights { display: inline-flex; gap: 6px; }
.hero-ui-card .lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.hero-ui-card .url {
  flex: 1;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  color: rgba(245,242,250,0.55);
  text-align: center;
  letter-spacing: 0.02em;
}
.hero-ui-card .brief {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
}
.hero-ui-card .brief .l {
  font-family: var(--kc-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,242,250,0.4);
  margin-bottom: 4px;
}
.hero-ui-card .brief .v { font-size: 14px; font-weight: 600; }
.hero-ui-card .brief .right { text-align: right; }
.hero-ui-card .brief .right .v { color: var(--kc-cyan-300); }

.hero-ui-card .stat {
  background: linear-gradient(180deg, rgba(159,68,251,0.10) 0%, rgba(76,203,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}
.hero-ui-card .stat .k {
  font-family: var(--kc-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,242,250,0.5);
  display: flex; align-items: center; gap: 8px;
}
.hero-ui-card .stat .k::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--kc-success-500);
  box-shadow: 0 0 8px rgba(8,160,69,0.6);
}
.hero-ui-card .stat .num {
  font-family: var(--kc-font-display);
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
  background: linear-gradient(135deg, var(--kc-cyan-300) 0%, var(--kc-violet-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ui-card .stat .num span { font-size: 0.45em; opacity: 0.7; margin-left: 4px; }
.hero-ui-card .stat .sub { font-size: 12px; color: rgba(245,242,250,0.6); }
.hero-ui-card .stat .sub b { color: #fff; font-weight: 600; }

.hero-ui-card .inv .ir {
  display: grid;
  grid-template-columns: 70px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}
.hero-ui-card .inv .ir > span:first-child { color: rgba(245,242,250,0.7); }
.hero-ui-card .inv .bar {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: var(--r-pill); overflow: hidden;
}
.hero-ui-card .inv .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--kc-cyan-300), var(--kc-violet-400));
  border-radius: inherit;
  transform-origin: left;
  animation: bar-grow 1400ms cubic-bezier(0.2,0.8,0.2,1) both;
  animation-delay: 600ms;
}
.hero-ui-card .inv .bar.v i { background: linear-gradient(90deg, var(--kc-violet-500), var(--kc-fuchsia-500)); }
.hero-ui-card .inv .pct { text-align: right; font-family: var(--kc-font-mono); font-size: 12px; color: var(--kc-cyan-300); font-weight: 600; }
.hero-ui-card .inv .pct.v { color: var(--kc-fuchsia-100); }

@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-ui-float {
  position: absolute;
  left: -28px; bottom: -28px;
  background: linear-gradient(135deg, var(--kc-violet-700), var(--kc-fuchsia-900));
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px -10px rgba(159,68,251,0.55);
  z-index: 3;
}
.hero-ui-float .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: var(--kc-cyan-300);
  font-family: 'Material Symbols Rounded'; font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.hero-ui-float .t { font-size: 13px; font-weight: 600; color: #fff; }
.hero-ui-float .s { font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--kc-font-mono); letter-spacing: 0.02em; }

/* ---------- Section headers (large editorial) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .sec-head { grid-template-columns: 1fr; } }
.sec-head h2 {
  font-size: var(--display-xl);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 22px;
}
.sec-head .lead { padding-top: 14px; }

/* ============================================================
   LOGOS STRIP
   ============================================================ */
.logos-strip {
  padding: 32px 0;
  background: var(--kc-base-900);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.logos-strip .lbl {
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(245,242,250,0.45);
  text-align: center;
  margin-bottom: 18px;
}
.logos-marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.logos-marquee:hover { animation-play-state: paused; }
.logos-marquee .brand {
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: rgba(245,242,250,0.62);
  white-space: nowrap;
  transition: color 220ms;
  display: inline-flex; align-items: center; gap: 56px;
}
.logos-marquee .brand img {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.7;
  transition: opacity 220ms;
}
.logos-marquee .brand:hover img { opacity: 1; }
.logos-marquee .brand:hover { color: #fff; }
.logos-marquee .brand::after {
  content: "·";
  color: var(--kc-violet-500);
  font-size: 28px;
}
.logos-marquee .brand:last-child::after { content: ""; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   HOW IT WORKS (editorial stepper)
   ============================================================ */
.how {
  background: var(--kc-base-0);
  position: relative;
}
.how-phases {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
}
@media (max-width: 1100px) {
  .how-phases { grid-template-columns: 1fr 40px 1fr 40px 1fr; }
}
@media (max-width: 920px) {
  .how-phases {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.how-phase {
  display: flex; flex-direction: column;
  padding: 42px;
  background: #ffffff;
  border: 1px solid #8B8B8B;
  border-radius: 22px;
  position: relative;
  transition: transform 280ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 280ms, border-color 280ms;
  overflow: hidden;
}
.how-phase::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(159,68,251,0.04) 100%);
  opacity: 0;
  transition: opacity 280ms;
  pointer-events: none;
}
.how-phase:hover {
  transform: translateY(-4px);
  border-color: rgba(159,68,251,0.30);
  box-shadow: 0 30px 60px -25px rgba(159,68,251,0.30);
}
.how-phase:hover::before { opacity: 1; }
.how-phase > * { position: relative; }

.how-phase .num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  background: none !important;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: var(--accent);
  line-height: 1;
}
.how-phase .num::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}
.how-phase .num small {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  font-family: var(--kc-font-mono);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
  -webkit-text-fill-color: var(--fg);
}
.how-phase .num small::before {
  content: "·"; color: var(--accent); font-size: 14px;
}
.how-phase .body { display: flex; flex-direction: column; flex: 1; }
.how-phase .body h3 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.how-phase .body .desc {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-bottom: 28px;
  flex: 1;
}
.how-phase .steps {
  display: flex; flex-direction: column;
  gap: 10px;
}
.how-step {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--bg-alt, #F2F2F4);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 240ms, border-color 240ms, transform 240ms;
}
.how-step:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateX(3px);
}
.how-step .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(159,68,251,0.14), rgba(76,203,255,0.10));
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: 'Material Symbols Rounded'; font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}
.how-step .t { font-size: 14px; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.005em; }
.how-step .s {
  font-size: 10px;
  color: var(--fg-faint);
  font-family: var(--kc-font-mono);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Arrow connector between phases */
.how-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  height: 100%;
  position: relative;
}
.how-arrow svg {
  width: 100%; height: auto;
  max-width: 56px;
  overflow: visible;
}
.how-arrow .line {
  stroke: var(--hairline-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
}
.how-arrow .head {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(159,68,251,0.5));
  transform-origin: center;
  animation: arrow-pulse 2.4s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.6; }
}
@media (max-width: 920px) {
  .how-arrow { height: 40px; transform: rotate(90deg); justify-self: center; }
}
[data-anim="0"] .how-arrow .head { animation: none !important; }

/* Sequential flow delays — phases land one after another */
.how-phase.reveal-delay-2 { transition-delay: 260ms; }
.how-phase.reveal-delay-4 { transition-delay: 520ms; }
.how-arrow.reveal-delay-1 { transition-delay: 140ms; }
.how-arrow.reveal-delay-3 { transition-delay: 400ms; }
.how-arrow.reveal {
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: opacity 600ms cubic-bezier(0.2,0.8,0.2,1), transform 600ms cubic-bezier(0.2,0.8,0.2,1);
}
.how-arrow.reveal.in { opacity: 1; transform: scaleX(1); }

/* ============================================================
   INVENTORY — dark dramatic 2-card
   ============================================================ */
.inv-section {
  background: var(--kc-base-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  --fg: #fff; --fg-dim: rgba(245,242,250,0.62); --hairline: rgba(255,255,255,0.08);
}
.inv-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(159,68,251,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(76,203,255,0.18) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.inv-section .wrap-wide { position: relative; z-index: 1; }
.inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 900px) { .inv-grid { grid-template-columns: 1fr; } }
.inv-card {
  position: relative;
  background: #222222;
  border: 1px solid #434343;
  border-radius: 24px;
  padding: 44px;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.2,0.8,0.2,1), border-color 280ms;
}
.inv-card:hover { transform: translateY(-4px); border-color: rgba(76,203,255,0.40); }
.inv-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 50%, rgba(159,68,251,0.4) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
  z-index: 0;
}
.inv-card:hover::before { opacity: 1; }
.inv-card > * { position: relative; z-index: 1; }

.inv-card .ico-big {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(159,68,251,0.18), rgba(76,203,255,0.12));
  border: 1px solid rgba(255,255,255,0.10);
  display: grid; place-items: center;
  color: var(--kc-cyan-300);
  margin-bottom: 28px;
  font-family: 'Material Symbols Rounded'; font-size: 44px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.inv-card .name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.05;
}
.inv-card .stat {
  font-family: var(--kc-font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--kc-cyan-300);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.inv-card .desc { font-size: 16px; line-height: 1.6; color: rgba(245,242,250,0.72); }

.inv-closer {
  margin-top: 60px;
  font-size: 26px;
  line-height: 1.4;
  max-width: 60ch;
  color: rgba(245,242,250,0.82);
}
.inv-closer b { color: var(--kc-cyan-300); font-weight: 700; }

/* ============================================================
   PHASE SECTIONS COMMON
   ============================================================ */
.stage-pills {
  display: inline-flex;
  gap: 24px;
  margin-bottom: 28px;
  font-family: var(--kc-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.stage-pills span { display: inline-flex; align-items: center; gap: 8px; }
.stage-pills .on { color: var(--accent); }
.stage-pills .on::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px currentColor;
}

/* ============================================================
   PLAN SECTION
   ============================================================ */
.plan { background: var(--kc-base-0); position: relative; overflow: hidden; }
.plan::before {
  content: "";
  position: absolute; left: -200px; top: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(159,68,251,0.10) 0%, transparent 65%);
  z-index: 0;
}

/* ============================================================
   PLANNER FLOW — unified single-window composition
   ============================================================ */
.planner-flow {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 32px 80px -40px rgba(18,18,18,0.30), 0 4px 12px -4px rgba(18,18,18,0.08);
  overflow: hidden;
  margin-top: 32px;
}
.planner-flow .pf-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: #FAFAFC;
  border-bottom: 1px solid var(--hairline);
}
.planner-flow .pf-chrome .lights { display: flex; gap: 6px; }
.planner-flow .pf-chrome .lights i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D9D9D9;
}
.planner-flow .pf-chrome .lights i:nth-child(1) { background: #FF5F57; }
.planner-flow .pf-chrome .lights i:nth-child(2) { background: #FEBC2E; }
.planner-flow .pf-chrome .lights i:nth-child(3) { background: #28C840; }
.planner-flow .pf-chrome .url {
  flex: 1;
  font-family: var(--kc-font-mono); font-size: 12px;
  color: var(--fg-faint);
  text-align: center;
  letter-spacing: 0.02em;
}
.planner-flow .pf-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(8,160,69,0.10);
  color: var(--kc-success-500);
  font-family: var(--kc-font-mono); font-size: 10px;
  letter-spacing: 0.15em; font-weight: 700;
  border-radius: 999px;
}
.planner-flow .pf-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--kc-success-500);
  animation: pulse 1.8s ease-in-out infinite;
}

/* Stepper */
.planner-flow .pf-steps {
  display: flex; align-items: center;
  padding: 18px 28px;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, #FCFAFF 0%, #fff 100%);
}
.pf-step { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pf-step .pf-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--kc-font-mono); font-size: 11px; font-weight: 700;
  background: #F1EDF8;
  color: var(--fg-faint);
  transition: all 220ms;
}
.pf-step .pf-num .material-symbols-rounded { font-size: 16px; font-variation-settings: 'FILL' 1, 'wght' 700; }
.pf-step .pf-lbl {
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 13px; font-weight: 600;
  color: var(--fg-dim);
}
.pf-step .pf-lbl b {
  font-family: var(--kc-font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  margin-bottom: 2px;
  text-transform: uppercase;
}
.pf-step.done .pf-num {
  background: var(--kc-success-500);
  color: #fff;
}
.pf-step.done .pf-lbl { color: var(--kc-base-900); }
.pf-step.active .pf-num {
  background: linear-gradient(135deg, var(--kc-violet-500), var(--kc-fuchsia-500));
  color: #fff;
  box-shadow: 0 0 0 4px rgba(159,68,251,0.15);
  animation: pulse-ring 2s ease-in-out infinite;
}
.pf-step.active .pf-lbl { color: var(--kc-violet-700); }
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 4px rgba(159,68,251,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(159,68,251,0.05); }
}
.pf-conn {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, #D9D9D9 0 4px, transparent 4px 9px);
  min-width: 24px;
}
.pf-conn.done { background: var(--kc-success-500); height: 2px; }

/* Brief ribbon */
.pf-brief {
  padding: 18px 28px;
  background: #FAFAFC;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.pf-brief-head {
  font-family: var(--kc-font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint);
}
.pf-pills {
  display: flex; gap: 8px; flex-wrap: wrap; flex: 1;
}
.pf-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--kc-base-900);
  white-space: nowrap;
}
.pf-pill .material-symbols-rounded {
  font-size: 15px;
  color: var(--kc-violet-500);
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.pf-pill-budget {
  background: linear-gradient(135deg, rgba(159,68,251,0.10), rgba(76,203,255,0.06));
  border-color: rgba(159,68,251,0.30);
}
.pf-pill-budget .material-symbols-rounded { color: var(--kc-fuchsia-500); }

/* Body — 3-column: chat + reach + strategy */
.pf-body {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1fr;
  gap: 0;
}
@media (max-width: 1100px) {
  .pf-body { grid-template-columns: 1fr; }
}
.pf-body > * {
  padding: 28px;
  border-right: 1px solid var(--hairline);
}
.pf-body > *:last-child { border-right: none; }
@media (max-width: 1100px) {
  .pf-body > * { border-right: none; border-bottom: 1px solid var(--hairline); }
  .pf-body > *:last-child { border-bottom: none; }
}

/* Column heads */
.pf-col-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-family: var(--kc-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pf-col-head .pf-col-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
}
.pf-col-head .pf-col-dot.ai {
  background: linear-gradient(135deg, var(--kc-violet-500), var(--kc-fuchsia-500));
  box-shadow: 0 0 0 3px rgba(159,68,251,0.15);
}
.pf-col-head .pf-col-dot.live {
  background: var(--kc-success-500);
  animation: pulse 1.8s ease-in-out infinite;
}
.pf-col-head .pf-col-ttl {
  color: var(--kc-base-900);
  font-weight: 700;
}
.pf-body .pcard.accent .pf-col-head .pf-col-ttl,
.pf-body .pcard.accent .pf-col-head .pf-col-sub { color: rgba(255,255,255,0.85); }
.pf-col-head .pf-col-sub {
  color: var(--fg-faint);
  font-weight: 500;
}

/* AI chat column */
.pf-chat {
  background: #FAFAFC;
  display: flex; flex-direction: column;
}
.pf-chat-stream {
  flex: 1;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  gap: 8px;
}
.pf-chat-stream::-webkit-scrollbar { width: 4px; }
.pf-chat-stream::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.10); border-radius: 4px; }
.pf-chat-stream .msg {
  font-size: 12.5px;
  padding: 8px 12px;
  max-width: 88%;
}
.pf-chat-stream .msg.typing { padding: 10px 14px; }

/* Reach card adjustments inside flow */
.pf-body .pcard.pf-reach {
  background: linear-gradient(135deg, #1A0B2E 0%, #0F0820 100%);
  color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.pf-body .pcard.pf-strategy {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.planner-flow .pcard.accent .stat-num {
  font-size: 56px;
  line-height: 1;
  margin: 12px 0 10px;
}
.planner-flow .pcard.accent .stat-uu {
  font-size: 12px;
  margin-bottom: 4px;
}
.planner-flow .pcard.accent .stat-uu b { font-size: 14px; }
.planner-flow .pcard.accent .micro-grid {
  margin-top: 18px;
  padding-top: 14px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}
.planner-flow .pcard.accent .micro .k { font-size: 9px; }
.planner-flow .pcard.accent .micro .v { font-size: 14px; }

/* Strategy column */
.pf-strategy-axis {
  font-size: 11px;
  color: var(--fg-faint);
  margin-bottom: 12px;
  font-weight: 500;
}
.pf-strategy .modes { gap: 6px; }
.pf-strategy .mode-row {
  padding: 10px 12px;
  font-size: 12px;
}
.pf-strategy .mode-row .nm { font-size: 13px; }
.pf-strategy .mode-row .sb { font-size: 10.5px; }
.pf-strategy .mode-row .pct { font-size: 14px; }

/* legacy planner-grid (kept for any rollback) */
.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 920px) { .planner-grid { grid-template-columns: 1fr; } }
.planner-pane {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px -30px rgba(18,18,18,0.20);
}
.planner-pane .ph {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.planner-pane .ph .step-c {
  padding: 6px 12px;
  background: rgba(159,68,251,0.10);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
}
.planner-pane .ph .step-c.ok {
  background: rgba(8,160,69,0.12);
  color: var(--kc-success-500);
}

.chat-stream { display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 80%;
  word-wrap: break-word;
}
.msg.bot {
  background: var(--bg-alt, #F2F2F4);
  color: var(--fg);
  border-radius: 14px 14px 14px 4px;
  align-self: flex-start;
}
.msg.usr {
  background: linear-gradient(135deg, var(--kc-violet-600), var(--kc-violet-500));
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  align-self: flex-end;
  box-shadow: 0 4px 12px -4px rgba(159,68,251,0.40);
}
.msg.typing { background: var(--bg-alt, #F2F2F4); padding: 14px 16px; border-radius: 14px 14px 14px 4px; align-self: flex-start; display: inline-flex; gap: 4px; }
.msg.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-faint);
  animation: blink 1.2s infinite;
}
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.9); }
  30% { opacity: 1; transform: scale(1.1); }
}

.params { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.params > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.params .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); font-family: var(--kc-font-mono); }
.params .v { font-size: 15px; font-weight: 600; }
.params .calc-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--kc-violet-600), var(--kc-fuchsia-500));
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 200ms;
}
.params .calc-btn:hover { transform: translateY(-2px); }

.plan-output {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
@media (max-width: 920px) { .plan-output { grid-template-columns: 1fr; } }
.pcard {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 60px -30px rgba(18,18,18,0.20);
}
.pcard.accent {
  background: linear-gradient(180deg, #1A0B2E 0%, #0F0820 100%);
  color: #fff;
  border: 1px solid rgba(159,68,251,0.25);
  position: relative;
  overflow: hidden;
}
.pcard.accent::before {
  content: "";
  position: absolute;
  bottom: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(159,68,251,0.40) 0%, transparent 65%);
  filter: blur(60px);
}
.pcard.accent > * { position: relative; z-index: 1; }
.pcard .hd {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
.pcard:not(.accent) .hd { color: var(--fg-faint); }
.pcard.accent .hd .ttl { color: var(--kc-cyan-300); display: inline-flex; align-items: center; gap: 8px; }
.pcard.accent .hd .ttl::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--kc-cyan-300);
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }
.pcard.accent .stat-num {
  font-size: 144px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--kc-cyan-300) 0%, var(--kc-violet-300) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.pcard.accent .stat-num span { font-size: 0.4em; opacity: 0.6; }
.pcard.accent .stat-uu { font-size: 15px; }
.pcard.accent .stat-uu b { color: #fff; font-size: 17px; font-weight: 700; }
.pcard.accent .stat-uu span { color: rgba(255,255,255,0.55); margin-left: 8px; }
.pcard.accent .micro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.pcard.accent .micro .k {
  font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.pcard.accent .micro .v { font-size: 18px; font-weight: 700; }
.pcard.accent .micro .v.acc { color: var(--kc-cyan-300); }

.modes { display: flex; flex-direction: column; gap: 10px; }
.mode-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: all 220ms;
}
.mode-row:hover { border-color: var(--accent); background: rgba(159,68,251,0.04); }
.mode-row.active {
  background: linear-gradient(135deg, rgba(159,68,251,0.10), rgba(76,203,255,0.06));
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(159,68,251,0.10);
}
.mode-row .l { display: flex; flex-direction: column; gap: 2px; }
.mode-row .nm { font-weight: 600; font-size: 14px; }
.mode-row .sb { font-size: 12px; color: var(--fg-dim); }
.mode-row .pct { font-family: var(--kc-font-mono); font-weight: 700; font-size: 16px; color: var(--accent); }

/* ============================================================
   EXECUTE SECTION
   ============================================================ */
.exec {
  background: var(--kc-base-900);
  color: #fff;
  position: relative;
  overflow: hidden;
  --fg: #fff; --fg-dim: rgba(245,242,250,0.62); --fg-faint: rgba(245,242,250,0.42); --hairline: rgba(255,255,255,0.10);
}
.exec::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 20% 30%, rgba(76,203,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(159,68,251,0.20) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.exec .wrap-wide { position: relative; z-index: 1; }

.diagram {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 50px;
  position: relative;
}
@media (max-width: 1100px) { .diagram { grid-template-columns: 1fr; } }

/* Flow lines overlay */
.diagram-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.diagram-flow .line-in {
  fill: none;
  stroke: url(#flowGradIn);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0;
  animation: flowFade 700ms cubic-bezier(0.2,0.8,0.2,1) forwards, flowDash 18s linear infinite;
}
.diagram-flow .line-out {
  fill: none;
  stroke: url(#flowGradOut);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(8,160,69,0.45));
  opacity: 0;
  animation: flowFade 900ms 200ms cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.diagram-flow .dot-in,
.diagram-flow .dot-out {
  fill: var(--kc-cyan-300);
  opacity: 0;
  animation: flowFade 600ms 400ms forwards;
}
.diagram-flow .dot-out { fill: var(--kc-success-500); }
@keyframes flowFade { to { opacity: 1; } }
@keyframes flowDash { to { stroke-dashoffset: -200; } }

.diagram > div { position: relative; z-index: 1; }
.diagram h4 {
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.input-list, .level-list { display: flex; flex-direction: column; gap: 12px; }
.input-list .input {
  display: flex; gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 220ms;
}
.input-list .input:hover {
  background: rgba(76,203,255,0.06);
  border-color: rgba(76,203,255,0.30);
  transform: translateX(3px);
}
.input-list .input .ic {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(76,203,255,0.18), rgba(159,68,251,0.12));
  color: var(--kc-cyan-300);
  display: grid; place-items: center;
  font-family: 'Material Symbols Rounded'; font-size: 20px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.input-list .input .t { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.input-list .input .s { font-size: 12px; color: rgba(245,242,250,0.55); line-height: 1.4; }

.core {
  text-align: center;
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(159,68,251,0.18) 0%, rgba(76,203,255,0.08) 100%);
  border: 1px solid rgba(159,68,251,0.30);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 60px -10px rgba(159,68,251,0.50), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.core::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--kc-cyan-300), var(--kc-violet-500), var(--kc-fuchsia-500), var(--kc-cyan-300));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-grad 6s linear infinite;
  pointer-events: none;
}
@keyframes spin-grad { 0%{ background-position: 0% 50%; } 100%{ background-position: 200% 50%; } }
.core .glyph {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kc-violet-600), var(--kc-fuchsia-500));
  display: grid; place-items: center; margin: 0 auto 12px;
  color: #fff;
  font-family: 'Material Symbols Rounded'; font-size: 26px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
  box-shadow: 0 8px 20px -6px rgba(159,68,251,0.60);
}
.core .t { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.core .s { font-size: 11px; color: rgba(245,242,250,0.60); margin-bottom: 14px; line-height: 1.4; }
.core .b {
  font-family: var(--kc-font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  color: var(--kc-cyan-300);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.level-list .level {
  padding: 18px 20px;
  background: #222222;
  border: 1px solid #434343;
  border-radius: 14px;
  position: relative;
}
.level-list .level.best {
  background: linear-gradient(135deg, rgba(8,160,69,0.10), rgba(76,203,255,0.06));
  border-color: rgba(8,160,69,0.40);
}
.level-list .level.bad { opacity: 0.6; }
.level-list .level .t { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.level-list .level .s { font-size: 12px; color: rgba(245,242,250,0.6); margin-bottom: 10px; line-height: 1.4; }
.level-list .level .res {
  font-family: var(--kc-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(245,242,250,0.5);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.level-list .level.best .res { color: var(--kc-success-500); }
.level-list .level.best .res::before { content: "● "; color: var(--kc-cyan-300); }

/* Smart Bidding delivers — 4-up value props */
.sb-delivers { margin-top: 80px; }
.sb-delivers-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sb-delivers-head h3 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  max-width: 520px;
}
.sb-delivers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sb-card {
  padding: 24px;
  background: #222222;
  border: 1px solid #434343;
  border-radius: 14px;
  transition: all 220ms cubic-bezier(0.2,0.8,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sb-card:hover {
  background: rgba(76,203,255,0.06);
  border-color: rgba(76,203,255,0.30);
  transform: translateY(-2px);
}
.sb-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kc-violet-500), var(--kc-fuchsia-500));
  display: grid; place-items: center;
  font-family: 'Material Symbols Rounded';
  font-size: 22px;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.sb-card .t {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.sb-card .s {
  font-size: 13px;
  color: rgba(245,242,250,0.60);
  line-height: 1.5;
}
@media (max-width: 1080px) {
  .sb-delivers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sb-delivers-grid { grid-template-columns: 1fr; }
}

/* Live optimization mockup */
.optim-bridge { max-width: 720px; margin-top: 80px; margin-bottom: 32px; }
.optim-bridge h3 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0;
}
.optim-bridge .lead { color: rgba(245,242,250,0.65); }

.optim-screen {
  background: #1A1A1E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
  will-change: transform;
}
.optim-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.optim-chrome .lights { display: inline-flex; gap: 6px; }
.optim-chrome .lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.optim-chrome .url {
  flex: 1; text-align: center;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  color: rgba(245,242,250,0.55);
}
.opt-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--kc-violet-600), var(--kc-fuchsia-500));
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  box-shadow: 0 4px 12px -4px rgba(159,68,251,0.50);
}
.optim-body { padding: 24px 28px; }
.optim-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap; gap: 16px;
}
.camp-info { display: flex; align-items: center; gap: 12px; }
.camp-name { font-size: 16px; font-weight: 700; }
.opt-status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(8,160,69,0.16);
  color: var(--kc-success-500);
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
}
.opt-status-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--kc-success-500); box-shadow: 0 0 6px currentColor; animation: pulse 1.6s infinite; }
.camp-meta { display: flex; flex-direction: column; gap: 2px; font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(245,242,250,0.5); }
.camp-meta span { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: 0; text-transform: none; }
.optim-budget {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 20px;
}
.optim-budget .b-label { font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,242,250,0.45); }
.optim-budget .b-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: var(--r-pill); overflow: hidden; }
.optim-budget .b-bar-fill { height: 100%; background: linear-gradient(90deg, var(--kc-cyan-300), var(--kc-violet-500)); border-radius: inherit; transform-origin: left; animation: bar-grow 1600ms cubic-bezier(0.2,0.8,0.2,1) both; }
.optim-budget .b-nums { font-size: 12px; color: rgba(245,242,250,0.65); }
.optim-budget .b-nums b { color: #fff; font-weight: 600; }
.optim-tabs { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.optim-tabs .tab {
  padding: 10px 0;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,250,0.45);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.optim-tabs .tab.active { color: var(--kc-cyan-300); border-bottom-color: var(--kc-cyan-300); }
.optim-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.optim-table thead th {
  text-align: left;
  font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(245,242,250,0.45);
  padding: 10px 8px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.optim-table tbody td { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(245,242,250,0.85); }
.optim-table .td-name { font-weight: 600; color: #fff; }
.optim-table .td-sub { font-size: 10px; font-family: var(--kc-font-mono); color: rgba(245,242,250,0.45); }
.active-tag, .pace-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.active-tag { background: rgba(8,160,69,0.16); color: var(--kc-success-500); }
.pace-tag.ahead { background: rgba(76,203,255,0.16); color: var(--kc-cyan-300); }
.optim-table .acc { color: var(--kc-cyan-300); font-weight: 600; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; }
.spark .sb { width: 4px; background: rgba(245,242,250,0.20); border-radius: 1px; }
.spark .sb.hi { background: var(--kc-cyan-300); }

/* ============================================================
   REPORT SECTION
   ============================================================ */
.measure { background: var(--kc-base-0); position: relative; overflow: hidden; }
.measure::before {
  content: "";
  position: absolute; right: -200px; top: 5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(76,203,255,0.12) 0%, transparent 65%);
  z-index: 0;
}

.browser {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(18,18,18,0.25);
  margin-top: 40px;
}
.browser .chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: #FAFAFC;
  border-bottom: 1px solid var(--hairline);
}
.browser .chrome .lights i { background: var(--kc-base-200); }
.browser .chrome .url {
  flex: 1; text-align: center;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(217,4,41,0.10);
  color: var(--kc-error-500);
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--kc-error-500); box-shadow: 0 0 6px currentColor; animation: pulse 1.2s infinite; }
.browser .panel { padding: 28px 32px; }
.row1 { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(8,160,69,0.12);
  color: var(--kc-success-500);
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
}
.status-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.flag-tag {
  padding: 6px 14px;
  background: var(--bg-alt, #F2F2F4);
  color: var(--fg-dim);
  border-radius: var(--r-pill);
  font-family: var(--kc-font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
}
.camp-id { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.camp-id span { display: block; font-size: 12px; color: var(--fg-dim); font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.pacing { margin: 24px 0; }
.pacing .top { display: flex; justify-content: space-between; font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.pacing .top .pct { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.pacing-bar { height: 8px; background: var(--bg-alt, #F2F2F4); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 8px; }
.pacing-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--kc-cyan-300), var(--kc-violet-500));
  border-radius: inherit;
  transform-origin: left;
  animation: bar-grow 1600ms cubic-bezier(0.2,0.8,0.2,1) both;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--hairline); }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats .s .k { font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 4px; }
.stats .s .n { font-family: var(--kc-font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }
.stats .s .n.acc {
  background: linear-gradient(135deg, var(--kc-cyan-900), var(--kc-violet-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.breakdowns { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr; gap: 18px; margin-top: 24px; }
@media (max-width: 1000px) { .breakdowns { grid-template-columns: 1fr; } }
.breakdowns .panel { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 24px; }
.breakdowns .panel h4 { font-size: 13px; font-weight: 600; margin-bottom: 18px; color: var(--fg); letter-spacing: -0.005em; }
.quartiles { display: flex; align-items: flex-end; justify-content: space-around; height: 130px; }
.quartiles .q { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.quartiles .barv { width: 28px; height: 88px; background: var(--bg-alt, #F2F2F4); border-radius: 6px; overflow: hidden; display: flex; align-items: flex-end; }
.quartiles .barv i { width: 100%; background: linear-gradient(180deg, var(--kc-cyan-300), var(--kc-violet-500)); }
.quartiles .pct { font-family: var(--kc-font-mono); font-size: 12px; font-weight: 700; color: var(--accent); }
.quartiles .lbl { font-family: var(--kc-font-mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.10em; }

/* Frequency curve */
.freq-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.breakdowns .panel .freq-head h4 { margin-bottom: 0; }
.freq-sub {
  font-size: 11px;
  color: var(--fg-faint);
  font-weight: 500;
}
.freq-curve {
  display: grid;
  grid-template-columns: 14px 22px 1fr;
  grid-template-rows: 1fr 16px 16px;
  column-gap: 8px;
  row-gap: 4px;
  align-items: stretch;
}
.freq-y-label {
  grid-column: 1; grid-row: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-family: var(--kc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-dim);
  align-self: center;
}
.freq-y-nums {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
  font-family: var(--kc-font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  text-align: right;
  line-height: 1;
  padding-top: 0;
}
.freq-y-nums span { display: block; }
.freq-plot {
  grid-column: 3; grid-row: 1;
  position: relative;
  height: 160px;
}
.freq-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.freq-svg .freq-grid line {
  stroke: rgba(0,0,0,0.10);
  stroke-width: 0.5;
  stroke-dasharray: 1 1.5;
  vector-effect: non-scaling-stroke;
}
.freq-svg .freq-grid line:last-child {
  stroke: rgba(0,0,0,0.18);
  stroke-dasharray: none;
}
.freq-svg .freq-line {
  stroke: var(--kc-violet-500);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(159,68,251,0.25));
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: freqDraw 1.6s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.freq-svg .freq-area {
  opacity: 0;
  animation: freqFade 1s 1s ease-out forwards;
}
.freq-dot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.freq-dot {
  position: absolute;
  top: 3%; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--kc-violet-500);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(159,68,251,0.40);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: freqFade 600ms 1.4s ease-out forwards;
}
.freq-x-nums {
  grid-column: 3; grid-row: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  font-family: var(--kc-font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  text-align: center;
  padding-top: 2px;
}
.freq-x-label {
  grid-column: 3; grid-row: 3;
  text-align: center;
  font-family: var(--kc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 4px;
}
@keyframes freqDraw { to { stroke-dashoffset: 0; } }
@keyframes freqFade { to { opacity: 1; } }

.device { display: flex; flex-direction: column; gap: 8px; }
.device .d { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; }
.device .d .n { color: var(--fg); font-weight: 500; }
.device .d .bar { height: 8px; background: var(--bg-alt, #F2F2F4); border-radius: var(--r-pill); overflow: hidden; }
.device .d .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--kc-cyan-300), var(--kc-violet-500)); }
.device .d .v { font-family: var(--kc-font-mono); font-size: 12px; font-weight: 600; color: var(--accent); text-align: right; }

.ages { display: flex; align-items: flex-end; justify-content: space-around; padding-top: 10px; }
.ages .a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ages .a .col { height: 100px; width: 32px; display: flex; align-items: flex-end; }
.ages .a .col i { width: 100%; background: linear-gradient(180deg, rgba(76,203,255,0.7), var(--kc-violet-500)); border-radius: 6px; }
.ages .a.peak .col i { background: linear-gradient(180deg, var(--kc-cyan-300), var(--kc-fuchsia-500)); }
.ages .a .pct { font-family: var(--kc-font-mono); font-size: 11px; font-weight: 700; }
.ages .a.peak .pct { color: var(--accent); }
.ages .a .lbl { font-family: var(--kc-font-mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.06em; }

/* Top placements */
.top-placements { margin-top: 40px; }
.tp-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.tp-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tp-meta { font-family: var(--kc-font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.10em; text-transform: uppercase; }
.tp-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 920px) { .tp-channels { grid-template-columns: 1fr; } }
.tp-channel-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.tp-channel-name { font-size: 16px; font-weight: 700; }
.tp-channel-count { font-family: var(--kc-font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.10em; }
.tp-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 720px) { .tp-items { grid-template-columns: 1fr 1fr 1fr; } }
.tp-item {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 240ms, box-shadow 240ms, border-color 240ms;
}
.tp-item:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px -16px rgba(159,68,251,0.30); }
.tp-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--kc-violet-600), var(--kc-fuchsia-500));
  display: grid; place-items: center;
  position: relative;
  color: #fff;
  font-family: 'Material Symbols Rounded'; font-size: 36px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}
.tp-thumb.t-game { background: linear-gradient(135deg, #2A6FE6, #B33AF0); }
.tp-thumb.t-yt   { background: linear-gradient(135deg, #F35B04, #D90429); }
.tp-thumb .badge {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--kc-violet-600);
  display: grid; place-items: center;
  font-family: 'Material Symbols Rounded'; font-size: 12px;
  font-variation-settings: 'FILL' 1, 'wght' 700;
}
.tp-body { padding: 10px 12px 14px; }
.tp-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.tp-match { font-family: var(--kc-font-mono); font-size: 11px; color: var(--fg-dim); }
.tp-match b { color: var(--accent); font-weight: 700; }

/* ============================================================
   ACCESS
   ============================================================ */
.access { background: var(--kc-base-0); }
.access-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 880px) { .access-cards { grid-template-columns: 1fr; } }
.acc-card {
  padding: 48px 42px;
  background: #ffffff;
  border: 1px solid #8B8B8B;
  border-radius: 24px;
  transition: transform 280ms, box-shadow 280ms, border-color 280ms;
  position: relative;
  overflow: hidden;
}
.acc-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 30px 60px -20px rgba(159,68,251,0.18); }
.acc-card .num {
  font-family: var(--kc-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.acc-card h3 { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.acc-card .d { font-size: 16px; color: var(--fg-dim); line-height: 1.6; margin-bottom: 24px; }
.acc-card .b {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.acc-card .b b { color: var(--fg); font-weight: 700; }

/* ============================================================
   CTA — Light w/ L-notch on dark layer
   ============================================================ */
.cta-section {
  background: var(--kc-base-900);
  padding: 0 0 0 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(159,68,251,0.40) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(76,203,255,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  background: var(--kc-base-0);
  border-radius: var(--r-notch) 0 0 0;
  padding: 140px 0 140px 0;
  position: relative;
  z-index: 1;
}
.cta-inner .wrap-wide { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; align-items: end; }
@media (max-width: 920px) { .cta-inner .wrap-wide { grid-template-columns: 1fr; } }
.cta-inner h2 {
  font-size: var(--display-xxl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 24px 0;
}
.cta-inner h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--kc-violet-500) 0%, var(--kc-fuchsia-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.cta-side {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 70px -30px rgba(18,18,18,0.20);
}
.cta-side .lab { font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 10px; }
.cta-side .email { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 24px; word-break: break-all; }
.cta-side .lab-2 { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 20px; }
.cta-side .btn { width: 100%; justify-content: center; }
.cta-iso {
  position: absolute;
  top: -100px; left: -80px;
  width: 360px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--kc-base-900);
  color: rgba(245,242,250,0.7);
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(159,68,251,0.18) 0%, transparent 70%);
  filter: blur(60px);
}
.footer .wrap-wide { position: relative; z-index: 1; }
.footer .row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 900px) { .footer .row { grid-template-columns: 1fr 1fr; } }
.footer .brand-block .logo-block { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer .brand-block .logo-block img.logo { height: 22px; filter: brightness(0) invert(1); }
.footer .brand-block .logo-block img.iso { height: 36px; }
.footer .brand-block .desc { font-size: 14px; line-height: 1.6; color: rgba(245,242,250,0.55); max-width: 36ch; }
.footer h5 {
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,250,0.45);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: rgba(245,242,250,0.72); transition: color 200ms; }
.footer ul li a:hover { color: var(--kc-cyan-300); }
.footer .legal {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  font-family: var(--kc-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245,242,250,0.40);
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   TWEAKS PANEL (custom-styled — minimal)
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 280px;
  background: rgba(20,20,24,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px;
  z-index: 200;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
  display: none;
}
.tweaks-panel.open { display: block; animation: tw-in 280ms cubic-bezier(0.2,0.8,0.2,1); }
@keyframes tw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tweaks-panel .tw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tweaks-panel .tw-title { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--kc-cyan-300); }
.tweaks-panel .tw-close { color: rgba(255,255,255,0.6); font-size: 18px; line-height: 1; }
.tweaks-panel .tw-row { margin-bottom: 14px; }
.tweaks-panel .tw-row:last-child { margin-bottom: 0; }
.tweaks-panel .tw-label { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 6px; font-family: var(--kc-font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tweaks-panel .tw-seg { display: flex; gap: 4px; background: rgba(255,255,255,0.06); padding: 3px; border-radius: 10px; }
.tweaks-panel .tw-seg button {
  flex: 1; padding: 7px 8px;
  border-radius: 7px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: background 180ms, color 180ms;
}
.tweaks-panel .tw-seg button.on {
  background: linear-gradient(135deg, var(--kc-violet-500), var(--kc-fuchsia-500));
  color: #fff;
}
.tweaks-panel .tw-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: rgba(255,255,255,0.10); border-radius: 999px; outline: none; }
.tweaks-panel .tw-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--kc-cyan-300), var(--kc-violet-500)); cursor: pointer; box-shadow: 0 0 0 3px rgba(0,0,0,0.4); }
.tweaks-panel .tw-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--kc-cyan-300), var(--kc-violet-500)); border: 0; cursor: pointer; box-shadow: 0 0 0 3px rgba(0,0,0,0.4); }
.tweaks-panel .tw-color { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tweaks-panel .tw-color button {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 180ms, border-color 180ms;
}
.tweaks-panel .tw-color button:hover { transform: scale(1.05); }
.tweaks-panel .tw-color button.on { border-color: #fff; }

/* Color palette variants */
[data-palette="violet"] { --accent: var(--kc-violet-500); --accent-2: var(--kc-cyan-300); --accent-3: var(--kc-fuchsia-500); }
[data-palette="cyan"]   { --accent: var(--kc-cyan-300);   --accent-2: var(--kc-violet-500); --accent-3: var(--kc-fuchsia-500); }
[data-palette="fuchsia"]{ --accent: var(--kc-fuchsia-500);--accent-2: var(--kc-violet-500); --accent-3: var(--kc-cyan-300); }

/* Animation intensity */
[data-anim="0"] *, [data-anim="0"] *::before, [data-anim="0"] *::after { animation: none !important; transition: none !important; }
[data-anim="0"] .blob { opacity: 0.3 !important; }
[data-anim="50"] .blob { opacity: 0.4; }

/* Parallax disabled */
[data-parallax="0"] [data-parallax-speed] { transform: none !important; }
