/* ============================================================
   Moodle MCP, Landing page
   Aesthetic: technical infrastructure product
   Dark, cool-neutral base · teal accent (+ amber in diagrams)
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* surfaces, cool neutral dark */
  --bg:        oklch(0.165 0.012 252);
  --bg-2:      oklch(0.205 0.014 252);
  --bg-3:      oklch(0.245 0.016 252);
  --line:      oklch(0.305 0.014 252);
  --line-soft: oklch(0.255 0.013 252);

  /* text */
  --text:       oklch(0.965 0.005 252);
  --text-dim:   oklch(0.760 0.012 252);
  --text-faint: oklch(0.560 0.013 252);

  /* accents, share L & C, vary hue (rule). --accent-h is tweakable. */
  --accent-h: 184;
  --accent:    oklch(0.840 0.130 var(--accent-h));   /* teal/cyan, primary */
  --accent-2:  oklch(0.840 0.130 92);    /* amber, diagram only */
  --accent-dim: oklch(0.840 0.130 var(--accent-h) / 0.14);
  --accent-line: oklch(0.840 0.130 var(--accent-h) / 0.32);
  --ink:       oklch(0.175 0.03 200);    /* text on accent fills */

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* spacing rhythm */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 96px);
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle technical grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(oklch(0.84 0.13 var(--accent-h) / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.84 0.13 var(--accent-h) / 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 132px); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.section-head p { color: var(--text-dim); font-size: clamp(16px, 1.4vw, 19px); margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--ink);
  box-shadow: 0 0 0 1px var(--accent-line), 0 10px 30px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent-line), 0 16px 40px -14px var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-dim); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.165 0.012 252 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; letter-spacing: -0.02em; }
.brand .glyph { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--text-dim); transition: color .18s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* locale picker dropdown */
.locale-picker { position: relative; }
.lp-toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 10px; cursor: pointer; transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.lp-toggle:hover { color: var(--text); border-color: var(--accent-line); }
.lp-chevron { transition: transform .2s; }
.locale-picker.open .lp-chevron { transform: rotate(180deg); }
.lp-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); min-width: 160px;
  box-shadow: 0 12px 32px -12px #000;
  display: none; flex-direction: column; z-index: 100;
}
.locale-picker.open .lp-dropdown { display: flex; }
.lp-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 13.5px; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.lp-opt:hover { background: var(--bg-3); color: var(--text); }
.lp-opt.active { color: var(--accent); }
.lp-cur { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; padding-top: clamp(118px, 16vw, 168px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); margin-top: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { color: var(--text-dim); font-size: clamp(17px, 1.5vw, 20px); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta .m { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-meta .m b { color: var(--text); font-weight: 500; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- hero diagram / terminal ---------- */
.panel {
  background: linear-gradient(180deg, var(--bg-2), oklch(0.185 0.013 252));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px #000;
}
.term-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-3); }
.term-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-left: 8px; }
.term-body { padding: 20px 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; }
.term-body .prompt { color: var(--accent); }
.term-body .usr { color: var(--text); }
.term-body .sys { color: var(--text-faint); }
.term-body .ok { color: var(--accent); }
.term-body .tag { color: var(--accent-2); }
.term-line { display: block; opacity: 0; transform: translateY(6px); }
.term-line.in { animation: lineIn .4s ease forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* flow chips below terminal, vertical pipeline */
.flow { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 18px; }
.flow .node {
  display: flex; align-items: center; gap: 9px; padding: 11px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); white-space: nowrap;
}
.flow .node b { color: var(--text); font-weight: 500; }
.flow .node .ic { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); flex: none; }
.flow .node.alt .ic { background: var(--accent-2); }
.flow .arrow { color: var(--text-faint); font-family: var(--font-mono); transform: rotate(90deg); line-height: 1; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line-soft); background: oklch(0.18 0.012 252 / 0.5); position: relative; z-index: 1; }
.trust-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); padding-block: 26px; flex-wrap: wrap; justify-content: space-between; }
.trust .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.trust .items { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.trust .item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-dim); }
.trust .item svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); position: relative; transition: border-color .25s ease, transform .25s ease; }
.step:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: 19px; margin: 16px 0 9px; }
.step p { color: var(--text-dim); font-size: 14.5px; }
.step .connector { display: none; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), oklch(0.185 0.013 252));
  transition: border-color .25s ease, transform .25s ease;
}
.feat:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feat .ficon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-dim); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.feat .ficon svg { width: 21px; height: 21px; color: var(--accent); }
.feat h3 { font-size: 19px; margin-bottom: 10px; }
.feat p { color: var(--text-dim); font-size: 14.5px; }
.feat .wide { grid-column: span 1; }

