/* ============================================================
   APTOS STRATEGY GROUP — MASTER STYLESHEET
   Brand locked. Navy / Gold / Light. Playfair Display / Lato.
   No gradients, no foil, no rotations, no decorative mockups.
   ============================================================ */

/* --- Tokens ------------------------------------------------- */
:root {
  --navy:        #1a2a3a;
  --navy-deep:   #14202d;
  --gold:        #c2a878;
  --gold-soft:   #d4bf99;
  --light:       #e9ecef;
  --cream:       #f5f1e8;
  --white:       #ffffff;

  --ink:         #1a2a3a;          /* body on light */
  --ink-mute:    rgba(26,42,58,0.72);
  --ink-soft:    rgba(26,42,58,0.55);

  --paper:       #ffffff;          /* default page */
  --paper-warm:  #f5f1e8;          /* permitted warm sections */

  --on-dark:     #e9ecef;          /* body on navy */
  --on-dark-mute:rgba(233,236,239,0.78);

  --border-navy: rgba(26,42,58,0.12);
  --border-gold: rgba(194,168,120,0.30);
  --border-on-dark: rgba(233,236,239,0.14);

  --shadow-sm:   0 1px 2px rgba(26,42,58,0.06);
  --shadow-md:   0 2px 8px rgba(26,42,58,0.08);
  --shadow-lg:   0 8px 24px rgba(26,42,58,0.10);
  --shadow-dark: 0 8px 24px rgba(0,0,0,0.25);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --container:   1200px;
  --container-narrow: 880px;

  --serif:       "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:        "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease:        cubic-bezier(.2,.7,.2,1);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 16px; z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
h5, h6 { font-size: 16px; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  display: inline-block;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 70ch;
  margin: 0 0 1.5em;
}
.small { font-size: 14px; }

/* On-dark color shifts */
.section--dark, .section--dark p, .section--dark li { color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lede { color: var(--on-dark-mute); }
.section--dark a { color: var(--gold); }
.section--dark a:hover { color: var(--gold-soft); }

/* --- Layout primitives ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 96px 0;
  background: var(--paper);
}
.section--light { background: var(--light); }
.section--cream { background: var(--paper-warm); }
.section--dark  { background: var(--navy); }
.section--dark-deep { background: var(--navy-deep); }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--centered { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { margin-bottom: 16px; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* --- Header / Nav ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-navy);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 64px; width: auto; }
.site-logo .wordmark { display: none; }

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 76px 0 0 0;
  background: var(--navy);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  z-index: 99;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--on-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-on-dark);
}
.mobile-nav .btn { margin-top: 24px; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover {
  background: var(--gold-soft);
  color: var(--navy);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.section--dark .btn--ghost {
  color: var(--on-dark);
  border-color: var(--border-on-dark);
}
.section--dark .btn--ghost:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
}

/* --- Hero --------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--on-dark);
  padding: 96px 0 112px;
  position: relative;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: var(--on-dark);
  font-size: 56px;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero p {
  color: var(--on-dark-mute);
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 32px;
}
.hero .btn-row { margin-top: 8px; }
.hero-tags {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-on-dark);
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  font-weight: 700;
}

/* --- Cards (light) ----------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

.card__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--ink-mute); margin-bottom: 16px; }
.card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-mute);
  font-size: 15px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--gold);
}
.card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.card__cta:hover { color: var(--gold); }
.card__cta::after { content: "→"; }

/* --- Cards (on dark) --------------------------------------- */
.card--dark {
  background: var(--navy-deep);
  border: 1px solid var(--border-on-dark);
  color: var(--on-dark);
}
.card--dark h3, .card--dark h4 { color: var(--on-dark); }
.card--dark p { color: var(--on-dark-mute); }
.card--dark ul li { color: var(--on-dark-mute); }
.card--dark ul li::before { background: var(--gold); }
.card--dark .card__cta { color: var(--gold); }
.card--dark .card__cta:hover { color: var(--gold-soft); }

/* --- Preview card (replaces "credit card mockup") ---------- */
.preview-card {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.preview-card__strip {
  background: var(--navy);
  color: var(--on-dark);
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.preview-card__body { padding: 24px; }
.preview-card__title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 20px;
}
.preview-card__bars { display: flex; flex-direction: column; gap: 10px; }
.preview-card__bar {
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
  display: block;
}
.preview-card__bar--full { width: 100%; }
.preview-card__bar--med  { width: 80%; }
.preview-card__bar--short{ width: 60%; }

/* On-dark preview card */
.preview-card--dark {
  background: var(--navy-deep);
  border-color: var(--border-gold);
}
.preview-card--dark .preview-card__strip {
  background: rgba(0,0,0,0.25);
}
.preview-card--dark .preview-card__title { color: var(--on-dark); }

/* --- Stats / KPI ------------------------------------------ */
.stat {
  border-top: 1px solid var(--border-on-dark);
  padding-top: 24px;
}
.stat__value {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat__note { color: var(--on-dark-mute); font-size: 14px; }

.section--light .stat { border-top-color: var(--border-navy); }
.section--light .stat__value { color: var(--navy); }
.section--light .stat__label { color: var(--ink); }
.section--light .stat__note { color: var(--ink-mute); }

/* --- Audience / Path tiles --------------------------------- */
.path-tile {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  height: 100%;
}
.path-tile__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.path-tile h3 { margin-bottom: 12px; font-size: 22px; }
.path-tile p { color: var(--ink-mute); margin-bottom: 16px; }
.path-tile ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.path-tile ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink-mute);
}
.path-tile ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--gold);
}

