/* ==========================================================================
   CommentVibe landing — design tokens mirror commentvibe-app (Home.razor.css)
   and dashboard-render so the landing, app and report read as one product.
   ========================================================================== */
:root {
  --bg: #f1ede4;
  --bg-alt: #ebe6db;
  --panel: #fffdf8;
  --panel-alt: #ffffff;
  --ink: #211d28;
  --ink-soft: #4a4555;
  --ink-faint: #837e8e;
  --line: rgba(33,29,40,0.12);
  --line-soft: rgba(33,29,40,0.07);

  --magenta: #d6266e;
  --magenta-hover: #b81f5f;
  --amber: #c97e0a;
  --cyan: #0e87b0;
  --good: #1f8a4c;
  --bad: #c4332f;
  --neutral: #c8c1ab;

  --youtube: #e62117;
  --instagram: #c13584;
  --tiktok: #d1264a;

  --magenta-soft: rgba(214,38,110,0.10);
  --amber-soft: rgba(201,126,10,0.10);
  --cyan-soft: rgba(14,135,176,0.10);
  --good-soft: rgba(31,138,76,0.10);
  --bad-soft: rgba(196,51,47,0.10);

  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(33,29,40,0.04), 0 6px 18px rgba(33,29,40,0.06);
  --shadow-sm: 0 1px 2px rgba(33,29,40,0.05);
  --shadow-lg: 0 2px 4px rgba(33,29,40,0.04), 0 18px 48px rgba(33,29,40,0.12);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(214,38,110,0.05), transparent 40%),
    radial-gradient(ellipse at 90% 6%, rgba(14,135,176,0.06), transparent 40%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.accent { color: var(--magenta); }
.eta { color: var(--amber); font-weight: 700; }
.c-good { color: var(--good); }
.c-bad { color: var(--bad); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--cyan); }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-lg { padding: 16px 26px; font-size: 14px; font-weight: 700; }
.btn-block { width: 100%; }
.btn-magenta { background: var(--magenta); color: #fff; box-shadow: 0 6px 18px rgba(214,38,110,0.22); }
.btn-magenta:hover { background: var(--magenta-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--panel-alt); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(241,237,228,0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand-icon { width: 36px; height: 36px; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.02em; color: var(--ink); line-height: 1; }
.brand-word span { color: var(--magenta); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover { color: var(--magenta); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 16px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { padding: 64px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-soft); margin: 20px 0 0; max-width: 540px; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  color: var(--ink);
}
.pc-dot { width: 8px; height: 8px; border-radius: 50%; }
.pc-youtube .pc-dot { background: var(--youtube); }
.pc-instagram .pc-dot { background: linear-gradient(135deg, #f58529, var(--instagram), #515bd4); }
.pc-tiktok .pc-dot { background: var(--ink); box-shadow: -2px -1px 0 #25f4ee, 2px 1px 0 #fe2c55; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
}
.hero-note strong { color: var(--ink); }
.hero-note .eta { color: var(--amber); }

/* hero visual */
.hero-visual { position: relative; padding: 18px 10px 30px; }
.mock-window {
  background: var(--panel);
  border: 1px solid rgba(33,29,40,0.14);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1deg);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ece6d9;
  border-bottom: 1px solid var(--line);
}
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(33,29,40,0.16); }
.mock-url {
  margin-left: 10px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  background: var(--panel-alt);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-body { padding: 16px; }

.marquee {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fffdf8);
  border: 1px solid rgba(33,29,40,0.13);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px;
  box-shadow: var(--shadow);
}
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(33,29,40,0.04) 0 1px, transparent 1px 38px);
  pointer-events: none;
}
.marquee-eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.net-badge {
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}
.nb-youtube { background: var(--youtube); }
.marquee-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.1;
}
.marquee-handle { position: relative; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

.ticket-strip {
  position: relative;
  margin-top: 14px;
  background: #fff;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(33,29,40,0.11);
  box-shadow: 0 1px 4px rgba(33,29,40,0.06);
}
.ticket-cell {
  position: relative;
  padding: 11px 10px 10px;
  border-right: 1px dashed rgba(33,29,40,0.14);
  border-top: 3px solid transparent;
  min-width: 0;
}
.ticket-cell:last-child { border-right: none; }
.ticket-cell::before, .ticket-cell::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: #fffdf8;
  border-radius: 50%;
  right: -5px;
  z-index: 1;
}
.ticket-cell::before { top: -8px; }
.ticket-cell::after { bottom: -5px; }
.ticket-cell:last-child::before, .ticket-cell:last-child::after { display: none; }
.ticket-cell.t-magenta { border-top-color: var(--magenta); }
.ticket-cell.t-good { border-top-color: var(--good); }
.ticket-cell.t-amber { border-top-color: var(--amber); }
.ticket-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; line-height: 1; }
.ticket-sub { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.frame {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
}
.frame-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
}
.frame-thumb span {
  position: absolute;
  right: 5px; bottom: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 1px 4px;
  border-radius: 3px;
}
.ft-1 { background: linear-gradient(135deg, var(--magenta), var(--amber)); }
.ft-2 { background: linear-gradient(135deg, var(--ink-soft), var(--cyan)); }
.ft-3 { background: linear-gradient(135deg, var(--cyan), var(--good)); }
.frame-body { padding: 8px 9px 9px; }
.frame-date { font-family: var(--font-mono); font-size: 9px; color: var(--ink-faint); }
.frame-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.sent-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 1px; }
.sent-bar i { display: block; height: 100%; }
.s-pos { background: var(--good); }
.s-neu { background: var(--neutral); }
.s-neg { background: var(--bad); }
.sent-pct { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8.5px; margin-top: 4px; }

