/* ==========================================================================
   PostoChecker — Soft Structuralism
   Silver ground, floating white architecture, massive grotesk, deeply
   diffused ambient shadows. Every enclosure is a nested double-bezel.
   Accent #2563EB is locked by logo.svg and is the only accent.
   ========================================================================== */

/* ---------------- Typeface (self-hosted; no external requests) ------------ */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2-variations");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Ground & surfaces --- */
  --ground: #f1f2f5;
  --ground-2: #e9ebef;
  --surface: #ffffff;
  --surface-sunk: #f7f8fa;

  /* --- Ink --- */
  --ink: #08090c;
  --ink-2: #464c58;
  --ink-3: #79808d;

  /* --- Accent (single) --- */
  --accent: #2563eb;
  --accent-deep: #1b4fd8;
  --accent-ink: #163a94;
  --accent-veil: rgba(37, 99, 235, 0.08);

  /* --- Semantic --- */
  --ok: #12734a;
  --ok-veil: rgba(18, 115, 74, 0.09);

  /* --- Hairlines: translucent rings, never flat grey borders --- */
  --hair: rgba(8, 9, 12, 0.07);
  --hair-soft: rgba(8, 9, 12, 0.045);
  --hair-lit: rgba(255, 255, 255, 0.85);

  /* --- Type --- */
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* --- Bezel geometry (concentric radii) --- */
  --shell-r: 32px;
  --bezel-pad: 6px;
  --core-r: calc(var(--shell-r) - var(--bezel-pad));

  /* --- Ambient shadows: highly diffused, tinted, one light source above --- */
  --amb-1:
    0 1px 1px rgba(8, 9, 12, 0.014),
    0 6px 14px -8px rgba(8, 9, 12, 0.05),
    0 18px 40px -20px rgba(22, 58, 148, 0.08);
  --amb-2:
    0 1px 1px rgba(8, 9, 12, 0.016),
    0 10px 24px -12px rgba(8, 9, 12, 0.06),
    0 32px 64px -28px rgba(22, 58, 148, 0.13),
    0 64px 120px -60px rgba(22, 58, 148, 0.14);
  --amb-3:
    0 2px 2px rgba(8, 9, 12, 0.02),
    0 16px 32px -14px rgba(8, 9, 12, 0.07),
    0 48px 88px -32px rgba(22, 58, 148, 0.2),
    0 96px 160px -72px rgba(22, 58, 148, 0.22);

  /* Inner core lighting — the lit top edge that sells a machined surface */
  --core-lit: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 0 0 1px var(--hair-soft);

  /* --- Motion --- */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --swift: 420ms;
  --glide: 700ms;
  --settle: 900ms;

  /* --- Systemic z-layers only --- */
  --z-grain: 40;
  --z-overlay: 300;
  /* The island stays above the overlay so the morphed X remains the visible,
     clickable way out of the menu. */
  --z-nav: 320;
  --z-skip: 400;

  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

/* Film grain — fixed, non-interactive, never attached to a scroll container */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
}

p { color: var(--ink-2); text-wrap: pretty; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 500;
  background: var(--accent-veil);
  padding: 0.12em 0.44em;
  border-radius: 6px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent-deep); text-decoration: none; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -80px;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: 999px; z-index: var(--z-skip);
  font-size: 0.86rem; font-weight: 500;
  transition: top var(--swift) var(--spring);
}
.skip-link:focus { top: 16px; }

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

.shell { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Eyebrow: microscopic pill */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--amb-1);
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-veil);
}

/* ==========================================================================
   Double-bezel: outer shell holds an inner core with concentric radii
   ========================================================================== */
.bezel {
  background: rgba(8, 9, 12, 0.032);
  padding: var(--bezel-pad);
  border-radius: var(--shell-r);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  transition: transform var(--glide) var(--spring), box-shadow var(--glide) var(--spring);
}
.bezel > .core {
  background: var(--surface);
  border-radius: var(--core-r);
  box-shadow: var(--core-lit), var(--amb-1);
  height: 100%;
  transition: box-shadow var(--glide) var(--spring);
}

