/* ==========================================================================
   Curavix — site styles
   Palette and type come from the Curavix brand kit:
   Navy #12294A (primary) · Electric #2F6FEB (dots and small highlights only)
   Near black #0C1422 · Off white #F4F6FA · Manrope 700/600/400
   ========================================================================== */

/* Manrope, self-hosted (SIL Open Font License, see /fonts/OFL.txt) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --navy: #12294A;
  --electric: #2F6FEB;
  --ink: #0C1422;
  --paper: #F4F6FA;
  --white: #FFFFFF;

  /* Derived */
  --text: var(--navy);
  --text-muted: #4A5A74;                    /* 6.4:1 on paper */
  --line: rgba(18, 41, 74, 0.1);
  --line-strong: rgba(18, 41, 74, 0.18);
  --field-border: #8A94A3;                  /* 3:1 on white */
  --electric-soft: rgba(47, 111, 235, 0.1);
  --electric-tint: #EAF1FD;                 /* electric-soft, flattened on white */
  --on-dark: rgba(244, 246, 250, 0.72);
  --error: #B42318;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(12, 20, 34, 0.04), 0 12px 32px -12px rgba(18, 41, 74, 0.18);
  --shadow-lg: 0 2px 4px rgba(12, 20, 34, 0.04), 0 32px 64px -24px rgba(18, 41, 74, 0.28);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 10vw, 136px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --------------------------------------------------------------------------
   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;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Components set their own display; the hidden attribute must still win */
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

/* Zero specificity, so component classes can set their own margins */
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--electric); color: var(--white); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The signature: headings end in the electric dot from the wordmark's i */
.dot { color: var(--electric); }

/* --------------------------------------------------------------------------
   Buttons & small components
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn .arrow { flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--ink); }

.btn-ghost { border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--white); }

.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.9375rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Eyebrow label with the short electric bar from the brand banner */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--electric);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.i-accent { fill: var(--electric); stroke: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 250, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: block; border-radius: 6px; }
.brand img { width: auto; height: 28px; }

.nav { display: flex; align-items: center; gap: 36px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; text-decoration-color: var(--electric); text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(80px, 10vw, 136px);
  overflow: hidden;
}

/* Dot grid — the brand dot as texture, fading out from behind the card */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(18, 41, 74, 0.16) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 78% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 78% 45%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(56px, 7vw, 88px);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.625rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 36px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-notes li { display: flex; align-items: center; gap: 10px; }
.hero-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
}

/* Workflow card */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.flow-card {
  position: relative;
  margin: 0;
  padding: 22px 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.flow-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
}

/* Three equal rows; the track and the travelling dot are pseudo-elements
   positioned from the centre of the first icon to the centre of the last. */
.flow {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  padding-block: 6px;
}

.flow::before,
.flow::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.flow::before {
  left: 23px;
  top: calc(6px + (100% - 12px) / 6);
  bottom: calc(6px + (100% - 12px) / 6);
  width: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 8px);
}

.flow::after {
  left: 17px;
  top: calc(6px + (100% - 12px) / 6 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 5px rgba(47, 111, 235, 0.16);
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}

.flow__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--navy);
}
.flow__icon svg { width: 22px; height: 22px; }

.flow__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.flow__text span {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.flow-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.flow-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
}
.flow-check svg { width: 15px; height: 15px; }

.flow-badge {
  position: absolute;
  top: -46px;
  right: -14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 19px;
  background: var(--navy);
  box-shadow: 0 16px 32px -12px rgba(12, 20, 34, 0.45);
  transform: rotate(8deg);
}
.flow-badge img { width: 100%; height: auto; }

@media (max-width: 480px) {
  .flow-card { padding-inline: 18px; }
  .flow-badge { top: -40px; right: -2px; width: 54px; height: 54px; border-radius: 16px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--white); }

.section-head { max-width: 620px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 34em;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--text-muted);
}
.section-intro a {
  color: var(--navy);
  font-weight: 600;
  text-decoration-color: var(--electric);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Services ------------------------------------------------------------------ */

.services {
  display: grid;
  gap: 20px;
  margin-top: 56px;
}

@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  color: var(--navy);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--electric-soft); border-color: rgba(47, 111, 235, 0.25); }

.service h3 { margin-top: 26px; font-size: 1.375rem; }
.service > p { margin-top: 10px; color: var(--text-muted); }

.examples {
  margin-top: auto;
  padding-top: 26px;
}
.examples ul {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.examples__label {
  margin-bottom: 0;
  padding-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.examples__label + ul { padding-top: 14px; }
.examples li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--navy);
}
.examples li + li { margin-top: 6px; }
.examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.825em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
}

