:root {
  /* Tempered Edge — Brand v1.0 */
  --graphite: #0F1419;
  --graphite-hover: #1A2129;
  --bone: #F4F1EA;
  --steel: #6B7B8C;
  --white: #FFFFFF;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Legacy aliases (kept so existing markup continues to resolve cleanly) */
  --bg: var(--graphite);
  --bg-2: var(--graphite-hover);
  --panel: var(--graphite-hover);
  --panel-2: var(--bone);
  --text: var(--bone);
  --muted: var(--steel);
  --ink: var(--graphite);
  --line: rgba(107, 123, 140, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0;
}
h1 {
  font-size: clamp(48px, 8vw, 98px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 26px;
  max-width: 980px;
}
h2 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 24px;
}
h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: uppercase;
}
p { color: var(--bone); font-size: 17px; line-height: 1.6; margin-top: 0; }

/* Site header (sticky) */
.site-header {
  align-items: center;
  background: var(--graphite);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; gap: 10px; }
.brand-wordmark {
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-logo {
  display: block;
  height: 40px;
  max-width: min(280px, 60vw);
  object-fit: contain;
  width: auto;
}
.brand-logo--mono {
  height: 48px;
  max-width: 48px;
  width: 48px;
}

.nav {
  align-items: center;
  display: flex;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  gap: 22px;
}
.nav a { color: var(--bone); transition: color 150ms ease; }
.nav a:hover { color: var(--steel); }
.nav-cta {
  border: 1px solid var(--bone);
  border-radius: 4px;
  color: var(--bone) !important;
  font-weight: 500;
  padding: 10px 18px;
  transition: background 150ms ease, color 150ms ease;
}
.nav-cta:hover { background: var(--bone); color: var(--graphite) !important; }
.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bone);
  display: none;
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
}

/* Hero */
.hero, .page-hero {
  align-items: end;
  background: var(--graphite);
  display: flex;
  min-height: calc(100vh - 67px);
  padding: clamp(80px, 12vh, 130px) clamp(18px, 5vw, 64px);
}
.page-hero { min-height: 560px; }
.hero-inner { max-width: 920px; }
.hero-copy { color: var(--bone); font-size: 21px; line-height: 1.55; max-width: 760px; }