/* --- Process steps ----------------------------------------- */
.steps { display: grid; gap: 20px; }
.step {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 28px;
}
.step__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-mute); margin: 0; font-size: 15px; }

.section--dark .step {
  background: var(--navy-deep);
  border-color: var(--border-on-dark);
}
.section--dark .step h3 { color: var(--on-dark); }
.section--dark .step p { color: var(--on-dark-mute); }

/* --- Founder card ------------------------------------------ */
.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 32px;
}
.founder__photo {
  width: 200px; height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--light);
}
.founder__name {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 4px;
}
.founder__title {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

/* --- FAQ accordion ----------------------------------------- */
.faq { list-style: none; padding: 0; margin: 0; }
.faq li {
  border-bottom: 1px solid var(--border-navy);
  padding: 24px 0;
}
.faq li:first-child { padding-top: 0; }
.faq__q {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}
.faq__a { color: var(--ink-mute); margin: 0; font-size: 16px; }

/* --- Diagnostic slider ------------------------------------- */
.diagnostic {
  background: var(--navy-deep);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--on-dark);
}
.diagnostic__row { margin-bottom: 24px; }
.diagnostic__row label {
  display: flex; justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-dark);
  margin-bottom: 8px;
}
.diagnostic__row label span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
}
.diagnostic input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(233,236,239,0.18);
  border-radius: 2px;
  outline: none;
}
.diagnostic input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--navy-deep);
  box-shadow: 0 0 0 2px var(--gold);
}
.diagnostic input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2px solid var(--navy-deep);
  box-shadow: 0 0 0 2px var(--gold);
}
.diagnostic__result {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-on-dark);
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.diagnostic__score-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  font-weight: 700;
}
.diagnostic__score {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.diagnostic__msg {
  width: 100%;
  margin: 12px 0 0;
  color: var(--on-dark-mute);
}

/* --- Form -------------------------------------------------- */
.form {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 32px;
}
.form__row { margin-bottom: 20px; }
.form__row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form textarea { resize: vertical; min-height: 120px; }
.form__hint { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 64px 0 32px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer__brand img { height: 88px; margin-bottom: 16px; }
.site-footer__brand p { color: var(--on-dark-mute); font-size: 14px; max-width: 32ch; }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: var(--on-dark);
  font-size: 14px;
}
.site-footer ul a:hover { color: var(--gold); }
.site-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-on-dark);
  padding-top: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--on-dark-mute);
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}

