/* =========================================================
   AbhyasCBT - Swiss grid landing page
   One colour (blue), sharp edges, strict 12-column grid.
   ========================================================= */
:root {
  /* Site palette: warm paper, soft ink, one calm accent */
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --ink: #16181d;
  --ink-2: #4f5560;
  --mute: #8a8f99;
  --rule: #e3e1db;
  --hair: #eceae4;
  --line-strong: #cfccc4;
  --blue: #3347b0;
  --blue-tint: #eceef9;

  /* Graphic colours - taken from the real CBT interface */
  --nta: #1f3a8a;
  --nta-tint: #eef2ff;
  --green: #16a34a;
  --red: #dc2626;
  --purple: #7c3aed;
  --orange: #ea8c14;
  --sky: #2563eb;
  --tile: #e5e7eb;
  --tile-line: #c4c9d4;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
}
em {
  font-style: normal;
  color: var(--blue);
}
::selection {
  background: var(--blue);
  color: #fff;
}

.wrap {
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- Type scale ---------- */
.h-xl {
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.h-lg {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 32px;
  padding: 0 12px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before {
  transform: none;
}
.btn:hover {
  border-color: var(--blue);
}
.btn .arr {
  display: inline-block;
  transition: transform 0.45s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn-lg {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  gap: 14px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-line::before {
  background: var(--ink);
}
.btn-line:hover {
  color: #fff;
  border-color: var(--ink);
}
.btn-inv {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-inv::before {
  background: var(--blue);
}
.btn-inv:hover {
  color: #fff;
  border-color: var(--blue);
}
.btn-inv-line {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-inv-line::before {
  background: #fff;
}
.btn-inv-line:hover {
  color: var(--ink);
  border-color: #fff;
}
.link {
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.link::after,
.hdr-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.link:hover::after,
.hdr-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* ---------- Progress ---------- */

/* ---------- Header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--hdr);
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hdr-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 26px;
  height: 26px;
  display: block;
}
.logo-mark rect {
  transition: transform 0.5s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.logo-mark rect:nth-child(1) {
  fill: var(--green);
}
.logo-mark rect:nth-child(2) {
  fill: var(--purple);
}
.logo-mark rect:nth-child(3) {
  fill: var(--orange);
}
.logo-mark .lm-on {
  fill: var(--blue);
}
.logo-mark .lm-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-dasharray: 12;
  stroke-dashoffset: 0;
}
.logo:hover .logo-mark rect:nth-child(1) {
  transform: scale(0.8);
}
.logo:hover .logo-mark rect:nth-child(2) {
  transform: scale(0.8);
  transition-delay: 0.06s;
}
.logo:hover .logo-mark rect:nth-child(3) {
  transform: scale(0.8);
  transition-delay: 0.12s;
}
.logo:hover .logo-mark .lm-tick {
  animation: tickDraw 0.6s var(--ease);
}
@keyframes tickDraw {
  from {
    stroke-dashoffset: 12;
  }
}
.logo-word {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.045em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.logo-word b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: #fff;
  padding: 3px 5px 2px;
  margin-left: 5px;
}
.hdr-nav {
  display: flex;
  gap: 28px;
}
.hdr-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
}
.hdr-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.burger {
  display: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: border-color .25s;
}
.burger:hover { border-color: var(--ink); }

/* ---------- Mobile drawer ---------- */
.mnav { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear .5s; }
.mnav.open { visibility: visible; transition-delay: 0s; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(22, 24, 29, .38); opacity: 0; transition: opacity .45s ease; }
.mnav.open .mnav-scrim { opacity: 1; }
.mnav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; overflow-y: auto;
  background: var(--paper); border-left: 1px solid var(--rule);
  transform: translateX(100%); transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.mnav.open .mnav-panel { transform: none; }
.mnav-top { flex: none; display: flex; justify-content: space-between; align-items: center; height: var(--hdr); padding: 0 16px; border-bottom: 1px solid var(--rule); }
.mnav-x { width: 32px; height: 32px; border: 1px solid var(--line-strong); background: #fff; position: relative; }
.mnav-x span { position: absolute; left: 8px; right: 8px; top: 14px; height: 1.5px; background: var(--ink); transform: rotate(45deg); transition: transform .5s cubic-bezier(.65, 0, .35, 1) .1s; }
.mnav-x span:last-child { transform: rotate(-45deg); }
.mnav:not(.open) .mnav-x span { transform: rotate(0); }
.mnav-links { display: flex; flex-direction: column; padding: 8px 16px 0; }
.mnav-links a {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--hair);
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .5s var(--ease-out);
}
.mnav-links .mono { font-size: 11px; font-weight: 500; color: var(--mute); }
.mnav.open .mnav-links a { opacity: 1; transform: none; }
.mnav.open .mnav-links a:nth-child(1) { transition-delay: .12s; }
.mnav.open .mnav-links a:nth-child(2) { transition-delay: .16s; }
.mnav.open .mnav-links a:nth-child(3) { transition-delay: .2s; }
.mnav.open .mnav-links a:nth-child(4) { transition-delay: .24s; }
.mnav.open .mnav-links a:nth-child(5) { transition-delay: .28s; }
.mnav.open .mnav-links a:nth-child(6) { transition-delay: .32s; }
.mnav-cta.btn-block { width: auto; margin: 24px 16px 0; }
.mnav-foot { margin-top: auto; padding: 20px 16px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.mnav-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.mnav-foot nav a { color: var(--ink-2); }
.mnav-foot nav a[aria-current] { color: var(--blue); }
.mnav-foot p { margin-top: 12px; font-size: 12px; color: var(--mute); }
.mnav-cta { flex: none; }
.nav-lock, .nav-lock body { overflow: hidden; }
@media (min-width: 901px) { .mnav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--hdr) + 56px) 0 0;
  border-bottom: 1px solid var(--rule);
}

.hero-g {
  align-items: start;
}
.hero-l {
  grid-column: 1 / 6;
}
.hero-r {
  grid-column: 6 / 13;
}

.tag {
  color: var(--ink-2);
  margin-bottom: 28px;
}
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.ln:nth-child(2) > span {
  transition-delay: 0.08s;
}
.ln:nth-child(3) > span {
  transition-delay: 0.16s;
}
.loaded .ln > span {
  transform: none;
}
.hero-sub {
  margin-top: 28px;
  max-width: 500px;
  color: var(--ink-2);
  font-size: 17px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms + 150ms);
}
.loaded .rv {
  opacity: 1;
  transform: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--rule);
}
.fact {
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact + .fact {
  border-left: 1px solid var(--hair);
  padding-left: 24px;
}
.fact b {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.fact > span {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- CBT mock (real exam colours) ---------- */
.cbt {
  position: relative;
  background: #f4f6fb;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.4;
  box-shadow:
    0 1px 2px rgba(22, 24, 29, 0.06),
    0 30px 60px -28px rgba(22, 24, 29, 0.28);
}
.cbt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tile-line);
  background: #fff;
}
.cbt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cbt-emb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(#ff9933 0 33.3%, #fff 0 66.6%, #138808 0);
  box-shadow:
    inset 0 0 0 3px #fff,
    0 0 0 1px var(--tile-line);
  flex: none;
}
.cbt-top b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.cbt-top small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
}
.cbt-cand {
  text-align: right;
}
.cbt-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: var(--nta);
  color: #fff;
}
.cbt-tabs {
  display: flex;
}
.cbt-tabs span {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 11.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.75;
}
.cbt-tabs span.on {
  background: #f4f6fb;
  color: var(--nta);
  opacity: 1;
}
.cbt-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
}
.cbt-timer b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cbt-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  min-height: 420px;
}
.cbt-q {
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.cbt-qhead {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 12.5px;
}
.cbt-qhead span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.cbt-qtext {
  font-size: 12.5px;
  min-height: 52px;
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.cbt-opts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
  border-top: 1px solid var(--hair);
}
.cbt-qtext.swap,
.cbt-opts.swap {
  opacity: 0;
  transform: translateX(-8px);
}
.cbt-opts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--hair);
  background: #fff;
  transition: background 0.25s;
}
.cbt-opts i {
  width: 14px;
  height: 14px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  flex: none;
  background: var(--nta);
  box-shadow: inset 0 0 0 6px #fff;
  transition:
    box-shadow 0.25s var(--ease),
    border-color 0.25s;
}
.cbt-opts li.sel {
  background: var(--nta-tint);
}
.cbt-opts li.sel i {
  border-color: var(--nta);
}
.cbt-opts li.sel i {
  box-shadow: inset 0 0 0 2px #fff;
}
.cbt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.b {
  display: inline-block;
  padding: 6px 9px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.b.green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.b.orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.b.sky {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
}
.b.submit {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}
.b.full {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.b.press {
  transform: scale(0.93);
  filter: brightness(1.15);
}
.cbt-pal {
  border-left: 1px solid var(--tile-line);
  padding: 10px;
  background: #fff;
}
.cbt-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 4px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  font-size: 9px;
  color: var(--ink-2);
}
.cbt-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cbt-legend b {
  color: var(--ink);
  font-family: var(--mono);
}
.st {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
}
.st.ans {
  background: var(--green);
  clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 100%, 0 100%);
}
.st.na {
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}
.st.nv {
  background: var(--tile);
  outline: 1px solid var(--tile-line);
  outline-offset: -1px;
}
.st.mr {
  background: var(--purple);
  border-radius: 50%;
}
.cbt-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.cbt-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  background: var(--tile);
  color: #374151;
  outline: 1px solid var(--tile-line);
  outline-offset: -1px;
  transition:
    background 0.3s,
    color 0.3s,
    clip-path 0.3s,
    border-radius 0.3s;
}
.cbt-grid span.cur {
  outline: 2px solid var(--nta);
  outline-offset: 0;
}
.cbt-grid span.ans {
  background: var(--green);
  color: #fff;
  outline-color: var(--green);
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
  animation: pop 0.45s var(--ease-out);
}
.cbt-grid span.na {
  background: var(--red);
  color: #fff;
  outline-color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.cbt-grid span.mr {
  background: var(--purple);
  color: #fff;
  outline-color: var(--purple);
  border-radius: 50%;
  animation: pop 0.45s var(--ease-out);
}
@keyframes pop {
  from {
    transform: scale(0.6);
  }
}
.fake-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  transform: translate(300px, 240px);
  transition: transform 0.8s var(--ease);
}
.fake-cursor svg {
  width: 20px;
  height: 20px;
}
.fake-cursor::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -8px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--nta);
  opacity: 0;
}
.fake-cursor.click::after {
  animation: clickSq 0.45s var(--ease);
}
@keyframes clickSq {
  0% {
    opacity: 1;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: #fff;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 50s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track span {
  padding: 12px 26px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.sec {
  padding: 88px 0;
}
.sec + .sec {
  border-top: 1px solid var(--rule);
}
.sec-head {
  row-gap: 18px;
  margin-bottom: 48px;
}
.s-label {
  grid-column: 1 / 4;
  color: var(--ink-2);
  padding-top: 10px;
}
.sec-head .h-lg {
  grid-column: 4 / 13;
  max-width: 15ch;
}
.s-lead {
  grid-column: 4 / 10;
  color: var(--ink-2);
  font-size: 17px;
}
.fine {
  color: var(--mute);
  margin-top: 16px;
  text-transform: none;
  font-size: 11.5px;
}

[data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
[data-rv].in {
  opacity: 1;
  transform: none;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.step {
  padding: 24px 24px 8px 0;
  position: relative;
}
.step + .step {
  padding-left: 24px;
  border-left: 1px solid var(--hair);
}
.step-n {
  display: block;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 32px;
}
.step h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.step p {
  color: var(--ink-2);
  max-width: 36ch;
}
.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.step:hover::after {
  transform: scaleX(1);
}
.steps.in .step {
  animation: stepIn 0.8s var(--ease-out) both;
}
.steps.in .step:nth-child(2) {
  animation-delay: 0.12s;
}
.steps.in .step:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ---------- Templates ---------- */
.tpl {
  display: grid;
  grid-template-columns: 3fr 9fr;
  border: 1px solid var(--rule);
}
.tpl-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--rule);
}
.tpl-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 44px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s;
}
.tpl-more {
  margin: auto 0 0;
  padding: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}
.tpl-more b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
}
.tpl-tabs button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}
.tpl-tabs button:hover::before {
  transform: translateX(-98%);
}
.tpl-tabs button[aria-selected="true"] {
  color: #fff;
}
.tpl-tabs button[aria-selected="true"]::before {
  transform: none;
}
.tpl-card {
  padding: 24px;
}
.tpl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.tpl-head h3 {
  font-size: 32px;
  letter-spacing: -0.045em;
}
.tpl-head .mono {
  color: var(--ink-2);
}
.tpl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tpl-stats > div {
  padding: 14px 0 14px 16px;
}
.tpl-stats > div:first-child {
  padding-left: 0;
}
.tpl-stats > div + div {
  border-left: 1px solid var(--hair);
}
.tpl-stats b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.1;
}
.tpl-stats small {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tpl-sections {
  margin-top: 8px;
}
.tpl-sec {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 500;
  animation: rowIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 60ms);
}
.tpl-sec .meter {
  height: 8px;
  background: var(--paper-2);
}
.tpl-sec:nth-child(1) {
  --c: var(--sky);
}
.tpl-sec:nth-child(2) {
  --c: var(--orange);
}
.tpl-sec:nth-child(3) {
  --c: var(--green);
}
.tpl-sec > span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c);
  margin-right: 10px;
  vertical-align: 1px;
}
.tpl-sec .meter i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c);
  transform-origin: 0 50%;
  animation: grow 0.8s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}
