/* =====================================================================
   DESIGN SYSTEM — edit tokens here to retheme the entire site.
   Palette: white-dominant + charcoal anchor + champagne gold accent
   + optional emerald secondary. (Locked with Bobby.)
   ===================================================================== */
:root {
  /* --- Brand palette (change these to re-skin everything) --- */
  --white: #ffffff;
  --paper: #f7f6f3;        /* off-white base */
  --paper-2: #efece6;      /* slightly deeper neutral */
  --charcoal: #23262b;     /* anchor: dark sections + headings */
  --charcoal-2: #2d3137;   /* lighter charcoal for layered dark */
  --gold: #c8a24b;         /* accent / CTA */
  --gold-deep: #b08d3c;    /* gold hover */
  --emerald: #0e5c43;      /* optional secondary accent */
  --ink: #1a1c1f;          /* body text */
  --slate: #5f6571;        /* secondary text */
  --hairline: #e7e3da;     /* borders on light */
  --hairline-dark: rgba(255,255,255,.12);

  /* --- Type --- */
  --font-display: "Clash Display", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --t-xs: .8rem;
  --t-sm: .9rem;
  --t-base: 1.05rem;
  --t-lg: clamp(1.15rem, 1.6vw, 1.35rem);
  --t-h3: clamp(1.3rem, 2.2vw, 1.7rem);
  --t-h2: clamp(1.9rem, 4vw, 3rem);
  --t-h1: clamp(2.5rem, 6vw, 4.6rem);
  --t-display: clamp(3rem, 8vw, 6rem);

  /* --- Spacing (8px scale) --- */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem;
  --s-20: 5rem; --s-24: 6rem; --s-32: 8rem;

  /* --- Radius / shadow --- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --sh-sm: 0 1px 3px rgba(20,28,40,.06), 0 1px 2px rgba(20,28,40,.04);
  --sh-md: 0 8px 30px rgba(20,28,40,.08);
  --sh-lg: 0 24px 60px rgba(20,28,40,.14);
  --sh-gold: 0 10px 30px rgba(200,162,75,.30);

  --maxw: 1140px;
  --nav-h: 68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--charcoal); }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); letter-spacing: -.025em; }
h3 { font-size: var(--t-h3); }
p { color: var(--ink); }
.muted { color: var(--slate); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--paper { background: var(--paper); }
.section--charcoal { background: var(--charcoal); color: #e9eaec; position: relative; overflow: hidden; }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: #fff; }
.section--charcoal .muted { color: #aab0bb; }
/* subtle gold aurora glow on dark bands */
.section--charcoal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(200,162,75,.16), transparent 60%),
    radial-gradient(50% 45% at 95% 100%, rgba(14,92,67,.18), transparent 60%);
}
.section--charcoal > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: var(--gold-deep);
}
.section--charcoal .eyebrow { color: var(--gold); }
.lead { font-size: var(--t-lg); color: var(--slate); max-width: 60ch; }
.section--charcoal .lead { color: #c2c7d0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.gold-rule { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: var(--s-4) 0; }
.center .gold-rule { margin-inline: auto; }

/* --- Buttons --- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem;
  padding: var(--pad-y) var(--pad-x); border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--charcoal); box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-deep); color: #fff; }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: #14161a; }
.btn--ghost { background: transparent; border-color: var(--hairline); color: var(--charcoal); }
.btn--ghost:hover { border-color: var(--charcoal); }
.section--charcoal .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.section--charcoal .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: 1.08rem; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.7); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); box-shadow: var(--sh-sm); background: rgba(255,255,255,.86); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem,4vw,2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: var(--charcoal); display: inline-flex; align-items: center; gap: .5rem; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
.brand-logo { height: 40px; width: auto; display: block; }
.footer .brand-logo { height: 46px; filter: brightness(0) invert(1); opacity: .9; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-weight: 550; font-size: .96rem; color: var(--ink); transition: color .15s ease; }
.nav__links a:hover { color: var(--gold-deep); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--charcoal); }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__trust { margin-top: 1.4rem; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: #aab0bb; }
.hero__trust .stars { color: var(--gold); letter-spacing: .1em; }
.hero__visual { position: relative; }
/* "card stack" visual placeholder — looks intentional without real imagery */
.glass-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 1.4rem; backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.glass-card + .glass-card { margin-top: 1rem; }
.glass-card__row { display: flex; align-items: center; gap: .8rem; }
.chip { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .6rem; border-radius: var(--r-pill); background: rgba(200,162,75,.18); color: var(--gold); }

/* --- Bento / feature grid --- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: var(--s-8); }
.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--sh-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #ded8cb; }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); font-size: 1.4rem; margin-bottom: .9rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.card p { color: var(--slate); font-size: .98rem; }
.bento--span .card:first-child { grid-column: span 2; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: var(--s-8); }
.step { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--hairline-dark); border-radius: var(--r-lg); }
.step__n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--gold); color: var(--charcoal); }

/* --- Stat strip --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__v { font-family: var(--font-display); font-size: clamp(2rem,5vw,3rem); font-weight: 700; color: #fff; line-height: 1; }
.stat__l { color: #aab0bb; font-size: .92rem; margin-top: .4rem; }

/* --- Case study --- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.case__stats { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.case__stat { background: rgba(255,255,255,.04); border: 1px solid var(--hairline-dark); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.case__stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); display: block; line-height: 1; }
.case__stat span { font-size: .85rem; color: #aab0bb; }

/* --- Testimonials --- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; margin-top: var(--s-8); }
.quote { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-sm); }
.quote p { font-size: 1rem; }
.quote__who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 700; color: var(--slate); }
.quote__who b { font-size: .92rem; }
.quote__who span { font-size: .82rem; color: var(--slate); display: block; }
.tag-disclaimer { font-size: .78rem; color: var(--slate); margin-top: 1rem; }

/* --- Pricing --- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: var(--s-8); align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--sh-sm); position: relative; }
.tier--featured { border: 2px solid var(--gold); box-shadow: var(--sh-md); }
.tier__badge { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--charcoal); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .9rem; border-radius: var(--r-pill); }
.tier__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--charcoal); }
.tier__price small { font-size: 1rem; color: var(--slate); font-weight: 400; }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.tier li { position: relative; padding: .4rem 0 .4rem 1.7rem; font-size: .96rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.tier li.plus { padding-left: 0; color: var(--slate); font-weight: 700; margin-top: .5rem; }
.tier li.plus::before { content: none; }
.tier .btn { margin-top: auto; }

/* --- FAQ --- */
.faq { max-width: 760px; margin-inline: auto; margin-top: var(--s-8); }
details.qa { border-bottom: 1px solid var(--hairline); padding: 1.1rem .2rem; }
details.qa summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--charcoal); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--gold-deep); font-weight: 700; transition: transform .2s ease; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { color: var(--slate); margin-top: .7rem; }

