/* Bluestone Strategic Tax — site stylesheet
   Design system: bst-design-system.md v1.0 (locked 2026-07-11)
   Palette: Bluestone #3F6EA6 · Light line #84B0E6 · Steel #5486BD · Deep #24405F · Ink #17233A · Near-black #0B0F16
   Type: Newsreader (headings) / Archivo (body) */

:root {
  --bluestone: #3F6EA6;
  --lightline: #84B0E6;
  --steel: #5486BD;
  --deep: #24405F;
  --ink: #17233A;
  --nearblack: #0B0F16;
  --paper: #F7FAFD;
  --mist: #DCE7F5;
  --hairline-dark: rgba(132, 176, 230, 0.18);
  --hairline-light: #C9D9EC;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--nearblack);
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Newsreader', serif; }

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

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */

.site-header {
  background: #121A26;
  border-bottom: 1px solid var(--hairline-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand > span br { display: none; }
.brand .wordmark {
  font-family: 'Newsreader', serif;
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.brand .subline {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 3.6px;
  color: var(--lightline);
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom: 2px solid var(--bluestone); padding-bottom: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--hairline-dark);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--mist);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:hover .nav-toggle-bar { background: #fff; }
.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid var(--bluestone);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-solid { background: var(--bluestone); color: #fff; }
.btn-solid:hover { background: var(--steel); border-color: var(--steel); }
.btn-ghost-dark { color: var(--lightline); border-color: rgba(132, 176, 230, 0.45); }
.btn-ghost-dark:hover { color: #fff; border-color: var(--lightline); }
.btn-ghost-light { color: var(--deep); border-color: var(--hairline-light); }
.btn-ghost-light:hover { border-color: var(--bluestone); color: var(--bluestone); }
.nav .btn { padding: 10px 22px; font-size: 15px; }

/* ---------- section scaffolding ---------- */

.section { padding: 88px 0; }
.section-dark { background: var(--nearblack); color: var(--mist); }
.section-light { background: #fff; color: var(--ink); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-deep { background: var(--deep); color: var(--mist); }
.section-ink { background: var(--ink); color: var(--mist); border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--bluestone);
  margin-bottom: 14px;
}
.section-dark .eyebrow, .section-deep .eyebrow { color: var(--lightline); }

h1, h2, h3 { font-family: 'Newsreader', serif; font-weight: 500; }

h2.section-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 20em;
}
.section-light h2.section-title, .section-paper h2.section-title { color: var(--ink); }
.section-dark h2.section-title, .section-deep h2.section-title { color: #fff; }

.lede { font-size: 18px; line-height: 1.65; max-width: 42em; }
.section-light .lede, .section-paper .lede { color: var(--deep); }

em.accent { font-style: italic; color: var(--lightline); }
.section-light em.accent, .section-paper em.accent { color: var(--bluestone); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 72px 0;
}
.hero-stage {
  position: relative;
}
.hero-stage > .wrap,
.hero > .wrap {
  position: relative;
  z-index: 2;
}

/* Hero photo / video backdrop — swap asset in hero-bg.config.js */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-media-wrap.hero-bg-kenburns .hero-bg-media {
  animation: hero-bg-kenburns 32s ease-in-out infinite alternate;
}
.hero-bg-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 62% center;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Blue-tinted scrim dims the photo and cools sunset/warm hues */
  background:
    linear-gradient(
      180deg,
      rgba(11, 15, 22, 0.32) 0%,
      rgba(11, 15, 22, 0.26) 50%,
      rgba(11, 15, 22, 0.38) 100%
    ),
    rgba(36, 64, 95, 0.28);
}
.hero-stage > .wrap .eyebrow,
.hero-stage > .wrap h1,
.hero-stage > .wrap .lede,
.hero-stage > .wrap .hero-ctas {
  text-shadow:
    0 1px 18px rgba(11, 15, 22, 0.75),
    0 2px 6px rgba(11, 15, 22, 0.55);
}
@keyframes hero-bg-kenburns {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.08); }
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.18;
  color: #fff;
  max-width: 11.5em;
  letter-spacing: -0.01em;
}
.hero .lede {
  margin-top: 20px;
  color: var(--mist);
  max-width: 32em;
  font-size: 17px;
  line-height: 1.6;
}
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Bluestone hero backdrop — self-contained, no image assets.
   Sits behind existing hero content. */
.bsthero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.bsthero-figure {
  position: absolute;
  left: 56%;
  right: auto;
  top: 48%;
  z-index: 1;
  transform: translateY(-50%);
  height: min(112%, 720px);
  aspect-ratio: 1 / 1;
}
.bsthero-cube { display: block; width: 100%; height: 100%; }
.bsthero-glow {
  position: absolute;
  left: 60%;
  right: auto;
  top: 48%;
  width: min(580px, 44vw);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(63, 110, 166, 0.22) 0%,
    rgba(63, 110, 166, 0.08) 38%,
    transparent 68%
  );
}
.bsthero-veil {
  display: none;
}
.bsthero-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bsthero-draw 2.8s cubic-bezier(0.33, 0.1, 0.25, 1) forwards;
}
.bsthero-frame { animation-delay: 0.3s; }
.bsthero-spoke-a { animation-delay: 2.5s; animation-duration: 1.8s; }
.bsthero-spoke-b { animation-delay: 3.0s; animation-duration: 1.8s; }
.bsthero-corefr { animation-delay: 4.4s; animation-duration: 1.3s; }
.bsthero-corelight {
  opacity: 0;
  animation: bsthero-lift 1.6s ease-out forwards;
  animation-delay: 4.9s;
}
.bsthero-facet {
  opacity: 0;
  animation: bsthero-lift 1.1s ease-out forwards;
  animation-delay: 5.05s;
}
.bsthero-facet-2 { animation-delay: 5.25s; }
.bsthero-facet-3 { animation-delay: 5.45s; }
.bsthero-pip {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: bsthero-pip 0.7s ease-out forwards;
  animation-delay: 5.9s;
}
.bsthero-stamp {
  position: absolute;
  left: 50%;
  top: 86%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}
.bsthero-rule {
  width: clamp(150px, 24vw, 352px);
  height: 1px;
  background: rgba(132, 176, 230, 0.36);
  margin: 0 auto clamp(7px, 1.1vw, 16px);
  opacity: 0;
  animation: bsthero-rulein 1s ease-out forwards;
  animation-delay: 6.2s;
}
.bsthero-words {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 1.74vw, 25px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #84B0E6;
  line-height: 1;
}
.bsthero-w {
  display: inline-block;
  opacity: 0;
  animation: bsthero-word 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.bsthero-w1 { animation-delay: 6.6s; }
.bsthero-w2 { animation-delay: 7.05s; }
.bsthero-w3 { animation-delay: 7.5s; }
.bsthero-words sup {
  font-size: 0.44em;
  letter-spacing: 0;
  vertical-align: super;
  opacity: 0.8;
}
@keyframes bsthero-draw { to { stroke-dashoffset: 0; } }
@keyframes bsthero-lift { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsthero-pip {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bsthero-rulein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bsthero-word {
  from {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.42em;
    filter: blur(3px);
  }
  to {
    opacity: 0.82;
    transform: translateY(0);
    letter-spacing: 0.2em;
    filter: blur(0);
  }
}
@media (max-width: 760px) {
  .hero-bg-overlay {
    display: none;
  }
  .hero-bg-media {
    object-position: 46% center;
  }
  .bsthero-art {
    display: none;
  }
  .bsthero-figure {
    left: 50%;
    right: auto;
    top: 42%;
    width: min(92vw, 420px);
    height: auto;
    opacity: 0.55;
    transform: translate(-50%, -50%);
  }
  .bsthero-glow {
    left: 50%;
    right: auto;
    top: 42%;
    width: min(88vw, 400px);
    transform: translate(-50%, -50%);
  }
  .bsthero-stamp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-media-wrap.hero-bg-kenburns .hero-bg-media {
    animation: none;
  }
  .bsthero-draw,
  .bsthero-corelight,
  .bsthero-facet,
  .bsthero-pip,
  .bsthero-rule,
  .bsthero-w {
    animation: none;
    stroke-dashoffset: 0;
    transform: none;
    filter: none;
    opacity: 1;
  }
  .bsthero-w { opacity: 0.82; }
}

.stat-row {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline-dark);
}
.stat {
  padding: 26px 28px 4px 0;
  border-left: 1px solid var(--hairline-dark);
  padding-left: 28px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num { font-family: 'Newsreader', serif; font-size: 48px; color: #fff; line-height: 1; }
.stat .label { font-size: 15px; color: var(--steel); margin-top: 8px; line-height: 1.5; max-width: 22em; }
.hero .stat .label {
  color: #fff;
  text-shadow: 0 1px 14px rgba(11, 15, 22, 0.65);
}

/* ---------- IRS onboarding section ---------- */

.onboard { padding: 72px 0; }
.onboard h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: #fff; max-width: 18em; }
.onboard h2 em { font-style: italic; color: var(--lightline); }
.onboard .lede { margin-top: 18px; color: var(--mist); max-width: 44em; }
.onboard .lede b { color: #fff; }

/* ---------- built to code stages ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.stage {
  border: 1px solid var(--hairline-light);
  border-top: 3px solid var(--bluestone);
  padding: 22px 22px 24px 22px;
  background: #fff;
}
.stage .num { font-family: 'Newsreader', serif; font-size: 15px; color: var(--steel); }
.stage h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 6px 0 10px 0; }
.stage p { font-size: 15.5px; line-height: 1.55; color: var(--deep); }

.pullquote {
  margin-top: 44px;
  border-left: 3px solid var(--bluestone);
  padding: 6px 0 6px 26px;
  max-width: 46em;
}
.pullquote p { font-family: 'Newsreader', serif; font-size: 22px; font-style: italic; line-height: 1.45; color: var(--ink); }
.pullquote cite { display: block; font-family: 'Archivo', sans-serif; font-size: 15px; font-style: normal; color: var(--steel); margin-top: 10px; }

/* ---------- story ---------- */

.story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.story-grid .lede + .lede { margin-top: 18px; }

/* ---------- zero-comp band ---------- */

.promise h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; color: #fff; max-width: 18em; }
.promise p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--mist); max-width: 44em; }
.promise .kicker { font-family: 'Newsreader', serif; font-style: italic; color: var(--lightline); }

/* ---------- pricing teaser / tier cards ---------- */

.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tier-card { border: 1px solid var(--hairline-light); background: #fff; padding: 28px 26px; display: flex; flex-direction: column; }
.tier-card.featured { border-top: 3px solid var(--bluestone); }
.tier-card .tier-name { font-family: 'Newsreader', serif; font-size: 26px; font-weight: 600; color: var(--bluestone); }
.tier-card .tier-fit { font-size: 16px; line-height: 1.55; color: var(--deep); margin-top: 10px; flex-grow: 1; }
.tier-card .tier-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline-light); }
.tier-card .tier-price .yr1 { font-family: 'Newsreader', serif; font-size: 32px; color: var(--ink); }
.tier-card .tier-price .yr1 span { font-family: 'Archivo', sans-serif; font-size: 14px; color: var(--steel); }
.tier-card .tier-price .ongoing { font-size: 15px; color: var(--steel); margin-top: 4px; }
.tier-note { font-size: 16px; color: var(--deep); margin-top: 26px; max-width: 52em; line-height: 1.6; }
.tier-note b { color: var(--ink); }

/* ---------- learned hand quote ---------- */

.bigquote { text-align: left; max-width: 800px; }
.bigquote blockquote p {
  font-family: 'Newsreader', serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-style: italic;
  line-height: 1.4;
  color: #fff;
}
.bigquote cite { display: block; font-size: 14px; font-style: normal; color: var(--steel); margin-top: 22px; letter-spacing: 0.3px; }
.bigquote .after { font-size: 16px; color: var(--mist); margin-top: 26px; }

/* ---------- final cta ---------- */

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.final-cta p { margin-top: 16px; font-size: 17px; color: var(--mist); max-width: 38em; margin-left: auto; margin-right: auto; }
.final-cta .btn { margin-top: 32px; }

/* ---------- generic content pages ---------- */

.page-hero { padding: 84px 0 60px 0; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; color: #fff; max-width: 16em; }
.page-hero .lede { margin-top: 20px; color: var(--mist); }

.prose { max-width: 46em; }
.prose p { margin-bottom: 18px; }
.prose h3 { font-size: 24px; font-weight: 600; margin: 34px 0 12px 0; }

.check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.check-cols h3 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.check-cols ul { list-style: none; }
.check-cols li { font-size: 16.5px; line-height: 1.6; color: var(--deep); padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--paper); }
.check-cols li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; background: var(--lightline); }
.check-cols .excl li::before { background: var(--hairline-light); }

/* ---------- method page ---------- */

.stage-detail { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.stage-detail .stage-no { font-family: 'Newsreader', serif; font-size: 15px; color: var(--steel); letter-spacing: 1px; }
.stage-detail h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 6px; }
.stage-detail .lede + .lede { margin-top: 16px; }
.machinery { list-style: none; margin-top: 20px; }
.machinery li { font-size: 16.5px; line-height: 1.6; color: var(--deep); padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid var(--paper); }
.machinery li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--lightline); }
.boundary-note { margin-top: 22px; background: var(--paper); border-left: 3px solid var(--bluestone); padding: 16px 20px; font-size: 15.5px; line-height: 1.6; color: var(--deep); }