.tpl-sec b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  color: var(--ink-2);
}
@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
.tpl-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tpl-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tpl-types span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--hair);
}
.swap-in {
  animation: swapIn 0.45s var(--ease-out);
}
@keyframes swapIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- AI ---------- */
.ai {
  display: grid;
  grid-template-columns: 4fr 8fr;
  border: 1px solid var(--rule);
}
.ai-l {
  padding: 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.lbl {
  color: var(--mute);
  margin-bottom: 8px;
}
.ai-prompt {
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font-size: 15px;
  margin-bottom: 22px;
  background: var(--paper-2);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  margin-bottom: 22px;
}
.seg button {
  position: relative;
  z-index: 1;
  height: 34px;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.35s;
}
.seg button + button {
  border-left: 1px solid var(--rule);
}
.seg button[aria-checked="true"] {
  color: #fff;
}
.seg-ind {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / 3);
  background: var(--orange);
  transition:
    transform 0.45s var(--ease),
    background 0.45s;
}
.diff-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 6px;
  margin: -12px 0 22px;
}
.diff-meter i {
  background: var(--tile);
  transition: background 0.4s;
}
.diff-meter[data-l="easy"] i:nth-child(1) {
  background: var(--green);
}
.diff-meter[data-l="medium"] i:nth-child(-n + 2) {
  background: var(--orange);
}
.diff-meter[data-l="hard"] i {
  background: var(--red);
}
.ai-mix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-bottom: 22px;
}
.ai-mix > div {
  padding: 12px 0 12px 12px;
}
.ai-mix > div:first-child {
  padding-left: 0;
}
.ai-mix > div + div {
  border-left: 1px solid var(--hair);
}
.ai-mix dt {
  color: var(--mute);
  font-size: 10.5px;
}
.ai-mix dd {
  font-weight: 600;
  font-size: 14px;
}
.ai-l .btn {
  margin-top: auto;
}
.ai-r {
  padding: 24px;
  min-height: 480px;
}
.ai-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.ai-status .sq {
  width: 10px;
  height: 10px;
  background: var(--orange);
  animation: sqSpin 1s var(--ease) infinite;
}
.ai-status.done .sq {
  animation: none;
  background: var(--green);
}
@keyframes sqSpin {
  to {
    transform: rotate(180deg);
  }
}
.qcard {
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.qcard.show {
  opacity: 1;
  transform: none;
}
.qcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.qcard-head .mono {
  color: var(--mute);
  font-size: 11px;
}
.qcard-head .lvl {
  color: #fff;
  padding: 2px 7px;
  background: var(--orange);
}
.qcard-head .lvl.easy {
  background: var(--green);
}
.qcard-head .lvl.hard {
  background: var(--red);
}
.qcard p {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.qcard .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.qcard .opts span {
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--hair);
}
.qcard .opts span.ok {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.skel {
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--paper-2) 0 40%,
    var(--tile) 50%,
    var(--paper-2) 60% 100%
  );
  background-size: 250% 100%;
  animation: shimmer 1.1s linear infinite;
  margin-top: 8px;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}

