/*
  Landing variant B — one stylesheet, brand manual palette.

  Colour roles (Pantone → screen):
  - 563C teal  #6bbbae: the main colour. Fills, borders, the strip dots. It
    reaches only 2.25:1 on white, so it never carries text on white; slate text
    on a teal fill reaches 3.45:1, which is used only for large text (≥ 24 px,
    or ≥ 20 px bold).
  - 710C red   #e04e5a: buttons and calls to action only. White on it reaches
    3.88:1, which passes AA for large text, so every button label is set at
    --step-2 (20 px) bold. No darker shade was needed.
  - 7545C slate #425563: text only (7.75:1 on white, 6.6:1 on the teal tints).
  - A's navy #18324a: the hero background only (--hero-bg), white and teal
    text on it.
  - White and light tints of 563C for surfaces.

  Type: Mosk for every heading (role tiles and FAQ questions included), Open
  Sans for body. Five fixed steps; the smallest is 16 px so form text never
  triggers zoom on phones.

  Fonts are self-hosted: the CSP allows no third-party origins.
*/

@font-face {
  font-family: "Mosk";
  src: url("../fonts/mosk-medium.woff2") format("woff2"),
       url("../fonts/mosk-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mosk";
  src: url("../fonts/mosk-semibold.woff2") format("woff2"),
       url("../fonts/mosk-semibold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-regular.woff2") format("woff2"),
       url("../fonts/opensans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-semibold.woff2") format("woff2"),
       url("../fonts/opensans-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-bold.woff2") format("woff2"),
       url("../fonts/opensans-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --teal: #6bbbae;
  --red: #e04e5a;
  --slate: #425563;
  --white: #ffffff;
  /* Light tints of 563C for surfaces. */
  --teal-wash: #f0f8f6;
  --teal-soft: #e1f1ee;
  /*
    The hero tone, in one place: A's navy, by the owner's choice (2026-10-16),
    so both variants open on the same colour. White on it is 13.17:1, teal
    5.86:1, and the red button's edge 3.39:1.
  */
  --hero-bg: #18324a;

  --heading: "Mosk", "Open Sans", sans-serif;
  --body: "Open Sans", sans-serif;

  /* The whole type scale. Nothing else sets a font-size. */
  --step-1: 1rem;
  --step-2: 1.25rem;
  --step-3: 1.5625rem;
  --step-4: 2rem;
  --step-5: 2.75rem;
  /*
    Buttons only: 19 px bold, the smallest size that is still large text, so
    white on red (3.88:1) passes AA.
  */
  --step-button: 1.1875rem;
  /* One display size, for the hero headline on screens ≥ 1024 px only. */
  --step-display: 3.5rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  /* The one vertical padding every section uses. */
  --section: 3rem;

  --radius: 0.75rem;
  --shell: 70rem;
  --gutter: 1rem;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--slate);
  font-family: var(--body);
  font-size: var(--step-1);
  line-height: 1.55;
}

h1,
h2,
.faq__item summary {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Balanced lines, so the headline never ends on a single orphan word. */
h1 { margin: 0; font-size: var(--step-5); text-wrap: balance; }
h2 { margin: 0; font-size: var(--step-4); }
p { margin: 0; }
a { color: inherit; }

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

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 20;
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  border: 2px solid var(--slate);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus { top: var(--space-2); }

/* Buttons: the only place 710C appears. Labels are large bold text (19 px)
   so white on red clears AA (3.88:1 ≥ 3:1); at least 44 px tall to tap. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-family: var(--body);
  font-size: var(--step-button);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); }

/* A's button glow, mirrored on every primary button, in B's red. */
.button.primary { box-shadow: 0 8px 20px rgba(224, 78, 90, 0.28); }
.button.primary:hover { box-shadow: 0 12px 26px rgba(224, 78, 90, 0.36); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: progress; opacity: 0.7; }

/*
  Hero: the first thing on the page, one flat full-bleed block in --hero-bg
  with the logo at the top. Text is centred and white (13.17:1 on navy). The
  button keeps its white 20 px bold label on red (3.88:1). Focus rings turn
  white here: the slate ring used elsewhere would vanish on navy.
*/
/*
  Compact on phones, so the next section shows on the first screen. The glow
  is A's two navy glows, copied exactly (components.css): the hero's, top
  left, and the figures band's, top right, since B's figures live in the hero.
  Over the brightest point white still reads 9.38:1.
*/
.hero {
  padding: var(--space-4) 0 var(--space-5);
  background:
    radial-gradient(circle at 8% 12%, rgba(93, 190, 180, 0.18) 0, transparent 46%),
    radial-gradient(circle at 92% 10%, rgba(93, 190, 180, 0.16) 0, transparent 44%),
    var(--hero-bg);
  color: var(--white);
}

.hero :focus-visible { outline-color: var(--white); }

/* One logo size everywhere on B: 40 px tall, the same in the footer. */
.hero__logo,
.site-footer__inner img {
  width: auto;
  height: 2.5rem;
}

.hero__logo { margin: 0 auto var(--space-3); }

.hero__copy {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.lead {
  margin-top: var(--space-2);
  font-size: var(--step-2);
  line-height: 1.4;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}

/*
  The approved figures: three equal columns, teal numbers (5.86:1 on navy)
  centred over light uppercase white labels.
*/
.hero__figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 24rem;
  margin: var(--space-3) auto 0;
  padding: 0;
  list-style: none;
}

.figure {
  display: grid;
  justify-items: center;
  text-align: center;
}

.figure__value {
  font-family: var(--heading);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  color: var(--teal);
}

/* White at 85 %: numbers lead, labels stay readable (9.9:1 on navy). */
.figure__label {
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Sections */
.section { padding: var(--section) 0; }
.section--soft { background: var(--teal-wash); }

.section__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

/* Form: centred column, the same measure as the FAQ. */
.form-shell,
.faq-shell { max-width: 50rem; }

.form-card {
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius);
  background: var(--white);
}

.req {
  font-weight: 700;
  text-decoration: none;
  border: 0;
}

.label-text {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 700;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend { padding: 0; }

.role-field,
.profile-choice,
.profile-field { margin-top: var(--space-2); }

.role-chips,
.profile-choice__options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--space-1);
}

.role-chip,
.profile-choice__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid var(--teal-soft);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  line-height: 1.3;
}

