/* KZ Automation — site styles. Black / gold / silver direction. */

/* ---------- Tokens ----------
   All color literals live here; everywhere else derives from these
   (alpha variants via color-mix) so brand tuning is a one-block edit.

   Roles and WCAG AA pairings (against --bg / panels unless noted):
   - Backgrounds: --bg page/hero/footer, --bg-panel silver sections,
     --bg-panel-alt (warm-tinted via color-mix) gold sections,
     --bg-card raised surfaces, --bg-ribbon notice banners.
   - Snap pages: each .panel carries an --accent (silver or gold) that
     drives its eyebrow, heading rule, top hairline, ambient wash, and
     ghost numeral, so consecutive pages read as distinct.
   - Golds: --gold-bright focus rings & emphasis, --gold-mid links and
     h3 text (AA), --gold-deep small accents (eyebrows, step numbers —
     AA at their sizes), --gold-bronze large decorative washes only,
     never text.
   - Silvers: --silver secondary text/nav (AA), --silver-muted footer
     and de-emphasized notes (AA), --silver-bright gradient highlights,
     --silver-sheen near-white peak of the metallic headline gradient.
   - Text: --text body (AAA), --text-muted ledes (AA), --ink-on-gold
     the only dark-on-light pairing, for gold buttons (AAA). */
:root {
  --bg: #17191c;
  --bg-panel: #191a1f;
  --bg-panel-alt: #1d1d22;
  --bg-card: #202129;
  --bg-ribbon: #1c1408;
  --border: #2a2a33;
  --border-gold: #4a3a1c;

  --gold-bright: #fff7ae;
  --gold-mid: #d3c175;
  --gold-deep: #b78626;
  --gold-bronze: #9b6326;

  --silver-sheen: #f6f7f9;
  --silver-bright: #e8eaef;
  --silver: #c9ccd4;
  --silver-muted: #8b8f99;
  --black-shadow: #000000;

  --text: #f2efe9;
  --text-muted: #b9b6ae;
  --ink-on-gold: #000000;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell-max: 70rem;
  --space: clamp(1rem, 3vw, 2rem);
  --radius: 0.5rem;
  --tap: 2.75rem; /* ~44px touch target */
  --header-offset: 5rem;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-padding-top: var(--header-offset);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--text); }
h3 { font-size: 1.125rem; color: var(--gold-mid); }

p { margin: 0 0 1rem; }

a { color: var(--gold-mid); }

#top, #opportunities, #about, #action {
  scroll-margin-top: var(--header-offset);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--space);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent, var(--gold-deep));
  margin: 0 0 0.75rem;
}

.section-lede {
  max-width: 42rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold-mid);
  color: var(--ink-on-gold);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.proto-ribbon {
  margin: 0;
  padding: 0.5rem var(--space);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--silver);
  background: var(--bg-ribbon);
  border-bottom: 1px solid var(--border-gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  max-width: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--tap);
  color: var(--silver-bright);
  text-decoration: none;
}
.brand picture { display: flex; }
.brand-logo { display: block; width: auto; height: 2.4rem; }

.site-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.25rem 0.85rem;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn)[aria-current] { color: var(--gold-bright); border-bottom-color: var(--gold-deep); }

.nav-menu a.nav-action {
  color: var(--ink-on-gold);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-mid) 45%, var(--gold-deep));
  box-shadow: 0 0 18px color-mix(in srgb, var(--gold-mid) 12%, transparent);
  white-space: nowrap;
}
.nav-menu a.nav-action:hover,
.nav-menu a.nav-action[aria-current] {
  color: var(--ink-on-gold);
  border-color: var(--gold-bright);
}
.nav-menu .nav-action[aria-disabled="true"] { cursor: default; opacity: 0.92; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em; /* inline-flex drops whitespace text nodes, e.g. before the arrow span */
  min-height: var(--tap);
  padding: 0.6rem 1.4rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-mid) 45%, var(--gold-deep));
  color: var(--ink-on-gold);
  box-shadow: 0 0 18px color-mix(in srgb, var(--gold-mid) 18%, transparent);
}
.btn-gold:hover { filter: brightness(1.07); }