/* ==========================================================================
   Floating island navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  padding: 24px 0 8px;
  pointer-events: none;
}
.nav-island {
  pointer-events: auto;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 0 0 1px var(--hair-soft),
    var(--amb-2);
}

.brand { display: flex; align-items: center; margin-right: 12px; }
.brand-logo { display: block; height: 26px; width: auto; }

.island-nav { display: flex; align-items: center; gap: 2px; }
.island-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.875rem; font-weight: 450;
  padding: 9px 15px;
  border-radius: 999px;
  transition: color var(--swift) var(--spring), background-color var(--swift) var(--spring);
}
.island-nav a:hover { color: var(--ink); background: rgba(8, 9, 12, 0.04); }
.island-nav a.is-current { color: var(--accent-deep); background: var(--accent-veil); }

/* ---- Hamburger that morphs into an X ---- */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 0; border-radius: 999px;
  background: rgba(8, 9, 12, 0.045);
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--swift) var(--spring), transform var(--swift) var(--spring);
}
.nav-toggle:hover { background: rgba(8, 9, 12, 0.075); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--glide) var(--spring), opacity var(--swift) var(--spring);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -4px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, 4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

/* ---- Screen-filling menu overlay ---- */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  background: rgba(244, 245, 247, 0.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--glide) var(--spring);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.menu-overlay a {
  display: block;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 550;
  letter-spacing: -0.04em;
  color: var(--ink);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity var(--settle) var(--spring), transform var(--settle) var(--spring);
}
.menu-overlay.is-open a { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open a:nth-child(1) { transition-delay: 100ms; }
.menu-overlay.is-open a:nth-child(2) { transition-delay: 160ms; }
.menu-overlay.is-open a:nth-child(3) { transition-delay: 220ms; }

/* ==========================================================================
   Buttons — island pills with nested button-in-button icon
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 24px;
  border: 0; border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: transform var(--glide) var(--spring), box-shadow var(--glide) var(--spring),
              background-color var(--glide) var(--spring), color var(--glide) var(--spring);
}
.btn:active { transform: scale(0.98); }

/* Nested circular icon wrapper, flush with the pill's right inner padding */
.btn-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform var(--glide) var(--spring), background-color var(--glide) var(--spring);
}
.btn:hover .btn-orb { transform: translate(4px, -1px) scale(1.06); }
/* A back arrow must gain tension leftward, matching where it points. */
.btn-back:hover .btn-orb { transform: translate(-4px, -1px) scale(1.06); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--amb-2);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--amb-3); }
.btn-primary .btn-orb { background: rgba(255, 255, 255, 0.14); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--amb-2);
}
.btn-accent:hover { background: var(--accent-deep); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), var(--amb-3); }
.btn-accent .btn-orb { background: rgba(255, 255, 255, 0.2); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair-soft), var(--amb-1);
}
.btn-ghost:hover { box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair), var(--amb-2); }
.btn-ghost .btn-orb { background: rgba(8, 9, 12, 0.05); }

/* Deliberately-not-yet-live state */
.btn-pending {
  background: rgba(8, 9, 12, 0.035);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  cursor: default;
  pointer-events: none;
}
.btn-pending .btn-orb {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase;
}

.btn-sm { padding: 7px 7px 7px 18px; font-size: 0.83rem; gap: 10px; }
.btn-sm .btn-orb { width: 27px; height: 27px; }
.btn-lg { padding: 12px 12px 12px 30px; font-size: 1rem; }
.btn-lg .btn-orb { width: 38px; height: 38px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 140px 0 128px;
  overflow: hidden;
}
/* Diffused ambient light, not a hard gradient band */
.hero::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  width: 120ch; height: 90ch;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(37, 99, 235, 0.11), transparent 72%),
    radial-gradient(closest-side, rgba(255, 255, 255, 0.9), transparent 70%);
}

/* The ambient ::before is absolutely positioned, so hero content must be
   positioned too or the white radial washes straight over the headline. */
.hero > .shell { position: relative; }
.hero-top { max-width: 980px; }

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 5.75rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 0.97;
  margin: 32px 0 0;
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--ink-3);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-top: 32px;
  font-weight: 400;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

.hero-tagline {
  margin-top: 56px;
  max-width: 40ch;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 520;
  letter-spacing: -0.032em;
  line-height: 1.3;
  color: var(--ink);
}
.hero-tagline-rule {
  display: block;
  width: 40px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(37, 99, 235, 0.15));
  margin-bottom: 20px;
}
.hero-tagline-accent { color: var(--accent-deep); }