.role-chip:has(input:checked),
.profile-choice__option:has(input:checked) {
  border-color: var(--slate);
  background: var(--teal-soft);
  font-weight: 700;
}

input[type="radio"],
input[type="checkbox"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--slate);
}

.form-grid {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.form-grid label,
.profile-field { display: block; }

input:not([type="radio"]):not([type="checkbox"]),
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--teal-soft);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
  font: inherit;
  font-size: var(--step-1);
}

input:not([type="radio"]):not([type="checkbox"]):hover,
select:hover { border-color: var(--teal); }

input:not([type="radio"]):not([type="checkbox"]):focus-visible,
select:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 1px;
  border-color: var(--slate);
}

/* Errors stay in slate: red is reserved for buttons. A thick border and bold
   text carry the state, and the summary is announced by role="alert". */
[aria-invalid="true"] { border-color: var(--slate) !important; border-width: 3px !important; }

.field-error {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.field-error:empty { display: none; }

.error-summary {
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border: 3px solid var(--slate);
  border-radius: var(--radius);
  background: var(--teal-wash);
  font-weight: 700;
}

.error-summary ul { margin: var(--space-1) 0 0; padding-left: 1.25rem; font-weight: 400; }

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: var(--space-3);
  cursor: pointer;
}

.check input { margin-top: 0.15rem; }
.check a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-note {
  margin-top: var(--space-2);
  text-align: center;
}

.success,
.review-line {
  margin-top: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--teal-soft);
  font-weight: 700;
}

/* FAQ */
.faq__item { border-bottom: 2px solid var(--teal-soft); }

.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  min-height: 3.5rem;
  padding: var(--space-2) 0;
  font-size: var(--step-2);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

/* A plain slate sign, no badge. */
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 1.5rem;
  font-family: var(--body);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease;
}

/* Open turns the plus into a cross. */
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p { padding: 0 0 var(--space-2); }

/* Footer */
.site-footer {
  padding: var(--space-4) 0;
  background: var(--teal-wash);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  text-align: center;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
}

.site-footer__legal a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Short phones: tighter hero, so the tiles still peek into the first screen. */
@media (max-height: 43.75rem) {
  .hero { padding: var(--space-3) 0 var(--space-4); }
}

/* The smallest phones: one step down keeps the headline on three lines. */
@media (max-width: 22.4rem) {
  h1 { font-size: var(--step-4); }
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }

  .hero { padding: var(--section) 0; }
  .figure__value { font-size: var(--step-4); }

  .form-card { padding: var(--space-4); }
  .form-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}

/*
  Desktop (≥ 1024 px): a confident opening and a wider page. The hero grows
  its padding, headline (the one display size) and figures; the form card and FAQ share a centred 44rem column. Phones are untouched.
*/
@media (min-width: 64rem) {
  .hero { padding: 5rem 0 5.5rem; }
  .hero__copy { max-width: 48rem; }
  .hero__logo { margin-bottom: var(--space-4); }
  h1 { font-size: var(--step-display); }
  .lead { margin-top: var(--space-3); }
  .hero__actions { margin-top: var(--space-4); }
  .hero__figures { max-width: 36rem; column-gap: var(--space-4); margin-top: var(--space-4); }
  .figure__value { font-size: var(--step-5); }

  .figure__label { font-size: var(--step-2); }
  /* 48rem minus the 2rem gutters: a 44rem form card and FAQ. */
  .form-shell,
  .faq-shell { max-width: 48rem; }
}

/* Shorter desktop screens: a little less hero padding, so the next section shows. */
@media (min-width: 64rem) and (max-height: 50rem) {
  .hero { padding: 3.5rem 0 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .faq__item summary::after { transition: none; }
  .button:hover { transform: none; }
}
