/* ============================================================
   Joel Capdevila, pitch site.
   Brand Guidelines OS applied. No pure black, no pure white.
   Rewritten 2026-08-25: the previous sheet styled a component set
   (.sec/.tile/.plan/.feature/.fb) the HTML had stopped using, so
   .fit/.included/.worth/.how/.cta-band/.section-eyebrow rendered
   with zero padding and browser-default type. Everything the
   current markup uses is styled here, in one place. The inline
   <style> patch that used to sit in index.html is folded in.
   Type is the brand three only: Bricolage Grotesque (display),
   Satoshi (body), IBM Plex Mono (technical).
   ============================================================ */

:root {
  --near-black: #05070A;
  --space-blue: #011E2A;
  --deep-slate: #3A5A65;
  --silk: #E6E0D5;
  --celluloid-sand: #F0EDE5;
  --misty-slate: #7A8B8E;
  --gold: #FF9C17;
  --clay: #C4553F;

  /* DARK (default) */
  --bg: var(--near-black);
  --bg-band: #0A0E13;
  --text-body: var(--silk);
  --text-title: var(--celluloid-sand);
  --text-meta: var(--misty-slate);
  --accent: var(--gold);
  --divider: rgba(230, 224, 213, 0.11);
  --glass: rgba(230, 224, 213, 0.045);
  --glass-line: rgba(230, 224, 213, 0.13);

  /* TYPE SCALE, one source of truth */
  --fs-display: clamp(2.1rem, 5vw, 3.9rem);
  --fs-h2:      clamp(1.7rem, 3.4vw, 2.9rem);
  --fs-h3:      clamp(1.12rem, 1.5vw, 1.35rem);
  --fs-quote:   clamp(1.3rem, 2.9vw, 1.85rem);
  --fs-lead:    clamp(1.02rem, 1.4vw, 1.2rem);
  --fs-body:    clamp(1rem, 1.1vw, 1.06rem);
  --fs-meta:    0.75rem;

  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --maxw: 1120px;
  --readw: 780px;
  --pad: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 9.5vw, 138px);
  --r: 16px;
}

[data-theme="light"] {
  --bg: var(--celluloid-sand);
  --bg-band: #E7E3D9;
  --text-body: #143440;
  --text-title: var(--space-blue);
  --text-meta: var(--deep-slate);
  --divider: rgba(1, 30, 42, 0.14);
  --glass: rgba(1, 30, 42, 0.035);
  --glass-line: rgba(1, 30, 42, 0.13);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

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

h1, h2, h3 {
  color: var(--text-title);
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-weight: 700; font-size: var(--fs-h2);      line-height: 1.1;  letter-spacing: -.025em; }
h3 { font-weight: 600; font-size: var(--fs-h3);      line-height: 1.28; letter-spacing: -.012em; }
p  { text-wrap: pretty; margin: 0; }
a  { color: inherit; }

::selection { background: var(--accent); color: #1A1002; }

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

/* ---------- ATMOSPHERE ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 998;
  opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px; border-radius: 50%;
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,156,23,.09) 0%, transparent 65%);
  opacity: 0; transition: opacity .4s ease; will-change: transform;
}
[data-theme="dark"] .cursor-glow.on { opacity: 1; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none; }
}

/* ---------- LAYOUT PRIMITIVES ----------
   Every top-level <section> gets the same container and vertical
   rhythm by default. This is the fix for "no margins": sections no
   longer depend on being individually remembered.                */
section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sec-y) var(--pad);
}

/* Reading-width sections centre their column instead of running full bleed. */
.belief,
.included,
.how { max-width: calc(var(--readw) + var(--pad) * 2); }

/* ---------- SHARED TYPE ---------- */
.section-eyebrow,
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
  line-height: 1.5;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-body);
  max-width: 60ch;
  margin-top: 1.4rem;
  line-height: 1.55;
}

.proof-note {
  max-width: 68ch;
  margin: 2.4rem 0 0;
  color: var(--text-meta);
  font-size: .97rem;
  line-height: 1.68;
}

.hl { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--mono); font-size: .84rem; letter-spacing: -.01em;
  padding: 15px 28px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn--gold {
  background: var(--accent); color: #1A1002; font-weight: 700;
  box-shadow: 0 6px 22px rgba(255,156,23,.20);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,156,23,.32); }