/* --- Misc helpers ------------------------------------------ */
.gold-rule {
  width: 64px; height: 2px; background: var(--gold);
  margin: 0 0 24px;
}
.section--dark .gold-rule { background: var(--gold); }
.text-center { text-align: center; }
.flex-row { display: flex; gap: 24px; flex-wrap: wrap; }

/* Stop ANY rogue rotation, gradient, or foil from prior code */
[class*="card"], [class*="tile"], .preview-card, .path-tile, .step, .stat {
  transform: none !important;
}
[class*="card"], [class*="tile"], .preview-card {
  background-image: none !important;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 1023px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero { padding: 72px 0 88px; }
  .hero h1 { font-size: 44px; }
  .section { padding: 72px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 160px 1fr; gap: 24px; }
  .founder__photo { width: 160px; height: 160px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  h4 { font-size: 17px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-tags { font-size: 11px; gap: 12px 24px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 40px; }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { height: 72px; }
  .site-logo img { height: 44px; }
  .mobile-nav { inset: 72px 0 0 0; }
  .card, .path-tile, .preview-card__body, .form, .diagnostic { padding: 24px; }
  .founder {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 24px;
  }
  .founder__photo { width: 120px; height: 120px; margin-bottom: 8px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .stat__value { font-size: 36px; }
  .diagnostic__score { font-size: 44px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}

/* Prevent horizontal scroll anywhere */
html, body { overflow-x: hidden; }

/* ============================================================
   UPDATES — fixes for: nav button visibility, contrast,
   richer interactions, flywheel component
   ============================================================ */

/* Fix: nav was overriding button text color */
.site-nav a.btn,
.site-nav a.btn:hover {
  color: var(--white);
}
.site-nav a.btn--ghost { color: var(--ink); }
.site-nav a.btn--ghost:hover { color: var(--white); }
.site-nav a.btn--gold,
.site-nav a.btn--gold:hover { color: var(--navy); }

/* Darken low-contrast body text */
:root {
  --ink-mute: rgba(26,42,58,0.88);
  --ink-soft: rgba(26,42,58,0.70);
  --on-dark-mute: rgba(233,236,239,0.85);
}

/* Smoother button interactions */
.btn {
  position: relative;
  transition: background-color .2s var(--ease),
              color .2s var(--ease),
              transform .2s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 8px 24px rgba(26,42,58,0.18); }
.btn--gold:hover { box-shadow: 0 8px 24px rgba(194,168,120,0.35); }
.btn:active { transform: translateY(0); }

/* Card lift on hover */
.card, .path-tile, .step, .preview-card {
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover, .path-tile:hover, .preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(26,42,58,0.10);
  border-color: var(--border-gold);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26,42,58,0.10);
  border-color: var(--border-gold);
}
.section--dark .card:hover,
.section--dark-deep .card:hover,
.section--dark .step:hover {
  box-shadow: 0 14px 32px rgba(0,0,0,0.30);
  border-color: var(--gold);
}

/* Gold underline on text links inside cards */
.card__cta {
  position: relative;
  padding-bottom: 2px;
}
.card__cta::after {
  margin-left: 4px;
  display: inline-block;
  transition: transform .25s var(--ease);
}
.card:hover .card__cta::after,
.card__cta:hover::after { transform: translateX(4px); }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .40s; }
.reveal-delay-6 { transition-delay: .48s; }
.reveal-delay-7 { transition-delay: .56s; }
.reveal-delay-8 { transition-delay: .64s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero entrance animation */
.hero h1, .hero p, .hero .btn-row, .hero .eyebrow, .hero-tags {
  opacity: 0;
  animation: heroIn .8s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: .05s; }
.hero h1       { animation-delay: .15s; }
.hero p        { animation-delay: .30s; }
.hero .btn-row { animation-delay: .45s; }
.hero-tags     { animation-delay: .60s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p, .hero .btn-row, .hero .eyebrow, .hero-tags {
    opacity: 1; animation: none;
  }
}

/* Eyebrow gold rule (decorative line under eyebrow labels) */
.eyebrow::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}

/* Focus ring */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   FLYWHEEL — interactive circular component
   ============================================================ */
.flywheel-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .flywheel-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.flywheel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.flywheel svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Decorative ring rotation */
.flywheel__ring {
  transform-origin: 300px 300px;
  animation: spinSlow 60s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .flywheel__ring { animation: none; }
}

/* Node default */
.flywheel__node {
  cursor: pointer;
  transition: transform .25s var(--ease);
  transform-origin: center;
}
.flywheel__node-bg {
  fill: var(--navy-deep);
  stroke: var(--gold);
  stroke-width: 2;
  transition: fill .25s var(--ease), stroke-width .25s var(--ease);
}
.flywheel__node-num {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  fill: var(--gold);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill .25s var(--ease);
}
.flywheel__node-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--on-dark);
  text-anchor: middle;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}
