/* ==========================================================================
   AviionAthletics — site styles
   Plain CSS, mobile-first. Edit the tokens in :root to change the look.
   ========================================================================== */

/* ---------- Fonts (self-hosted, see /assets/fonts) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Colours: black, four dark blues, a muted blue-grey, crisp white */
  --black: #05070b;
  --navy-950: #0a1220;
  --navy-900: #0f1b2e;
  --navy-800: #16263f;
  --navy-700: #22395c;
  --navy-500: #3a5a8c;
  --mist: #9aabc4;
  --ice: #d5deec;
  --white: #f8fbff;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --header-h: 64px;
  --radius: 4px;
  --section-y: clamp(64px, 10vw, 120px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--white); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 12.5vw, 6rem); }
h2 { font-size: clamp(2.2rem, 8vw, 3.75rem); }
h3 { font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.05; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ice);
}
.muted { color: var(--mist); }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: transparent; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--navy-500); }
.btn--ghost:hover { border-color: var(--white); }

.btn--block { display: flex; width: 100%; padding-inline: 14px; }
@media (max-width: 420px) {
  .btn { padding-inline: 18px; font-size: 1.125rem; letter-spacing: 0.04em; }
  .btn--block { padding-inline: 10px; }
}
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 90, 140, 0.28);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 20px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 6px; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--black);
  border-bottom: 1px solid var(--navy-700);
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--navy-800);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a[aria-current="page"]:not(.btn) { color: var(--mist); }
.site-nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 30px; }
  .site-nav a:not(.btn) {
    min-height: 44px;
    border: 0;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--ice);
  }
  .site-nav a:not(.btn):hover { color: var(--white); }
  .site-nav a[aria-current="page"]:not(.btn) {
    color: var(--white);
    box-shadow: inset 0 -2px 0 var(--white);
  }
  .site-nav .btn { margin-top: 0; width: auto; min-height: 44px; padding: 8px 20px; font-size: 1.05rem; }
  .logo img { height: 22px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); background: var(--black); }
.section--navy { background: var(--navy-950); }
.section--deep { background: var(--navy-900); }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 6vw, 56px); }
.section__head p { margin-top: 20px; }

/* Mountain ridgeline that rises from the top edge of a section */
.ridge-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(44px, 9vw, 110px);
  background: inherit;
  -webkit-mask: url("../img/ridge-mask.svg") center bottom / max(100%, 900px) 100% no-repeat;
  mask: url("../img/ridge-mask.svg") center bottom / max(100%, 900px) 100% no-repeat;
  pointer-events: none;
}

