/* delayed website — shared styles, Direction A (tight M3) */

:root {
  --primary: #D0BCFF;
  --primary-dim: #9C89CC;
  --on-primary: #381E72;
  --pri-cont: #4F378B;
  --on-pri-cont: #EADDFF;

  --surface: #141218;
  --surface-low: #1D1B20;
  --surface-1: #211F26;
  --surface-2: #2B2930;
  --surface-3: #36343B;
  --on-surface: #E6E0E9;
  --on-surface-var: #CAC4D0;

  --outline: #938F99;
  --outline-var: #49454F;
  --success: #B5CCBA;
  --warning: #F5D06A;
  --danger: #F2B8B5;

  --font: 'Roboto', sans-serif;
  --display: 'Protest Strike', 'Roboto', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --r-full: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 18, 24, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--outline-var);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  font-family: var(--display); font-size: 24px; letter-spacing: -0.02em;
  color: var(--on-surface); text-transform: lowercase;
}
.nav-links {
  display: flex; gap: 4px; font-size: 13px;
}
.nav-link {
  padding: 8px 12px; border-radius: var(--r-full); color: var(--on-surface-var);
  font-weight: 500; transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(208, 188, 255, .07); color: var(--on-surface); }
.nav-link.active { color: var(--primary); background: rgba(208,188,255,.1); }
.nav-spacer { flex: 1; }
.nav-cta {
  padding: 9px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 700;
  background: var(--primary); color: var(--on-primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: box-shadow .2s, transform .15s;
}
.nav-cta:hover { box-shadow: 0 6px 28px rgba(208,188,255,.3); transform: translateY(-1px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-full); font-size: 14px;
  font-weight: 700; transition: box-shadow .2s, transform .15s, background .15s;
  cursor: pointer; border: 0; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(208,188,255,.32); transform: translateY(-1px); }
.btn-tonal { background: var(--pri-cont); color: var(--on-pri-cont); }
.btn-outline { background: transparent; color: var(--on-surface); border: 1px solid var(--outline-var); font-weight: 500; }
.btn-outline:hover { background: rgba(208,188,255,.06); }
.btn-text { background: transparent; color: var(--primary); padding: 13px 12px; }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary); text-transform: uppercase;
}
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.muted { color: var(--on-surface-var); }
.lead { font-size: 17px; color: var(--on-surface-var); line-height: 1.65; }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface-1); border: 1px solid var(--outline-var);
  border-radius: var(--r-lg); padding: 24px;
}
.card-elev { background: var(--surface-2); }
.card-outlined-pri { border-color: var(--primary); background: var(--surface-2); }

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.chip-pri { background: rgba(208,188,255,.15); color: var(--primary); }
.chip-success { background: rgba(181,204,186,.15); color: var(--success); }
.chip-warning { background: rgba(245,208,106,.14); color: var(--warning); }
.chip-tonal { background: var(--primary); color: var(--on-primary); }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 80px; padding: 48px 0 32px;
  border-top: 1px solid var(--outline-var);
  font-size: 13px; color: var(--on-surface-var);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.footer h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-surface); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--on-surface); }
.footer-base { padding-top: 24px; border-top: 1px solid var(--outline-var); display: flex; align-items: center; gap: 18px; }
.footer-base-spacer { flex: 1; }

/* ---------- HERO ---------- */
.hero { padding: 88px 0 64px; position: relative; overflow: clip; }
.hero-glow {
  position: absolute; inset: -120px 0 auto 0; height: 580px; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(208,188,255,.16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--on-surface-var); }
.hero-meta span::before { content: '✓'; color: var(--success); margin-right: 6px; }

