/* =========================================================
   TideSafe website styles
   Colors and fonts match the TideSafe flyer.
   ========================================================= */

:root {
  --navy-950: #0b1d36;
  --navy-900: #13294b;
  --navy-800: #1c3a63;
  --teal: #0e7c96;
  --teal-dark: #0a6378;
  --teal-light: #8fc3d3;
  --brand-navy: #01254b;
  --brand-teal: #027c99;
  --alert: #c9362f;
  --ink: #1b2b3f;
  --mist: #4f6276;
  --bg-50: #f6fafc;
  --bg-100: #eaf3f8;
  --bg-200: #d9e8f0;
  --line: rgba(19, 41, 75, 0.12);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 56rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--navy-900); }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.eyebrow--light { color: var(--teal-light); }
.eyebrow--dark { color: var(--navy-900); }
.kicker { font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.muted-light { color: var(--bg-200); }
.fine { margin-top: 0.75rem; font-size: 0.75rem; color: var(--mist); }
.section-lede { margin-top: 1rem; max-width: 42rem; font-size: 1.125rem; color: var(--mist); }
.h2-dark { color: var(--navy-900); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease), filter 160ms var(--ease);
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; box-shadow: 0 10px 24px -10px rgba(14, 124, 150, 0.45); }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: rgba(255,255,255,0.85); color: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(19,41,75,0.2); }
.btn-outline:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(19,41,75,0.4); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark { width: 53px; height: 32px; }
.logo-word { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.logo--light .logo-mark { color: var(--brand-navy); }
.logo--light .logo-word span:first-child { color: var(--brand-navy); }
.logo--light .logo-word span:last-child { color: var(--brand-teal); }
.logo--dark .logo-mark { color: #f2f6f7; }
.logo--dark .logo-word span:first-child { color: #f2f6f7; }
.logo--dark .logo-word span:last-child { color: #2dc2cf; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 4rem;
  background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.header-nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: rgba(19,41,75,0.8); }
.header-nav a:hover { color: var(--navy-900); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: none; font-size: 0.875rem; font-weight: 600; color: var(--navy-900); }
.header-phone:hover { color: var(--teal); }
@media (min-width: 640px) { .header-phone { display: block; } }
@media (min-width: 768px) { .header-nav { display: flex; } }
@media (max-width: 420px) { .header-actions .btn-sm { padding: 0.55rem 0.8rem; font-size: 0.8rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 4rem; background: linear-gradient(to bottom, var(--bg-50), #fff 50%, var(--bg-100)); }
.hero-photo { display: none; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%); mask-image: linear-gradient(to right, transparent 0%, #000 38%); }
.hero-inner { padding-top: 3rem; padding-bottom: 3.5rem; }
.hero-copy { max-width: 36rem; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.015em; }
.hero-rule { margin-top: 1.5rem; height: 1px; max-width: 28rem; background: linear-gradient(to right, rgba(19,41,75,0.3), transparent); }
.hero .kicker { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--mist); }
.hero-lede { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.65; }
.hero-photo-mobile { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.hero-photo-mobile img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .hero-inner { padding-top: 5rem; } .hero .kicker { font-size: 1rem; } }
@media (min-width: 1024px) {
  .hero-photo { display: block; }
  .hero-photo-mobile { display: none; }
  .hero-inner { padding-bottom: 5rem; }
}

.tide-panel {
  margin-top: 3rem; padding: 1.25rem; border-radius: var(--radius);
  background: var(--navy-900); color: var(--bg-50); box-shadow: 0 20px 40px -20px rgba(19,41,75,0.45);
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 640px) { .tide-panel { padding: 1.75rem; } }
@media (min-width: 1024px) { .tide-panel { margin-top: 4rem; flex-direction: row; align-items: center; justify-content: space-between; } }
.countdown { display: flex; gap: 0.5rem; }
.countdown > div { width: 4rem; padding: 0.75rem 0; text-align: center; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.countdown span { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 0.25rem; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(217,232,240,0.8); }
@media (min-width: 640px) { .countdown { gap: 0.75rem; } .countdown > div { width: 5rem; } .countdown span { font-size: 2.25rem; } }
.tide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,0.1); }
@media (min-width: 640px) { .tide-grid { grid-template-columns: repeat(4, 1fr); } }
.tide-grid > div { padding: 0.75rem 1rem; background: rgba(11,29,54,0.6); }
.tide-grid > div.is-peak { background: rgba(201,54,47,0.25); }
.tide-grid b { display: block; font-size: 0.75rem; font-weight: 600; color: var(--bg-200); }
.tide-grid strong { display: block; margin-top: 0.25rem; font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.tide-grid small { display: block; font-size: 0.7rem; line-height: 1.35; color: rgba(217,232,240,0.8); }

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section--tight { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } .section--tight { padding: 5rem 0; } }
.section--tint { background: var(--bg-50); }
.section--white { background: #fff; }
.section--blue { background: var(--bg-100); }
.section--navy { background: var(--navy-900); color: var(--bg-50); }
.section--navy h2 { color: #fff; }
.section--deep { background: var(--navy-950); color: var(--bg-50); }
.section--deep h2 { color: #fff; }
.section--rule { border-top: 1px solid var(--line); }
.section--sources { padding: 4rem 0; background: var(--bg-100); border-top: 1px solid var(--line); }

/* ---------- tide slider ---------- */
.slider-card { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 40px -24px rgba(19,41,75,0.35); outline: 1px solid var(--line); }
.slider-bar { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; background: var(--navy-900); color: #fff; }
.slider-bar h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.slider-bar p { font-size: 0.875rem; line-height: 1.4; color: var(--bg-200); }
@media (min-width: 640px) {
  .slider-bar { flex-direction: row; align-items: center; gap: 1.5rem; padding: 1.25rem 2rem; }
  .slider-bar p { max-width: 20rem; padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,0.3); }
}
.slider-body { display: grid; gap: 2rem; padding: 1.25rem; }
@media (min-width: 640px) { .slider-body { padding: 2rem; } }
@media (min-width: 1024px) { .slider-body { grid-template-columns: 17rem 1fr; } }
.tide-legend { order: 2; display: grid; gap: 1.5rem; }
.slider-main { order: 1; }
@media (min-width: 1024px) { .tide-legend { order: 1; align-content: start; padding-top: 0.5rem; } .slider-main { order: 2; } }
.tide-legend li { opacity: 0.55; transition: opacity 300ms var(--ease); }
.tide-legend li.is-active { opacity: 1; }
.legend-line { display: flex; align-items: center; gap: 0.75rem; }
.legend-line .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent); }
.legend-line .dash { flex: 1; border-top: 2px dashed var(--c); }
.legend-title { margin-top: 0.5rem; font-family: var(--serif); font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--c); }
.legend-title span { display: block; }
.legend-note { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.4; color: var(--mist); }

.slider-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--navy-900); }
.slider-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms ease; }
.slider-frame img.is-shown { opacity: 1; }
.slider-label { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(11,29,54,0.85); color: #fff; font-size: 0.875rem; font-weight: 600; }
@media (min-width: 640px) { .slider-label { left: 1rem; top: 1rem; } }

#tide-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.5rem; margin-top: 1.25rem; background: transparent; cursor: pointer; }
#tide-range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, #13294b, #0e7c96 60%, #c9362f); }
#tide-range::-moz-range-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, #13294b, #0e7c96 60%, #c9362f); }
#tide-range::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-900); box-shadow: 0 2px 8px rgba(11,29,54,0.25); }
#tide-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-900); box-shadow: 0 2px 8px rgba(11,29,54,0.25); }
.slider-ticks { display: flex; justify-content: space-between; margin-top: 0.25rem; }
.slider-ticks button { padding: 0.25rem; border: 0; background: none; cursor: pointer; font-size: 0.75rem; font-weight: 500; color: var(--mist); border-radius: 4px; }
.slider-ticks button:hover { color: var(--navy-900); }
.slider-ticks button.is-active { font-weight: 700; color: var(--navy-900); }
.slider-ticks button.is-alert { color: var(--alert); }
@media (min-width: 640px) { .slider-ticks button { font-size: 0.875rem; } }
.slider-note { margin-top: 1.25rem; min-height: 3.5rem; font-size: 1.125rem; line-height: 1.6; }

.callout { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-100); outline: 1px solid var(--line); }
.callout p { max-width: 42rem; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.3; color: var(--navy-900); }
@media (min-width: 640px) { .callout { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem; } }

/* ---------- video ---------- */
.video-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .video-grid { grid-template-columns: 2fr 3fr; } }
.video-grid h2 { font-size: clamp(1.9rem, 3vw, 2.25rem); }
.video-grid .muted-light { margin-top: 1rem; }
.video-alt { margin-top: 1rem; font-size: 0.875rem; }
.video-alt a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 4px; }
.video-alt a:hover { color: #fff; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 200ms ease; }
.video-poster:hover img { opacity: 0.9; }
.video-poster .play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 50%; background: rgba(255,255,255,0.95); transform: translate(-50%, -50%); box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5); transition: transform 160ms var(--ease); }
.video-poster:hover .play { transform: translate(-50%, -50%) scale(1.05); }