/* Hero stat strip — sits inside its own bezel */
.hero-strip { margin-top: 88px; }
.hero-strip .core { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 28px 30px; position: relative; }
.hero-stat + .hero-stat { box-shadow: inset 1px 0 0 var(--hair-soft); }
.hero-stat dt {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.hero-stat dd {
  font-size: 1.05rem; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ==========================================================================
   Section scaffolding — macro whitespace
   ========================================================================== */
.section { padding: 128px 0; }
.section-head { max-width: 60ch; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.042em;
  margin: 28px 0 0;
}
.section-head p { font-size: 1.08rem; margin-top: 24px; max-width: 52ch; }

/* ==========================================================================
   Asymmetrical bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }

.tool-a { grid-column: span 7; grid-row: span 2; }
.tool-b { grid-column: span 5; }
.tool-c { grid-column: span 5; }
.tool-d { grid-column: span 12; }

.value-a { grid-column: span 5; grid-row: span 2; }
.value-b { grid-column: span 7; }
.value-c { grid-column: span 7; }

.card { height: 100%; }
.card .core {
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 32px;
}
.card:hover { transform: translateY(-4px); }
.card:hover > .core { box-shadow: var(--core-lit), var(--amb-2); }

.card-tall .core { padding: 40px; }
.card-tall h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.card-tall p { font-size: 1.05rem; max-width: 46ch; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Icon sits in its own miniature bezel */
.icon-shell {
  padding: 4px;
  border-radius: 18px;
  background: rgba(8, 9, 12, 0.035);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.icon-core {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair-soft);
}

.status-chip {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  background: rgba(8, 9, 12, 0.035);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  white-space: nowrap;
}
.status-chip-live { color: var(--ok); background: var(--ok-veil); }

.card h3 { font-size: 1.2rem; font-weight: 550; letter-spacing: -0.03em; margin-top: 6px; }
.card p { font-size: 0.96rem; flex-grow: 1; }

.card-foot {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 8px;
}

/* Trailing link out of the tool grid to the how-it-works page */
.tools-more { display: flex; justify-content: center; margin-top: 40px; }
.tools-more-link {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair-soft), var(--amb-1);
  transition: transform var(--glide) var(--spring), box-shadow var(--glide) var(--spring),
              color var(--glide) var(--spring);
}
.tools-more-link .btn-orb { background: rgba(8, 9, 12, 0.05); }
.tools-more-link:hover {
  color: var(--accent-deep);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair), var(--amb-2);
}
.tools-more-link:hover .btn-orb { transform: translate(4px, -1px) scale(1.06); }
.tools-more-link:active { transform: scale(0.98); }

/* ==========================================================================
   How it works — back link, flow staircase, tool detail rows
   ========================================================================== */
.back-link {
  /* flex + fit-content, not inline-flex: it must occupy its own line
     above the eyebrow rather than sitting beside it. */
  display: flex; width: fit-content; align-items: center; gap: 12px;
  margin-bottom: 32px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  font-size: 0.86rem; font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair-soft), var(--amb-1);
  transition: transform var(--glide) var(--spring), box-shadow var(--glide) var(--spring),
              color var(--glide) var(--spring);
}
.back-link .btn-orb { width: 28px; height: 28px; background: rgba(8, 9, 12, 0.05); }
.back-link:hover { color: var(--ink); box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 0 0 1px var(--hair), var(--amb-2); }
.back-link:hover .btn-orb { transform: translate(-4px, -1px) scale(1.06); }
.back-link:active { transform: scale(0.98); }

/* Offset staircase — carries the sense of sequence a flat row loses */
.flow-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.flow-step:nth-child(1) { grid-column: 1 / span 6; }
.flow-step:nth-child(2) { grid-column: 4 / span 6; }
.flow-step:nth-child(3) { grid-column: 7 / span 6; }

