:root {
  --paper: #f5f3ec;
  --card: #ffffff;
  --ink: #191b1f;
  --muted: #565b64;
  --rule: #d9d5ca;
  --blue: #1d4e89;
  --blue-dark: #123863;
  --green: #2f6e4e;
  --red: #b8302f;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 38px 38px;
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; padding: 10px 14px; background: var(--card); }
.site-footer { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
main { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 100; width: 100%; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 32px; border-bottom: 2px solid var(--ink); background: rgba(245,243,236,.92); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; background: var(--card); font-family: var(--mono); font-size: 17px; font-weight: 800; }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--rule); border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { font-size: 13px; font-weight: 700; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue-dark); }
.nav button { font: inherit; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-btn { position: relative; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-btn:hover, .nav-btn.active { color: var(--ink); }
.nav-btn.active::after { content: ""; position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; background: var(--red); }
.header-right { display: flex; align-items: center; gap: 16px; }
.dev-badge { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.session-identity { max-width: 180px; overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.session-admin { color: #8b2f2b; }
.session-admin-role { color: #9a7414; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tool-btn { display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid var(--rule); border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.tool-btn:hover { border-color: var(--ink); color: var(--ink); }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--ink); border-radius: 4px; font-size: 13px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: var(--ink); box-shadow: 4px 4px 0 rgba(29,78,137,.22); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--card); }
.eyebrow { color: var(--blue); font: 800 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; padding: 86px 0 64px; }
.hero h1 { max-width: 780px; margin: 14px 0 18px; font-size: clamp(40px, 6vw, 70px); line-height: 1.04; letter-spacing: -.04em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.lede { max-width: 720px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.exam-preview { padding: 22px; border: 2px solid var(--ink); background: var(--card); box-shadow: 8px 8px 0 var(--rule); }
.preview-head { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-weight: 700; }
.preview-body { padding: 22px 0 4px; }
.preview-body small { color: var(--blue); font: 700 11px var(--mono); }
.preview-choice { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--rule); }
.preview-choice.selected { border-color: var(--blue); background: #eef4fb; }
.section { margin: 30px 0 72px; padding: 42px; border: 1px solid var(--rule); background: var(--card); }
.section h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.grid-3, .feature-table, .pricing-grid { display: grid; gap: 16px; margin-top: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; border: 1px solid var(--rule); background: #fff; }
.grid-3 > .card { display: flex; flex-direction: column; }
.grid-3 > .card > a { margin-top: auto; }
.card h3 { margin: 8px 0; font-size: 21px; }
.card p { color: var(--muted); }
.number { color: var(--blue); font: 800 12px var(--mono); }
.feature-table { grid-template-columns: 1fr 1fr; }
.feature-row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px; border-bottom: 1px solid var(--rule); }
.feature-row strong { color: var(--blue-dark); }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--rule); background: #fff; }
.plan > .button { margin-top: auto; }
.plan.featured { border: 2px solid var(--blue); box-shadow: 6px 6px 0 #dce7f2; }
.plan h2 { margin: 10px 0 0; font-size: 28px; }
.price { margin: 12px 0; font: 800 30px var(--mono); }
.plan ul { flex: 1; padding-left: 20px; color: var(--muted); }
.note { padding: 16px 18px; border-left: 4px solid var(--blue); background: #eef4fb; color: var(--muted); }
.faq details { padding: 17px 0; border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); }
.final-cta { margin-bottom: 70px; padding: 44px; color: #fff; background: var(--ink); }
.final-cta h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 45px); }
.final-cta p { color: #d9dde4; }
.final-cta .button { color: var(--ink); background: #fff; }
.site-footer { margin-bottom: 0; padding: 28px 0 38px; border-top: 1px solid rgba(23,25,29,.18); background: transparent; }
.site-footer > strong { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 16px 0; }
.footer-links a { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--blue-dark); }
.site-footer p { max-width: 850px; color: #777d86; font-size: 10px; line-height: 1.55; }

.site-footer-expanded {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 2fr) minmax(190px, .65fr);
  align-items: start;
  gap: 28px;
}
.site-footer-expanded > * { min-width: 0; }
.site-footer-brand strong { font-size: 14px; }
.site-footer-brand p { max-width: 64ch; margin-bottom: 0; font-size: 10px; line-height: 1.55; }
.site-footer-nav { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(0, 1.55fr); gap: 24px; }
.site-footer-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.site-footer-group > strong { flex-basis: 100%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer-group a,
.site-footer-meta a { color: #3f4650; font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer-group a:hover,
.site-footer-meta a:hover { color: var(--blue-dark); }
.site-footer-meta { display: grid; justify-items: end; gap: 10px; color: var(--muted); font-size: 11px; }
.site-footer-meta nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }

@media (max-width: 980px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .nav-btn { flex: 0 0 auto; white-space: nowrap; }
  .site-footer-expanded { grid-template-columns: 1fr; gap: 20px; }
  .site-footer-meta { justify-items: start; }
  .site-footer-meta nav { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .hero, .grid-3, .feature-table, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .site-footer { width: min(100% - 28px, 660px); }
  .site-header { align-items: center; padding: 10px 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .nav .hide-small { display: none; }
  .header-right { margin-left: auto; gap: 8px; }
  .dev-badge { max-width: 48vw; }
  .session-identity { max-width: 30vw; }
  .hero { padding-top: 55px; }
  .section, .final-cta { padding: 26px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer-nav { grid-template-columns: 1fr; }
  .site-footer-group { align-items: flex-start; flex-direction: column; }
  .site-footer-group > strong { flex-basis: auto; }
}
