/* mockterview marketing site.
   One stylesheet, no framework, no external fonts or trackers: the page is
   served under a strict same-origin CSP and must stay self-contained. */

:root {
  --bg: #070a0e;
  --bg-soft: #0b1017;
  --surface: #0f151e;
  --surface-2: #141d28;
  --line: #1e2a38;
  --line-soft: #172230;
  --text: #e8eef5;
  --muted: #93a4b8;
  --muted-2: #6b7d92;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --amber: #fbbf24;
  --green: #4ade80;
  --violet: #a78bfa;
  --red: #f87171;
  --on-accent: #04120f;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}

/* Light only where an account page asks for it: the marketing pages stay dark. */
:root[data-theme="light"] {
  --bg: #f7f9fb; --bg-soft: #eef2f6; --surface: #ffffff; --surface-2: #f1f4f8;
  --line: #d5dde6; --line-soft: #e3e9ef; --text: #0f1720; --muted: #4b5b6c; --muted-2: #5e6e80;
  --accent: #0f766e; --green: #15803d; --red: #b91c1c; --on-accent: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #f7f9fb; --bg-soft: #eef2f6; --surface: #ffffff; --surface-2: #f1f4f8;
    --line: #d5dde6; --line-soft: #e3e9ef; --text: #0f1720; --muted: #4b5b6c; --muted-2: #5e6e80;
    --accent: #0f766e; --green: #15803d; --red: #b91c1c; --on-accent: #ffffff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(44px, 5.5vw, 72px); }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .74rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .6; }

.lede { font-size: 1.12rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 14, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line-soft); }
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; }
.brand__name { font-family: var(--mono); font-size: .98rem; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: .93rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta { margin-left: 8px; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #04120f; }
.btn--primary:hover { background: #5ae7d6; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 15px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto -10%;
  height: 780px; pointer-events: none;
  background:
    radial-gradient(46% 42% at 22% 42%, rgba(45, 212, 191, .16), transparent 68%),
    radial-gradient(40% 40% at 76% 22%, rgba(56, 189, 248, .12), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 52px; align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 span { color: var(--accent); }
.hero__sub { font-size: 1.12rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: .82rem/1.5 var(--mono); color: var(--muted-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .75; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.badge--accent { border-color: rgba(45, 212, 191, .4); color: var(--accent); background: rgba(45, 212, 191, .08); }

/* ---------- stat band ---------- */
.stats { border-block: 1px solid var(--line-soft); background: var(--bg-soft); padding-block: 34px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat__value { font: 650 1.7rem/1.1 var(--sans); letter-spacing: -.03em; color: var(--text); }
.stat__value em { font-style: normal; color: var(--accent); }
.stat__label { font-size: .88rem; color: var(--muted-2); margin-top: 6px; }

/* ---------- terminal ---------- */
.term {
  margin: 0; border-radius: var(--radius);
  border: 1px solid var(--line); background: #060a0f;
  box-shadow: var(--shadow); overflow: hidden;
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.term__dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3a4b; flex: none; }
.term__dot:nth-child(1) { background: #ff5f57; }
.term__dot:nth-child(2) { background: #febc2e; }
.term__dot:nth-child(3) { background: #28c840; }
.term__title { margin-left: 8px; font: .78rem/1 var(--mono); color: var(--muted-2); }
.term__body {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font: .78rem/1.55 var(--mono); color: #cfe0ee;
  tab-size: 4; white-space: pre;
}
.term__body::-webkit-scrollbar { height: 8px; }
.term__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
@media (max-width: 700px) { .term__body { font-size: .68rem; padding: 14px 12px; } }

.c-cyan { color: #22d3ee; font-weight: 600; }
.c-blue { color: #7aa2ff; font-weight: 600; }
.c-green { color: var(--green); font-weight: 600; }
.c-amber { color: var(--amber); font-weight: 600; }
.c-dim { color: #64748b; }
.c-white { color: #e8eef5; }

/* A full-width band that lifts a section off the page background. */
.band { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .22);
  margin-bottom: 14px; font: 600 .9rem/1 var(--mono); color: var(--accent);
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 42px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font: 650 .8rem/1 var(--mono); letter-spacing: .1em; color: var(--accent);
  padding: 8px 10px; border: 1px solid rgba(45, 212, 191, .28); border-radius: 8px;
  background: rgba(45, 212, 191, .07);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  padding: 9px 15px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--muted); font: 600 .86rem/1 var(--sans);
}
.tab:hover { color: var(--text); border-color: var(--line); }
.tab[aria-selected="true"] { background: rgba(45, 212, 191, .12); border-color: rgba(45, 212, 191, .4); color: var(--accent); }
.shot__caption { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.shot[hidden] { display: none; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: .97rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--accent); font-weight: 700; font-size: .9rem;
}
.ticks strong { color: var(--text); font-weight: 600; }


/* ---------- use cases ---------- */
.usecase { display: flex; flex-direction: column; gap: 10px; }
.usecase__who {
  font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2);
}
.usecase__out {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .88rem; color: var(--muted-2);
}
.usecase__out b { color: var(--text); font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
details.qa { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 20px; }
details.qa[open] { border-color: var(--line); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font: 400 1.3rem/1 var(--mono); flex: none; }
details.qa[open] summary::after { content: "−"; }
details.qa p { color: var(--muted); font-size: .95rem; padding-bottom: 16px; margin: 0; }

/* ---------- form ---------- */
.quote { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.quote__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 940px) { .quote__grid { grid-template-columns: 1fr; gap: 32px; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .78rem; color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font: 400 .95rem/1.5 var(--sans); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #4d6075; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 18px; font-size: .88rem; color: var(--muted); }
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form-note { font-size: .8rem; color: var(--muted-2); margin: 14px 0 0; text-align: center; }
.form-msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; display: none; }
.form-msg[data-state="error"] { display: block; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fca5a5; }
.form-msg[data-state="ok"] { display: block; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .35); color: #86efac; }
.form-msg[data-state="busy"] { display: block; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* ---------- footer ---------- */
.site-footer strong { color: var(--text); }
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px; color: var(--muted-2); font-size: .88rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--muted-2); }
.footer__links a:hover { color: var(--text); }

/* ---------- thanks page ---------- */
.center-page { min-height: 78vh; display: grid; place-items: center; text-align: center; }
.center-page .wrap { max-width: 640px; }
.center-page__cta { margin-top: 28px; }

/* ---------- account pages ---------- */
/* Served rather than inlined: the response CSP has no 'unsafe-inline', so a
   <style> block in internal/leadsite/pages/layout.html renders as nothing.
   .field and its inputs are already styled above; only the frame is new. */
.acct { max-width: 26rem; margin: 4rem auto; padding: 0 1rem; }
.acct .err { color: var(--red); }
.acct .ok { color: var(--green); }
.acct .card { margin: 2rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.acct .card h2 { margin: 0 0 .75rem; font: 600 .95rem/1.2 var(--sans); color: var(--text); }
.acct .themes { margin: 0 0 1rem; padding: 0; border: 0; }
.acct .themes legend { font: 600 .86rem/1 var(--sans); margin-bottom: .5rem; }
.acct .themes label { display: block; margin: .25rem 0; }
.acct table.grid { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .85rem; }
.acct table.grid th, .acct table.grid td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.acct .pill { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .75rem; }
:root[data-density="compact"] .acct .card { margin: 1rem 0; padding: .6rem .9rem; }
:root[data-density="compact"] .acct table.grid th, :root[data-density="compact"] .acct table.grid td { padding: 4px 8px; font-size: .8rem; }
.acct button {
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font: 600 .95rem/1 var(--sans); cursor: pointer;
}
.acct small { color: var(--muted-2); font-size: .8rem; }
.acct .demo { padding: .6rem .9rem; border: 1px solid var(--accent); border-radius: var(--radius); }
