/* ============================================================
   Club Caddie · Looper AI — prototype design system
   Two temperature presets: body.ai (dark default) / body.com (light default)
   Palette: Brand Toolkit V2 + alt premium palette
   ============================================================ */

:root {
  --night: #101412;
  --night-2: #161b18;
  --caddie: #163B2A;
  --dark-green: #089247;
  --light-green: #33B562;
  --sand: #E7DDC6;
  --pin: #F8F6EF;
  --gray: #A8A69B;
  --signal-blue: #6EA8FF;
  --flag-red: #FF5A4D;
  --ink: #0A0A0A;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: rgba(10, 10, 10, 0.1);
  --font-head: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --radius: 18px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.ai { background: var(--night); color: var(--pin); }
body.com { background: var(--pin); color: var(--ink); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* warm sections inside dark pages */
body.ai .section--warm { background: var(--pin); color: var(--ink); }
body.ai .section--sand { background: var(--sand); color: var(--ink); }
body.com .section--dark { background: var(--night); color: var(--pin); }

.lead { font-size: 1.15rem; max-width: 640px; }
body.ai .lead { color: rgba(248, 246, 239, 0.78); }
body.com .lead { color: rgba(10, 10, 10, 0.72); }
body.ai .section--warm .lead, body.ai .section--sand .lead { color: rgba(10, 10, 10, 0.72); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- eyebrow / mono tags ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--light-green);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--light-green); }
body.com .eyebrow, body.ai .section--warm .eyebrow, body.ai .section--sand .eyebrow { color: var(--dark-green); }
body.com .eyebrow::before, body.ai .section--warm .eyebrow::before, body.ai .section--sand .eyebrow::before { background: var(--dark-green); }

.tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-dark); color: var(--gray); display: inline-block;
}
body.com .tag, .card--light .tag { border-color: var(--line-light); color: #6b6a60; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 700; font-size: 0.95rem; padding: 14px 26px; border-radius: 12px;
  border: none; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dark-green); color: #fff; box-shadow: 0 8px 30px rgba(8, 146, 71, 0.35); }
.btn-primary:hover { background: var(--light-green); }
.btn-ghost { background: transparent; border: 1px solid var(--line-dark); color: var(--pin); }
body.com .btn-ghost, .section--warm .btn-ghost, .section--sand .btn-ghost { border-color: var(--line-light); color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 10px; }
.textlink { font-weight: 600; color: var(--light-green); border-bottom: 1px solid transparent; }
.textlink:hover { border-color: var(--light-green); }
body.com .textlink, .section--warm .textlink, .section--sand .textlink { color: var(--dark-green); }

/* ---------- platform bar + nav ---------- */
.platform-bar {
  background: var(--caddie); color: rgba(248, 246, 239, 0.85);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-align: center; padding: 7px 16px;
}
.platform-bar a { color: var(--light-green); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 32px; backdrop-filter: blur(8px);
  transform: translateZ(0); /* own compositor layer: blur never repaints the page on scroll */
}
body.ai .nav { background: rgba(16, 20, 18, 0.86); border-bottom: 1px solid var(--line-dark); }
body.com .nav { background: rgba(248, 246, 239, 0.92); border-bottom: 1px solid var(--line-light); }

.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-pill {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  padding: 3px 9px; border-radius: 999px; background: rgba(51, 181, 98, 0.14);
  color: var(--light-green); border: 1px solid rgba(51, 181, 98, 0.4);
}
body.com .logo-pill { background: rgba(8, 146, 71, 0.1); color: var(--dark-green); border-color: rgba(8, 146, 71, 0.35); }

