/* Socratius Ads. Static, no build.
   Brand: Socratius (socratius.ai): Geist + Geist Mono, ink 0d0f14, Socratius blue 3346f0.
   Sub-brand trait: vertical test lanes. Sister site (Books) uses horizontal ledger rules.
   EXCEPTION to impeccable/overused-font: Geist and Geist Mono are the parent brand typefaces (socratius.ai); the client asked that both sub-brand sites follow the Socratius brand.
   EXCEPTION to impeccable/cramped-padding: .hero and .closer are full-bleed bands; their text sits inside .wrap, which carries a 20 to 56px gutter. */

@font-face {
  font-family: "Geist";
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour tokens, stored as HSL channels */
  --ink: 225 21% 7%;            /* Socratius ink */
  --ink-soft: 224 9% 25%;
  --muted: 226 8% 39%;          /* 5.9:1 on page */
  --page: 220 20% 97%;          /* cool light grey */
  --surface: 0 0% 100%;
  --sunken: 222 22% 94%;
  --line: 222 14% 88%;
  --rule: 212 40% 90%;          /* lane rule */
  --accent: 213 91% 43%;        /* Ads azure, 5.2:1 on page */
  --accent-ink: 213 90% 32%;
  --accent-pale: 210 100% 95%;
  --on-accent: 0 0% 100%;
  --ok: 152 55% 30%;
  --ok-pale: 150 50% 93%;
  --ask: 32 90% 32%;
  --ask-pale: 38 95% 92%;

  --font: "Geist", ui-sans-serif, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* spacing, 4pt scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius-pill: 999px;
  --radius: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;

  --rule-gap: 56px;             /* ledger line height, the sub-brand rhythm */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: hsl(var(--ink));
  background: hsl(var(--page));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:is(button, [role=button], a[href], summary) { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: hsl(var(--accent) / .12); }
:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: hsl(var(--ink)); color: hsl(var(--surface)); padding: var(--s2) var(--s4);
  border-radius: var(--radius-pill); text-decoration: none;
}
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--page));
  border-bottom: 1px solid hsl(var(--line));
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); height: 72px; }
.lockup { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s3); text-decoration: none; color: hsl(var(--ink)); }
.lockup img { height: 22px; width: auto; }
.lockup .sub {
  font-size: 21px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  color: hsl(var(--accent)); padding-left: var(--s3); border-left: 1.5px solid hsl(var(--line));
}
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; font-size: 15px; color: hsl(var(--muted)); transition: color var(--dur-fast) var(--ease-out); }
.nav a:hover { color: hsl(var(--ink)); }
.nav .btn-dark, .nav .btn-dark:hover { color: hsl(var(--surface)); }

/* ---------- buttons (mechanic ported from cssbuttons.io, adamgiebl "send": icon wrapper slides on hover) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 48px; padding: 6px 22px 6px 6px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: 500 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  touch-action: manipulation;
}
.btn .ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-pill);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.btn .ico svg { width: 18px; height: 18px; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: hsl(var(--accent)); color: hsl(var(--on-accent)); }
.btn-primary .ico { background: hsl(var(--surface)); color: hsl(var(--accent)); }
.btn-primary:hover { background: hsl(var(--accent-ink)); }
.btn-dark { background: hsl(var(--ink)); color: hsl(var(--surface)); padding: 0 20px; min-height: 44px; font-size: 15px; }
.btn-dark:hover { background: hsl(var(--ink-soft)); }
.btn-ghost { color: hsl(var(--ink)); border-color: hsl(var(--line)); background: hsl(var(--surface)); padding: 0 22px; }
.btn-ghost:hover { border-color: hsl(var(--ink) / .35); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s9) 0 var(--s9);
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--line));
}
/* Socratius mark behind the page: same SVG and recipe as socratius.ai (hero: right -6vw, top 40px,
   width min(560px,52vw), opacity .06). Decorative, pointer-events none, text stays above it. */
