/* ===== Tokens ===== */
:root {
  --brand: #6c5deb;
  --brand-dark: #5a4dcc;
  --brand-light: #ede9ff;
  --brand-surface: #f9f8ff;
  --dark: #0f0c1a;
  --text: #1a1625;
  --text-muted: #6b7280;
  --border: #ede9ff;
  --white: #ffffff;
  --green: #4ade80;
  --purple-light: #a78bfa;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 3px rgba(15, 12, 26, .06), 0 1px 2px rgba(15, 12, 26, .04);
  --shadow-console: 0 20px 60px rgba(108, 93, 235, .15), 0 4px 16px rgba(0, 0, 0, .12);

  --container: 1160px;
  --container-legal: 680px;

  --transition: 200ms ease;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Section labels ===== */
.label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: var(--white);
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-light); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-weight: 500;
  font-size: .95rem;
  display: none;
}
.nav .btn { padding: 10px 20px; }

@media (min-width: 640px) {
  .nav-link { display: inline; }
}

/* ===== Hero ===== */
.hero {
  background: var(--white);
  padding: 64px 32px;
}
.hero .container {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}
.rotating-word {
  color: var(--brand);
  border-bottom: 2.5px solid var(--brand);
  display: inline-block;
  transition: opacity 300ms ease;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { margin-bottom: 16px; }
.trust-line {
  font-size: .9rem;
  color: var(--text-muted);
}
.price-hint {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}

/* ===== Terminal console ===== */
.console {
  background: var(--dark);
  border-radius: 10px;
  box-shadow: var(--shadow-console);
  overflow: hidden;
  font-family: var(--font-mono);
}
.console-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.console-dots { display: flex; gap: 8px; }
.console-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.console-dots span:nth-child(1) { background: #ff5f57; }
.console-dots span:nth-child(2) { background: #febc2e; }
.console-dots span:nth-child(3) { background: #28c840; }
.console-title {
  font-size: .75rem;
  color: rgba(255, 255, 255, .2);
}
.console-body {
  padding: 22px 18px 28px;
  font-size: .85rem;
  line-height: 1.9;
}
.console-line {
  opacity: 0;
  transition: opacity 300ms ease;
  color: rgba(255, 255, 255, .75);
}
.console-line.hl { color: var(--purple-light); }
.console-line.ok { color: var(--green); }
.console-progress {
  margin: 14px 0;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
}
.console-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 1.2s ease;
}
.console-live {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 300ms ease;
  color: var(--green);
  margin-top: 4px;
}
.console-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  .console-live-dot { animation: none; }
}

/* ===== How it works ===== */
.how {
  background: var(--brand-surface);
  padding: 52px 32px;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
.how-panel {
  background: var(--white);
  padding: 32px;
  border-right: none;
  border-bottom: 1px solid #f0ecff;
}
.how-panel:last-child { border-bottom: none; }
.how-num {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.how-panel h3 { font-size: 1.1rem; margin-bottom: 10px; }
.how-panel p { color: var(--text-muted); }

@media (min-width: 1024px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .how-panel { border-bottom: none; border-right: 1px solid #f0ecff; }
  .how-panel:last-child { border-right: none; }
}

/* ===== Feature grid ===== */
.features {
  background: var(--white);
  padding: 64px 32px;
}
.features h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 8px 0 32px;
  max-width: 40ch;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Pricing strip (index) ===== */
.pricing-strip {
  background: var(--white);
  padding: 52px 32px;
}
.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.strip-head h2 { font-size: 1.6rem; }
.strip-head a { color: var(--brand); font-weight: 600; font-size: .95rem; }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  background: var(--white);
  position: relative;
}
.plan-card.featured { border: 1.5px solid var(--brand); }
.plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--brand);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}
.plan-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.plan-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.plan-price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.plan-card > p { color: var(--text-muted); font-size: .92rem; }

@media (min-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Who it's for ===== */
.who {
  background: var(--brand-surface);
  padding: 52px 32px;
}
.who h2 { font-size: 1.6rem; margin-bottom: 14px; max-width: 34ch; }
.who > .container > p { color: var(--text-muted); max-width: 62ch; margin-bottom: 24px; }
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-list li {
  background: var(--brand-light);
  color: var(--brand);
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

/* ===== Founding banner (index) ===== */
.founding-banner {
  background: var(--brand);
  color: var(--white);
  padding: 40px 32px;
}
.founding-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.founding-banner p { font-weight: 600; }
.founding-banner a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Top banner (pricing) ===== */
.top-banner {
  background: var(--brand);
  color: var(--white);
  padding: 14px 32px;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
}
.top-banner a { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }

/* ===== Pricing header ===== */
.pricing-header {
  background: var(--white);
  padding: 64px 32px 40px;
  text-align: center;
}
.pricing-header h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 14px; }
.pricing-header > .container > p { color: var(--text-muted); max-width: 50ch; margin: 0 auto 28px; }

.billing-toggle {
  display: inline-flex;
  background: var(--brand-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}
.billing-toggle button {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-card);
}

/* ===== Pricing plans (pricing.html) ===== */
.plans {
  background: var(--white);
  padding: 24px 32px 64px;
}
.plans .plan-grid { gap: 24px; }
.plans .plan-card { display: flex; flex-direction: column; }
.plans .plan-tagline { color: var(--text-muted); font-size: .92rem; margin: 10px 0 20px; min-height: 2.6em; }
.plans .btn { width: 100%; margin-bottom: 22px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.checklist li:first-child { border-top: none; }
.checklist .mark { font-weight: 700; flex-shrink: 0; }
.checklist li.yes .mark { color: var(--brand); }
.checklist li.no { color: #9ca3af; }
.checklist li.no .mark { color: #d1d5db; }

.annual-price { display: none; }
.is-annual .monthly-price { display: none; }
.is-annual .annual-price { display: inline; }
.annual-note { display: none; font-size: .8rem; color: var(--brand); margin-top: -6px; margin-bottom: 10px; }
.is-annual .annual-note { display: block; }

/* ===== Founding section (pricing.html) ===== */
.founding-section {
  background: var(--brand-surface);
  padding: 64px 32px;
}
.founding-badge {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.founding-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 14px; max-width: 26ch; }
.founding-section > .container > p { color: var(--text-muted); max-width: 68ch; margin-bottom: 32px; }
.founding-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.founding-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.founding-card h3 { font-size: 1rem; margin-bottom: 8px; }
.founding-card p { color: var(--text-muted); font-size: .9rem; }
.founding-note { color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; }

@media (min-width: 1024px) {
  .founding-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FAQ ===== */
.faq {
  background: var(--white);
  padding: 64px 32px;
}
.faq .container { max-width: var(--container-legal); padding: 0 32px; }
.faq h2 { font-size: 1.6rem; margin-bottom: 28px; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--border); }
.faq-item:last-child { padding-bottom: 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: .92rem; }

/* ===== Legal pages ===== */
.legal {
  padding: 64px 32px 96px;
}
.legal .container { max-width: var(--container-legal); padding: 0 32px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 36px; }
.legal section { margin-bottom: 28px; }
.legal h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 10px; }
.legal p { color: var(--text-muted); line-height: 1.75; }
.legal a { color: var(--brand); font-weight: 600; }

/* ===== Footer ===== */
.footer {
  background: var(--white);
  border-top: 1px solid #f0ecff;
  padding: 32px;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: .9rem;
  color: var(--text-muted);
}
.footer-copy { font-size: .85rem; color: var(--text-muted); }