.btn-ghost {
  color: var(--silver);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--border-gold); }

.btn-small { padding: 0.4rem 1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 28rem at 70% 42%, color-mix(in srgb, var(--silver-muted) 12%, transparent), transparent 70%),
    radial-gradient(38rem 24rem at 18% 20%, color-mix(in srgb, var(--silver) 10%, transparent), transparent 72%),
    linear-gradient(135deg, color-mix(in srgb, var(--silver-muted) 7%, transparent), transparent 28%, color-mix(in srgb, var(--black-shadow) 16%, transparent) 72%),
    var(--bg);
}

/* Opening view follows the supplied mockup: brand/copy low on the left,
   partner cards aligned beside it on the right. */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(1.5rem, 4vh, 2.75rem) clamp(1.5rem, 4vh, 3rem);
}

/* Left column: logo centered over the copy, everything stacked compactly at
   the top so the hero is only as tall as its content. */
.hero-copy {
  max-width: 40rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-logo {
  display: block;
  width: clamp(10rem, 16vw, 13rem);
  height: auto;
  margin: 0 auto;
}

.hero-headline {
  margin: 0 0 1.4rem;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 800;
  line-height: 1.12;
}

.value-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.value-list div {
  display: grid;
  grid-template-columns: 7.8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.value-list dt {
  color: var(--gold-mid);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.value-list dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

/* ---------- Hero team cards ---------- */
/* Tall cards keep the partner photos prominent, with credentials below. */
.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16rem));
  align-items: stretch;
  justify-content: end;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.team-column {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.team-proof {
  display: grid;
  gap: 0.24em;
  margin: 0;
  text-align: center;
  color: var(--silver-bright);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}
.team-proof span:first-child { color: var(--gold-mid); }

.team-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 15rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent),
    0 14px 34px color-mix(in srgb, var(--black-shadow) 45%, transparent);
  text-align: left;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--gold-deep) 70%, transparent),
    var(--gold-bright),
    color-mix(in srgb, var(--gold-deep) 70%, transparent));
}
.team-card:hover {
  border-color: var(--border-gold);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent),
    0 14px 34px color-mix(in srgb, var(--black-shadow) 45%, transparent),
    0 0 24px color-mix(in srgb, var(--gold-mid) 12%, transparent);
}

.team-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info { padding: 1rem 1rem 1.15rem; }

.team-name {
  margin: 0 0 0.1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--silver-bright);
}

.team-role {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-mid);
}

.team-creds {
  list-style: none;
  display: grid;
  gap: 0.46rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.team-creds li {
  position: relative;
  padding-left: 1rem;
}
.team-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}

/* Bottom-center chevron inviting the first scroll out of the hero. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 999px;
}

.scroll-cue-chevron {
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--gold-mid);
  border-bottom: 2px solid var(--gold-mid);
  transform: rotate(45deg);
  margin-top: -0.4rem;
}
.scroll-cue:hover .scroll-cue-chevron { border-color: var(--gold-bright); }


.approach-intro {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.strategy-heading {
  display: grid;
  gap: 0.15em;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.line { display: block; }
.line-silver,
.line-white,
.typing-text {
  background: linear-gradient(180deg, var(--silver-sheen), var(--silver) 38%, var(--silver-muted) 62%, var(--silver-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.line-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-mid) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rule {
  width: 5.5rem;
  height: 3px;
  margin: 1.25rem auto;
  background: linear-gradient(90deg, var(--silver-muted), var(--silver-bright), var(--silver));
}

.hero-sub {
  max-width: 34rem;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Hero CTAs sit inline and centered under the value proposition. */
.hero-grid .hero-actions { margin-top: 2rem; }

/* ---------- Panels & cards ---------- */
/* Sections alternate silver surfaces (#opportunities, #about) and warm gold
   surfaces (.panel-alt). Each section's --accent drives its top hairline,
   ambient wash, eyebrow, and heading rule. */