.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links > a, .nav-item > a { font-size: 0.92rem; font-weight: 500; opacity: 0.85; }
.nav-links > a:hover, .nav-item > a:hover { opacity: 1; color: var(--light-green); }
body.com .nav-links > a:hover, body.com .nav-item > a:hover { color: var(--dark-green); }
.nav-item { position: relative; }
.nav-item .drop {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 250px;
  background: var(--night-2); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.18s;
}
/* invisible bridge: keeps hover alive across the gap between trigger and panel */
.nav-item .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
body.com .nav-item .drop { background: #fff; border-color: var(--line-light); box-shadow: 0 24px 60px rgba(10, 10, 10, 0.12); }
.nav-item:hover .drop, .nav-item.open .drop {
  visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto;
}
.drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 0.9rem; }
.drop a:hover { background: rgba(51, 181, 98, 0.1); color: var(--light-green); }
body.com .drop a:hover { color: var(--dark-green); }
.drop .drop-note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); padding: 8px 14px 4px; }
.drop-card {
  margin: 8px; padding: 14px; border-radius: 10px; background: var(--caddie);
  color: var(--pin); font-size: 0.84rem;
}
.drop-card strong { color: var(--light-green); display: block; font-family: var(--font-head); margin-bottom: 2px; }
.nav .btn { margin-left: auto; }
.nav-new {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em;
  background: var(--dark-green); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .lead { margin: 22px 0 32px; }
.hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-glow::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 120%;
  background:
    radial-gradient(600px 420px at 75% 20%, rgba(8, 146, 71, 0.22), transparent 65%),
    radial-gradient(500px 380px at 15% 85%, rgba(22, 59, 42, 0.55), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.trust-strip {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark);
  display: flex; gap: 34px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray);
}

/* ---------- looper chat card ---------- */
.looper-card {
  background: linear-gradient(160deg, #181e1a, #11150f);
  border: 1px solid rgba(51, 181, 98, 0.22); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 60px rgba(8, 146, 71, 0.12);
  overflow: hidden; color: var(--pin);
}
.looper-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--gray);
}
.looper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light-green); box-shadow: 0 0 10px var(--light-green); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.looper-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; }

.ask-line { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; }
.ask-line .who { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--gray); flex-shrink: 0; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--light-green); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ans { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.ans.show { opacity: 1; transform: none; }

.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); border-radius: 12px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: rgba(51, 181, 98, 0.25); height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar.hot { background: var(--light-green); }
.bar.cold { background: rgba(255, 90, 77, 0.55); }
.show .bar { transform: scaleY(1); }

.rec-row {
  display: flex; gap: 12px; align-items: center; padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-dark); border-radius: 12px;
  font-size: 0.86rem;
}
.rec-row .tag { flex-shrink: 0; }
.rec-row .amt { margin-left: auto; font-family: var(--font-mono); color: var(--light-green); font-size: 0.8rem; white-space: nowrap; }

.wb-card { border: 1px solid rgba(51, 181, 98, 0.35); border-radius: 12px; padding: 14px; background: rgba(8, 146, 71, 0.07); }
.wb-card .wb-title { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--light-green); margin-bottom: 8px; }
.wb-steps { font-size: 0.82rem; color: rgba(248, 246, 239, 0.8); display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.approve-btn {
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  background: var(--dark-green); color: #fff; border: none; border-radius: 9px;
  padding: 9px 18px; cursor: pointer; transition: background 0.2s;
}
.approve-btn.pulsing { animation: approvepulse 1.4s ease infinite; }
@keyframes approvepulse { 0%,100% { box-shadow: 0 0 0 0 rgba(51, 181, 98, 0.5); } 50% { box-shadow: 0 0 0 9px rgba(51, 181, 98, 0); } }
.approve-btn.done { background: var(--caddie); color: var(--light-green); }
.audit-line { font-family: var(--font-mono); font-size: 0.66rem; color: var(--gray); margin-top: 8px; letter-spacing: 0.06em; }

/* ---------- grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.section-head { margin-bottom: 48px; }

.card {
  border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.025); transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(51, 181, 98, 0.4); }
.card h3 { margin: 14px 0 8px; }
.card p { font-size: 0.92rem; opacity: 0.75; }
.card .num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--light-green); letter-spacing: 0.18em; }

.card--light { background: #fff; border-color: var(--line-light); color: var(--ink); box-shadow: 0 10px 36px rgba(10, 10, 10, 0.06); }
.card--light:hover { border-color: rgba(8, 146, 71, 0.45); }
.card--light p { opacity: 0.68; }
.card--light .num { color: var(--dark-green); }
.card--dark { background: var(--night-2); border-color: var(--line-dark); color: var(--pin); }
.card--dark p { color: rgba(248, 246, 239, 0.72); }

.stat { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--light-green); letter-spacing: -0.03em; }
.section--warm .stat, .section--sand .stat, body.com .stat { color: var(--dark-green); }
.stat-label { font-size: 0.85rem; opacity: 0.65; }

/* ---------- workflow trail ---------- */
.trail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.trail-step {
  position: relative; padding: 22px 18px; border-radius: 14px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background 0.3s;
}
.trail-step .t-num { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--gray); }
.trail-step h4 { font-size: 1.05rem; margin: 8px 0 6px; }
.trail-step p { font-size: 0.8rem; opacity: 0.7; }
.trail-step.active { border-color: var(--light-green); background: rgba(8, 146, 71, 0.09); }
.trail-step.active .t-num { color: var(--light-green); }