/* How it works -------------------------------------------------------------- */

.steps {
  --gap: 32px;
  display: grid;
  gap: var(--gap);
  margin-top: 56px;
}

.step { position: relative; padding-top: 44px; }

/* The rail connecting the steps */
.step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: calc(-1 * var(--gap));
  height: 2px;
  background: var(--line-strong);
}
.step:last-child::before {
  right: 0;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

/* The dot on each step */
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--electric);
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 5px var(--paper);
  transition: background-color 0.5s ease;
}

.step__num {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 8px; font-size: 1.25rem; }
.step p { margin-top: 10px; font-size: 1rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .steps { --gap: 0px; }
  .step { padding: 0 0 36px 44px; }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    top: 4px;
    bottom: -4px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .step:last-child::before {
    bottom: 0;
    background: linear-gradient(to bottom, var(--line-strong), transparent);
  }
  .step::after { top: 4px; }
}

/* Why Curavix (dark) -------------------------------------------------------- */

.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
}
.section--dark .eyebrow { color: var(--paper); }
.section--dark .section-intro { color: var(--on-dark); }

.watermark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: min(760px, 110vw);
  height: auto;
  color: var(--paper);
  opacity: 0.045; /* on the whole layer, so overlapping strokes don't double up */
  pointer-events: none;
}

.why-grid {
  position: relative;
  display: grid;
  gap: 56px;
}

@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
  }
}

.principles { display: grid; gap: 40px 48px; }

@media (min-width: 640px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.principle {
  padding-top: 24px;
  border-top: 1px solid rgba(244, 246, 250, 0.16);
}
.principle h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}
.principle h3::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
}
.principle p { margin-top: 12px; color: var(--on-dark); }

/* About -------------------------------------------------------------------- */

.about-grid { display: grid; gap: 56px; }

@media (min-width: 980px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 88px;
    align-items: center;
  }
}

.prose {
  max-width: 36em;
  margin-top: 28px;
  font-size: 1.125rem;
  color: var(--text-muted);
}
.prose p + p { margin-top: 18px; }
.prose strong { font-weight: 600; color: var(--navy); }

.profile { padding: 28px; box-shadow: var(--shadow); }

.profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.profile__head strong { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.profile__head span { display: block; font-size: 0.875rem; color: var(--text-muted); }

.tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--navy);
}
.tile img { width: 100%; height: auto; }

.facts { margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt {
  padding-top: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.facts dd { margin: 0; font-weight: 500; line-height: 1.5; }

/* FAQ ---------------------------------------------------------------------- */

.faq-grid { display: grid; gap: 48px; }

@media (min-width: 980px) {
  .faq-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
  }
}

.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }

/* Plus that turns into a cross */
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 11px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 11px no-repeat;
  transition: transform 0.35s var(--ease-out), border-color 0.2s ease;
}
.faq summary:hover::after { border-color: var(--navy); }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--electric); }

.faq__body { padding-bottom: 24px; color: var(--text-muted); }

@media (min-width: 600px) {
  .faq__body { padding-right: 54px; }
}

/* Contact -------------------------------------------------------------------- */

.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(18, 41, 74, 0.14) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 45% 65% at 12% 70%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 65% at 12% 70%, #000 10%, transparent 70%);
  pointer-events: none;
}

.contact-grid { position: relative; display: grid; gap: 56px; }

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 88px;
    align-items: start;
  }
}

.next-steps__title {
  margin-top: 40px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.next-steps {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  counter-reset: next;
}
.next-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  counter-increment: next;
}
.next-steps li::before {
  content: counter(next);
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}

.form-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }

.form { display: grid; gap: 20px; }

.field-row { display: grid; gap: 20px; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 4px rgba(47, 111, 235, 0.16);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--error); }
.field ::placeholder { color: #6B778A; opacity: 1; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status:empty { display: none; }
.form-status { font-size: 0.9375rem; font-weight: 500; }
.form-status.is-error { color: var(--error); }

.form-note { font-size: 0.875rem; color: var(--text-muted); }
.form-note a {
  font-weight: 600;
  color: var(--navy);
  text-decoration-color: var(--electric);
  text-underline-offset: 3px;
}

.form-success { padding: 40px 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--white);
}
.form-success__icon svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { max-width: 30em; margin: 12px auto 0; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 64px 32px;
  background: var(--ink);
  color: var(--on-dark);
}

.footer-top { display: grid; gap: 32px; }

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 56px;
  }
}

