/* ==========================================================================
   Varsity Data — Direction B
   Shared stylesheet for the homepage (index.html) and the legal pages
   (privacy.html, legal.html). Hand-authored, no build step.
   Order: tokens → base → header/footer → homepage sections → legal pages →
   responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 · Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* accent */
  --accent: #5B6CFF;
  --accent-deep: #4453E6;
  --accent-tint: #DDE1FF;

  /* dark surfaces + text */
  --bg: #0B0C10;
  --surface-dark: #101219;
  --panel: #0C0E14;
  --line: #1B1E27;
  --line-2: #1F2430;
  --grid-line: #12141B;
  --text: #EDEFF3;
  --text-soft: #9AA3B2;
  --text-mute: #6B7482;
  --text-faint: #4E5665;

  /* light surfaces + text */
  --surface: #FFFFFF;
  --light-bg: #F4F5F7;
  --hairline-light: #E4E7EC;
  --ink: #0B0C10;
  --ink-soft: #5A6472;

  /* mock only — never site chrome */
  --lime: #D6FB4F;

  /* radii */
  --r-btn: 10px;
  --r-btn-sm: 8px;
  --r-card: 16px;
  --r-pill: 999px;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1220px;
  --gutter: 40px;
  --header-h: 65px;
}

/* --------------------------------------------------------------------------
   2 · Base / reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Shared eyebrow label (// section) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   3 · Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: var(--r-btn);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  padding: 15px 28px;
}
.btn--primary:hover { background: var(--accent-deep); }

.btn--secondary {
  color: var(--text);
  border: 1px solid #2A2F3C;
  font-size: 16px;
  padding: 15px 26px;
}
.btn--secondary:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   4 · Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 12, 16, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px; /* half the 32px mark height */
}
.logo img { width: 32px; height: 32px; }
.logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--text); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-btn-sm);
  transition: background 0.15s ease;
}
.btn-nav:hover { background: var(--accent-deep); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5 · Homepage — Hero
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  border-bottom: 1px solid var(--line);
  padding-block: 112px 96px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #262A36;
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero__pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 1rem + 6.2vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 940px;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }

.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 600px;
  margin-top: 26px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}
.proof span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: var(--r-btn-sm);
  padding: 8px 14px;
}

/* --------------------------------------------------------------------------
   6 · Homepage — What we build (#services)
   -------------------------------------------------------------------------- */
.section--light {
  background: var(--light-bg);
  color: var(--ink);
}

.services { padding-block: 88px; }

.services__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.services__head h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  max-width: 600px;
  margin-top: 14px;
  color: var(--ink);
}
.services__support {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.6;
  align-self: flex-end;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-card);
  padding: 32px 30px;
}
.card__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7 · Homepage — Your brand (#brand)
   -------------------------------------------------------------------------- */
.brand {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 92px;
}
.brand__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.brand h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  color: var(--text);
  margin-top: 14px;
}
.brand h2 span { color: var(--accent); }
.brand__copy p {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.6;
  margin-top: 18px;
}