/* ---------- looper moment (embeddable component) ---------- */
.looper-moment {
  background: var(--night); color: var(--pin); border-radius: var(--radius);
  padding: 36px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px;
  align-items: center; border: 1px solid rgba(51, 181, 98, 0.25);
  box-shadow: 0 24px 70px rgba(10, 10, 10, 0.25);
}
.looper-moment .eyebrow { color: var(--light-green); }
.looper-moment .eyebrow::before { background: var(--light-green); }
.looper-moment h3 { font-size: 1.5rem; }
.looper-moment p { color: rgba(248, 246, 239, 0.75); font-size: 0.95rem; margin: 10px 0 18px; }
.prompt-chip {
  font-family: var(--font-mono); font-size: 0.82rem; padding: 13px 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark);
  border-radius: 11px; color: var(--pin); margin-bottom: 16px;
}
.prompt-chip::before { content: "› "; color: var(--light-green); }

/* ---------- chips / filters ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 38px; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-dark);
  background: transparent; color: var(--gray); cursor: pointer; transition: all 0.18s;
}
.chip:hover { border-color: var(--light-green); color: var(--light-green); }
.chip.active { background: var(--dark-green); border-color: var(--dark-green); color: #fff; }

/* ---------- accordion ---------- */
details.acc { border: 1px solid var(--line-dark); border-radius: 14px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.02); }
body.com details.acc, .section--warm details.acc { border-color: var(--line-light); background: #fff; }
details.acc summary {
  cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--light-green); transition: transform 0.2s; flex-shrink: 0; }