/* --- CTA band --- */
.cta-band { text-align: center; }
.cta-band .btn { margin: .4rem; }

/* --- Sticky mobile CTA --- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--hairline); }
.sticky-cta .btn { width: 100%; }

/* --- Footer --- */
.footer { background: var(--charcoal); color: #aab0bb; padding-block: var(--s-16) var(--s-8); font-size: .92rem; }
.footer a { color: #d7d2c6; }
.footer a:hover { color: var(--gold); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer__brand .brand { color: #fff; }
.footer__disc { font-size: .78rem; color: #7c828d; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; max-width: 80ch; }

/* --- Forms / intake wizard --- */
.form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(1.4rem,4vw,2.4rem); box-shadow: var(--sh-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--hairline); border-radius: var(--r-sm); font: inherit; background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.18); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fade .3s ease; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.progress { height: 6px; background: var(--paper-2); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 1.8rem; }
.progress__bar { height: 100%; background: var(--gold); width: 20%; transition: width .3s ease; }
.upload-note { background: #fbf7ec; border: 1px solid var(--gold); border-radius: var(--r-md); padding: 1.1rem; font-size: .92rem; }

/* --- Reveal-on-scroll (only hide when JS is active, so no-JS still shows content) --- */
[data-reveal] { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Focus + a11y --- */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }

/* --- View Transitions --- */
@view-transition { navigation: auto; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__grid, .case { grid-template-columns: 1fr; }
  .bento, .quotes, .tiers, .stats { grid-template-columns: 1fr; }
  .bento--span .card:first-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.4rem; }
  .nav__links { display: none; }
  .nav__links.is-open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--hairline); padding: .5rem 1.2rem 1rem; box-shadow: var(--sh-md); }
  .nav__links.is-open a { padding: .8rem 0; border-bottom: 1px solid var(--hairline); }
  .nav__links.is-open .btn { margin-top: .6rem; }
  .nav__toggle { display: block; }
  .sticky-cta { display: block; }
  .hero__visual { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
  @view-transition { navigation: none; }
}