.btn--ghost {
  background: transparent;
  border-color: var(--glass-line);
  color: var(--text-title);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.btn--glass {
  background: var(--glass); color: var(--text-title); border-color: var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 18px 38px; font-size: .93rem; }
.btn--full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  max-width: none; margin: 0;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav-name {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--text-title); text-decoration: none; letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: .76rem; color: var(--text-meta);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-cta {
  font-family: var(--mono); font-size: .76rem; color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); padding: 8px 16px; border-radius: 999px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: #1A1002; }
.theme-toggle { background: none; border: none; padding: 0; cursor: pointer; line-height: 0; }
.toggle-track {
  display: block; width: 42px; height: 23px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); position: relative;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); transition: transform .3s ease;
}
[data-theme="light"] .toggle-thumb { transform: translateX(19px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; max-width: none; margin: 0;
  padding: clamp(80px, 12vw, 120px) var(--pad);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* The frame is already low-key and graded. It only needs a light touch, not the
   .58 crush that used to flatten it into a smudge. Subject sits centre-right, so
   object-position pushes them further right and keeps the dark left third clear
   for the headline. */
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 68% center;
  filter: brightness(.82) saturate(.95) contrast(1.04);
  transform: scale(1.03);
}
/* Left-weighted veil: heavy where the type sits, almost absent over the face, so
   the photograph reads as a photograph on the right half. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 93%, transparent) 0%,
      color-mix(in srgb, var(--bg) 84%, transparent) 34%,
      color-mix(in srgb, var(--bg) 52%, transparent) 60%,
      color-mix(in srgb, var(--bg) 26%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 60%, transparent) 0%,
      transparent 22%,
      transparent 70%,
      color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 2;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero h1 { max-width: 19ch; }
.hero-sub {
  font-size: var(--fs-lead); max-width: 54ch; margin-top: 1.6rem;
  color: var(--text-body); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-note { font-family: var(--mono); font-size: .78rem; color: var(--text-meta); margin-top: 1.2rem; }

.spots-pill {
  display: inline-flex; align-items: center; margin-bottom: 1.5rem;
  padding: 7px 15px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.spots-text {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-meta);
}

/* ---------- CLIENT LOGOS ---------- */
.logos { text-align: center; padding-top: clamp(56px, 7vw, 84px); padding-bottom: 0; }
.logos .section-eyebrow { color: var(--text-meta); margin-bottom: 1.6rem; }
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 5vw, 4rem); max-width: 820px; margin: 0 auto;
}
.logos-row img {
  height: 24px; width: auto; opacity: .42;
  filter: brightness(0) invert(1);
  transition: opacity .25s ease;
}
[data-theme="light"] .logos-row img { filter: brightness(0) invert(0); opacity: .4; }
.logos-row img:hover { opacity: .8; }
.logos-row img.logo-lg { height: 30px; }

/* ---------- BELIEF (pull quote, the rhythm break) ---------- */
.belief { text-align: center; }
.belief p {
  font-family: var(--display);
  font-size: var(--fs-quote);
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text-title);
  text-wrap: balance;
}
.belief span { color: var(--accent); }

/* ---------- FIT / CARD GRIDS ---------- */
.fit h2 { max-width: 22ch; }
.fit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.35rem; margin-top: 2.8rem;
}
.card {
  padding: 2rem 1.9rem; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--glass-line);
  display: flex; flex-direction: column;
}
.card--yes { border-top: 2px solid var(--accent); }
.card--no  { border-top: 2px solid var(--clay); }
.card-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-meta);
  display: block; margin-bottom: 1.3rem;
}
.card-tag--gold { color: var(--accent); }
.card-tag--red  { color: var(--clay); }

.check-list, .cross-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem;
}
.check-list li, .cross-list li {
  position: relative; padding-left: 1.8rem;
  font-size: .98rem; line-height: 1.55; color: var(--text-body);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.cross-list li::before {
  content: "✕"; position: absolute; left: 0; top: 0;
  color: var(--clay); font-weight: 700;
}

/* ---------- INCLUDED / DELIVERABLES ---------- */
.included h2 { max-width: 24ch; }
.deliver-list {
  list-style: none; padding: 0; margin: 2.6rem 0 0;
}
.deliver-list li {
  display: flex; gap: 1.1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: .99rem; line-height: 1.55;
}
.deliver-list li:last-child { border-bottom: 0; }
.deliver-list b {
  display: block; margin-bottom: .25rem;
  font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  color: var(--text-title); letter-spacing: -.01em;
}
.deliver-list div { color: var(--text-meta); }
.dnum {
  font-family: var(--mono); font-size: .72rem; color: var(--accent);
  padding-top: .35rem; min-width: 2rem; flex: 0 0 auto;
}
.included .proof-note {
  margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--divider);
  color: var(--text-body);
}

/* ---------- WORTH / PRICE ----------
   The money moment. Centred, generous, one number.             */
