/* Reset, typography, layout primitives, buttons, forms */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--color-cloud-canvas);
  color: var(--color-edge-navy);
  font-family: var(--font-rubik);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: 400;
  font-feature-settings: 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main, .footer { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.banner :focus-visible,
.nav :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

::selection { background: var(--color-edge-navy); color: #fff; }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-white-surface);
  color: var(--color-edge-navy);
  border-radius: var(--radius-buttons);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

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

.section { padding-block: var(--spacing-80); position: relative; }
.section--tight { padding-block: var(--spacing-38); }
@media (max-width: 760px) {
  .section { padding-block: 56px; }
}

.section-head { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 15px; }

/* Type */
.t-hero {
  font-size: var(--text-hero-display);
  line-height: var(--leading-hero-display);
  font-weight: 700;
  letter-spacing: 0;
}
.t-h2 {
  font-size: var(--text-section-heading);
  line-height: var(--leading-section-heading);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}
.t-promo {
  font-size: var(--text-promo-heading);
  line-height: var(--leading-promo-heading);
  font-weight: 700;
  text-wrap: balance;
}
.t-card { font-size: var(--text-card-title); line-height: var(--leading-card-title); font-weight: 700; }
.t-lead { font-size: 24px; line-height: 38px; font-weight: 400; text-wrap: pretty; }
.t-body { font-size: var(--text-body); line-height: 1.5; }
.t-caption { font-size: var(--text-caption); line-height: var(--leading-caption); }
.t-eyebrow {
  display: inline-block;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--color-orange-text);
}
@media (max-width: 760px) {
  .t-lead { font-size: 19px; line-height: 30px; }
}

/* Buttons */
.btn {
  --btn-pad-y: 10px;
  --btn-pad-x: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius-buttons);
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--coral {
  /* Reference spec: white Rubik 500 on the coral gradient (~2.1-2.8:1). One-token fix: set --color-on-coral to #3b1304 (>= 7:1). */
  color: var(--color-on-coral);
  background: var(--gradient-coral-launch);
}
.btn--coral:hover { box-shadow: 0 8px 22px -6px rgba(255, 122, 83, .65); filter: saturate(1.08); }

.btn--outline-light {
  color: #fff;
  background: transparent;
  border-color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

.btn--outline-navy {
  color: var(--color-edge-navy);
  background: transparent;
  border-color: var(--color-edge-navy);
}
.btn--outline-navy:hover { background: var(--color-edge-navy); color: #fff; }

.btn--navy {
  color: #fff;
  background: var(--color-edge-navy);
}
.btn--navy:hover { background: var(--color-launch-bay); }

.btn--xl {
  --btn-pad-y: 17px;
  --btn-pad-x: 26px;
  font-size: 20px;
  line-height: 24px;
}
.btn .icon { width: 1.1em; height: 1.1em; flex: none; }

/* Icons from the inline sprite */
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Chips and badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-pills);
  background: var(--color-ice-surface);
  border: 1px solid var(--color-mist-divider);
  color: var(--color-edge-navy);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  white-space: nowrap;
}
.chip--navy { background: var(--color-edge-navy); border-color: var(--color-edge-navy); color: #fff; }
.chip--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.chip--orange { background: #fff4ea; border-color: #ffd2a8; color: var(--color-orange-text); }

/* Forms */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 14px; line-height: 22px; font-weight: 500; }
.select, .input {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 9px 38px 9px 14px;
  background: var(--color-white-surface);
  color: var(--color-edge-navy);
  border: 1px solid var(--color-mist-divider);
  border-radius: var(--radius-buttons);
  font-size: 16px;
  line-height: 24px;
}
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23183d6d' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.select:hover, .input:hover { border-color: var(--color-signal-blue); }

/* Reveal on scroll (progressive enhancement; content is visible without JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