.float-card {
  position: absolute;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px 13px;
  max-width: 230px;
  animation: float 6s ease-in-out infinite;
}
.fc-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); font-weight: 600; }
.fc-text { font-size: 12.5px; font-weight: 600; line-height: 1.35; margin-top: 3px; }
.fc-question { left: -34px; bottom: -6px; border-left: 3px solid var(--cyan); }
.fc-tension { right: -18px; top: -8px; border-left: 3px solid var(--bad); animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 40px; }
.section-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--magenta);
  padding-top: 8px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.section-desc { margin: 8px 0 0; color: var(--ink-soft); font-size: 15.5px; max-width: 620px; }

/* pain strip */
.section-pain { padding: 12px 0 28px; }
.pain-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--panel-alt);
  border: 1px solid rgba(33,29,40,0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pain-cell { padding: 26px 28px; border-right: 1px dashed rgba(33,29,40,0.16); }
.pain-cell:last-child { border-right: none; }
.pain-cell.accent { background: var(--magenta-soft); }
.pain-value { font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1; }
.pain-cell.accent .pain-value { color: var(--magenta); }
.pain-label { font-size: 14px; color: var(--ink-soft); margin-top: 10px; max-width: 280px; }

/* cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-top-magenta { border-top-color: var(--magenta); }
.card-top-cyan { border-top-color: var(--cyan); }
.card-top-amber { border-top-color: var(--amber); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--good) 0 8px, transparent 8px 14px);
  opacity: 0.6;
}
.step { display: flex; flex-direction: column; align-items: center; }
.step-dot {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  background: var(--good);
  color: #fff;
  box-shadow: 0 0 0 5px var(--bg-alt);
  margin-bottom: 18px;
}
.step:last-child .step-dot { background: var(--magenta); box-shadow: 0 0 0 5px var(--bg-alt), 0 0 0 9px var(--magenta-soft); }
.step-card {
  width: 100%;
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-card p { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.step-demo {
  margin-top: auto;
  background: var(--panel-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.demo-input {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 11px;
  border: 1.5px solid var(--cyan);
  border-radius: 8px;
  color: var(--ink);
}
.caret { display: inline-block; width: 1.5px; height: 13px; background: var(--ink); margin-left: 2px; vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-ok {
  display: inline-block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--good);
  background: var(--good-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 11.5px;
}
.demo-row + .demo-row { margin-top: 5px; }
.demo-row.sel { border-color: var(--magenta); background: #fffaf9; }
.demo-check {
  width: 14px; height: 14px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 2px solid var(--line);
  font-size: 9px;
  line-height: 10px;
  text-align: center;
  color: #fff;
}
.demo-row.sel .demo-check { background: var(--magenta); border-color: var(--magenta); }
.demo-thumb { width: 28px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.demo-t { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-row b { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.demo-progress { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.demo-progress i {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--amber));
  animation: progress 3.6s ease-in-out infinite;
}
@keyframes progress { 0% { width: 12%; } 70%, 100% { width: 88%; } }
.demo-progress-label { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }

/* report features */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 6px;
}
.feature h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.feature-mock {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* trend */
.trend-bars {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.tb {
  flex: 1;
  height: var(--h);
  background: var(--good);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transform-origin: bottom;
  transition: opacity 0.15s;
}
.tb:hover { opacity: 1; }
.tb.neg { background: var(--bad); }
.tb.neu { background: var(--neutral); }
.js .reveal .tb { transform: scaleY(0); transition: transform 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.15s; }
.js .reveal.visible .tb { transform: scaleY(1); }
.js .reveal.visible .tb:nth-child(2) { transition-delay: 0.04s; }
.js .reveal.visible .tb:nth-child(3) { transition-delay: 0.08s; }
.js .reveal.visible .tb:nth-child(4) { transition-delay: 0.12s; }
.js .reveal.visible .tb:nth-child(5) { transition-delay: 0.16s; }
.js .reveal.visible .tb:nth-child(6) { transition-delay: 0.20s; }
.js .reveal.visible .tb:nth-child(7) { transition-delay: 0.24s; }
.js .reveal.visible .tb:nth-child(8) { transition-delay: 0.28s; }
.js .reveal.visible .tb:nth-child(9) { transition-delay: 0.32s; }
.js .reveal.visible .tb:nth-child(10) { transition-delay: 0.36s; }
.trend-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); margin-top: 6px; }

