/* =================================================================
   ZEROON.ONE — AI Champion landing page
   Tokens from 01_BRAND_KIT.md. Light editorial theme, one warm accent.
   ================================================================= */

/* ---------- Fonts (self-hosted, latin-ext, swap) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #FAFAF8;
  --surface:       #FFFFFF;
  --surface-cream: #F4F2EC;
  --surface-ink:   #15171C;

  /* Ink / text */
  --ink:           #15171C;
  --ink-soft:      #3C4049;
  --ink-mute:      #6B7079;
  --ink-faint:     #9AA0A8;
  --on-dark:       #F3F1EA;
  --on-dark-mute:  #9498A1;

  /* Accent */
  --accent:        #C8922E;
  --accent-deep:   #A8771F;
  --accent-soft:   #F3E9D4;

  /* Lines */
  --line:          #E6E4DD;
  --line-soft:     #EFEDE7;

  /* Functional */
  --success:       #2E7D52;
  --focus-ring:    #C8922E66;

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --gutter: 24px;
  --gutter-lg: 40px;
  --section-y: 120px;
  --section-y-sm: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* The [hidden] attribute must win over component display rules
   (e.g. .mobile-nav and .form__success both toggle via hidden). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y-sm);
  border-top: 1px solid var(--line);
}
.section--cream { background: var(--surface-cream); }
.section--narrow .wrap { max-width: var(--maxw-narrow); }

@media (min-width: 900px) {
  .wrap { padding-inline: var(--gutter-lg); }
  .section { padding-block: var(--section-y); }
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--accent); }

.h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  max-width: 18ch;
}
.h2 em { font-style: italic; color: var(--accent-deep); }
.h2--dark { color: var(--on-dark); }
.h2--dark em { color: var(--accent); }

.h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(17px, 2.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 46ch;
}
.lead--wide { max-width: 56ch; }

.prose { margin-top: 22px; max-width: 62ch; }
.prose p + p { margin-top: 18px; }

.caption { font-size: 13px; line-height: 1.5; color: var(--ink-mute); }

/* payoff line (👉) */
.payoff {
  font-weight: 500;
  color: var(--ink);
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: 48ch;
}
.payoff__arrow { flex: none; }
.payoff--dark { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--primary:hover { background: #23262E; transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-cream); transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #d49e3a; transform: translateY(-1px); }

/* button for dark sections (not accent — paper on ink) */
.btn--on-dark { background: var(--on-dark); color: var(--ink); }
.btn--on-dark:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.logo {
  font-family: var(--font-sans);
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo__mark { font-weight: 700; }
.logo__dot { font-weight: 400; color: var(--ink-mute); }

.nav__links {
  display: none;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a { text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.nav__lang { color: var(--ink-faint); font-size: 13px; }
.nav__lang a { color: var(--ink-faint); text-decoration: none; }
.nav__lang a:hover { color: var(--ink); }
.nav__lang-sep { color: var(--line); }

.nav__cta { display: none; padding: 10px 18px; }

.nav__toggle {
  margin-left: auto;
  width: 42px; height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 11px;
}
.nav__toggle span {
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 12px;
  justify-content: center;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 12vw, 120px);
}
.hero__inner { max-width: 880px; }
.hero__h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-top: 18px;
  max-width: 16ch;
}
.hero__h1 em { font-style: italic; color: var(--accent-deep); }
.hero__sub { margin-top: 26px; max-width: 54ch; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__meta { margin-top: 28px; font-style: italic; }

/* ---------- Ruled list (problem) ---------- */
.ruled-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: 60ch;
}
.ruled-list li {
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}
.ruled-list li:last-child { border-bottom: 1px solid var(--line); }
.ruled-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 26px;
  width: 7px; height: 7px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}
.stat {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.stat__desc { color: var(--ink-soft); max-width: 32ch; }

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .stat { border-top: 2px solid var(--ink); }
}

/* ---------- Roles (2×2) ---------- */
.roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.role {
  background: var(--surface);
  padding: 32px 28px;
}
.role__num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--accent-deep);
  letter-spacing: 1px;
}
.role .h3 { margin: 12px 0 8px; }
.role p { color: var(--ink-soft); }

@media (min-width: 700px) {
  .roles { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fail rows ---------- */
.fail-list {
  list-style: none;
  counter-reset: none;
  margin: 40px 0 0;
  padding: 0;
}
.fail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.fail:last-child { border-bottom: 1px solid var(--line); }
.fail__num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-faint);
}
.fail p { color: var(--ink-soft); }
.fail strong { color: var(--ink); font-weight: 600; }

/* ---------- Dark bands ---------- */
.band {
  background: var(--surface-ink);
  color: var(--on-dark);
  padding-block: var(--section-y-sm);
}
.band__inner { max-width: var(--maxw-narrow); }
.band__body {
  margin-top: 20px;
  color: var(--on-dark-mute);
  font-size: 17px;
  line-height: 1.7;
  max-width: 56ch;
}
@media (min-width: 900px) {
  .band { padding-block: var(--section-y); }
}