body.com details.acc summary::after, .section--warm details.acc summary::after { color: var(--dark-green); }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 24px 22px; font-size: 0.94rem; opacity: 0.78; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: left; color: var(--gray); padding: 12px 16px; border-bottom: 1px solid var(--line-dark); }
.tbl td { padding: 15px 16px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.section--warm .tbl th, .section--warm .tbl td, body.com .tbl th, body.com .tbl td { border-color: var(--line-light); }
.tbl .lvl { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(140deg, var(--caddie), #0d2418); border-radius: 24px; padding: 70px 56px; text-align: center; position: relative; overflow: hidden; color: var(--pin); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(480px 300px at 80% 0%, rgba(51, 181, 98, 0.25), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lead { margin: 16px auto 30px; color: rgba(248, 246, 239, 0.78); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; font-family: var(--font-body); font-size: 0.94rem;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); color: var(--pin);
}
body.com .field input, body.com .field select, body.com .field textarea,
.section--warm .field input, .section--warm .field select, .section--warm .field textarea
{ background: #fff; border-color: var(--line-light); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--light-green); border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.toggle-row { display: flex; gap: 12px; margin-bottom: 30px; }
.toggle-row .chip { font-size: 0.8rem; padding: 12px 22px; }

/* radio quiz */
.q-block { border: 1px solid var(--line-dark); border-radius: 14px; padding: 24px; margin-bottom: 16px; background: rgba(255,255,255,0.02); }
.q-block h4 { margin-bottom: 12px; }
.q-block label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.92rem; opacity: 0.85; cursor: pointer; }
.q-block input { accent-color: var(--dark-green); margin-top: 4px; }

/* ---------- result panels ---------- */
.result-panel { border: 1px solid rgba(51, 181, 98, 0.4); background: rgba(8, 146, 71, 0.08); border-radius: var(--radius); padding: 32px; }
.result-panel .stat { font-size: 2.2rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- sticky expert pill ---------- */
.expert-pill {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  background: var(--dark-green); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 0.86rem; padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(8, 146, 71, 0.45); opacity: 0; transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.expert-pill.show { opacity: 1; transform: none; pointer-events: auto; }
.expert-pill:hover { background: var(--light-green); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-dark); padding: 64px 0 40px; font-size: 0.88rem; }
body.com .footer { border-color: var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; font-weight: 500; }
.footer a { display: block; padding: 5px 0; opacity: 0.75; }
.footer a:hover { opacity: 1; color: var(--light-green); }
body.com .footer a:hover { color: var(--dark-green); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--gray); }
body.com .footer-base { border-color: var(--line-light); }

/* ---------- breadcrumb / page hero ---------- */
.page-hero { padding: 72px 0 56px; }
.crumb { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; }
.crumb a:hover { color: var(--light-green); }

/* ---------- honesty / note blocks ---------- */
.note-block {
  border-left: 3px solid var(--signal-blue); background: rgba(110, 168, 255, 0.07);
  padding: 18px 22px; border-radius: 0 12px 12px 0; font-size: 0.92rem; margin: 26px 0;
}
.note-block strong { font-family: var(--font-head); }

/* ---------- persona tabs (reporting) ---------- */
.persona-tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.persona-panel { display: none; }
.persona-panel.active { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .looper-moment { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .trail { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .trail { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 48px 26px; }
}

/* ============================================================
   Outcome-led mega menu (Boulevard pattern: outcomes → features → featured)
   ============================================================ */
:root { --gold: #C9A86A; --gold-deep: #A8854A; }

.nav-item.nav-mega { position: static; }
.drop.mega {
  left: 50%; transform: translateX(-50%); top: 100%;
  width: min(1080px, 94vw); padding: 26px;
}
/* keep the mega panel centered when open (overrides the generic .drop translateY reset) */
.nav-item.nav-mega:hover .drop.mega, .nav-item.nav-mega.open .drop.mega { transform: translateX(-50%); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 22px; }
.mega-head {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--light-green); padding: 0 14px 8px;
  border-bottom: 1px solid var(--line-dark); margin-bottom: 8px;
}
body.com .mega-head { border-color: var(--line-light); color: var(--dark-green); }
.mega-head.mega-gold { color: var(--gold); }
.mega-grid > div > a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 0.88rem; opacity: 0.85; }
.mega-grid > div > a:hover { background: rgba(51, 181, 98, 0.1); color: var(--light-green); opacity: 1; }
.mega-featured {
  background: linear-gradient(160deg, var(--caddie), #0d2418); border-radius: 12px;
  padding: 18px; color: var(--pin); display: flex; flex-direction: column; gap: 10px;
}
.mega-feat-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--gold); }
.mega-feat-art {
  height: 84px; border-radius: 8px;
  background:
    radial-gradient(80px 50px at 70% 30%, rgba(201, 168, 106, 0.5), transparent 70%),
    radial-gradient(120px 70px at 25% 75%, rgba(51, 181, 98, 0.45), transparent 70%),
    #11150f;
  border: 1px solid rgba(201, 168, 106, 0.25);
}
.mega-featured strong { font-family: var(--font-head); font-size: 0.92rem; line-height: 1.3; }
.mega-feat-stat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--light-green); }
@media (max-width: 980px) { .drop.mega { display: none !important; } }

/* ============================================================
   Outcome chapters & golden feature cards (Boulevard features page)
   ============================================================ */
.outcome-kicker {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}
.outcome-kicker .accent { color: var(--light-green); }
.outcome-kicker .accent-gold { color: var(--gold); }
.f-icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(51, 181, 98, 0.1); border: 1px solid rgba(51, 181, 98, 0.3); }
.f-icon svg { width: 24px; height: 24px; stroke: var(--light-green); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-link { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--light-green); display: inline-block; margin-top: 14px; border-bottom: 1px solid rgba(51,181,98,.4); padding-bottom: 2px; }
.feature-link:hover { border-color: var(--light-green); }