/* passport */
.pp-cards { display: grid; gap: 8px; }
.pp-card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}
.pp-good { border-left-color: var(--good); }
.pp-bad { border-left-color: var(--bad); }
.pp-cyan { border-left-color: var(--cyan); }
.pp-label { font-family: var(--font-display); text-transform: uppercase; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; }
.pp-good .pp-label { color: var(--good); }
.pp-bad .pp-label { color: var(--bad); }
.pp-cyan .pp-label { color: var(--cyan); }
.pp-text { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }

/* questions */
.q-list { display: grid; gap: 8px; }
.q-card { background: var(--panel-alt); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.q-phrase { font-size: 13px; font-weight: 600; }
.q-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; }
.q-sub b { color: var(--magenta); }

/* heatmap */
.heatmap { display: grid; grid-template-columns: minmax(130px, 2.2fr) repeat(8, 1fr); gap: 3px; align-items: center; }
.hm-label { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.hm-cell { aspect-ratio: 1.5; border-radius: 3px; background: var(--line-soft); }
.hm-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }
.hm-legend span, .donut-legend div { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-good { background: var(--good); }
.lg-neu { background: var(--neutral); }
.lg-bad { background: var(--bad); }

/* authors */
.authors { display: grid; gap: 8px; }
.author {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}
.author > div { flex: 1; min-width: 0; }
.av {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.av-1 { background: linear-gradient(135deg, var(--magenta), var(--cyan)); }
.av-2 { background: linear-gradient(135deg, var(--amber), var(--magenta)); }
.av-3 { background: linear-gradient(135deg, var(--cyan), var(--good)); }
.a-name { font-size: 13px; font-weight: 600; }
.a-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.a-score { font-family: var(--font-mono); font-size: 15px; color: var(--magenta); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 26px; justify-content: center; }
.donut { width: 128px; height: 128px; transform: rotate(-90deg); flex-shrink: 0; }
.donut-legend { display: grid; gap: 8px; font-size: 13px; }
.donut-legend b { font-family: var(--font-mono); margin-left: 4px; }

/* ============ PRICING ============ */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(214,38,110,0.35), transparent 50%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 38px);
  pointer-events: none;
}
.price-main { position: relative; }
.price-big { font-family: var(--font-mono); font-size: 64px; font-weight: 700; line-height: 1; }
.price-unit { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(241,237,228,0.65); margin-top: 10px; }
.price-list { position: relative; list-style: none; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px dashed rgba(241,237,228,0.22); display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; font-size: 15px; }
.price-list li::before { content: "✓"; color: var(--magenta); font-weight: 700; }