/* ---------- pricing page ---------- */

.pricing-table { width: 100%; border-collapse: collapse; margin-top: 44px; }
.pricing-table th { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: var(--deep); padding: 14px 18px; text-align: left; }
.pricing-table td { font-size: 17px; padding: 20px 18px; border-bottom: 1px solid var(--mist); color: var(--ink); vertical-align: top; line-height: 1.55; }
.pricing-table td.tier-name { font-family: 'Newsreader', serif; font-size: 24px; font-weight: 600; color: var(--bluestone); white-space: nowrap; }
.pricing-table td.price { white-space: nowrap; font-weight: 600; font-size: 18px; }
.pricing-table td.price span { display: block; font-weight: 400; font-size: 14.5px; color: var(--steel); margin-top: 2px; }

/* ---------- about page ---------- */

.person { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: start; }
.headshot { width: 320px; height: 380px; background: var(--ink); border: 1px solid var(--hairline-light); display: flex; align-items: center; justify-content: center; }
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot .placeholder { text-align: center; color: var(--steel); font-size: 14px; padding: 20px; }
.person h2 { font-size: 34px; font-weight: 600; }
.person .cred { font-size: 15px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bluestone); margin: 6px 0 18px 0; }

/* ---------- contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.scheduler {
  border: 1px solid var(--hairline-light);
  background: #fff;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.scheduler .calendly-inline-widget {
  width: 100%;
  min-height: 700px;
}
.scheduler .scheduler-fallback {
  margin: 0;
  padding: 14px 20px 18px;
  font-size: 14px;
  color: var(--steel);
  border-top: 1px solid var(--hairline-light);
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.scheduler .scheduler-fallback a {
  color: var(--bluestone);
  text-decoration: underline;
}
.scheduler .placeholder {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.7;
  max-width: 26em;
  margin: 40px auto;
  padding: 0 24px;
}
.expect { counter-reset: step; list-style: none; margin-top: 24px; }
.expect li { padding: 14px 0 14px 46px; position: relative; border-bottom: 1px solid var(--mist); font-size: 16.5px; line-height: 1.6; color: var(--deep); }
.expect li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 12px;
  font-family: 'Newsreader', serif; font-size: 19px; font-weight: 600; color: var(--bluestone);
  width: 30px; height: 30px; border: 1px solid var(--hairline-light);
  display: flex; align-items: center; justify-content: center;
}
.fee-lines { margin-top: 22px; }
.fee-lines .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--mist); font-size: 16px; color: var(--deep); }
.fee-lines .row b { color: var(--ink); }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(34px, 5vw, 52px); color: #fff; }
.notfound p { margin-top: 16px; color: var(--mist); }
.notfound .btn { margin-top: 30px; }

/* ---------- footer ---------- */