/* ---------- Photo placeholders ----------
   Swap a placeholder for a real photo: see README.md, "Photos". */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 2px dashed var(--navy-500);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(58, 90, 140, 0.12) 0 2px, transparent 2px 18px),
    var(--navy-900);
  color: var(--mist);
  text-align: center;
}
.photo-slot--portrait { aspect-ratio: 4 / 5; }
.photo-slot--landscape { aspect-ratio: 3 / 2; }
.photo-slot__tag {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.photo-slot__note { max-width: 30ch; font-size: 0.875rem; line-height: 1.45; }
.photo-slot svg { width: 34px; height: 34px; margin-bottom: 4px; }

/* A real photo dropped into the same spot */
.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 3 / 2; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: 72px clamp(120px, 24vw, 220px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Dark wash so white text stays readable over a photo */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.5) 0%, rgba(5, 7, 11, 0.15) 45%, rgba(5, 7, 11, 0.55) 100%);
}
.hero__ridges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  height: min(62%, 560px);
  background: url("../img/ridges-hero.svg") center bottom / max(100%, 1100px) 100% no-repeat;
  pointer-events: none;
}
.hero__placeholder {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px dashed var(--navy-500);
  border-radius: var(--radius);
  background: rgba(10, 18, 32, 0.7);
  color: var(--mist);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.hero__placeholder strong {
  flex: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__content > * { max-width: 880px; }
.hero h1 { margin-bottom: 20px; text-shadow: 0 2px 30px rgba(5, 7, 11, 0.6); }
.hero .lead.lead { max-width: 600px; margin-bottom: 30px; color: var(--white); }

@media (min-width: 720px) {
  .hero__placeholder { left: auto; max-width: 420px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative;
  padding-block: clamp(56px, 10vw, 110px) clamp(80px, 14vw, 150px);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.6rem, 10.5vw, 5rem); max-width: 16ch; }
.page-head .lead { max-width: 640px; margin-top: 20px; }
.page-head--wide h1 { max-width: 22ch; }

/* ---------- Split (text + photo) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
  .split--photo-first { grid-template-columns: 0.85fr 1.15fr; }
}
.split h2 { margin-bottom: 22px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 16px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pillar {
  padding: 28px 24px 30px;
  border: 1px solid var(--navy-700);
  border-top: 3px solid var(--white);
  border-radius: var(--radius);
  background: var(--navy-900);
}
.pillar__num {
  display: block;
  margin-bottom: 18px;
  color: var(--navy-500);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ice); }

/* ---------- Ways to work with me (home) ---------- */
.ways { border-top: 1px solid var(--navy-700); }
.way {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--navy-700);
  color: var(--ice);
  text-decoration: none;
  transition: padding 0.2s ease, background-color 0.2s ease;
}
.way__title {
  grid-column: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5.4vw, 2.1rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.way__text { grid-column: 1; color: var(--mist); }
.way__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-500);
  border-radius: 50%;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.way:hover .way__arrow { background: var(--white); color: var(--black); transform: translateX(4px); }

/* ---------- Closing call to action ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; max-width: 16ch; }
.cta-band p { max-width: 520px; margin: 20px auto 30px; }

/* ---------- Offers ---------- */
.offers { display: grid; gap: 20px; }
.offer {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-900);
}
.offer--featured {
  border: 2px solid var(--white);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  box-shadow: 0 0 0 1px rgba(248, 251, 255, 0.08), 0 20px 60px -20px rgba(58, 90, 140, 0.55);
}
.offer h2 { font-size: clamp(1.9rem, 6.6vw, 2.3rem); line-height: 1.02; }
.offer__price {
  margin: 16px 0 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
}
.offer__meta {
  margin-bottom: 18px;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.offer__body { flex: 1; }
.offer__body > p { color: var(--ice); }
.offer .btn { margin-top: 26px; }
.offer__topline { margin-top: 16px; color: var(--white); font-size: 1.1rem; line-height: 1.5; }

.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; line-height: 1.45; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

.tiers { display: grid; gap: 14px; margin-top: 22px; }
.tier {
  padding: 20px 18px 22px;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: rgba(5, 7, 11, 0.45);
}
.tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-700);
}
.tier__name {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}
.tier__price { color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.tier__price small {
  margin-left: 8px;
  color: var(--mist);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tier .checks { margin-top: 14px; font-size: 0.975rem; }
.tier__plus { margin: 14px 0 0; color: var(--white); font-weight: 600; }
.tier__plus + .checks { margin-top: 10px; }

/* The $150 calendar that opens under its card */
.cal-panel {
  padding: 20px 12px;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-950);
}
.cal-panel[hidden] { display: none; }
.cal-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px 14px;
}
.cal-panel__title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.cal-panel__close {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  background: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cal-panel__close:hover { border-color: var(--white); }

@media (min-width: 720px) {
  .offers { grid-template-columns: 1fr 1fr; }
  .offer { padding: 34px 30px; }
  .offer--reset { grid-column: 1; grid-row: 1; }
  .offer--call { grid-column: 2; grid-row: 1; }
  .cal-panel { grid-column: 1 / -1; grid-row: 2; padding: 26px 22px; }
  .offer--featured { grid-column: 1 / -1; grid-row: 3; }
  .offer--featured .tiers { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .offers { grid-template-columns: 1fr 1fr 1.45fr; align-items: stretch; }
  .offer--featured { grid-column: 3; grid-row: 1; }
  .offer--featured .tiers { grid-template-columns: 1fr; }
}

/* ---------- Cal.com embed wrappers (no fixed height, by design) ---------- */
.cal-wrap {
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-950);
  padding: 12px 6px;
}
@media (min-width: 720px) { .cal-wrap { padding: 24px; } }
.cal-fallback { padding: 8px 10px 0; font-size: 0.9375rem; color: var(--mist); }

.notes { display: grid; gap: 14px; margin-top: 28px; }
.note {
  padding: 16px 18px;
  border-left: 3px solid var(--navy-500);
  background: var(--navy-900);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- About ---------- */
.prose { max-width: 680px; }
.prose p { font-size: 1.1rem; }
.prose p.lead { font-size: clamp(1.2rem, 2.8vw, 1.4rem); color: var(--white); }
.prose ul { margin: 0 0 1.3em; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--white); font-size: 1.1rem; line-height: 1.5; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--white);
}

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wins { display: grid; gap: 16px; }
@media (min-width: 860px) { .wins { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.win { padding: 24px 0 0; border-top: 3px solid var(--white); }
.win p {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5.4vw, 2rem);
  line-height: 1.08;
  text-transform: uppercase;
}

/* ---------- Free Resources ---------- */
.resources { display: grid; gap: 20px; }
@media (min-width: 720px) { .resources { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .resources { grid-template-columns: repeat(3, 1fr); } }
.resource {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  background: var(--navy-900);
  overflow: hidden;
}
.resource .photo-slot,
.resource .photo { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.resource__body { display: flex; flex-direction: column; flex: 1; padding: 24px 22px 26px; }
.resource__type {
  margin-bottom: 10px;
  color: var(--mist);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.resource h2 { font-size: 1.9rem; margin-bottom: 12px; }
.resource__text { flex: 1; }

.form { display: grid; gap: 12px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--mist); font-size: 0.875rem; font-weight: 500; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--navy-500);
  border-radius: var(--radius);
  background: var(--navy-950);
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming in on focus */
}
.field input::placeholder { color: #6b7e9b; }
.field input:focus-visible { outline-offset: 0; border-color: var(--white); }
.form__status { margin: 0; font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status--error { color: #ffb4b4; }
.form__done {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--navy-950);
  color: var(--white);
}
.form__done[hidden] { display: none; }
.form__fineprint { margin: 0; color: var(--mist); font-size: 0.8125rem; line-height: 1.5; }

/* ---------- Thank-you page ---------- */
.signoff {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.4vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- Privacy policy ---------- */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.legal ul { display: grid; gap: 10px; margin-bottom: 1.1em; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 2px;
  background: var(--mist);
}
.legal strong { color: var(--white); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 64px 0 36px;
  background: var(--navy-950);
  color: var(--mist);
  font-size: 0.9375rem;
}
.site-footer__top { display: grid; gap: 36px; }
@media (min-width: 860px) { .site-footer__top { grid-template-columns: 1.3fr 0.7fr 1fr; gap: 56px; } }
.site-footer .logo img { height: 22px; }
.site-footer__tagline { margin-top: 16px; max-width: 34ch; color: var(--ice); }
.site-footer h2 {
  margin-bottom: 12px;
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.footer-links { display: grid; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.site-footer__contact p { margin-bottom: 12px; }
.site-footer__contact a { display: inline-block; padding-block: 4px; }
.site-footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-800);
  display: grid;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Mobile sticky call-to-action bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 7, 11, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--navy-700);
  transition: transform 0.25s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.sticky-cta .btn { width: 100%; min-height: 50px; font-size: 1.15rem; }
/* Leave room so the bar never covers the end of the page */
.has-sticky-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 860px) {
  .sticky-cta { display: none; }
  .has-sticky-cta { padding-bottom: 0; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60svh; display: flex; align-items: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Anything marked hidden stays hidden (used for the Free Resources links) */
[hidden] { display: none !important; }