/* ---------- Portal cells ---------- */
.cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
}
.cell:hover {
  background: var(--paper-2);
}
.c-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.vis {
  flex: 1;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--hair);
}
.cell-txt {
  padding: 16px 20px 20px;
}
.cell-txt .mono {
  color: var(--mute);
  font-size: 11px;
}
.cell h3 {
  font-size: 19px;
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
}
.cell p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.mini-pal {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: 8px;
}
.mini-pal span {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  background: var(--tile);
  color: #374151;
  outline: 1px solid var(--tile-line);
  outline-offset: -1px;
  position: relative;
  transition:
    background 0.4s,
    color 0.4s,
    clip-path 0.4s,
    border-radius 0.4s,
    transform 0.3s var(--ease);
}
.mini-pal span.ans {
  background: var(--green);
  color: #fff;
  outline-color: var(--green);
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
}
.mini-pal span.na {
  background: var(--red);
  color: #fff;
  outline-color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.mini-pal span.mr,
.mini-pal span.amr {
  background: var(--purple);
  color: #fff;
  outline-color: var(--purple);
  border-radius: 50%;
}
.mini-pal span.amr::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff;
}
.mini-pal span.bump {
  transform: scale(1.12);
}

.timer {
  width: 100%;
  max-width: 240px;
}
.timer b {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.timer-bar {
  height: 8px;
  background: var(--paper-2);
  outline: 1px solid var(--rule);
}
.timer-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
  transform-origin: 0 50%;
  transition: transform 1s linear;
}