/* Connecting arcs (the loop) */
.flywheel__arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-opacity: 0.3;
  stroke-dasharray: 4 6;
  transition: stroke-opacity .3s var(--ease);
}
/* Center text */
.flywheel__center {
  text-anchor: middle;
}
.flywheel__center-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.flywheel__center-title {
  font-family: var(--serif);
  font-size: 22px;
  fill: var(--on-dark);
  font-weight: 700;
}
.flywheel__center-sub {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--on-dark-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hover and active states */
.flywheel__node:hover .flywheel__node-bg,
.flywheel__node.is-active .flywheel__node-bg {
  fill: var(--gold);
  stroke-width: 3;
}
.flywheel__node:hover .flywheel__node-num,
.flywheel__node.is-active .flywheel__node-num {
  fill: var(--navy);
}
.flywheel__node:hover { transform: scale(1.06); transform-origin: center; transform-box: fill-box; }
.flywheel__node.is-active .flywheel__arc { stroke-opacity: 0.7; }

/* Pulse on active node */
.flywheel__node.is-active .flywheel__node-bg {
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse {
  0%, 100% { stroke-width: 3; }
  50%      { stroke-width: 5; }
}

/* Detail panel beside flywheel */
.flywheel-detail {
  background: var(--navy-deep);
  border: 1px solid var(--border-on-dark);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 220px;
}
.flywheel-detail__num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
}
.flywheel-detail__title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--on-dark);
  margin: 0 0 16px;
  line-height: 1.2;
}
.flywheel-detail__body {
  color: var(--on-dark-mute);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.flywheel-detail__hint {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* Smooth scroll */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }


/* ============================================================
   FIX: extend dark color rules to .section--dark-deep variant
   (was missing — caused navy text on navy-deep background)
   ============================================================ */
.section--dark-deep,
.section--dark-deep p,
.section--dark-deep li { color: var(--on-dark); }
.section--dark-deep h1,
.section--dark-deep h2,
.section--dark-deep h3,
.section--dark-deep h4 { color: var(--on-dark); }
.section--dark-deep .lede { color: var(--on-dark-mute); }
.section--dark-deep .eyebrow { color: var(--gold); }
.section--dark-deep a { color: var(--gold); }
.section--dark-deep a:hover { color: var(--gold-soft); }

/* Form placeholder visibility */
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(26, 42, 58, 0.55);
  opacity: 1; /* Firefox defaults to lower */
}
/* Select dropdown when empty option is selected */
.form select { color: var(--ink); }
.form select:has(option[value=""]:checked) { color: rgba(26, 42, 58, 0.55); }

/* Make form labels a bit more emphatic for legibility */
.form__row label {
  color: var(--navy);
  font-weight: 700;
}

/* ============================================================
   FIX: button text colors inside dark sections were being
   overridden by the .section--dark a {color: gold} rule,
   making gold buttons invisible (gold-on-gold) and
   navy buttons gold instead of white.
   ============================================================ */
.section--dark .btn--gold,
.section--dark .btn--gold:hover,
.section--dark-deep .btn--gold,
.section--dark-deep .btn--gold:hover {
  color: var(--navy);
}
.section--dark .btn--primary,
.section--dark .btn--primary:hover,
.section--dark-deep .btn--primary,
.section--dark-deep .btn--primary:hover {
  color: var(--white);
}
.section--dark .btn--ghost,
.section--dark-deep .btn--ghost {
  color: var(--on-dark);
}
.section--dark .btn--ghost:hover,
.section--dark-deep .btn--ghost:hover {
  color: var(--navy);
}