.hero::before, .closer::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  background: url("assets/socratius-mark-bg.svg") no-repeat center / contain;
  aspect-ratio: 125 / 150;
}
.hero::before { right: -6vw; top: 40px; width: min(560px, 52vw); opacity: .06; }
.hero > .wrap, .closer > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; padding-block: .04em .12em;
  margin: 0 0 var(--s6); text-wrap: balance;
}
.hero h1 em { font-style: normal; color: hsl(var(--accent)); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: hsl(var(--muted)); max-width: 34em; margin: 0 0 var(--s7); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ledger snippet: rows sit on the page rules, no card */
.ledger { font-family: var(--mono); font-size: 13.5px; position: relative; margin: 0; }
.ledger-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; column-gap: var(--s4);
  align-items: center; min-height: var(--rule-gap); padding: var(--s2);
  position: relative;
}
/* each rule runs from the row to the right edge of the page, like ruled ledger paper */
.ledger-row::after { content: ""; position: absolute; left: 0; right: -100vw; bottom: 0; height: 1px; background: hsl(var(--rule)); }
.ledger-head::after { background: hsl(var(--accent) / .35); }
.ledger-head { color: hsl(var(--muted)); font-size: 12px; }
.ledger .date { color: hsl(var(--muted)); }
.ledger .what { min-width: 0; font-family: var(--font); font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .what small { display: block; font-family: var(--mono); font-size: 12px; color: hsl(var(--muted)); letter-spacing: 0; }
.ledger .amt { font-variant-numeric: tabular-nums; text-align: right; }
.ledger .tag {
  grid-column: 2 / 4; display: none;
}
.state {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1;
  padding: 5px 9px; border-radius: var(--radius-pill); white-space: nowrap;
}
.state svg { width: 13px; height: 13px; }
.state-ok { color: hsl(var(--ok)); background: hsl(var(--ok-pale)); }
.state-ask { color: hsl(var(--ask)); background: hsl(var(--ask-pale)); }
.ledger-row .cell-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ledger-note { font-family: var(--font); font-size: 13px; color: hsl(var(--muted)); margin: var(--s3) 0 0; padding: 0 var(--s2); }

/* posting animation: each row is "posted" in turn, state appears after */
@media (prefers-reduced-motion: no-preference) {
  .ledger-row.posted { animation: post 520ms var(--ease-out) both; }
  .ledger-row.posted .state { animation: stamp 360ms var(--ease-out) both; }
  .ledger-row.posted:nth-child(2) { animation-delay: 300ms; } .ledger-row.posted:nth-child(2) .state { animation-delay: 700ms; }
  .ledger-row.posted:nth-child(3) { animation-delay: 420ms; } .ledger-row.posted:nth-child(3) .state { animation-delay: 820ms; }
  .ledger-row.posted:nth-child(4) { animation-delay: 540ms; } .ledger-row.posted:nth-child(4) .state { animation-delay: 940ms; }
  .ledger-row.posted:nth-child(5) { animation-delay: 660ms; } .ledger-row.posted:nth-child(5) .state { animation-delay: 1060ms; }
  .ledger-row.posted:nth-child(6) { animation-delay: 780ms; } .ledger-row.posted:nth-child(6) .state { animation-delay: 1180ms; }
  .hero h1, .hero .lede, .hero .cta-row { animation: rise 640ms var(--ease-out) both; }
  .hero .lede { animation-delay: 90ms; }
  .hero .cta-row { animation-delay: 180ms; }
}
@keyframes post { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.band { padding: var(--s10) 0; }
.band + .band { border-top: 1px solid hsl(var(--line)); }
.h2 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; line-height: 1.12; padding-bottom: .1em; letter-spacing: -0.045em; margin: 0 0 var(--s4); max-width: 16em; text-wrap: balance; }
.sub-h { font-size: 18px; color: hsl(var(--muted)); margin: 0; max-width: 36em; }
.section-head { margin-bottom: var(--s8); }

/* what the agents handle: rule-separated rows, two columns, no cards */
.duties { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s8); margin: 0; padding: 0; list-style: none; }
.duties li { padding: var(--s5) 0; border-top: 1px solid hsl(var(--line)); display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); }
.duties li:nth-last-child(-n+2) { border-bottom: 1px solid hsl(var(--line)); }
.duties svg { width: 22px; height: 22px; color: hsl(var(--accent)); margin-top: 3px; }
.duties h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 var(--s1); line-height: 1.3; }
.duties p { margin: 0; color: hsl(var(--muted)); font-size: 16px; }

/* how it works: genuinely sequential, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: hsl(var(--line)); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: hsl(var(--page)); border: 1px solid hsl(var(--line)); font: 500 15px/1 var(--mono); color: hsl(var(--accent));
}
.steps h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 var(--s2); line-height: 1.25; }
.steps p { margin: 0; color: hsl(var(--muted)); }

/* who it's for */
/* who we work with: rule-separated groups, label left, businesses right, no cards */
.who-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6) var(--s8); padding: var(--s6) 0; border-top: 1px solid hsl(var(--line)); }
.who-group:last-child { border-bottom: 1px solid hsl(var(--line)); }
.who-group h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 0; color: hsl(var(--accent-ink)); }
.who-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s6); }
.who-group li { font-size: 17px; line-height: 1.4; letter-spacing: -0.01em; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid hsl(var(--line)); }
.faq details:last-child { border-bottom: 1px solid hsl(var(--line)); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s5) var(--s1) var(--s5) 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: hsl(var(--muted)); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: hsl(var(--accent-ink)); }
.faq .answer { padding: 0 0 var(--s5); color: hsl(var(--muted)); max-width: 40em; }
.faq .answer p { margin: 0; }