.calc {
  width: 160px;
  border: 1px solid var(--rule);
  background: #fff;
}
.calc-screen {
  font-family: var(--mono);
  text-align: right;
  padding: 6px 8px;
  font-size: 16px;
  border-bottom: 1px solid var(--rule);
  min-height: 32px;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.calc-keys span {
  display: grid;
  place-items: center;
  height: 26px;
  font-family: var(--mono);
  font-size: 12px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  transition:
    background 0.12s,
    color 0.12s;
}
.calc-keys span:nth-child(4n) {
  border-right: 0;
  background: var(--nta);
  color: #fff;
  font-weight: 600;
}
.calc-keys span:nth-child(15) {
  background: var(--green);
  color: #fff;
}
.calc-keys span:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.calc-keys span.press {
  background: var(--orange);
  color: #fff;
}

.guard {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.guard-k {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.guard-k::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
}
.guard-w {
  padding: 8px 12px;
  background: var(--red);
  color: #fff;
  animation: warn 3.2s var(--ease) infinite;
}
@keyframes warn {
  0%,
  50%,
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
  60%,
  90% {
    opacity: 1;
    transform: none;
  }
}

.instr {
  width: 100%;
  max-width: 230px;
  padding: 14px;
  border: 1px solid var(--rule);
  font-size: 11.5px;
  background: #fff;
}
.instr i {
  display: block;
  height: 5px;
  background: var(--paper-2);
  margin-bottom: 6px;
}
.w80 {
  width: 80%;
}
.w95 {
  width: 95%;
}
.w60 {
  width: 60%;
}
.instr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.instr-check .box {
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--ink);
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.instr-check .box.on {
  background: var(--nta);
  border-color: var(--nta);
}
.instr-check .box.on::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.instr-btn {
  display: block;
  text-align: center;
  padding: 7px;
  font-weight: 600;
  background: var(--paper-2);
  color: var(--mute);
  transition:
    background 0.3s,
    color 0.3s;
}
.instr-btn.on {
  background: var(--nta);
  color: #fff;
}

.sec-switch {
  position: relative;
  display: flex;
  border: 1px solid var(--rule);
  background: #fff;
}
.sec-switch span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.35s;
}
.sec-switch span + span {
  border-left: 1px solid var(--rule);
}
.sec-switch span.on {
  color: #fff;
}
.sec-switch {
  border-color: var(--nta);
}
.sec-switch span + span {
  border-left-color: var(--nta);
}
.sec-switch i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--nta);
  transition:
    left 0.45s var(--ease),
    width 0.45s var(--ease);
}