.flow-step .core { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.flow-step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.9rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  background: var(--accent-veil);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.flow-step h3 { font-size: 1.2rem; font-weight: 550; letter-spacing: -0.03em; }
.flow-step p { font-size: 0.96rem; }

/* Tool detail: heading rail on the left, numbered steps on the right */
.tool-detail-list { display: flex; flex-direction: column; gap: 16px; }
.tool-detail .core {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding: 36px;
  align-items: start;
}
.tool-detail-head {
  grid-column: span 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.tool-detail-heading h3 { font-size: 1.22rem; font-weight: 550; letter-spacing: -0.03em; }
.tool-detail-tagline { font-size: 0.96rem; margin-top: 8px; color: var(--ink-2); }

.tool-detail-steps {
  grid-column: span 7;
  list-style: none;
  counter-reset: step;
  display: flex; flex-direction: column; gap: 18px;
}
.tool-detail-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.tool-detail-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  background: rgba(8, 9, 12, 0.035);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}
.tool-detail-steps strong { color: var(--ink); font-weight: 550; }

.closing-line { color: #9aa5b8; margin-top: 26px; max-width: 60ch; font-size: 1.02rem; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   About — editorial split (prose measure beside a pulled quote)
   ========================================================================== */
.about-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 32px;
  align-items: start;
}
.about-p {
  grid-column: 1 / span 7;
  font-size: 1.08rem;
  max-width: 60ch;
}

.about-quote {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky; top: 128px;
}
.about-quote .core { padding: 36px; }
.about-quote blockquote {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.32;
  color: var(--ink);
}
.about-quote blockquote::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

/* ==========================================================================
   Closing panel — an inset dark plate, not a page-wide band
   ========================================================================== */
.closing { padding: 0 0 128px; }
.closing .bezel { background: rgba(8, 9, 12, 0.05); }
.closing .core {
  position: relative;
  overflow: hidden;
  background: #0a0c12;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.09), var(--amb-3);
  padding: 88px 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.closing .core::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 70ch; height: 70ch;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.36), transparent 70%);
}
.closing-copy { position: relative; }
.closing .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  color: #a9c2f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.closing h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 560;
  letter-spacing: -0.042em;
  margin: 26px 0 0;
}
.closing p { color: #9aa5b8; margin-top: 18px; max-width: 46ch; }
.closing .btn-pending {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  color: #c3ccdb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.closing .btn-pending .btn-orb { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-bottom: 56px; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px;
  padding-bottom: 40px;
}
/* Kept as a class, not a style attribute — the worker's CSP sets
   style-src 'self', which blocks inline style attributes. */
.footer-logo { height: 30px; }
.footer-brand p { font-size: 0.92rem; margin-top: 18px; max-width: 32ch; color: var(--ink-3); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a, .footer-nav span { color: var(--ink-2); font-size: 0.92rem; }
.footer-nav a { transition: color var(--swift) var(--spring); }
.footer-nav a:hover { color: var(--accent-deep); }
.footer-nav span { color: var(--ink-3); }

.footer-legal {
  padding-top: 32px;
  box-shadow: inset 0 1px 0 var(--hair-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.footer-legal p { font-size: 0.8rem; color: var(--ink-3); max-width: 76ch; }

/* ==========================================================================
   Scroll entry — heavy fade-up with focus pull
   ========================================================================== */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(10px);
  will-change: transform, opacity;
  transition:
    opacity var(--settle) var(--spring),
    transform var(--settle) var(--spring),
    filter var(--settle) var(--spring);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  will-change: auto;
}

/* ==========================================================================
   Responsive — asymmetry collapses hard below 768px
   ========================================================================== */
@media (max-width: 1040px) {
  .tool-a, .tool-b, .tool-c, .tool-d,
  .value-a, .value-b, .value-c { grid-column: span 12; grid-row: auto; }
  .about-p, .about-quote { grid-column: 1 / span 12; }
  .about-quote { grid-row: auto; position: static; }
  .flow-step:nth-child(1),
  .flow-step:nth-child(2),
  .flow-step:nth-child(3) { grid-column: 1 / span 12; }
  .tool-detail-head, .tool-detail-steps { grid-column: 1 / span 12; }
  .tool-detail .core { gap: 24px; }
  .hero-strip .core { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--hair-soft); }
  .hero-stat:nth-child(3) { box-shadow: inset 0 1px 0 var(--hair-soft); }
  .hero-stat:nth-child(2), .hero-stat:nth-child(4) { box-shadow: inset 1px 0 0 var(--hair-soft); }
}

@media (max-width: 860px) {
  .island-nav { display: none; }
  .nav-toggle { display: block; }
  .nav-island { padding: 8px 8px 8px 20px; }
  .header-cta { display: none; }
}

@media (max-width: 768px) {
  :root { --shell-r: 26px; }
  .shell { padding: 0 20px; }
  .hero { padding: 96px 0 88px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .bento { gap: 12px; }
  .card .core, .card-tall .core { padding: 26px; }
  .flow-step .core, .tool-detail .core { padding: 26px; }
  .closing-actions .btn { width: 100%; justify-content: space-between; }
  .closing { padding-bottom: 88px; }
  .closing .core { padding: 48px 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-strip { margin-top: 56px; }
  .hero-strip .core { grid-template-columns: 1fr; }
  .hero-stat { padding: 22px 24px; }
  .hero-stat + .hero-stat { box-shadow: inset 0 1px 0 var(--hair-soft) !important; }
}

/* Short pages (404): pin the close to the bottom */
.page-short { display: flex; flex-direction: column; min-height: 100dvh; }
.page-short main { flex: 1 0 auto; display: flex; align-items: center; }
.page-short main > * { width: 100%; }
.page-short .closing-wrap { margin-top: auto; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; filter: none; }
}
