/* ============================================================
   FIDEWELL — fidewelladvisors.com
   Brand system per Fidewell Brand Guide v2.0 (FINAL)
   Ink Navy #14243D · Burnished Copper #A85B2A · Warm Ivory #F7F3EC
   Charcoal #2B2B2B · Patina #5E8272 · Villain red #9C3A2E (data only)
   Type: Playfair Display / Source Serif 4 / Inter
   ============================================================ */

:root {
  --navy: #14243D;
  --navy-deep: #0E1A2E;
  --copper: #A85B2A;
  --copper-bright: #C0703B;
  --ivory: #F7F3EC;
  --ivory-tint: #EFE9DD;
  --ink: #2B2B2B;
  --patina: #5E8272;
  --villain: #9C3A2E;
  --slate: #6B6B6B;
  --line: #D8D2C4;
  --line-navy: rgba(247, 243, 236, 0.16);
  --white: #FFFFFF;

  --serif: "Source Serif 4", Georgia, serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --max: 1120px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--navy); font-weight: 700; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  text-align: center;
  margin-bottom: 1.1rem;
}

.kicker { font-style: italic; color: var(--slate); }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }

.u {
  font-style: italic;
  background-image: linear-gradient(var(--copper), var(--copper));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 96%;
  padding-bottom: 2px;
}
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--ivory); }
.on-navy { color: rgba(247, 243, 236, 0.88); }
.on-navy .kicker { color: rgba(247, 243, 236, 0.62); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--sans); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.22em; color: var(--navy); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--copper); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
  color: var(--navy); letter-spacing: 0.02em;
}
.nav-links a.active { color: var(--copper); }
.nav-links a:hover { color: var(--copper); text-decoration: none; }
.nav-cta {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  background: var(--copper); color: var(--white) !important;
  padding: 10px 18px; border-radius: 3px; letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--copper-bright); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem; color: var(--navy);
  padding: 8px;
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px var(--pad); }
  .nav-cta { margin: 10px var(--pad); display: inline-block; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-navy { background: var(--navy); }
.section-white { background: var(--white); }
.section-tint { background: var(--ivory-tint); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--line-navy) 1px, transparent 1px) 0 0 / 160px 100%,
    radial-gradient(ellipse at 80% -10%, rgba(168,91,42,0.14), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--ivory); margin-bottom: 1.2rem; }
.hero .lede { color: rgba(247, 243, 236, 0.85); max-width: 34em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { display: none; } }

.hero-media img { border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none;
  padding: 15px 28px; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: var(--copper-bright); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(247,243,236,0.4); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--ivory); }

/* ---------- Signature: the audit ledger ---------- */
.ledger { border-top: 2px solid var(--navy); }
.on-navy .ledger, .section-navy .ledger { border-top-color: var(--ivory); }
.ledger-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.section-navy .ledger-row { border-bottom-color: var(--line-navy); }
.ledger-label { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: .04em; color: inherit; }
.ledger-fill { flex: 1; border-bottom: 1px dotted var(--slate); opacity: .55; transform: translateY(-4px); }
.ledger-value {
  font-family: var(--sans); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 0.95rem; white-space: nowrap;
}
.v-red { color: var(--villain); }
.v-patina { color: var(--patina); }
.section-navy .v-red { color: #D98A7C; }
.section-navy .v-patina { color: #9FBFB0; }

/* Stat stamps */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-navy); border: 1px solid var(--line-navy); }
.stat { background: var(--navy-deep); padding: 30px 24px; }
.stat .num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--ivory); line-height: 1;
}
.stat .num.red { color: #D98A7C; }
.stat .lbl { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 12px; }
.stat p { font-size: 0.88rem; color: rgba(247,243,236,0.72); margin-top: 10px; line-height: 1.5; }
.stat .src { font-family: var(--sans); font-size: 0.68rem; letter-spacing: .06em; color: rgba(247,243,236,0.45); text-transform: uppercase; margin-top: 12px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Two-plans comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.compare-col { padding: clamp(28px, 4vw, 44px); }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-col.blackbox { background: var(--ivory-tint); }
.compare-col h3 { margin-bottom: 4px; }
.compare-col .tag { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; display: block; }
.blackbox .tag { color: var(--villain); }
.transparent-plan .tag { color: var(--patina); }
.compare ul { list-style: none; margin-top: 18px; }
.compare li {
  padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line);
  position: relative; font-size: 0.98rem;
}
.compare li:last-child { border-bottom: 0; }
.compare li::before {
  position: absolute; left: 0; top: 12px; font-family: var(--sans); font-weight: 700;
}
.blackbox li::before { content: "\2013"; color: var(--villain); }
.transparent-plan li::before { content: "+"; color: var(--patina); }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Cards / steps ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.step { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--copper); padding: 32px 28px; }
.step .n { font-family: var(--display); font-size: 2.4rem; color: var(--copper); line-height: 1; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.98rem; }
.step .mark { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--slate); margin-top: 16px; text-transform: uppercase; }