/* ---------- demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: stretch; }
.chat { padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.chat-head .live { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--accent); }
.chat-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chat-body { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 86%; padding: 13px 16px; border-radius: 13px; font-size: 14.5px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--ink); border-bottom-right-radius: 4px; font-weight: 500; }
.msg.ai { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .tool { font-family: var(--font-mono); font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.msg.ai .tool .check { width: 14px; height: 14px; }

.scopes { padding: 22px 22px 24px; }
.scopes h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.scope { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.scope:last-child { border-bottom: 0; }
.scope .name { font-family: var(--font-mono); font-size: 13.5px; }
.scope .name small { display: block; font-family: var(--font-body); font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.scope .sw { margin-left: auto; width: 38px; height: 22px; border-radius: 11px; background: var(--bg-3); border: 1px solid var(--line); position: relative; flex: none; transition: background .2s; }
.scope .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-faint); transition: transform .2s, background .2s; }
.scope.on .sw { background: var(--accent-dim); border-color: var(--accent-line); }
.scope.on .sw::after { transform: translateX(16px); background: var(--accent); }
.scope .lvl { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; }

/* ---------- use cases (tabs) ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim); cursor: pointer; transition: all .2s ease;
}
.tab:hover { color: var(--text); border-color: var(--accent-line); }
.tab.active { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.uc { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.uc .q { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); display: flex; gap: 10px; }
.uc .q::before { content: "›"; color: var(--accent); font-weight: 700; }
.uc .a { color: var(--text-dim); font-size: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- security ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.sec-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.sec-item { display: flex; gap: 16px; }
.sec-item .si { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-dim); border: 1px solid var(--accent-line); }
.sec-item .si svg { width: 18px; height: 18px; color: var(--accent); }
.sec-item h4 { font-size: 17px; margin-bottom: 5px; }
.sec-item p { color: var(--text-dim); font-size: 14px; }
.audit { padding: 22px; }
.audit h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.log { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 11px; }
.log-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.log-row .t { color: var(--text-faint); }
.log-row .e { color: var(--text-dim); }
.log-row .e b { color: var(--accent); font-weight: 500; }
.log-row .e .who { color: var(--text); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; max-width: 820px; margin-inline: auto; }
.price {
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); display: flex; flex-direction: column; position: relative; transition: border-color .25s, transform .25s;
}
.price:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.price.featured { border-color: var(--accent); background: linear-gradient(180deg, oklch(0.84 0.13 var(--accent-h) / 0.08), var(--bg-2)); box-shadow: 0 30px 70px -40px var(--accent); }
.price .badge { position: absolute; top: -11px; left: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 4px 11px; border-radius: 6px; font-weight: 600; }
.price .pname { font-family: var(--font-display); font-size: 21px; }
.price .pdesc { color: var(--text-dim); font-size: 13.5px; margin-top: 7px; min-height: 40px; }
.price .amount { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.price .amount .num { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.price .amount .per { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.price .once { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.price ul { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); }
.price li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 2px; }
.price li.off { color: var(--text-faint); }
.price li.off svg { color: var(--text-faint); }
.price .btn { width: 100%; justify-content: center; }
.currency-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-faint); max-width: 820px; margin-inline: auto;
}
.currency-note svg { flex: none; color: var(--accent); opacity: 0.7; }

.support-note { margin-top: 30px; padding: 20px 24px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--bg-2); }
.support-note svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.support-note p { color: var(--text-dim); font-size: 14px; }
.support-note b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0; display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text); }
.faq-q .pm { margin-left: auto; width: 22px; height: 22px; flex: none; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s ease; }
.faq-q .pm::before { top: 10px; left: 2px; width: 18px; height: 2px; }
.faq-q .pm::after { top: 2px; left: 10px; width: 2px; height: 18px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--text-dim); font-size: 15px; padding-bottom: 24px; max-width: 660px; }

/* ---------- final CTA ---------- */
.cta-final { position: relative; z-index: 1; }
.cta-box {
  border: 1px solid var(--accent-line); border-radius: 20px; padding: clamp(40px, 6vw, 76px);
  text-align: center; background:
    radial-gradient(ellipse 70% 120% at 50% 0%, oklch(0.84 0.13 var(--accent-h) / 0.12), transparent 70%), var(--bg-2);
}
body.no-grid::before { display: none;
}
.cta-box h2 { font-size: clamp(30px, 4.5vw, 52px); max-width: 760px; margin: 0 auto; }
.cta-box p { color: var(--text-dim); font-size: 18px; margin: 20px auto 32px; max-width: 560px; }
.cta-box .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line-soft); padding-block: 48px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 16px; }
.footer p.tag { color: var(--text-faint); font-size: 14px; max-width: 280px; }
.footer .col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer .col a { display: block; color: var(--text-dim); font-size: 14px; padding: 6px 0; transition: color .15s; }
.footer .col a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; gap: 14px; }
.footer-base p { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid, .sec-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-ghost,
  .nav-cta .btn-primary { display: none; }
  .steps, .feat-grid, .uc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { gap: 18px; }
  .hero-meta { gap: 16px; }
}