/* ---------- Transformation (before/after) ---------- */
.shift {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
.shift__col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}
.shift__who {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.shift__state { padding-top: 18px; }
.shift__state + .shift__state { margin-top: 4px; }
.shift__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.shift__state--after .shift__label { color: var(--accent-deep); }
.shift ul { list-style: none; margin: 0; padding: 0; }
.shift li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: var(--ink-mute);
}
.shift__state--after li { color: var(--ink-soft); }
.shift li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 10px; height: 1.5px;
  background: var(--ink-faint);
}
.shift__state--after li::before { background: var(--accent); }

@media (min-width: 700px) {
  .shift { grid-template-columns: 1fr 1fr; }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.week {
  position: relative;
  padding: 24px 0 24px 56px;
  border-top: 1px solid var(--line);
}
.week:last-child { border-bottom: 1px solid var(--line); }
.week__num {
  position: absolute;
  left: 0; top: 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--accent-deep);
}
.week__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.week__out { color: var(--ink-soft); max-width: 60ch; }

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    border-top: 2px solid var(--ink);
    margin-top: 56px;
  }
  .week {
    padding: 28px 18px 0 0;
    border-top: none;
  }
  .week:last-child { border-bottom: none; }
  .week::before {
    content: "";
    position: absolute;
    top: -7px; left: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
  }
  .section--cream .week::before { background: var(--surface-cream); }
  .week__num { position: static; display: block; margin-bottom: 14px; }
}

/* ---------- Receive (6 items, 2-col) ---------- */
.receive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
}
.receive__item {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.receive__item:last-child { border-bottom: 1px solid var(--line); }
.receive__num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--accent-deep);
  letter-spacing: 1px;
}
.receive__item .h3 { margin: 8px 0 6px; }
.receive__item p { color: var(--ink-soft); max-width: 44ch; }

@media (min-width: 700px) {
  .receive {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  /* keep the top hairline on the first row of both columns */
  .receive__item:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- Fit (who should attend) ---------- */
.fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
}
.fit__col {
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.fit__head {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--ink-soft);
}
.fit li + li { border-top: 1px solid var(--line-soft); }
.fit__col--yes li::before,
.fit__col--no li::before {
  position: absolute;
  left: 0; top: 9px;
  font-weight: 700;
}
.fit__col--yes li::before { content: "✓"; color: var(--success); }
.fit__col--no li::before { content: "✕"; color: var(--ink-faint); }

@media (min-width: 700px) {
  .fit { grid-template-columns: 1fr 1fr; }
}

.note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 70ch;
}
.note strong { color: var(--ink); }

/* ---------- ROI logic table ---------- */
.logic {
  width: 100%;
  border-collapse: collapse;
  margin-top: 44px;
  max-width: 70ch;
}
.logic th, .logic td {
  text-align: left;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.logic tr:last-child th, .logic tr:last-child td { border-bottom: 1px solid var(--line); }
.logic th {
  font-weight: 400;
  color: var(--ink-soft);
  padding-right: 24px;
}
.logic td {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.logic tr:last-child td { color: var(--accent-deep); }

.disclaimer {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 68ch;
}

/* ---------- Quotes / testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 44px;
}
.quote {
  margin: 0;
  padding: 32px 28px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.quote__mark {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 0.6;
  color: var(--accent-soft);
  display: block;
  height: 24px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.quote figcaption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}
.quote--placeholder blockquote { color: var(--ink-faint); }

@media (min-width: 700px) {
  .quotes { grid-template-columns: 1fr 1fr; }
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border: 2px solid var(--ink);
}
.plan__badge {
  position: absolute;
  top: -12px; right: 20px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.plan__name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.plan__price {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 12px 0 22px;
}
.plan__unit {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.plan__feats {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.plan__feats li {
  padding: 11px 0 11px 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  border-top: 1px solid var(--line-soft);
}
.plan__feats li:first-child { border-top: none; }
.plan__feats li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 10px; height: 1.5px;
  background: var(--accent);
}
.plan__cta { width: 100%; }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plan--featured { transform: translateY(-8px); }
}

.scarcity {
  margin-top: 36px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 28px;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-mute);
  border-bottom: 1.5px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq__body { padding: 0 40px 24px 0; }
.faq__body p { color: var(--ink-soft); max-width: 64ch; }

/* ---------- Closing band + audit form ---------- */
.band--closing { border-top: 1px solid var(--line); }
.audit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}
.audit__form-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}
.audit__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}
.audit__sub {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 14px;
}

.form { margin-top: 22px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field textarea { resize: vertical; min-height: 84px; }
/* Only flag a field once the user has actually interacted with it. */
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0563f; }

.form__submit { width: 100%; margin-top: 6px; }
.form__micro {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
}
.form__success {
  margin-top: 22px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--ink);
  font-weight: 500;
}

.audit__aside {
  align-self: center;
  padding: 4px;
}
.risk {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--on-dark);
  max-width: 34ch;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.chip {
  font-size: 12px;
  color: var(--on-dark-mute);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

@media (min-width: 900px) {
  .audit {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .audit__form-wrap { padding: 36px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer__tag {
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 14px;
  max-width: 36ch;
}
.footer__contact {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-mute);
}
.footer__contact a { color: var(--ink-soft); text-decoration: none; }
.footer__contact a:hover { color: var(--ink); }

.footer__navtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__nav a { color: var(--ink-soft); text-decoration: none; }
.footer__nav a:hover { color: var(--ink); }

.footer__copy {
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
