:root {
  --night: #0f2524;      /* header, hero, footer, and the root (top and bottom edges) */
  --night-2: #16312f;
  --ground: #f6f3ee;     /* content sheet */
  --card: #ffffff;
  --ink: #1c1b1a;
  --muted: #5f5b54;
  --line: #e4ded4;
  --teal: #2fa39a;
  --teal-deep: #0e5f5a;
  --coral: #e8664a;
  --sand: #f3c98b;
  --on-night: #f6f3ee;
  --on-night-muted: #b9c7c4;
  --error: #b42318;
  --error-tint: #fdf1ef;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
  overflow-x: clip;
}
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: clip;
  overflow-wrap: break-word;
}
a { color: var(--teal-deep); }
img, svg { max-width: 100%; }

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: calc(env(safe-area-inset-left) + 18px);
  padding-right: calc(env(safe-area-inset-right) + 18px);
}

/* Header */
.top { color: var(--on-night); padding-top: env(safe-area-inset-top); }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  font-weight: 800; letter-spacing: .02em; color: #fff;
}
.brand strong { display: block; font-size: 1.0625rem; line-height: 1.2; }
.brand small { display: block; font-size: .75rem; color: var(--on-night-muted); letter-spacing: .04em; text-transform: uppercase; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.tabs a {
  position: relative; padding: .55rem .8rem; border-radius: 11px;
  color: var(--on-night-muted); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.tabs a:hover { color: var(--on-night); background: rgba(255,255,255,.06); }
.tabs a[aria-current="page"] { color: var(--on-night); background: rgba(255,255,255,.1); }

/* Hero (home) and page titles (other tabs) */
.hero {
  color: var(--on-night);
  background:
    radial-gradient(40rem 22rem at 85% 10%, rgba(47,163,154,.28), transparent 70%),
    radial-gradient(28rem 18rem at 5% 90%, rgba(232,102,74,.18), transparent 70%);
  padding: 2.5rem 0 3.5rem;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; text-align: center; }
.hero h1 { font-size: min(2.5rem, 52px); line-height: 1.1; margin: .6rem auto 1rem; max-width: 18ch; }
.hero p.lead { color: var(--on-night-muted); font-size: 1.0625rem; max-width: 34rem; margin: 0 auto 1.75rem; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sand); background: rgba(243,201,139,.12); padding: .35rem .6rem; border-radius: 8px;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hero-art { max-width: 26rem; margin: 0 auto; width: 100%; }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; text-align: left; }
  .hero h1, .hero p.lead { margin-left: 0; }
  .hero .actions { justify-content: flex-start; }
}

.page-title { color: var(--on-night); text-align: center; padding: 1.75rem 0 2.75rem;
  background: radial-gradient(34rem 14rem at 50% 0%, rgba(47,163,154,.22), transparent 70%); }
.page-title h1 { font-size: min(2.125rem, 44px); line-height: 1.15; margin: .6rem 0 .5rem; }
.page-title p { color: var(--on-night-muted); max-width: 34rem; margin: 0 auto; }