/* ============================================================
   Form submission feedback messages
   ============================================================ */
.form__success {
  background: rgba(194, 168, 120, 0.12);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 16px;
}
.form__error {
  background: rgba(180, 60, 60, 0.08);
  border: 1px solid rgba(180, 60, 60, 0.4);
  border-left: 4px solid rgba(180, 60, 60, 0.8);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: rgba(120, 30, 30, 1);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 16px;
}
.form__error a { color: rgba(120, 30, 30, 1); text-decoration: underline; }

/* ============================================================
   SAMPLE DELIVERABLES — document mockup styles
   ============================================================ */
.deliverable {
  background: var(--cream);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(26,42,58,0.18);
  overflow: hidden;
  position: relative;
}
.deliverable + .deliverable { margin-top: 64px; }

.deliverable__cover {
  background: var(--navy);
  color: var(--on-dark);
  padding: 36px 48px 32px;
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.deliverable__cover-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.deliverable__cover h3 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--on-dark);
  margin: 0 0 12px;
  line-height: 1.15;
}
.deliverable__cover-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--on-dark-mute);
  margin: 0;
  line-height: 1.55;
}
.deliverable__cover-meta strong { color: var(--gold); font-weight: 700; }

.deliverable__watermark {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deliverable__body {
  padding: 36px 48px 40px;
  color: var(--ink);
}

.deliverable__section {
  margin-bottom: 28px;
}
.deliverable__section:last-child { margin-bottom: 0; }

.deliverable__section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 6px;
  display: block;
}
.deliverable__section h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.3;
}
.deliverable__section p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.deliverable__section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}
.deliverable__section li { margin-bottom: 6px; }
.deliverable__section li strong { color: var(--navy); }

/* Finding row - key:value display */
.finding {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26,42,58,0.08);
}
.finding:last-child { border-bottom: none; }
@media (min-width: 640px) {
  .finding { grid-template-columns: 200px 1fr; gap: 24px; }
}
.finding__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 2px;
}
.finding__value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.finding__value strong { color: var(--navy); font-weight: 700; }
.finding__highlight {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  font-weight: 700;
  margin-right: 12px;
  display: inline-block;
  vertical-align: -4px;
}

/* Score grid for diagnostic */
.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}
@media (min-width: 768px) {
  .score-grid { grid-template-columns: repeat(2, 1fr); }
}
.score-tile {
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.score-tile__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.score-tile__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.score-tile__score {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.score-tile__score-max {
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-left: 2px;
}
.score-tile__bar {
  height: 4px;
  background: rgba(26,42,58,0.10);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.score-tile__bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}
.score-tile__findings {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  padding-left: 16px;
}
.score-tile__findings li { margin-bottom: 4px; }

.composite-bar {
  background: var(--navy);
  color: var(--on-dark);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  margin: 20px 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.composite-bar__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.composite-bar__score {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--on-dark);
}
.composite-bar__note { color: var(--on-dark-mute); font-size: 14px; }

/* PWin lever (capture plan) */
.pwin-meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.pwin-meter__col { display: flex; flex-direction: column; gap: 2px; }
.pwin-meter__label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.pwin-meter__value {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
}
.pwin-meter__target .pwin-meter__value { color: var(--gold); }
.pwin-meter__arrow {
  font-size: 22px;
  color: var(--gold);
  font-weight: 700;
}


/* ============================================================
   SMS / form consent checkbox
   ============================================================ */
.form__consent {
  margin: 4px 0 20px;
  padding: 16px 18px;
  background: rgba(26,42,58,0.03);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-sm);
}
.form__consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
}
.form__consent-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form__consent-row span {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-mute);
}
.form__consent-row a { color: var(--navy); text-decoration: underline; }

/* Legal / terms page typography */
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin: 36px 0 12px;
}
.legal-body h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 8px;
}
.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 14px;
}
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body .legal-updated {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 8px;
}