.footer-brand img { width: auto; height: 28px; }
.footer-brand p { margin-top: 14px; font-size: 0.9375rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--paper); }

.footer-top .btn { justify-self: start; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 246, 250, 0.12);
  font-size: 0.875rem;
  color: rgba(244, 246, 250, 0.56);
}

/* --------------------------------------------------------------------------
   Simple pages (privacy, thank-you, 404)
   -------------------------------------------------------------------------- */

.page { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.page h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.035em;
}
.page .lead { margin-top: 20px; }
.page .hero-actions { margin-top: 32px; }

.legal { max-width: 44em; }
.legal h2 { margin-top: 44px; font-size: 1.375rem; letter-spacing: -0.02em; }
.legal p, .legal ul { margin-top: 12px; color: var(--text-muted); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--navy); font-weight: 600; text-decoration-color: var(--electric); text-underline-offset: 3px; }
.legal .updated { margin-top: 16px; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Motion — only for people who haven't asked to reduce it
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Page load: hero copy rises in, then the dot drops onto the headline */
  .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-visual { animation: rise 1.1s var(--ease-out) 0.2s both; }

  .hero h1 .dot {
    position: relative;
    animation: dot-drop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
  }

  .status__dot { animation: pulse 2.4s ease-out infinite; }

  /* The travelling dot: one piece of work moving through the workflow */
  .flow::after { animation: flow-token 7s var(--ease-in-out) 1.2s infinite both; }
  .flow__step:nth-child(1) .flow__icon { animation: flow-step-1 7s ease 1.2s infinite both; }
  .flow__step:nth-child(2) .flow__icon { animation: flow-step-2 7s ease 1.2s infinite both; }
  .flow__step:nth-child(3) .flow__icon { animation: flow-step-3 7s ease 1.2s infinite both; }
  .flow-check { animation: flow-done 7s ease 1.2s infinite both; }

  /* Scroll reveals (enabled by main.js) */
  .can-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .can-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

  /* Step dots fill one after another once the steps come into view */
  .can-reveal .steps .step::after { background: var(--paper); }
  .can-reveal .steps.is-visible .step::after { background: var(--electric); }
  .can-reveal .steps.is-visible .step:nth-child(1)::after { transition-delay: 0.35s; }
  .can-reveal .steps.is-visible .step:nth-child(2)::after { transition-delay: 0.6s; }
  .can-reveal .steps.is-visible .step:nth-child(3)::after { transition-delay: 0.85s; }
  .can-reveal .steps.is-visible .step:nth-child(4)::after { transition-delay: 1.1s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow::after { display: none; }
  .flow__icon {
    background: var(--electric-tint);
    border-color: rgba(47, 111, 235, 0.35);
    color: var(--electric);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes dot-drop {
  from { top: -0.9em; opacity: 0; }
  to { top: 0; opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 111, 235, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(47, 111, 235, 0); }
}

/* Row centres sit at 1/6, 3/6 and 5/6 of the list height (see .flow) */
@keyframes flow-token {
  0%, 8% { top: calc(6px + (100% - 12px) / 6 - 7px); opacity: 1; }
  30%, 42% { top: calc(6px + (100% - 12px) / 2 - 7px); }
  64%, 90% { top: calc(6px + (100% - 12px) * 5 / 6 - 7px); opacity: 1; }
  93% { top: calc(6px + (100% - 12px) * 5 / 6 - 7px); opacity: 0; }
  94%, 100% { top: calc(6px + (100% - 12px) / 6 - 7px); opacity: 0; }
}

@keyframes flow-step-1 {
  0% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
  4% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: scale(1.08); }
  8%, 90% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: none; }
  95%, 100% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
}

@keyframes flow-step-2 {
  0%, 29% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
  32% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: scale(1.08); }
  36%, 90% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: none; }
  95%, 100% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
}

@keyframes flow-step-3 {
  0%, 63% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
  66% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: scale(1.08); }
  70%, 90% { background-color: var(--electric-tint); border-color: rgba(47, 111, 235, 0.35); color: var(--electric); transform: none; }
  95%, 100% { background-color: var(--paper); border-color: var(--line); color: var(--navy); transform: none; }
}

@keyframes flow-done {
  0%, 69% { background-color: var(--paper); color: var(--navy); transform: none; }
  73% { background-color: var(--electric); color: var(--white); transform: scale(1.15); }
  77%, 90% { background-color: var(--electric); color: var(--white); transform: none; }
  95%, 100% { background-color: var(--paper); color: var(--navy); transform: none; }
}