/* ---------- Analytics ---------- */
.an {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.an-c {
  grid-column: span 4;
  padding: 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.an-c > .mono {
  color: var(--ink-2);
  font-size: 11px;
}
.an-bars,
.an-trend {
  grid-column: span 6;
}
.big {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-top: 18px;
}
.big small {
  font-size: 0.32em;
  color: var(--mute);
  letter-spacing: -0.02em;
  margin-left: 4px;
  font-weight: 600;
}
.an-c:nth-child(2) .big {
  color: var(--blue);
}
.bar-row {
  display: grid;
  grid-template-columns: 134px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 500;
}
.bar-row:first-of-type {
  margin-top: 12px;
}
.bar-row:last-child {
  border-bottom: 0;
}
.bar-row b {
  text-align: right;
  font-size: 12px;
}
.bar {
  height: 8px;
  background: var(--paper-2);
}
.bar-row:nth-of-type(1) {
  --c: var(--sky);
}
.bar-row:nth-of-type(2) {
  --c: var(--orange);
}
.bar-row:nth-of-type(3) {
  --c: var(--purple);
}
.bar-row > span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--c);
  margin-right: 10px;
  vertical-align: 1px;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease) 0.3s;
}
.in .bar i {
  transform: none;
}
.bar-row:nth-of-type(2) i {
  transition-delay: 0.42s;
}
.bar-row:nth-of-type(3) i {
  transition-delay: 0.54s;
}
.cols-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin-top: 16px;
  border-bottom: 1px solid var(--rule);
}
.cols-chart i {
  flex: 1;
  height: var(--h);
  background: var(--tile);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease);
}
.cols-chart i.hi {
  background: var(--green);
}
.in .cols-chart i {
  transform: none;
}
.cols-chart i:nth-child(2) {
  transition-delay: 0.06s;
}
.cols-chart i:nth-child(3) {
  transition-delay: 0.12s;
}
.cols-chart i:nth-child(4) {
  transition-delay: 0.18s;
}
.cols-chart i:nth-child(5) {
  transition-delay: 0.24s;
}
.cols-chart i:nth-child(6) {
  transition-delay: 0.3s;
}
.cols-chart i:nth-child(7) {
  transition-delay: 0.36s;
}
.cols-chart i:nth-child(8) {
  transition-delay: 0.42s;
}