.panel {
  --accent: var(--silver);
  --accent-soft: var(--silver-muted);
  --panel-bg: var(--bg-panel);
  position: relative;
  isolation: isolate; /* keeps the negative-z ghost numeral above the panel background */
  display: grid;
  align-content: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 20rem at 50% 0%,
      color-mix(in srgb, var(--accent-soft) 7%, transparent), transparent 70%),
    var(--panel-bg);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 6%,
    color-mix(in srgb, var(--accent) 45%, transparent),
    transparent 94%);
}

.panel-alt {
  --accent: var(--gold-mid);
  --accent-soft: var(--gold-bronze);
  --panel-bg: color-mix(in srgb, var(--gold-bronze) 4%, var(--bg-panel-alt));
}

.panel > .shell { position: relative; }

.panel h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* The strategy heading is followed by its own centered rule already */
.panel h2.strategy-heading::after { content: none; }

.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent);
}
.card:hover {
  border-color: var(--border-gold);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent),
    0 0 20px color-mix(in srgb, var(--gold-mid) 8%, transparent);
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Opportunities ---------- */
.opportunities .section-lede { max-width: 60rem; }
.opportunities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-kicker {
  margin: 0 0 0.5rem;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card h3 { margin: 0 0 0.6rem; color: var(--silver-bright); }
.card-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card-list li { position: relative; padding-left: 1.1rem; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}

/* Offers are "starting points", not process steps — a gold rail (matching
   .trust-list) keeps them from reading as a rerun of the Approach grid. */
.offers .card { border-left: 3px solid var(--gold-deep); }

/* ---------- Action cards ---------- */
.action .section-lede { max-width: 50rem; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.next-step-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-height: 100%;
  padding: clamp(1.1rem, 2.3vw, 1.7rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent);
}
.next-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), transparent);
}
.next-step-card-feature {
  border-color: var(--border-gold);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--silver-sheen) 7%, transparent),
    0 0 28px color-mix(in srgb, var(--gold-mid) 9%, transparent);
}
.next-step-card h3 { margin: 0; color: var(--silver-bright); font-size: clamp(1.25rem, 2.1vw, 1.8rem); }
.next-step-card p { margin: 0; color: var(--text-muted); }
.next-step-card .btn { justify-self: start; margin-top: 0.35rem; }
.next-step-number {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--gold-mid);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Engagement steps: a clean numbered list, no nested tiles. */
.engagement-steps {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: engagement;
}
.engagement-steps li {
  position: relative;
  padding-left: 2.4rem;
  color: var(--silver);
  line-height: 1.5;
}
.engagement-steps li::before {
  counter-increment: engagement;
  content: counter(engagement);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--gold-mid);
  font-size: 0.78rem;
  font-weight: 800;
}
.engagement-steps strong { color: var(--silver-bright); }

/* Forward affordance closing a section: next-section ghost link or CTA. */
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.9rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.about-grid p { color: var(--text-muted); max-width: 48rem; }
.trust-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.trust-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-deep);
  border-radius: var(--radius);
  color: var(--silver);
}

/* ---------- Discovery / form ---------- */
/* The conversion page bookends the hero: same gold-bronze wash at full
   strength, with the form framed in gold as the destination. */
.discovery {
  background:
    radial-gradient(60rem 26rem at 50% 10%,
      color-mix(in srgb, var(--gold-bronze) 12%, transparent), transparent 65%),
    var(--panel-bg);
}

.discovery::before {
  background: linear-gradient(90deg,
    transparent 6%,
    color-mix(in srgb, var(--gold-deep) 70%, transparent),
    transparent 94%);
}

.discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

#discovery-form {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 0 30px color-mix(in srgb, var(--gold-mid) 8%, transparent);
}