/* ---------- story ---------- */
.story { margin-top: 1.25rem; padding-left: 1.25rem; border-left: 4px solid var(--navy-900); }
@media (min-width: 640px) { .story { padding-left: 2rem; } }
.story h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.3; }
.story p { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.65; }
.story h2 + p { margin-top: 1.5rem; }
.story .signoff { margin-top: 2rem; font-style: italic; color: var(--navy-900); }

/* ---------- assessments ---------- */
.title-rule { display: flex; align-items: center; gap: 1.5rem; }
.title-rule span { display: none; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--teal-light), transparent); }
@media (min-width: 640px) { .title-rule h2 { flex-shrink: 0; } .title-rule span { display: block; } }
.plans { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius); background: #fff; border-top: 8px solid var(--c); box-shadow: 0 16px 32px -20px rgba(19,41,75,0.25); outline: 1px solid var(--line); }
@media (min-width: 640px) { .plan { padding: 2.25rem; } }
.plan h3 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price { margin-top: 0.75rem; font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--c); }
.checks { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.checks li { display: flex; gap: 0.75rem; }
.checks svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--c); }
.best { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; line-height: 1.6; color: var(--mist); }
.plan .btn { margin-top: auto; background: var(--c); }
.plan .best + .btn { margin-top: 1.75rem; }
.plan .btn:hover { background: var(--c); filter: brightness(1.12); }