/* ---------- FAQ ---------- */
.faq-head {
  grid-column: 1 / 5;
}
.faq-head .s-label {
  padding-top: 0;
  margin-bottom: 18px;
}
.faq {
  grid-column: 5 / 13;
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 48px 20px 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.faq summary:hover {
  color: var(--blue);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq summary::after {
  transform: rotate(90deg);
}
/* plus turns into a cross */
.faq details.opened summary::before {
  transform: rotate(135deg);
}
.faq details.opened summary::after {
  transform: rotate(225deg);
}
.faq details > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq details > div > p {
  min-height: 0;
  overflow: hidden;
  color: var(--ink-2);
  max-width: 62ch;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s ease,
    transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq details > div > p::after {
  content: "";
  display: block;
  height: 22px;
}
.faq details.opened > div {
  grid-template-rows: 1fr;
}
.faq details.opened > div > p {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s, 0s;
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.cta-g {
  align-items: end;
  row-gap: 56px;
}
.cta-l {
  grid-column: 1 / 7;
}
.cta-l .s-label {
  padding: 0;
  margin-bottom: 20px;
}
.cta-h {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 12ch;
}
.cta-p {
  margin-top: 0;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 440px;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cta-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--rule);
  max-width: 440px;
}
.cta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.cta-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c);
  flex: none;
}
.cta-list li:nth-child(1) {
  --c: var(--green);
}
.cta-list li:nth-child(2) {
  --c: var(--orange);
}
.cta-list li:nth-child(3) {
  --c: var(--purple);
}

.cta-r {
  grid-column: 8 / 13;
}

/* ---------- Footer ---------- */
.ftr {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.ftr-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  min-height: 56px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.ftr-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.ftr-copy .logo-mark {
  width: 16px;
  height: 16px;
}
.ftr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
}
.ftr-links a {
  color: var(--ink-2);
  transition: color 0.25s;
}
.ftr-links a:hover {
  color: var(--ink);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: calc(var(--hdr) + 72px) 0 56px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.legal-hero-side {
  grid-column: 1 / 6;
  padding-top: 10px;
}
.legal-hero .s-label {
  padding: 0;
}
.legal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}
.legal-nav a {
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.25s;
}
.legal-nav a:hover {
  color: var(--ink);
}
.legal-nav a[aria-current] {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.legal-hero-main {
  grid-column: 6 / 13;
}
.legal-lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.legal-date {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--mute);
  text-transform: uppercase;
}
.legal-content {
  padding: 56px 0 104px;
}
.legal-side {
  grid-column: 1 / 5;
  align-self: start;
  position: sticky;
  top: calc(var(--hdr) + 32px);
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  max-width: 300px;
}
.legal-toc a {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s;
}
.legal-toc a:hover {
  color: var(--ink);
}
.legal-toc .mono {
  font-size: 11px;
  color: var(--mute);
  padding-top: 2px;
}
.legal-body {
  grid-column: 6 / 13;
  max-width: 70ch;
}
.legal-body section {
  padding: 32px 0;
  border-bottom: 1px solid var(--hair);
  scroll-margin-top: calc(var(--hdr) + 16px);
}
.legal-body section:first-child {
  padding-top: 0;
}
.legal-body h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.legal-body h2 .mono {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}
.legal-body p,
.legal-body li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-body p + p {
  margin-top: 12px;
}
.legal-body b {
  color: var(--ink);
  font-weight: 600;
}
.legal-body ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.legal-body li {
  position: relative;
  padding-left: 20px;
}
.legal-body li + li {
  margin-top: 6px;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}
.ftr-links a[aria-current] {
  color: var(--ink);
}
@media (max-width: 900px) {
  .legal-hero {
    padding: calc(var(--hdr) + 40px) 0 40px;
  }
  .legal-hero-side,
  .legal-hero-main,
  .legal-side,
  .legal-body {
    grid-column: 1 / -1;
  }
  .legal-hero-side {
    padding-top: 0;
    margin-bottom: 28px;
  }
  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
  }
  .legal-content {
    padding-top: 40px;
  }
  .legal-side {
    position: static;
    margin-bottom: 40px;
  }
  .legal-lead {
    font-size: 17px;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-l,
  .hero-r {
    grid-column: 1 / -1;
  }
  .hero-r {
    margin-top: 48px;
    max-width: 720px;
  }
  .s-label,
  .sec-head .h-lg,
  .s-lead {
    grid-column: 1 / -1;
  }
  .sec-head .h-lg {
    max-width: 18ch;
  }
  .s-lead {
    max-width: 60ch;
  }
  .tpl {
    grid-template-columns: 1fr;
  }
  .tpl-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .tpl-tabs button {
    flex: none;
    border-bottom: 0;
    border-right: 1px solid var(--hair);
  }
  .tpl-more {
    display: none;
  }
  .ai {
    grid-template-columns: 1fr;
  }
  .ai-l {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .ai-r {
    min-height: 0;
  }
  .faq-head,
  .faq {
    grid-column: 1 / -1;
  }
  .faq-head {
    margin-bottom: 32px;
  }
  .cta-l,
  .cta-r {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .hdr-nav,
  .hdr-cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 24px 0;
    border-left: 0;
  }
  .step + .step {
    border-top: 1px solid var(--hair);
  }
  .step-n {
    margin-bottom: 16px;
    font-size: 48px;
  }
  .cells {
    grid-template-columns: 1fr 1fr;
  }
  .c-wide {
    grid-column: span 2;
    grid-row: auto;
  }
  .an-c,
  .an-bars,
  .an-trend {
    grid-column: span 12;
  }
  .an-c:nth-child(-n + 3) {
    grid-column: span 4;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hair);
  }
  .fact:nth-child(4) {
    border-top: 1px solid var(--hair);
  }
  .sec {
    padding: 64px 0;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--hdr) + 36px);
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .cbt {
    font-size: 10.5px;
  }
  .cbt-body {
    grid-template-columns: 1fr;
  }
  .cbt-pal {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .cbt-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .cbt-tabs span:nth-child(3),
  .cbt-cand {
    display: none;
  }
  .fake-cursor {
    display: none;
  }
  .tpl-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tpl-stats > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hair);
  }
  .tpl-stats > div:nth-child(4) {
    border-top: 1px solid var(--hair);
  }
  .tpl-sec {
    grid-template-columns: 124px 1fr 56px;
    gap: 10px;
    font-size: 14px;
  }
  .tpl-card,
  .ai-l,
  .ai-r {
    padding: 16px;
  }
  .cells {
    grid-template-columns: 1fr;
  }
  .c-wide {
    grid-column: auto;
  }
  .mini-pal {
    grid-template-columns: repeat(5, 44px);
  }
  .mini-pal span {
    width: 44px;
    height: 40px;
  }
  .mini-pal span:nth-child(n + 26) {
    display: none;
  }
  .an-c:nth-child(-n + 3) {
    grid-column: span 12;
  }
  .ftr-in {
    justify-content: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html {
    scroll-behavior: auto;
  }
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .ticker-track span[aria-hidden] {
    display: none;
  }
}