.field { display: grid; gap: 0.4rem; margin: 0; }
fieldset.field { border: 0; padding: 0; }
legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; color: var(--silver); }
label { font-weight: 600; color: var(--silver); font-size: 0.95rem; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.6rem 0.8rem;
  background: var(--bg-panel-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { border-color: var(--gold-mid); }

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  font-weight: 400;
  color: var(--text-muted);
}
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold-deep); }

.form-status {
  margin: 0;
  min-height: 1.5rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.form-status.is-error { color: var(--silver-bright); }

/* Honeypot: visually removed, still submitted by naive bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-optional { font-weight: 400; color: var(--text-muted); }
.field-privacy { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Discovery dialog ---------- */
.discovery-dialog {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: min(34rem, calc(100vw - 2rem));
  margin: auto;
}
.discovery-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
/* The dialog supplies the card chrome; strip the form's own. */
.discovery-dialog #discovery-form {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.dialog-head h4 { margin: 0; font-size: 1.2rem; color: var(--silver-bright); }
.dialog-close {
  background: none;
  border: 0;
  color: var(--silver);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  min-width: var(--tap);
  min-height: var(--tap);
  cursor: pointer;
}
.dialog-close:hover { color: var(--gold-bright); }
/* No JavaScript: the dialog renders as the inline card it used to be,
   and the dead trigger button is hidden. Native POST keeps working. */
html:not(.js) #discovery-open { display: none; }
html:not(.js) .discovery-dialog {
  display: block;
  position: static;
  width: 100%;
  margin: 1rem 0 0;
}
html:not(.js) .dialog-close { display: none; }

/* ---------- Thanks page ---------- */
.thanks-panel { min-height: 100svh; display: grid; align-items: center; }
.thanks-panel .footer-logo { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem;
  /* Deepest surface after the discovery "gold room", so the page closes
     on a quiet note instead of another mid-tone panel. */
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo { display: block; width: auto; height: 2.1rem; max-width: 18rem; }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.25rem 0.75rem;
  color: var(--silver-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold-mid); }

.footer-note { margin: 0; font-size: 0.82rem; color: var(--silver-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  :root {
    --header-offset: 4rem;
    --space: clamp(1rem, 4vw, 1.5rem);
  }
  body { font-size: 1rem; }
  .site-header .shell { padding-inline: 0.75rem; }
  .header-row { min-height: var(--header-offset); padding-block: 0.35rem; }
  .brand-logo {
    width: 3.75rem;
    height: 2.75rem;
    object-fit: contain;
    border-radius: 0.35rem;
  }
  .nav-menu a:not(.btn) {
    min-height: var(--tap);
    padding-inline: 1rem;
    font-size: 0.88rem;
  }
  .nav-menu a.nav-action {
    border-radius: 0.65rem;
    box-shadow: none;
  }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
    padding-block: 1.25rem 2.5rem;
  }
  .hero-copy { gap: 1rem; }
  .hero-logo { width: clamp(8rem, 34vw, 10rem); }
  .hero-headline { margin-bottom: 1.15rem; }
  .value-list { gap: 1.1rem; }
  .value-list div { grid-template-columns: 1fr; gap: 0.35rem; }
  .value-list dd { font-size: 1rem; }
  .hero-grid .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
    max-width: 26rem;
    margin: 1.5rem auto 0;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; }
  .btn { min-height: 3rem; padding: 0.7rem 1.1rem; border-radius: 0.65rem; }
  .team-column { gap: 0.85rem; }
  .team-proof { font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    justify-content: stretch;
  }
  .team-card {
    grid-template-rows: clamp(10.5rem, 52vw, 13rem) auto;
  }
  .team-card img {
    object-fit: contain;
  }
  .panel { padding-block: 2.75rem; }
  .card, .next-step-card { padding: 1.15rem; }
  .next-step-card .btn { width: 100%; }
  .footer-row {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-links { justify-content: center; }
  .footer-note { max-width: 30rem; }
}

@media (max-width: 30rem) {
  .card-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 3.5rem; height: 2.5rem; }
  .hero-actions .btn, .panel-actions .btn { width: 100%; }
}