/* ---------- how it works ---------- */
.h2-dark { margin-top: 0; max-width: 36rem; }
.steps { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding-top: 1.5rem; border-top: 1px solid rgba(19,41,75,0.15); }
.steps span { font-family: var(--serif); font-size: 2.25rem; font-weight: 700; color: var(--teal); }
.steps h3 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; }
.steps p { margin-top: 0.5rem; line-height: 1.65; color: var(--mist); }

/* ---------- contact band + flyer ---------- */
.band-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .band-grid { grid-template-columns: 1fr auto; align-items: center; } }
.band { display: flex; flex-direction: column; gap: 2rem; padding: 1.75rem; border-radius: var(--radius); background: var(--navy-900); color: #fff; box-shadow: 0 20px 40px -20px rgba(19,41,75,0.45); }
@media (min-width: 640px) { .band { padding: 2.5rem; } }
.band-top { display: flex; align-items: flex-start; gap: 1.25rem; }
.band-icon { display: none; flex-shrink: 0; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); }
@media (min-width: 640px) { .band-icon { display: flex; } }
.band-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.band-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--teal-light); }
.band-link:hover { color: #fff; }
.band-contacts { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); }
@media (min-width: 640px) { .band-contacts { flex-direction: row; flex-wrap: wrap; gap: 2rem; } }
.band-contacts a, .band-contacts span { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.band-contacts svg { flex-shrink: 0; color: var(--teal-light); }
.band-contacts a:hover { color: var(--teal-light); }

.flyer-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: #fff; box-shadow: 0 16px 32px -20px rgba(19,41,75,0.25); outline: 1px solid var(--line); transition: outline-color 160ms ease; }
.flyer-card:hover { outline-color: rgba(19,41,75,0.3); }
@media (min-width: 1024px) { .flyer-card { width: 25rem; } }
.flyer-card img { width: 6rem; flex-shrink: 0; border-radius: 6px; box-shadow: 0 4px 12px rgba(19,41,75,0.2); }
@media (min-width: 1024px) { .flyer-card img { width: 8rem; } }
.flyer-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }
.flyer-meta { margin-top: 0.25rem; font-size: 0.875rem; color: var(--mist); }
.flyer-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--teal); }
.flyer-card:hover .flyer-link { color: var(--teal-dark); }