/* Product mock (decorative) */
.mock {
  background: var(--surface-dark);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-2);
  padding: 13px 16px;
}
.mock__dot { width: 11px; height: 11px; border-radius: 50%; background: #2A2F3C; }
.mock__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-left: 8px;
}
.mock__body { padding: 26px; display: grid; gap: 18px; }
.mock__brand { display: flex; align-items: center; gap: 12px; }
.mock__brand-tile { width: 26px; height: 26px; border-radius: 7px; background: var(--lime); }
.mock__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.mock__line { height: 9px; width: 60%; border-radius: 5px; background: var(--line-2); }
.mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock__stat {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 16px;
}
.mock__stat-num { font-family: var(--font-mono); font-size: 22px; color: var(--text); }
.mock__stat-num.is-lime { color: var(--lime); }
.mock__stat-label { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.mock__chart {
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 14px;
}
.mock__chart i { flex: 1; background: #2A2F3C; border-radius: 3px 3px 0 0; }
.mock__chart i.is-accent { background: var(--accent); }

/* --------------------------------------------------------------------------
   8 · Homepage — Approach (#approach)
   -------------------------------------------------------------------------- */
.approach { padding-block: 92px; }
.approach h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  max-width: 640px;
  margin-top: 14px;
  color: var(--ink);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline-light);
  border-radius: var(--r-card);
  padding: 30px;
}
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--accent); }
.step h3 { font-size: 22px; color: var(--ink); margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.trust__item { border-top: 2px solid var(--ink); padding-top: 16px; }
.trust__item h3 { font-size: 18px; color: var(--ink); }
.trust__item p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   9 · Homepage — CTA band (#contact)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding-block: 96px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.025em; }
.cta-band p { font-size: 18px; color: var(--accent-tint); max-width: 480px; margin: 18px auto 34px; line-height: 1.55; }
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  padding: 17px 32px;
  border-radius: var(--r-btn);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-email:hover { background: #fff; color: var(--accent); }

/* --------------------------------------------------------------------------
   10 · Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 52px;
}
.site-footer__brand .logo { margin-bottom: 16px; }
.site-footer__desc { font-size: 14px; color: var(--text-mute); max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-col a.is-accent { color: var(--accent); }
.footer-col a.is-current { color: var(--accent); }
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  padding-bottom: 40px;
}

/* --------------------------------------------------------------------------
   11 · Legal pages (privacy.html, legal.html)
   -------------------------------------------------------------------------- */
.legal { background: var(--surface); color: #2A2E35; }

.legal__head {
  max-width: 1120px;
  margin-inline: auto;
  padding: 64px var(--gutter) 44px;
  border-bottom: 1px solid var(--hairline-light);
}
.legal__head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 52px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 12px 0;
}
.legal__meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); }

.legal__disclaimer {
  max-width: 1120px;
  margin: 24px auto 0;
  padding-inline: var(--gutter);
}
.legal__disclaimer p {
  background: #F1F2FF;
  border: 1px solid var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-btn);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.legal__body {
  display: grid;
  grid-template-columns: 236px minmax(0, 760px);
  gap: 56px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 48px var(--gutter) 80px;
}

/* Sticky table of contents */
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.toc h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.15s ease;
}
.toc a:hover, .toc a:focus-visible { color: var(--accent); }

/* Reading column */
.legal__content { min-width: 0; }
.legal__section { scroll-margin-top: 96px; margin-bottom: 40px; counter-increment: legal; }
.legal__section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.legal__section h2::before {
  content: counter(legal, decimal-leading-zero) "  ";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
}
.legal__section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 20px 0 8px;
}
.legal__section p,
.legal__section li {
  font-size: 16px;
  line-height: 1.7;
  color: #2A2E35;
}
.legal__section p { margin-bottom: 14px; }
.legal__section ul, .legal__section ol { padding-left: 22px; margin-bottom: 14px; }
.legal__section li { margin-bottom: 8px; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__section a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__crosslink { margin-top: 28px; font-size: 15px; }
.legal__content { counter-reset: legal; }

/* CCPA category table */
.legal__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline-light);
  border-radius: 12px;
  margin-bottom: 14px;
}
.legal__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #EDF0F3;
  vertical-align: top;
  line-height: 1.5;
}
.legal__table th {
  background: var(--light-bg);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.legal__table td.is-no { font-family: var(--font-mono); color: #1F8A5B; }
.legal__table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   12 · Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .brand__grid { gap: 48px; }
}

@media (max-width: 900px) {
  .brand__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Legal: drop the sticky TOC, single column */
  .legal__body { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 22px; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { padding: 12px 4px; font-size: 16px; }
  .nav { gap: 14px; }

  .hero { padding-block: 84px 64px; }
  .hero__sub { font-size: 17px; }
  .services, .brand, .approach { padding-block: 60px; }
  .cta-band { padding-block: 64px; }

  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .trust { grid-template-columns: 1fr; }
  .mock__stats { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
}