/* Ace Digital Hospitality — the gold-standard section */
.section--ace {
  background:
    radial-gradient(640px 420px at 85% 10%, rgba(201, 168, 106, 0.13), transparent 65%),
    radial-gradient(520px 360px at 10% 90%, rgba(22, 59, 42, 0.5), transparent 70%),
    #12100c;
  color: var(--pin);
}
.section--ace .eyebrow { color: var(--gold); }
.section--ace .eyebrow::before { background: var(--gold); }
.section--ace .card { border-color: rgba(201, 168, 106, 0.22); background: rgba(201, 168, 106, 0.04); }
.section--ace .card:hover { border-color: rgba(201, 168, 106, 0.55); }
.section--ace .f-icon { background: rgba(201, 168, 106, 0.1); border-color: rgba(201, 168, 106, 0.35); }
.section--ace .f-icon svg { stroke: var(--gold); }
.section--ace .feature-link { color: var(--gold); border-color: rgba(201, 168, 106, 0.45); }
.section--ace .stat { color: var(--gold); }
.gold-pill {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; color: var(--gold);
  border: 1px solid rgba(201, 168, 106, 0.45); background: rgba(201, 168, 106, 0.08); display: inline-block;
}

/* member context card (Hospitality Memory) */
.member-card { border: 1px solid rgba(201, 168, 106, 0.35); border-radius: 14px; background: rgba(201, 168, 106, 0.05); padding: 20px; }
.member-card .mc-head { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 12px; }
.member-card .mc-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 0.85rem; }
.member-card .mc-row:last-child { border-bottom: none; }
.member-card .mc-k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }

/* ============================================================
   Tee sheet product mock ("Maximize yield" chapter)
   ============================================================ */