/* ---------- request form ---------- */
.form-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .form-grid { grid-template-columns: 2fr 3fr; gap: 4rem; } }
.form-grid h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.form-grid .lede { margin-top: 1.25rem; font-size: 1.125rem; }
.contact-list { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.contact-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-light); }
.contact-list dd { margin-top: 0.25rem; font-size: 1.25rem; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.form-card { padding: 1.5rem; border-radius: 24px; background: var(--bg-50); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
.form { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 0.4rem; padding: 0; font-size: 0.875rem; font-weight: 500; color: var(--navy-900); }
.optional { font-weight: 400; color: var(--mist); }
.field input, .field select, .field textarea { width: 100%; padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid rgba(19,41,75,0.15); background: #fff; color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input::placeholder, .field textarea::placeholder { color: rgba(79,98,118,0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(28,58,99,0.18); }
.pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.pills label { display: inline-flex; align-items: center; margin: 0; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgba(19,41,75,0.15); background: #fff; font-size: 0.875rem; font-weight: 400; cursor: pointer; }
.pills label { position: relative; }
.pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.pills label:has(input:checked) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pills label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { display: none; }
.form .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-error { margin-top: 0.75rem; font-size: 0.875rem; color: var(--alert); }
.form-error a { text-decoration: underline; }
.form-fine { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--mist); }
.form-sent { padding: 2.5rem 0; text-align: center; }
.sent-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--navy-900); }
.form-sent h3 { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.9rem; }
.form-sent p { max-width: 24rem; margin: 0.75rem auto 0; color: var(--mist); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(19,41,75,0.15); font-size: 1.25rem; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.25rem 0; line-height: 1.65; color: var(--mist); }

/* ---------- sources ---------- */
.sources { display: grid; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.875rem; }
.sources a { color: var(--navy-800); text-decoration: underline; text-decoration-color: rgba(28,58,99,0.3); text-underline-offset: 4px; }
.sources a:hover { text-decoration-color: var(--navy-800); }
.section--sources .fine { margin-top: 1.5rem; line-height: 1.6; }

/* ---------- footer ---------- */
.site-footer { padding: 3.5rem 0 7rem; background: var(--navy-950); color: var(--bg-200); }
@media (min-width: 768px) { .site-footer { padding-bottom: 3.5rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-about { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.6; color: rgba(217,232,240,0.8); }
.footer-grid p, .footer-links { font-size: 0.875rem; line-height: 1.6; }
.footer-links { display: grid; gap: 0.25rem; }
.footer-links a:hover { color: #fff; }
.footer-links .underline { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }
.footer-cta { margin-top: 1.25rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: rgba(217,232,240,0.6); }

/* ---------- phone sticky buttons ---------- */
.mobile-cta { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; gap: 0.5rem; padding: 0.75rem; padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); background: rgba(11,29,54,0.95); border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-cta .btn { flex: 2; padding: 0.75rem; font-size: 0.875rem; }
.mobile-cta .btn-ghost { flex: 1; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ---------- three assessment cards ---------- */
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) and (max-width: 1199px) { .plan { padding: 1.75rem; } }
.plan h3 { line-height: 1.4; }
.plan-for { margin-top: 0.5rem; font-family: var(--serif); font-style: italic; font-size: 0.95rem; line-height: 1.5; color: var(--mist); }
@media (min-width: 1024px) { .plan h3 { min-height: 4.1em; } .plan-for { min-height: 3em; } }

/* ---------- request form: centered, no inner scroll ---------- */
.request { display: flex; flex-direction: column; align-items: center; text-align: center; }
.request-intro { max-width: 40rem; }
.request-intro .lede { margin-top: 1.25rem; font-size: 1.125rem; }
.request h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.form-embed { width: 100%; max-width: 640px; margin-top: 2.5rem; border-radius: 12px; overflow: hidden; background: #fff; }
/* Heights are set taller than the Google Form at each width so it never scrolls inside the frame */
.form-embed iframe { display: block; width: 100%; height: 1500px; border: 0; }
@media (max-width: 680px) { .form-embed iframe { height: 1650px; } }
@media (max-width: 380px) { .form-embed iframe { height: 1720px; } }
.request .contact-list { grid-template-columns: auto auto; justify-content: center; column-gap: 3rem; margin-top: 2.5rem; }
@media (max-width: 480px) { .request .contact-list { grid-template-columns: 1fr; } }
