/* FoxInAI — site styles
   Tokens come from docs/specs/2026-10-07-foxinai-website-design.md */

:root {
  --ink: #0E1A33;
  --ink-2: #2B3A57;
  --muted: #56637E;
  --paper: #F6F8FC;
  --sheet: #FFFFFF;
  --mist: #EAF0F9;
  --grid: #E4EAF5;
  --line: #D3DCEB;
  --fox: #F26A2E;
  --fox-soft: #FFE6D8;
  --fox-text: #B5461A;
  --correct: #12805C;
  --correct-soft: #E2F4EC;
  --wrong: #C2362F;
  --wrong-soft: #FBE8E6;

  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 26, 51, .06), 0 12px 32px -12px rgba(14, 26, 51, .18);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--fox);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fox);
  box-shadow: 0 0 0 3px var(--fox-soft);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.mono { font-family: var(--font-mono); }
.hl { color: var(--fox-text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fox); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(242, 106, 46, .9); }
.btn-primary:hover { background: #FF7A3F; }
.btn-ghost { border-color: var(--line); background: var(--sheet); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }
.brand .ai { color: var(--fox-text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sheet);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { margin-top: 16px; }
  .nav-links .btn { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }

.graph-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero::after {
  /* fade the graph paper into the page */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 30%, rgba(246, 248, 252, .97) 30%, rgba(246, 248, 252, .55) 70%, rgba(246, 248, 252, .9) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin: 20px 0 22px; }
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  /* a pencil-style underline */
  content: "";
  position: absolute;
  left: -2px; right: -4px;
  bottom: .02em;
  height: .2em;
  background: var(--fox);
  opacity: .9;
  border-radius: 2px;
  z-index: -1;
  transform: skewX(-12deg);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note {
  margin-top: 22px;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--correct); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Answer sheet (signature) ---------- */

.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tab {
  flex: 1 1 0;
  white-space: nowrap;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.sheet-tab[aria-selected="true"] {
  background: var(--sheet);
  border-color: var(--line);
  color: var(--ink);
  margin-bottom: -1px;
}
.sheet-body { padding: clamp(20px, 3vw, 28px); }
.sheet-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sheet-q {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 18px;
}
.options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.option:hover:not(:disabled) { border-color: var(--ink-2); }
.option:disabled { cursor: default; }
.bubble {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink-2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.bubble::after {
  /* the pencil fill */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .28s cubic-bezier(.3, 1.4, .6, 1);
}
.option.is-picked .bubble::after { transform: scale(1); }
.option.is-correct { border-color: var(--correct); background: var(--correct-soft); }
.option.is-correct .bubble { border-color: var(--correct); color: var(--correct); }
.option.is-correct.is-picked .bubble::after { background: var(--correct); }
.option.is-wrong { border-color: var(--wrong); background: var(--wrong-soft); }
.option.is-wrong .bubble::after { background: var(--wrong); }

.tutor {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px dashed var(--line);
  font-size: .97rem;
  color: var(--ink-2);
}
.tutor-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.tutor-avatar img { width: 24px; height: 24px; }
.tutor strong { color: var(--ink); font-family: var(--font-display); }
.tutor .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fox-soft);
  color: var(--fox-text);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
}
.tutor.is-in { animation: rise .35s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.sheet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
}
.link-btn {
  border: 0;
  background: none;
  padding: 4px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Exams ---------- */

.exams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.exam {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.exam-code {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.exam-code::after { content: "."; color: var(--fox); }
.exam-body { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin: 10px 0 18px; letter-spacing: .02em; min-height: 2.9em; }
.exam p { color: var(--ink-2); }
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; list-style: none; padding-left: 0; margin-bottom: 0; }
.levels li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--paper);
}
@media (max-width: 880px) { .exams { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.step {
  position: relative;
  padding: 28px 24px 8px 0;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  top: -8px; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.step:first-child::before { background: var(--fox); border-color: var(--fox); }
.step-n { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
.step-n::before { content: "Step " counter(step); }
.step h3 { margin: 8px 0 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); margin-left: 7px; }
  .step { padding: 0 0 32px 28px; }
  .step::before { top: 4px; left: -8px; }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature.wide { grid-column: span 3; }
.feature p { color: var(--ink-2); font-size: 1rem; }
.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-visual { margin-top: auto; padding-top: 14px; }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

/* mini chat */
.chat { display: grid; gap: 8px; font-size: .9rem; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; }

/* mini mock paper */
.paper-spec { display: grid; gap: 6px; font-family: var(--font-mono); font-size: .8rem; }
.paper-spec div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: var(--paper); }
.paper-spec b { font-weight: 600; color: var(--ink); }

/* ---------- Preview (dark) ---------- */

.dark {
  background: var(--ink);
  color: #E8EDF7;
}
.dark .eyebrow { color: #B9C4DA; }
.dark .eyebrow::before { box-shadow: 0 0 0 3px rgba(242, 106, 46, .25); }
.dark .section-head p { color: #B9C4DA; }

.dash {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #15233F;
  border: 1px solid #253656;
}
.panel {
  padding: 22px;
  border-radius: 14px;
  background: #1A2A4A;
  border: 1px solid #263A5E;
}
.panel h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.panel .sub { font-size: .85rem; color: #9DAAC4; margin-bottom: 18px; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-column: 1 / -1; }

.heat { display: grid; gap: 8px; }
.heat-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 12px; font-size: .86rem; color: #CBD4E6; }
.bar { height: 10px; border-radius: 999px; background: #263A5E; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: #4C8DFF; }
.bar i.lo { background: var(--fox); }
.bar i.hi { background: #2FBF8A; }
.heat-row b { font-family: var(--font-mono); font-weight: 500; text-align: right; color: #fff; }

.ring-wrap { display: flex; align-items: center; gap: 22px; }
.ring { width: 132px; height: 132px; flex: 0 0 auto; }
.ring-label { font-family: var(--font-display); }
.ring-label strong { display: block; font-size: 1.15rem; color: #fff; }
.ring-label span { display: block; margin-top: 6px; font-family: var(--font-body); font-size: .9rem; line-height: 1.5; color: #9DAAC4; }

.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #15233F;
  font-size: .88rem;
  color: #CBD4E6;
}
.plan .day { font-family: var(--font-mono); font-size: .76rem; color: #9DAAC4; }
.plan .chip { font-family: var(--font-mono); font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(242, 106, 46, .16); color: #FFB08A; }
.plan .chip.ok { background: rgba(47, 191, 138, .16); color: #7BE0B8; }

.feedback-card p { font-size: .9rem; color: #CBD4E6; line-height: 1.55; }
.feedback-card .score { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.feedback-card .score span { font-family: var(--font-mono); font-size: .74rem; padding: 3px 10px; border-radius: 999px; border: 1px solid #304670; color: #CBD4E6; }

.illustrative { margin-top: 16px; font-size: .82rem; color: #8492AE; font-family: var(--font-mono); }

@media (max-width: 960px) {
  .dash, .panel-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .heat-row { grid-template-columns: 1fr 44px; }
  .heat-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .ring-wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Compare ---------- */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--mist); }
.compare thead th:last-child { background: var(--ink); color: #fff; }
.compare thead th:last-child .ai { color: #FF9D6E; }
.compare td:first-child { font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { background: #FFF8F3; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { border: 0; padding: 6px 18px; width: auto !important; }
  .compare td:nth-child(2)::before { content: "Question bank: "; font-weight: 600; color: var(--ink-2); }
  .compare td:last-child { background: none; }
  .compare td:last-child::before { content: "FoxInAI: "; font-weight: 600; color: var(--fox-text); }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: background-color .2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 10px 1.5px no-repeat,
    var(--ink);
  border-color: var(--ink);
}
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Waitlist ---------- */

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.waitlist-copy h2 { margin: 14px 0 18px; }
.waitlist-copy p { color: var(--ink-2); font-size: 1.1rem; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.perks svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--fox); margin-top: 2px; }

.form-card {
  padding: clamp(22px, 4vw, 36px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color .15s ease, background-color .15s ease;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B3A57' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.input:hover { border-color: #B8C4D9; }
.input:focus { outline: none; border-color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 3px var(--fox-soft); }
.input[aria-invalid="true"] { border-color: var(--wrong); }
.error-text { font-size: .85rem; color: var(--wrong); min-height: 0; }
.error-text:empty { display: none; }

/* OMR exam picker */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.omr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.omr label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.omr input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.omr .bubble { width: 22px; height: 22px; }
.omr input:checked + .bubble::after { transform: scale(1); }
.omr input:checked + .bubble { border-color: var(--ink); }
.omr label:has(input:checked) { border-color: var(--ink); background: var(--sheet); }
.omr input:focus-visible + .bubble { outline: 3px solid var(--fox); outline-offset: 2px; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .omr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.honeypot { display: none !important; }
.form-actions { margin-top: 24px; display: grid; gap: 12px; }
.form-actions .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
.form-status { font-size: .95rem; padding: 12px 14px; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--correct-soft); color: var(--correct); }
.form-status.err { background: var(--wrong-soft); color: var(--wrong); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.form-done { text-align: center; padding: 24px 8px; }
.form-done .bubble-big {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--correct);
  display: grid;
  place-items: center;
}
.form-done .bubble-big svg { width: 30px; height: 30px; color: #fff; }
.form-done h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-done p { color: var(--ink-2); }

@media (max-width: 960px) { .waitlist { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #B9C4DA;
  padding: 64px 0 36px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #253656;
}
.site-footer .brand { color: #fff; }
.site-footer .brand .ai { color: #FF9D6E; }
.footer-about { margin-top: 16px; max-width: 30em; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8492AE;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #E8EDF7; }
.site-footer a:hover { color: #FF9D6E; }
.footer-legal {
  padding-top: 24px;
  display: grid;
  gap: 10px;
  font-size: .82rem;
  color: #8492AE;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Inner pages ---------- */

.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 18px 0 18px; }
.prose { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: var(--fox-text); font-weight: 600; text-underline-offset: 3px; }
.prose .updated { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.principles div { padding: 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.principles h3 { margin: 0 0 8px; font-size: 1.1rem; }
.principles p { font-size: .98rem; }
@media (max-width: 640px) { .principles { grid-template-columns: 1fr; } }

.cta-band {
  margin-top: 48px;
  padding: 32px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-band h2 { margin: 0; font-size: 1.6rem; color: #fff; }
.cta-band p { color: #B9C4DA !important; margin-top: 6px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