/* interactive demo */
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.demo-chips .chip { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.demo-chips .chip:hover { color: var(--text); border-color: var(--accent-line); }
.demo-chips .chip.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.chat-body { min-height: 220px; }
.chat-body .msg { animation: fadeIn .4s both; }
.msg.ai.blocked { color: var(--text-dim); }
.msg.ai.blocked .tool { color: var(--text-faint); border-bottom-color: var(--line); }
.scope { cursor: pointer; user-select: none; }

/* typing effect */
.typing { display: inline-flex; gap: 4px; align-items: center; height: 16px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: typingDot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.type-target { white-space: pre-wrap; }

/* payment lines */
.price .pay { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-top: 7px; }
.price .cash { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-top: 3px; }
.price .pay b, .price .cash b { font-weight: 600; }

/* cash price highlight + struck installment */
.price .amount .num { color: var(--accent); }
.price .amount .per { align-self: flex-end; margin-bottom: 7px; }
.price .pay s { color: var(--text-faint); margin-right: 5px; }

/* stacked price: struck prazo (medium) > cash (big) > installment (small) */
.price-amt { margin: 18px 0 6px; }
.price-amt .was { font-family: var(--font-display); font-size: 22px; color: var(--text-faint); line-height: 1.1; }
.price-amt .was s { text-decoration: line-through; }
.price-amt .now { display: flex; align-items: baseline; gap: 9px; margin-top: 5px; }
.price-amt .now .num { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.price-amt .now .per { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.price-amt .pay { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-top: 9px; }
.price-amt .pay b { color: var(--text-dim); font-weight: 600; }

/* made-with-love line */
.footer-base .made { flex-basis: 100%; text-align: right; color: var(--text-dim); margin-top: 4px; }
.footer-base .made b { color: var(--text); font-weight: 600; }
.footer-base .made .heart { color: var(--accent); }

/* ---------- comparison table ---------- */
.comp-intro { color: var(--text-dim); font-size: clamp(15px, 1.4vw, 18px); margin-top: 18px; max-width: 680px; }
.comp-intro b { color: var(--text); }

.comp-table {
  width: 100%;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-head {
  display: grid;
  grid-template-columns: 1.6fr 1.15fr 1fr;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.comp-head-cell {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-right: 1px solid var(--line);
}
.comp-head-cell:last-child { border-right: 0; }
.comp-head-cell.ours {
  color: var(--accent);
  background: oklch(0.84 0.13 var(--accent-h) / 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.comp-head-cell.ours .comp-badge {
  font-size: 10.5px;
  background: var(--accent);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.comp-row {
  display: grid;
  grid-template-columns: 1.6fr 1.15fr 1fr;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
}
.comp-row:last-child { border-bottom: 0; }
.comp-row:nth-child(even) { background: oklch(0.185 0.013 252 / 0.5); }
.comp-row:hover { background: oklch(0.205 0.014 252 / 0.7); }

.comp-cell {
  padding: 14px 20px;
  font-size: 14px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.comp-cell:last-child { border-right: 0; }

.comp-cell.feat {
  color: var(--text);
  font-weight: 500;
  border: none;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  transform: none;
  padding: 14px 20px;
}
.comp-cell.ours {
  background: oklch(0.84 0.13 var(--accent-h) / 0.05);
}
.comp-cell.theirs {
  color: var(--text-faint);
}

.comp-yes {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
}
.comp-yes svg { width: 15px; height: 15px; flex: none; }
.comp-yes span { color: var(--text-dim); font-size: 13px; }

.comp-no {
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
}
.comp-no svg { width: 15px; height: 15px; flex: none; opacity: 0.5; }
.comp-no span { font-size: 13px; }

.comp-note { color: var(--text-dim); font-size: 13px; }

.comp-cta { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.comp-cta p { color: var(--text-faint); font-family: var(--font-mono); font-size: 12.5px; }

/* responsive comp */
@media (max-width: 760px) {
  .comp-head { grid-template-columns: 1fr 1fr; }
  .comp-head-cell.theirs { display: none; }
  .comp-row { grid-template-columns: 1fr 1fr; }
  .comp-cell.theirs { display: none; }
}