.calc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.calc-title { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.panel-num { font-family: var(--font-mono); color: var(--magenta); font-size: 15px; }
.calc-label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.calc-value { font-family: var(--font-mono); font-size: 28px; font-weight: 600; margin: 4px 0 10px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--magenta) 0 var(--fill, 5%), var(--line) var(--fill, 5%) 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--magenta);
  box-shadow: 0 2px 6px rgba(33,29,40,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--magenta);
  box-shadow: 0 2px 6px rgba(33,29,40,0.2);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--magenta-soft); }
.calc-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 6px; }

.cost-ticket {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(33,29,40,0.11);
  box-shadow: 0 1px 4px rgba(33,29,40,0.06);
}
.cost-cell { padding: 14px 16px 13px; border-right: 1px dashed rgba(33,29,40,0.14); min-width: 0; }
.cost-cell:last-child { border-right: none; }
.cost-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 6px; }
.cost-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; line-height: 1; white-space: nowrap; }
.cost-cell.total .cost-value { color: var(--magenta); }
.calc-hint { font-family: var(--font-mono); font-size: 11px; color: var(--amber); margin: 10px 0 16px; min-height: 16px; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq details[open] { border-color: rgba(214,38,110,0.35); box-shadow: 0 0 0 3px var(--magenta-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--magenta);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--radius); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ============ FINAL CTA ============ */
.final { padding-top: 20px; }
.final-card {
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #fffdf8);
  border: 1px solid rgba(33,29,40,0.13);
  border-radius: 20px;
  padding: 56px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(214,38,110,0.08), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(14,135,176,0.08), transparent 50%),
    repeating-linear-gradient(90deg, rgba(33,29,40,0.035) 0 1px, transparent 1px 38px);
  pointer-events: none;
}
.final-card > * { position: relative; }
.final-icon { margin: 0 auto 16px; width: 56px; height: 56px; }
.final-card h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; max-width: 720px; margin: 0 auto; }
.final-card p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 28px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 30px; margin-top: 20px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand .brand-icon { width: 30px; height: 30px; }
.footer-brand .brand-word { font-size: 18px; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--magenta); }
.footer-legal { margin-top: 24px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; }

