:root {
  --navy: #0b2f8f;
  --deep: #082050;
  --ocean: #16a7cf;
  --teal: #1eaeb8;
  --sand: #fff8e5;
  --foam: #f6fcff;
  --ink: #11213d;
  --muted: #5e6b82;
  --line: rgba(11,47,143,.16);
  --shadow: 0 26px 80px rgba(8,32,80,.16);
  --radius: 28px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(255,210,40,.22), transparent 24%),
    radial-gradient(circle at 10% 0%, rgba(22,167,207,.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--foam) 100%);
  line-height: 1.58;
}

img { max-width: 100%; display: block; }
strong { color: var(--deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

.page-shell {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero-card,
.form-card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(24px, 5vw, 54px);
  margin-bottom: 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.eyebrow {
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin: 0 0 6px;
}

.brand-line {
  color: var(--deep);
  font-weight: 850;
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .55fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

h1, h2 {
  color: var(--deep);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 0 0 18px;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

p {
  color: #30405f;
  font-size: 1.07rem;
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  color: #263959;
}

.soft-note {
  background: linear-gradient(135deg, rgba(22,167,207,.12), rgba(255,210,40,.18));
  border-left: 5px solid var(--teal);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 24px;
}

.cover-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  transform: rotate(1deg);
  box-shadow: 0 18px 48px rgba(8,32,80,.18);
}

.cover {
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(8,32,80,.2);
}

.form-card {
  padding: clamp(22px, 4.5vw, 46px);
}

.form-intro {
  max-width: 820px;
  margin-bottom: 26px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 850;
  color: var(--deep);
  margin-top: 8px;
}

.optional {
  color: var(--muted);
  font-weight: 650;
  font-size: .9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(11,47,143,.22);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea { resize: vertical; min-height: 260px; }

#newly-diagnosed-insight { min-height: 170px; }

.context-fieldset {
  border: 1px solid rgba(11,47,143,.18);
  border-radius: 20px;
  padding: 18px 18px 16px;
  margin: 10px 0 6px;
  background: rgba(246,252,255,.78);
}

.context-fieldset legend {
  font-weight: 900;
  color: var(--deep);
  padding: 0 8px;
}

.field-help {
  font-size: .96rem;
  color: var(--muted);
  margin: 0 0 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-weight: 750;
  color: #263959;
  margin: 10px 0;
}

.checkbox-option input {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--navy);
}

.checkbox-option span {
  display: block;
}


input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30,174,184,.16);
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 900;
  min-height: 54px;
  padding: 14px 24px;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 14px 32px rgba(11,47,143,.22);
}

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

.hidden-field { display: none; }

.thanks-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-card {
  max-width: 760px;
  text-align: center;
}

.thanks-mark {
  width: 94px;
  margin: 0 auto 22px;
}

@media (max-width: 820px) {
  .page-shell { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cover-card { max-width: 360px; margin: 0 auto; transform: none; }
}