.tee-mock { background: var(--pin); color: var(--ink); border-radius: var(--radius); border: 1px solid var(--line-light);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.tee-mock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: #7c7a6e; }
.tee-body { display: grid; grid-template-columns: 1fr 200px; }
.tee-grid { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tee-row { display: grid; grid-template-columns: 56px 1fr 1fr 1fr; gap: 6px; align-items: center; }
.tee-time { font-family: var(--font-mono); font-size: 0.62rem; color: #9b988b; text-align: right; padding-right: 4px; }
.slot { font-family: var(--font-body); font-size: 0.7rem; padding: 7px 9px; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-member { background: #e2f2e6; border-color: #bfe3c9; color: #14532d; }
.slot-public { background: #f3ecd9; border-color: #e4d6b4; color: #6b5320; }
.slot-guest  { background: #e3ecf8; border-color: #c8d9f0; color: #1e3a5f; }
.slot-league { background: #ece4f4; border-color: #d8c8ea; color: #4a2d6b; }
.slot-open   { background: transparent; border: 1.5px dashed #9fbfa8; color: #4d7a5c; }
.tee-side { border-left: 1px solid var(--line-light); padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.tee-side .ts-k { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9b988b; }
.tee-side .ts-v { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--dark-green); }
.ts-bar { height: 6px; border-radius: 3px; background: #e8e6da; overflow: hidden; }
.ts-bar i { display: block; height: 100%; background: var(--dark-green); border-radius: 3px; }
.ai-chip { border: 1px solid rgba(8, 146, 71, 0.35); background: rgba(8, 146, 71, 0.07); border-radius: 9px; padding: 10px; font-size: 0.7rem; color: #1f513a; }
.ai-chip .ts-k { color: var(--dark-green); }
@media (max-width: 720px) { .tee-body { grid-template-columns: 1fr; } .tee-side { border-left: none; border-top: 1px solid var(--line-light); } }

/* ============================================================
   TASTE PASS — texture, typography, editorial composition
   ============================================================ */

/* film grain: kills the flat-template feel */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2000;
  opacity: 0.05; transform: translateZ(0); /* composite once, never repaint on scroll */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
body.com::after { opacity: 0.035; }

::selection { background: var(--light-green); color: var(--night); }
html { scrollbar-width: thin; scrollbar-color: var(--caddie) transparent; }
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-thumb { background: var(--caddie); border-radius: 5px; }

/* sharper display type */
h1 { letter-spacing: -0.035em; line-height: 1.0; text-wrap: balance; }
h2 { letter-spacing: -0.028em; }
.section { position: relative; }

/* skip render work for below-fold sections until they approach the viewport */
.section { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* always-running animations pause while offscreen (JS toggles .offscreen) */
.ticker.offscreen .ticker-track { animation-play-state: paused; }
.hero-glow.offscreen::before { animation-play-state: paused; }

/* ghost chapter numerals */
.ghost-no {
  position: absolute; top: 24px; right: 24px; pointer-events: none; user-select: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: 1; color: rgba(255, 255, 255, 0.028); letter-spacing: -0.04em;
}
.section--warm .ghost-no, .section--sand .ghost-no, body.com .ghost-no { color: rgba(10, 10, 10, 0.04); }

/* primary buttons get a kinetic arrow */
.btn-primary::after { content: "→"; display: inline-block; transition: transform 0.2s ease; }
.btn-primary:hover::after { transform: translateX(4px); }

/* golf-noun ticker — signature strip */
.ticker { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 13px 0; }
.ticker-track {
  display: inline-flex; gap: 0; white-space: nowrap; will-change: transform;
  animation: tick 46s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gray); padding-right: 56px;
}
.ticker-track span i { font-style: normal; color: var(--light-green); padding-right: 56px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* editorial numbered list — replaces card grids for problem/argument sections */
.ed-item {
  display: grid; grid-template-columns: 110px 1fr 1.35fr; gap: 30px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--line-dark);
}
.ed-item:last-of-type { border-bottom: 1px solid var(--line-dark); }
.ed-no {
  font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(51, 181, 98, 0.65);
}
.section--warm .ed-no, .section--sand .ed-no { -webkit-text-stroke-color: rgba(8, 146, 71, 0.6); }
.ed-item h3 { font-size: 1.3rem; }
.ed-item p { opacity: 0.72; font-size: 0.95rem; }
@media (max-width: 820px) { .ed-item { grid-template-columns: 64px 1fr; } .ed-item p { grid-column: 2; } }

/* hairline stat row — replaces identical stat cards */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 8px 30px; border-left: 1px solid var(--line-dark); }
.stat-cell:first-child { border-left: none; padding-left: 0; }
.section--warm .stat-cell, .section--sand .stat-cell { border-color: var(--line-light); }
@media (max-width: 820px) { .stat-row { grid-template-columns: 1fr 1fr; gap: 26px 0; } .stat-cell:nth-child(odd) { border-left: none; padding-left: 0; } }

/* three-beat row with outlined numerals (Answer/Analyze/Act) */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); }
.beat { padding: 6px 34px 0; border-left: 1px solid var(--line-light); }
.beat:first-child { border-left: none; padding-left: 0; }
.beat .beat-no {
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.3px rgba(8, 146, 71, 0.55); display: block; margin-bottom: 10px;
}
.beat h3 { margin-bottom: 8px; }
.beat p { font-size: 0.93rem; opacity: 0.72; }
@media (max-width: 820px) { .beats { grid-template-columns: 1fr; gap: 34px; } .beat { border-left: none; padding: 0; } }

/* asymmetric split */
.split-57 { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split-75 { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .split-57, .split-75 { grid-template-columns: 1fr; } }

/* pull quote */
.pull {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); text-indent: -0.45em;
}
.pull::before { content: "“"; color: var(--light-green); }
.pull::after { content: "”"; color: var(--light-green); }
.section--sand .pull::before, .section--sand .pull::after { color: var(--dark-green); }
.pull-attr { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-top: 22px; }

/* compact path band (replaces twin path cards) */
.path-band { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.path-band a { padding: 26px 30px; display: flex; align-items: center; gap: 18px; transition: background 0.2s; }
.path-band a + a { border-left: 1px solid var(--line-dark); }
.path-band a:hover { background: rgba(51, 181, 98, 0.06); }
.path-band .p-arrow { margin-left: auto; color: var(--light-green); font-size: 1.3rem; transition: transform 0.2s; }
.path-band a:hover .p-arrow { transform: translateX(5px); }
.path-band h4 { font-size: 1.02rem; margin-bottom: 2px; }
.path-band p { font-size: 0.82rem; opacity: 0.6; margin: 0; }
@media (max-width: 820px) { .path-band { grid-template-columns: 1fr; } .path-band a + a { border-left: none; border-top: 1px solid var(--line-dark); } }

/* ============================================================
   DESIGN NOTES — staff-facing annotation layer
   ============================================================ */
.dn-toggle {
  position: fixed; left: 26px; bottom: 26px; z-index: 90;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(16, 20, 18, 0.92); color: var(--gold); border: 1px solid rgba(201, 168, 106, 0.5);
  backdrop-filter: blur(8px); transition: all 0.2s;
}
.dn-toggle:hover { background: rgba(201, 168, 106, 0.15); }
body.dn-on .dn-toggle { background: var(--gold); color: var(--night); }

.dn-marker {
  position: absolute; z-index: 45; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #16130b; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 800; font-size: 0.74rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(201, 168, 106, 0.22);
  transition: transform 0.15s;
}
.dn-marker:hover { transform: scale(1.15); }
body.dn-on .dn-marker { display: flex; }

.dn-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 95;
  width: min(420px, calc(100vw - 52px)); max-height: 68vh; overflow-y: auto;
  background: #161209; color: var(--pin);
  border: 1px solid rgba(201, 168, 106, 0.45); border-radius: 16px; padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65); display: none;
}
.dn-panel.open { display: block; }
.dn-panel .dn-kicker { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.dn-panel h5 { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.dn-panel p { font-size: 0.86rem; line-height: 1.6; color: rgba(248, 246, 239, 0.82); margin-bottom: 10px; }
.dn-panel .dn-src { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--gold); border-top: 1px dashed rgba(201, 168, 106, 0.35); padding-top: 12px; margin-top: 14px; line-height: 1.7; }
.dn-close { background: none; border: 1px solid rgba(248,246,239,.25); color: var(--pin); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 0.8rem; line-height: 1; }
.dn-close:hover { border-color: var(--gold); color: var(--gold); }
.dn-nav { display: flex; gap: 10px; margin-top: 14px; }
.dn-nav button { background: none; border: 1px solid rgba(201,168,106,.4); color: var(--gold); border-radius: 8px; padding: 6px 12px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; cursor: pointer; }
.dn-nav button:hover { background: rgba(201, 168, 106, 0.12); }

/* ============================================================
   DELIGHT + BOLDER PASS — elegant drama, calm brand
   ============================================================ */

/* bolder hero scale + outlined signature word */
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.1rem); }
.hl-outline { color: transparent; -webkit-text-stroke: 2.2px var(--light-green); }
body.com .hl-outline, .section--warm .hl-outline, .section--sand .hl-outline { -webkit-text-stroke-color: var(--dark-green); }

/* aurora drift — the dark canvas breathes, slowly */
.hero-glow::before { animation: aurora 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes aurora {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 3.5%, 0) scale(1.14); }
}

/* entrance choreography — staggered rise on load */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow    { animation: riseIn 0.6s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1          { animation: riseIn 0.7s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lead       { animation: riseIn 0.7s 0.30s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .hero-ctas  { animation: riseIn 0.7s 0.44s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .looper-card, .hero .crumb { animation: riseIn 0.8s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* scroll-reveal stagger — grids cascade instead of popping at once */
.grid-2 > .reveal:nth-child(2), .grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2),
.beats > .reveal:nth-child(2), .stat-row > .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3),
.beats > .reveal:nth-child(3), .stat-row > .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid-3 > .reveal:nth-child(4), .grid-4 > .reveal:nth-child(4), .stat-row > .reveal:nth-child(4) { transition-delay: 0.3s; }
.grid-3 > .reveal:nth-child(5) { transition-delay: 0.4s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* satisfying press + hover refinements */
.btn:active { transform: translateY(1px) scale(0.99); }
.ticker:hover .ticker-track { animation-play-state: paused; }
.logo-pill { transition: box-shadow 0.25s; }
.logo:hover .logo-pill { box-shadow: 0 0 16px rgba(51, 181, 98, 0.55); }
.card { transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.22s; }
.card:hover .prompt-chip { border-color: rgba(51, 181, 98, 0.5); }

/* approval pop — the success moment lands physically */
.approve-btn.done { animation: approvedPop 0.45s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes approvedPop { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* celebration burst particles */
.burst-dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none; z-index: 2100;
  animation: burstFly 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes burstFly { to { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; } }

/* bolder closing band */
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }

/* ---------- reduced motion: render final states ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ans { opacity: 1; transform: none; }
  .show .bar, .bar { transform: scaleY(1); }
}