/* ============ REVEAL ============ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .reveal .tb { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .platforms, .hero-cta { justify-content: center; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .fc-question { left: -6px; }
  .fc-tension { right: -6px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 16px 14px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .nav a:last-child { border-bottom: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; }

  .grid-3, .steps, .report-grid { grid-template-columns: 1fr; }
  .steps::before { top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--good) 0 8px, transparent 8px 14px); }
  .step { flex-direction: row; align-items: flex-start; gap: 16px; }
  .step-dot { flex-shrink: 0; margin-bottom: 0; }
  .pricing { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-word { font-size: 18px; }
  .hero { padding: 36px 0 40px; }
  .lead { font-size: 15.5px; }
  .hero-cta .btn { width: 100%; }
  .hero-visual { padding: 12px 0 64px; }
  .mock-window { transform: none; }
  .mock-body { padding: 10px; }
  .ticket-strip { grid-template-columns: repeat(2, 1fr); }
  .ticket-cell:nth-child(2) { border-right: none; }
  .ticket-cell:nth-child(-n+2) { border-bottom: 1px dashed rgba(33,29,40,0.14); }
  .ticket-cell::before, .ticket-cell::after { display: none; }
  .mock-frames { grid-template-columns: repeat(2, 1fr); }
  .mock-frames .frame:nth-child(3) { display: none; }
  .float-card { max-width: 190px; padding: 8px 10px; }
  .fc-text { font-size: 11.5px; }
  .fc-tension { display: none; }
  .fc-question { left: 0; bottom: 4px; }

  .pain-strip { grid-template-columns: 1fr; }
  .pain-cell { border-right: none; border-bottom: 1px dashed rgba(33,29,40,0.16); padding: 20px 22px; }
  .pain-cell:last-child { border-bottom: none; }
  .pain-value { font-size: 28px; }

  .section-head { gap: 12px; margin-bottom: 28px; }
  .section-num { font-size: 13px; padding-top: 6px; }
  .feature { padding: 20px; }
  .feature-mock { padding: 12px; }
  .heatmap { grid-template-columns: minmax(96px, 2fr) repeat(8, 1fr); gap: 2px; }
  .hm-label { font-size: 10px; }
  .donut-wrap { gap: 18px; }
  .donut { width: 104px; height: 104px; }

  .price-card { padding: 28px 22px; }
  .price-big { font-size: 52px; }
  .calc { padding: 22px 18px; }
  .cost-ticket { grid-template-columns: 1fr; }
  .cost-cell { border-right: none; border-bottom: 1px dashed rgba(33,29,40,0.14); display: flex; justify-content: space-between; align-items: center; }
  .cost-cell:last-child { border-bottom: none; }
  .cost-label { margin-bottom: 0; }

  .faq summary { font-size: 15px; padding: 16px 48px 16px 18px; }
  .faq details p { padding: 0 18px 18px; font-size: 14.5px; }
  .final-card { padding: 40px 20px; }
  .footer-inner { flex-direction: column; }
}

/* ============ LEGAL PAGES ============ */
.legal { padding: 48px 0 72px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.legal-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 10px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 120px);
  overflow-y: auto;
}
.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding: 0 10px 8px;
}
.legal-toc a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.legal-toc a:hover { background: var(--bg); color: var(--magenta); }
.legal-toc a.active { background: var(--magenta-soft); color: var(--magenta); font-weight: 600; }
.legal-switch {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}
.legal-switch:hover { border-color: var(--magenta); color: var(--magenta); }

.legal-doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px 44px;
}
.legal-doc h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.legal-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.legal-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 22px 0 8px;
  padding: 16px 18px;
  background: var(--bg);
  border-left: 3px solid var(--magenta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal-doc section { padding-top: 30px; margin-top: 30px; border-top: 1px dashed var(--line); }
.legal-doc h2 { font-size: 21px; font-weight: 600; display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.legal-num { font-family: var(--font-mono); font-size: 14px; color: var(--magenta); min-width: 22px; }
.legal-doc p, .legal-doc li { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc strong { color: var(--ink); }
.legal-doc ul { margin: 0 0 12px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.legal-doc ul li { position: relative; padding-left: 20px; }
.legal-doc ul li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); }
.legal-doc a { color: var(--cyan); text-underline-offset: 2px; }
.legal-doc a:hover { color: var(--magenta); }

.requisites {
  background: #fff;
  border: 1px solid rgba(33,29,40,0.11);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(33,29,40,0.06);
  overflow: hidden;
}
.req-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px dashed rgba(33,29,40,0.14); }
.req-row:last-child { border-bottom: none; }
.req-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); padding-top: 2px; }
.req-value { font-weight: 600; color: var(--ink); text-align: right; }



@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-aside { position: static; }
  .legal-toc { display: none; }
}
@media (max-width: 640px) {
  .legal { padding: 24px 0 48px; }
  .legal-doc { padding: 26px 18px 30px; }
  .legal-doc h2 { font-size: 18px; }
  .legal-doc p, .legal-doc li { font-size: 14.5px; }
  .req-row { flex-direction: column; gap: 2px; }
  .req-value { text-align: left; }
}

/* ============ COOKIE BANNER ============ */
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #383049; }
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid rgba(33,29,40,0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 14px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.cookie-banner a { color: var(--cyan); }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; }
  .cookie-banner .btn { width: 100%; }
}