/* Eyebrow / captions */
.eyebrow {
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

/* Buttons */
.hero-actions, .cta-band, .button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button {
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0;
  min-height: 48px;
  padding: 14px 28px;
  text-transform: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.primary {
  background: var(--bone);
  color: var(--graphite);
}
.primary:hover { background: var(--white); }
.secondary {
  background: transparent;
  border: 1px solid var(--bone);
  color: var(--bone);
}
.secondary:hover { background: rgba(244, 241, 234, 0.06); }

/* Sections */
.section { padding: clamp(72px, 11vw, 130px) clamp(18px, 5vw, 64px); }
.section-tight { padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 64px); }
.two-col, .founder {
  display: grid;
  gap: clamp(32px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.split {
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}
.copy-stack { display: grid; gap: 16px; }

/* Lists */
.check-list, .cta-band ul, .plain-list {
  color: var(--bone);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.check-list li::before,
.cta-band li::before,
.plain-list li::before {
  color: var(--steel);
  content: "—";
  font-weight: 600;
  margin-right: 10px;
}

/* Section bands */
.band, .systems, .process, .final-cta { background: var(--graphite-hover); }

/* Card grids */
.tax-grid, .process-grid, .offer-grid, .metric-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}
.compact-card, .process-grid article {
  background: var(--graphite);
  border: 1px solid rgba(107, 123, 140, 0.2);
  border-radius: 8px;
  padding: 32px;
}
.offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.offer-card, .metric-card {
  background: var(--graphite);
  border: 1px solid rgba(107, 123, 140, 0.2);
  border-radius: 8px;
  display: block;
  min-height: 250px;
  padding: 32px;
  transition: border-color 180ms ease;
}
.offer-card:hover, .metric-card:hover { border-color: rgba(107, 123, 140, 0.4); }
.offer-card span, .metric-card span {
  color: var(--steel);
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.offer-card p, .metric-card p { margin-bottom: 0; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { min-height: 180px; }

/* Build list (numbered) */
.build-list { border-top: 1px solid var(--line); margin-top: 30px; }
.build-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 52px 1fr;
  padding: 28px 0;
}
.build-row span,
.system-grid span,
.process-grid span {
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* System grid */
.system-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}
.system-grid div {
  align-items: center;
  border: 1px solid rgba(107, 123, 140, 0.2);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  min-height: 76px;
  padding: 18px;
}
.system-grid p { color: var(--bone); margin: 0; }

/* CTA band (light bg) */
.cta-band {
  background: var(--bone);
  color: var(--graphite);
  justify-content: space-between;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 64px);
}
.cta-band h2, .cta-band li, .cta-band p { color: var(--graphite); }
.cta-band li::before { color: var(--steel); }
.cta-band .button.primary {
  background: var(--graphite);
  color: var(--bone);
}
.cta-band .button.primary:hover { background: var(--graphite-hover); }

/* FAQ details */
details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
details p { max-width: 920px; padding-top: 16px; }

/* Final CTA */
.final-cta {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 12vw, 140px) clamp(18px, 5vw, 64px);
  text-align: center;
}
.final-cta h2 { max-width: 820px; }
.final-cta p { max-width: 760px; }

/* Email link */
.email-link {
  border-bottom: 1px solid var(--steel);
  color: var(--bone);
  margin-top: 22px;
  padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.email-link:hover { border-bottom-color: var(--bone); }

/* Lead form */
.lead-form {
  background: var(--graphite-hover);
  border: 1px solid rgba(107, 123, 140, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 32px;
}
.lead-form label {
  color: var(--bone);
  display: grid;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  background: var(--graphite);
  border: 1px solid rgba(107, 123, 140, 0.3);
  border-radius: 4px;
  color: var(--bone);
  font: inherit;
  font-weight: 400;
  letter-spacing: 0;
  min-height: 48px;
  padding: 12px 14px;
  text-transform: none;
  transition: border-color 150ms ease;
  width: 100%;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--bone);
  outline: none;
}
.lead-form textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.note { color: var(--steel); font-size: 14px; }
.mini-kicker {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.thank-you { min-height: calc(100vh - 67px); }

/* Footer */
.footer {
  background: var(--graphite);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  padding: 60px 40px;
}
@media (max-width: 768px) {
  .footer { padding: 40px 24px; }
}
.footer h3 {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.footer a, .footer p {
  color: var(--steel);
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 150ms ease;
}
.footer a:hover { color: var(--bone); }

/* Responsive */
@media (max-width: 900px) {
  .menu-button { display: inline-flex; }
  .nav {
    align-items: stretch;
    background: var(--graphite);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 18px;
    position: absolute;
    right: 0;
    top: 67px;
  }
  .nav.open { display: flex; }
  .two-col, .founder, .footer, .split { grid-template-columns: 1fr; }
  .tax-grid, .process-grid, .offer-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { min-height: 760px; }
  .page-hero { min-height: 620px; }
  .brand-logo { height: 32px; max-width: 200px; }
  .brand-logo--mono { height: 40px; width: 40px; max-width: 40px; }
  h1 { font-size: 48px; }
  .button { width: 100%; }
  .tax-grid, .process-grid, .system-grid, .offer-grid, .metric-grid, .lead-form { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
}

/* Qualify intake flow */
.qualify-page { padding: clamp(56px, 9vw, 120px) clamp(18px, 5vw, 64px); }
.qualify-inner { margin: 0 auto; max-width: 640px; }
.qualify-page .eyebrow { margin-bottom: 18px; }
.qualify-page h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 640px;
}
.qualify-lede { color: var(--bone); font-size: 18px; line-height: 1.6; margin-bottom: 40px; }
.qualify-form { display: grid; gap: 24px; }
.qualify-field { border: 0; display: grid; gap: 10px; margin: 0; padding: 0; }
.qualify-label {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.45;
  padding: 0;
  text-transform: uppercase;
}
.qualify-required::after { color: var(--steel); content: " *"; }
.qualify-input, .qualify-textarea {
  background: var(--graphite-hover);
  border: 1px solid rgba(107, 123, 140, 0.3);
  border-radius: 4px;
  color: var(--bone);
  font: inherit;
  font-weight: 400;
  min-height: 48px;
  padding: 12px 14px;
  text-transform: none;
  transition: border-color 150ms ease;
  width: 100%;
}
.qualify-input:focus, .qualify-textarea:focus { border-color: var(--bone); outline: none; }
.qualify-textarea { line-height: 1.5; min-height: 120px; resize: vertical; }
.qualify-radio-group { display: grid; gap: 10px; }
.qualify-radio {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(107, 123, 140, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  transition: background 150ms ease, border-color 150ms ease;
}
.qualify-radio:hover { border-color: var(--bone); }
.qualify-radio input[type="radio"] { accent-color: var(--bone); flex-shrink: 0; height: 16px; margin: 0; width: 16px; }
.qualify-radio span { color: var(--bone); font-size: 15px; line-height: 1.3; }
.qualify-radio.selected { background: rgba(244, 241, 234, 0.06); border-color: var(--bone); }
.qualify-counter { color: var(--steel); font-size: 12px; margin: 0; text-align: right; }
.qualify-counter.invalid { color: var(--bone); font-weight: 600; }
.qualify-field-error { color: var(--bone); font-size: 12px; font-weight: 600; line-height: 1.4; margin: 0; }
.qualify-divider { background: var(--line); height: 1px; margin: 8px 0; }
.qualify-submit { margin-top: 8px; min-height: 56px; width: 100%; }
.qualify-submit:disabled { cursor: not-allowed; opacity: 0.45; }
.qualify-error {
  background: var(--graphite-hover);
  border: 1px solid var(--bone);
  border-radius: 4px;
  color: var(--bone);
  font-size: 14px;
  line-height: 1.55;
  padding: 16px;
}
.qualify-error a { color: var(--bone); text-decoration: underline; }

/* Qualify thanks */
.qualify-thanks-page { padding: clamp(56px, 9vw, 120px) clamp(18px, 5vw, 64px); }
.qualify-thanks-inner { margin: 0 auto; max-width: 760px; }
.qualify-thanks-page h1 {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.qualify-thanks-page .qualify-lede { font-size: 17px; margin-bottom: 36px; }
.qualify-calendly { margin-top: 8px; }
.qualify-calendly .calendly-inline-widget { height: 720px; min-width: 320px; }

@media (max-width: 640px) {
  .qualify-page h1, .qualify-thanks-page h1 { font-size: 36px; }
  .qualify-form { gap: 22px; }
  .qualify-calendly .calendly-inline-widget { height: 1000px; }
}


/* ═══ Brand Polish — v1.1 additions ═══ */

/* Hero geometric accent */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(107, 123, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Sticky CTA bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--graphite);
  border-top: 1px solid var(--steel);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta p {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
}
.sticky-cta .button {
  padding: 10px 22px;
  min-height: 40px;
  font-size: 14px;
}

/* Button polish — universal transition */
.button, button, .nav-cta {
  transition: all 0.2s ease;
}

/* Founder photo */
.founder-photo {
  width: 320px;
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--steel);
}

/* Spacing — body padding for sticky CTA clearance */
body {
  padding-bottom: 64px;
}

/* Responsive — founder photo + sticky CTA */
@media (max-width: 768px) {
  .founder-photo {
    width: 250px;
    margin: 0 auto;
  }
  .sticky-cta {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
  }
  .sticky-cta .button {
    width: 100%;
  }
}