/* closing call */
.closer { position: relative; overflow: hidden; padding: var(--s10) 0; border-top: 1px solid hsl(var(--line)); background: hsl(var(--accent-pale)); }
.closer::before { right: -40px; top: 50%; transform: translateY(-50%); height: 130%; opacity: .12; }
.closer .h2 { max-width: 14em; }
.closer .sub-h { margin-bottom: var(--s7); color: hsl(var(--ink-soft)); }

/* footer */
.site-footer { padding: var(--s7) 0; border-top: 1px solid hsl(var(--line)); font-size: 14px; color: hsl(var(--muted)); }
.footer-bar { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: hsl(var(--ink)); }

/* legal page */
.legal { padding: var(--s9) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 var(--s3); }
.legal h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: var(--s7) 0 var(--s2); }
.legal p, .legal li { color: hsl(var(--ink-soft)); }
.legal .updated { color: hsl(var(--muted)); font-size: 15px; margin: 0 0 var(--s7); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: var(--s8) 0 var(--s8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .duties { grid-template-columns: 1fr; }
  .duties li:nth-last-child(2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: var(--s6); }
  .steps::before { left: 19px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding: 0 0 0 64px; min-height: 40px; }
  .who-group { grid-template-columns: 1fr; gap: var(--s4); }
  .band, .closer { padding: var(--s9) 0; }
}
@media (max-width: 720px) {
  .who-group ul { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .lockup img { height: 18px; }
  .lockup .sub { font-size: 18px; }
  .header-bar { height: 64px; }
  .btn-dark { padding: 0 16px; }
  .ledger-row { grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: var(--s3); }
  .ledger .what { font-size: 14px; white-space: normal; overflow: visible; }
  .ledger .date { font-size: 12px; }
}
@media (max-width: 400px) {
  .ledger .date { display: none; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-head span:first-child { display: none; }
}

/* =========================================================
   Ads sub-brand layer: vertical test lanes instead of ledger rules
   ========================================================= */
:root { --lane-gap: 120px; }

/* test board: variants as lanes, sitting on the page, no card */
.lanes { margin: 0; position: relative; }
/* lane borders run the full height of the hero: the test lanes are the page */
.lane { position: relative; }
.lane::after, .lanes-grid::before { content: ""; position: absolute; top: -100vh; bottom: 0; width: 1px; background: hsl(var(--rule)); }
.lane::after { right: -1px; }
.lanes-grid { position: relative; }
.lanes-grid::before { left: -1px; }
.lanes-brief { font-family: var(--mono); font-size: 12.5px; color: hsl(var(--muted)); margin: 0 0 var(--s4); }
.lanes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid hsl(var(--line)); border-bottom: 1px solid hsl(var(--line)); }
.lane {
  padding: var(--s4) var(--s4) var(--s5);
  display: flex; flex-direction: column; gap: var(--s4); min-height: 340px;
  background: hsl(var(--surface) / .6);
}
.lane-id { font-family: var(--mono); font-size: 12px; color: hsl(var(--muted)); display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.lane-id b { font-weight: 500; color: hsl(var(--ink)); }
.lane .creative {
  aspect-ratio: 4 / 5; border-radius: 10px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s3);
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
}
.lane:nth-child(1) .creative { background: hsl(var(--accent-pale)); color: hsl(var(--accent-ink)); }
.lane:nth-child(2) .creative { background: hsl(var(--ink)); color: hsl(var(--surface)); }
.lane:nth-child(3) .creative { background: hsl(var(--sunken)); color: hsl(var(--ink)); }
.lane .creative::before {
  content: ""; position: absolute; top: var(--s3); left: var(--s3); width: 22px; height: 22px; border-radius: 6px;
  background: currentColor; opacity: .18;
}
.lane .state { align-self: flex-start; }
.state-run { color: hsl(var(--accent-ink)); background: hsl(var(--accent-pale)); }
.state-off { color: hsl(var(--muted)); background: hsl(var(--sunken)); }
.lane .why { font-size: 13.5px; color: hsl(var(--muted)); margin: 0; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .lane { animation: post 520ms var(--ease-out) both; }
  .lane:nth-child(2) { animation-delay: 120ms; }
  .lane:nth-child(3) { animation-delay: 240ms; }
  .lane .state { animation: stamp 360ms var(--ease-out) both; animation-delay: 900ms; }
}

@media (max-width: 720px) {
  .lanes-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .lane::after, .lanes-grid::before { display: none; }
  .lane { border-right: 0; border-bottom: 1px solid hsl(var(--line)); min-height: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--s4); row-gap: var(--s2); padding: var(--s4) 0; background: none; }
  .lane .creative { grid-row: 1 / 4; grid-column: 1; font-size: 12.5px; padding: var(--s2); }
  .lane .creative::before { width: 14px; height: 14px; top: var(--s2); left: var(--s2); border-radius: 4px; }
  .lane-id, .lane .state, .lane .why { grid-column: 2; justify-self: start; }
}