.worth {
  text-align: center;
  background: var(--bg-band);
  max-width: none;
  padding-inline: calc(max(0px, (100vw - var(--maxw)) / 2) + var(--pad));
}
.worth .section-eyebrow { margin-inline: auto; }
.worth-grid { display: grid; justify-items: center; margin-bottom: 2.2rem; }
.worth-total {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 2.6rem 3rem; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--glass-line);
  min-width: min(360px, 100%);
}
.worth-total-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-meta);
}
.worth-total-val {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1;
  color: var(--accent); letter-spacing: -.035em;
}
.worth-risk {
  max-width: 56ch; margin: 0 auto; color: var(--text-body);
  font-size: 1.02rem; line-height: 1.6;
}
.worth-note {
  max-width: 58ch; margin: 1.4rem auto 0;
  color: var(--text-meta); font-size: .93rem; line-height: 1.65;
}
.worth .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ---------- HOW / THE INSTALL ---------- */
.later {
  padding: 2.4rem 2.2rem; border-radius: var(--r);
  border: 1px solid var(--glass-line); background: var(--glass);
}
.later h3 { margin: 0 0 .9rem; }
.later p { margin: .75rem 0 0; color: var(--text-meta); line-height: 1.65; }
.later p:first-of-type { margin-top: 0; }
.later b { color: var(--text-title); }

/* ---------- KEEP / WHO'S ASKING ---------- */
.me-wrap {
  display: grid; grid-template-columns: .85fr 1fr;
  gap: clamp(2rem, 4vw, 3.4rem); align-items: center;
}
.me-wrap img {
  width: 100%; border-radius: var(--r); display: block;
  aspect-ratio: 4/5; object-fit: cover;
  border: 1px solid var(--glass-line);
}
.me-wrap p { line-height: 1.68; margin: 0 0 1.1rem; color: var(--text-body); }
.me-wrap p:last-child { margin-bottom: 0; }
.me-wrap .section-eyebrow { margin-bottom: 1.1rem; }

/* ---------- FAQ ---------- */
.faq h2 { max-width: 22ch; }
.faq-list { margin-top: 2.6rem; display: grid; gap: .6rem; }
.faq-list details {
  border: 1px solid var(--glass-line); border-radius: 13px;
  background: var(--glass); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 1.3rem 1.5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--text-title); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1;
  flex: 0 0 auto; font-family: var(--mono);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p {
  padding: 0 1.5rem 1.5rem; color: var(--text-meta);
  max-width: 76ch; font-size: .97rem; line-height: 1.68;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  text-align: center; max-width: none;
  background: var(--bg-band);
  border-top: 1px solid var(--divider);
  padding-inline: var(--pad);
}
.cta-inner {
  max-width: 660px; margin: 0 auto;
  display: grid; gap: 1.3rem; justify-items: center;
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.cta-risk {
  font-family: var(--mono); font-size: .8rem; line-height: 1.75;
  color: var(--text-meta); max-width: 52ch;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--divider);
  padding: 3.2rem var(--pad) 7rem;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  align-items: center; justify-content: space-between;
}
.footer-name {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--text-title); display: block; letter-spacing: -.02em;
}
.footer-tag { color: var(--text-meta); font-size: .93rem; margin-top: .3rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--text-meta); transition: color .2s; line-height: 0; }
.footer-socials a:hover { color: var(--accent); }
.footer-mono { font-family: var(--mono); font-size: .78rem; color: var(--text-meta); }

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--divider);
}
.mobile-cta-btn { width: 100%; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .fit-grid, .me-wrap { grid-template-columns: 1fr; }
  .me-wrap img { aspect-ratio: 3/2; max-height: 340px; }
  .hero { min-height: auto; padding: 64px var(--pad) 76px; }
  /* Narrow viewport puts the copy over the subject, so the veil flips vertical:
     the face stays visible up top, the type sits on a dark field below it. */
  .hero-bg img { object-position: 62% 30%; }
  .hero-scrim {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 45%, transparent) 0%,
      color-mix(in srgb, var(--bg) 62%, transparent) 26%,
      color-mix(in srgb, var(--bg) 90%, transparent) 48%,
      color-mix(in srgb, var(--bg) 96%, transparent) 100%);
  }
  .mobile-cta { display: block; }
  .footer { padding-bottom: 8rem; }
}

@media (max-width: 520px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .worth-total { padding: 2rem 1.5rem; }
  .deliver-list li { flex-direction: column; gap: .5rem; }
  .dnum { padding-top: 0; }
  .card { padding: 1.6rem 1.4rem; }
  .later { padding: 1.8rem 1.5rem; }
}