.site-footer { background: var(--nearblack); border-top: 1px solid var(--hairline-dark); padding: 56px 0 40px 0; }
.footer-top { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.footer-brand > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.footer-brand > span br { display: none; }
.footer-brand .wordmark { font-family: 'Newsreader', serif; font-size: 21px; font-weight: 600; color: #fff; line-height: 1; }
.footer-brand .subline { font-size: 8px; font-weight: 600; letter-spacing: 2.6px; color: var(--lightline); line-height: 1; }
.footer-contact { font-size: 14.5px; color: var(--steel); margin-top: 30px; line-height: 1.7; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  align-items: center;
}
.footer-legal a {
  font-size: 13.5px;
  color: var(--mist);
  text-decoration: none;
}
.footer-legal a:hover { color: #fff; }
.footer-disclosure {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(132, 176, 230, 0.55);
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
  max-width: 72em;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .tier-cards { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .stage-detail { grid-template-columns: 1fr; gap: 20px; }
  .person { grid-template-columns: 1fr; }
  .headshot { width: 100%; max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .brand { margin-right: 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: #121A26;
    border-bottom: 1px solid var(--hairline-dark);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a:not(.nav-cta) {
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline-dark);
    font-size: 15px;
  }
  .nav-links a:not(.nav-cta):nth-last-child(2) { border-bottom: none; }
  .nav-links a.active {
    border-bottom-color: var(--hairline-dark);
    box-shadow: inset 0 -2px 0 var(--bluestone);
    padding-bottom: 14px;
  }
  .nav-links .nav-cta { display: none; }

  /* Pricing table → stacked tier cards on mobile/tablet */
  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }
  .pricing-table {
    margin-top: 28px;
    border: none;
  }
  .pricing-table thead { display: none; }
  .pricing-table tbody tr {
    background: #fff;
    border: 1px solid var(--hairline-light);
    margin-bottom: 14px;
    padding: 18px 18px 12px;
  }
  .pricing-table td {
    border: none;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }
  .pricing-table td + td {
    border-top: 1px solid var(--mist);
  }
  .pricing-table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 4px;
  }
  .pricing-table td.tier-name {
    font-size: 22px;
    padding: 0 0 12px;
    border-top: none;
    white-space: normal;
  }
  .pricing-table td.tier-name::before { display: none; }
  .pricing-table td.price {
    white-space: normal;
    font-size: 18px;
  }
  .pricing-table td.price span {
    display: block;
    font-size: 13px;
    margin-top: 3px;
  }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px 0; }
  .page-hero { padding: 36px 0 48px 0; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--hairline-dark); }
  .stat:first-child { border-top: none; }
  .stages { grid-template-columns: 1fr; }
  .check-cols { grid-template-columns: 1fr; }

  /* Center key blocks so mobile doesn't look flush-left / lopsided */
  .hero .wrap,
  .page-hero .wrap,
  .onboard .wrap,
  .promise .wrap,
  .final-cta .wrap,
  .notfound .wrap {
    text-align: center;
  }
  .hero h1,
  .page-hero h1,
  .onboard h2,
  .promise h2,
  .final-cta h2,
  .notfound h1,
  .hero .lede,
  .page-hero .lede,
  .onboard .lede,
  .promise p,
  h2.section-title {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .section-light .btn,
  .section-paper .btn {
    display: table;
    margin-left: auto;
    margin-right: auto;
  }
  .stat .label {
    margin-left: auto;
    margin-right: auto;
  }
  .pullquote {
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-top: 3px solid var(--bluestone);
    padding: 22px 0 0 0;
    text-align: center;
  }
  .headshot {
    margin-left: auto;
    margin-right: auto;
  }
  .person {
    text-align: center;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand { margin-right: 0; }
  .footer-legal { justify-content: center; }
  .footer-contact,
  .footer-disclosure {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- auth gate / login ---------- */

html.auth-pending body {
  visibility: hidden;
}

.nav-signout {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(132, 176, 230, 0.35);
  color: var(--mist);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-signout:hover {
  color: #fff;
  border-color: var(--lightline);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(63, 110, 166, 0.28), transparent 55%),
    linear-gradient(180deg, #121A26 0%, var(--nearblack) 55%, #0A1018 100%);
  color: var(--mist);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 36px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-wordmark {
  font-family: 'Newsreader', serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.login-subline {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.6px;
  color: var(--lightline);
}

.login-panel {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--hairline-dark);
  background: rgba(18, 26, 38, 0.92);
  padding: 36px 32px 32px;
}

.login-panel h1 {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.login-lede {
  font-size: 15px;
  color: var(--mist);
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 80, 80, 0.45);
  background: rgba(120, 24, 24, 0.35);
  color: #f5c4c4;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--lightline);
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(132, 176, 230, 0.28);
  background: var(--nearblack);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.login-field input::placeholder {
  color: rgba(220, 231, 245, 0.35);
}

.login-field input:focus {
  border-color: var(--lightline);
}

.login-submit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  cursor: pointer;
  font: inherit;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