.outcome { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: baseline; }
.outcome:last-child { border-bottom: 0; }
.outcome h3 { font-size: 1.15rem; }
.outcome p { font-size: 1rem; color: var(--ink); }
@media (max-width: 700px) { .outcome { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Stage blocks (Fiduciary First) ---------- */
.stage { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.stage:last-of-type { border-bottom: 0; }
.stage-letter {
  font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem);
  color: var(--copper); line-height: 0.9;
}
.stage-letter small { display: block; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: .14em; color: var(--slate); text-transform: uppercase; margin-top: 10px; }
.stage h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.stage .promise { font-style: italic; color: var(--slate); margin-bottom: 16px; }
.stage ul { list-style: none; margin-top: 8px; }
.stage li { padding: 8px 0 8px 26px; position: relative; font-size: 0.98rem; }
.stage li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 1.5px; background: var(--copper); }
@media (max-width: 640px) { .stage { grid-template-columns: 1fr; gap: 12px; } }

.rail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; }
.rail .r-stage { color: var(--ivory); font-size: clamp(1rem, 2.4vw, 1.5rem); }
.rail .r-sep { color: var(--copper-bright); font-size: clamp(1rem, 2.4vw, 1.4rem); }

/* ---------- Manifesto ---------- */
.manifesto p { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--ivory); margin-bottom: 1.4em; }
.manifesto p.final { color: var(--copper-bright); font-weight: 700; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--copper); padding: clamp(28px, 4vw, 44px); }
.section-navy .form-card { background: var(--navy-deep); border-color: var(--line-navy); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; color: var(--navy); }
.section-navy .field label { color: rgba(247,243,236,0.85); }
.field input {
  width: 100%; padding: 14px 16px; font-family: var(--serif); font-size: 1rem;
  border: 1px solid var(--line); border-radius: 3px; background: var(--ivory); color: var(--ink);
}
.section-navy .field input { background: rgba(247,243,236,0.06); border-color: var(--line-navy); color: var(--ivory); }
.form-note { font-size: 0.85rem; color: var(--slate); margin-top: 14px; }
.section-navy .form-note { color: rgba(247,243,236,0.6); }
.form-success { display: none; padding: 18px; border: 1px solid var(--patina); color: var(--patina); font-family: var(--sans); font-weight: 600; font-size: 0.95rem; margin-top: 16px; border-radius: 3px; }

/* ---------- Media strip ---------- */
.media-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.media-slot { background: var(--navy-deep); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-navy); }
.media-slot span { font-family: var(--sans); font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,243,236,0.5); }
.media-slot iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .media-strip { grid-template-columns: 1fr; } }

/* ---------- Book block ---------- */
.book-cover { max-width: 320px; box-shadow: 0 24px 50px rgba(20,36,61,0.28); border-radius: 3px; margin: 0 auto; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(247,243,236,0.78); padding: 64px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer h4 { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-bright); margin-bottom: 16px; }
footer a { color: rgba(247,243,236,0.78); }
footer a:hover { color: var(--ivory); }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
.footer-tag { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ivory); margin: 14px 0 6px; }
.footer-legal { border-top: 1px solid var(--line-navy); padding-top: 24px; font-size: 0.8rem; color: rgba(247,243,236,0.5); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.maxw { max-width: 46em; }
.maxw-c { max-width: 46em; margin-left: auto; margin-right: auto; }
.quiet { color: var(--slate); font-size: 0.92rem; }
.section-navy .quiet { color: rgba(247,243,236,0.6); }