/* mini-player visual */
.mini-stack { position: relative; display: flex; justify-content: center; }
.mini-floats { position: absolute; right: -6px; top: -10px; display: flex; flex-direction: column; gap: 8px; }
.mini-float-chip {
  background: var(--surface-1); border: 1px solid var(--outline-var);
  border-radius: var(--r-full); padding: 6px 12px; font-size: 11px;
  display: flex; align-items: center; gap: 8px; font-family: var(--mono);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.mini-float-chip .pulse { width: 6px; height: 6px; border-radius: 3px; }
.mini-float-chip .pulse.live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

/* ---------- mini player mock ---------- */
.mp {
  width: 360px; background: var(--surface-low); border: 1px solid var(--outline-var);
  border-radius: 14px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(208,188,255,.08);
}
.mp-bar { height: 36px; background: var(--surface); display: flex; align-items: center; padding: 0 12px; gap: 8px; border-bottom: 1px solid var(--outline-var); }
.mp-bar .b { font-family: var(--display); font-size: 13px; }
.mp-bar .icons { margin-left: auto; display: flex; gap: 10px; color: var(--on-surface-var); font-size: 13px; }
.mp-body { padding: 16px; }
.mp-row { display: flex; justify-content: space-between; align-items: baseline; }
.mp-label { font-size: 9px; letter-spacing: 0.14em; color: var(--on-surface-var); }
.mp-delay { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--primary); }
.mp-delay s { font-size: 16px; color: var(--on-surface-var); margin-left: 2px; font-style: normal; }
.mp-uptime { font-family: var(--mono); font-size: 18px; }
.mp-state { margin-top: 6px; font-size: 10px; letter-spacing: 0.14em; color: var(--on-surface-var); }
.mp-state .d { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--warning); margin-right: 6px; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
.mp-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mp-preset {
  padding: 10px 0; border: 1px solid var(--outline-var); border-radius: 8px;
  background: transparent; color: var(--on-surface); font-weight: 600; font-size: 13px;
  text-align: center; cursor: pointer;
}
.mp-preset.active { border-color: var(--primary); background: rgba(208,188,255,.14); color: var(--primary); }
.mp-actions { display: flex; gap: 8px; margin-top: 10px; }
.mp-input {
  flex: 1; background: var(--surface); border: 1px solid var(--outline-var); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: var(--on-surface-var); font-family: var(--mono);
}
.mp-set, .mp-skip { padding: 8px 14px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; border: 0; cursor: pointer; }
.mp-set { background: var(--primary); color: var(--on-primary); }
.mp-skip { background: var(--surface-2); color: var(--on-surface); border: 1px solid var(--outline-var); }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--outline-var); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head .lead { max-width: 460px; }

/* problem comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.compare-row .name { width: 80px; font-size: 14px; }
.compare-row .bar { flex: 1; height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.compare-row .bar > div { height: 100%; }
.compare-row .val { font-family: var(--mono); font-size: 12px; width: 60px; text-align: right; color: var(--on-surface-var); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(208,188,255,.14);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  margin-bottom: 14px; font-size: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--on-surface-var); line-height: 1.6; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; padding: 28px; }
.price-card.highlight { background: var(--surface-2); border-color: var(--primary); border-width: 1.5px; transform: translateY(-4px); border-radius: var(--r-xl); }
.price-card .tag { position: absolute; top: -12px; left: 24px; padding: 4px 10px; }
.price-name { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface-var); margin-bottom: 12px; font-weight: 700; }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amt .num { font-family: var(--display); font-size: 52px; line-height: 1; }
.price-card.highlight .price-amt .num { color: var(--primary); }
.price-amt .sub { color: var(--on-surface-var); font-size: 14px; }
.price-extra { font-size: 13px; color: var(--on-surface-var); margin-bottom: 18px; min-height: 36px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.price-list li { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.price-list li::before { content: '✓'; color: var(--success); }
.price-cta { width: 100%; justify-content: center; }
.price-fine { margin-top: 18px; text-align: center; font-size: 12px; color: var(--on-surface-var); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--primary); margin-bottom: 14px; letter-spacing: -0.04em; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--on-surface-var); line-height: 1.6; }

/* code/snippet */
.snippet {
  font-family: var(--mono); font-size: 13px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--outline-var);
  border-radius: var(--r-sm); color: var(--on-surface);
  display: inline-flex; align-items: center; gap: 10px;
}
.snippet .copy { font-size: 10px; padding: 3px 8px; border-radius: var(--r-full); background: var(--surface-2); color: var(--on-surface-var); cursor: pointer; border: 0; font-family: inherit; }

/* faq */
.faq-item {
  border: 1px solid var(--outline-var); border-radius: var(--r-md);
  background: var(--surface-1); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--primary); font-size: 22px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 20px; color: var(--on-surface-var); font-size: 14.5px; line-height: 1.7; }
.faq-item p { padding: 0 22px 20px; color: var(--on-surface-var); font-size: 14.5px; line-height: 1.7; }
.faq-item code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* focus-visible ring */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .compare, .feature-grid, .price-grid, .steps, .footer-grid, .section-head { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mp { width: 100%; max-width: 360px; }
  .mini-floats { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
}