/* Light sheet holding the content */
.sheet { background: var(--ground); border-radius: 22px 22px 0 0; padding: 3rem 0 3.5rem; }
.section { margin: 0 auto 3.25rem; }
.section:last-child { margin-bottom: 0; }
.section-head { text-align: center; max-width: 36rem; margin: 0 auto 1.75rem; }
.section-head h2 { font-size: min(1.75rem, 36px); line-height: 1.2; margin: .5rem 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem; box-shadow: 0 1px 2px rgba(15,37,36,.04), 0 8px 24px rgba(15,37,36,.05);
}
.card h3 { font-size: 1.125rem; margin: .9rem 0 .35rem; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); margin: .75rem 0 0; padding-left: 1.1rem; }
.card li { margin: .25rem 0; }
.icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: rgba(47,163,154,.12); color: var(--teal-deep);
}
.icon.coral { background: rgba(232,102,74,.12); color: #b8432b; }
.icon.sand { background: rgba(243,201,139,.3); color: #8a5a12; }
.icon svg { width: 1.6rem; height: 1.6rem; }

.steps { counter-reset: s; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 11px;
  background: var(--night); color: var(--on-night); font-weight: 800;
}

.band {
  display: grid; gap: 2rem; align-items: center; text-align: center;
  background: var(--night); color: var(--on-night); border-radius: 18px; padding: 2rem 1.5rem;
  background-image: radial-gradient(24rem 14rem at 100% 0%, rgba(47,163,154,.3), transparent 70%);
}
.band h2 { font-size: min(1.625rem, 34px); line-height: 1.2; margin: .4rem 0 .6rem; }
.band p { color: var(--on-night-muted); margin: 0 0 1.25rem; }
.band .kicker { color: var(--sand); }
.band-art { max-width: 17rem; margin: 0 auto; width: 100%; }
@media (min-width: 52rem) {
  .band { grid-template-columns: 1.3fr .7fr; text-align: left; padding: 2.5rem 2.75rem; }
  .band .actions { justify-content: flex-start; }
}

.narrow { max-width: 40rem; margin-left: auto; margin-right: auto; }
.prose h2 { font-size: min(1.375rem, 30px); margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1.0625rem; margin: 1.5rem 0 .25rem; }
.prose p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.3rem; border: 0; border-radius: 16px;
  background: var(--coral); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn.dark { background: var(--night); color: var(--on-night); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; }
.btn:focus-visible, .tabs a:focus-visible, .brand:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

/* Form */
label.field { display: block; margin: 0 0 1rem; font-weight: 600; }
label.field input {
  display: block; width: 100%; box-sizing: border-box; margin-top: .35rem;
  min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400;
}
label.field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  padding: .9rem; border-radius: 12px; background: var(--ground);
  font-size: .9375rem; line-height: 1.45;
}
.consent input { width: 1.375rem; height: 1.375rem; margin: .1rem 0 0; accent-color: var(--teal-deep); }
.consent input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent.invalid { box-shadow: 0 0 0 2px var(--error); background: var(--error-tint); }
.consent.invalid input { outline: none; }
.consent-error { display: none; color: var(--error); font-weight: 600; font-size: .9375rem; margin: .5rem 0 0; }
.consent.invalid + .consent-error { display: block; }
.form-error { color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.done { display: none; text-align: center; }
.done.show { display: block; }
.done .icon { margin: 0 auto; }

.bubble {
  background: #e9e9eb; color: #111; border-radius: 18px 18px 18px 6px;
  padding: .75rem .9rem; font-size: .9375rem; line-height: 1.4; max-width: 22rem;
}
.split { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }

/* Footer */
.foot { color: var(--on-night-muted); padding: 2.5rem 0 calc(env(safe-area-inset-bottom) + 28px); font-size: .9375rem; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.foot h4 { color: var(--on-night); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .5rem; }
.foot a { color: var(--on-night-muted); text-decoration: none; display: inline-block; padding: .35rem 0; }
.foot a:hover { color: var(--on-night); }
.foot .brand { margin-bottom: .75rem; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .8125rem; }

/* Quote form: textarea and the multi-choice picker (settings-row style) */
label.field textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: .35rem; min-height: 7rem;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 400; resize: vertical;
}
label.field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.picker-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  width: 100%; min-height: 52px; margin-top: .35rem; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.picker-row:hover { background: #fbfaf7; }
.picker-row:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.picker-label { font-weight: 700; font-size: .9375rem; }
.picker-sum { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .875rem; }
.picker-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.25); }
.picker-backdrop button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.picker-backdrop[hidden], .picker-panel[hidden] { display: none; }
.picker-panel {
  position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(19rem, calc(100vw - 2.5rem)); max-height: calc(100dvh - 4rem); overflow-y: auto;
  border-radius: 18px; background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(6,14,32,.35); outline: none;
}
.picker-panel [role=option] {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 0; border-bottom: 1px solid rgba(228,222,212,.7); background: transparent;
  color: var(--ink); font: inherit; font-size: .9375rem; text-align: left; cursor: pointer;
}
.picker-panel [role=option] svg { flex: none; color: transparent; }
.picker-panel [role=option][aria-selected=true] { font-weight: 700; }
.picker-panel [role=option][aria-selected=true] svg { color: var(--teal-deep); }
.picker-panel [role=option]:hover { background: rgba(15,37,36,.05); }
.picker-done {
  width: 100%; min-height: 48px; border: 0; background: rgba(15,37,36,.05); color: var(--night);
  font: inherit; font-size: .8125rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.btn { max-width: 100%; box-sizing: border-box; padding-top: .6rem; padding-bottom: .6rem; text-align: center; overflow-wrap: anywhere; }

/* Two separate opt-ins (marketing vs quote/booking), as carriers require */
.consents { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.consents legend { font-weight: 600; padding: 0; margin-bottom: .6rem; }
.consents.invalid .consent { box-shadow: 0 0 0 2px var(--error); background: var(--error-tint); }
.consents.invalid .consent input { outline: none; }
.consents.invalid + .consent-error { display: block; }
.consent-links { margin: 0; font-size: .875rem; color: var(--muted); }
