/* ==========================================================================
   Rise Transition — styles
   Mobile-first. Base text 18px+ (fluid up to ~20px), line-height 1.6.
   Colours checked for WCAG 2.2 AA (most pairs reach AAA).
   ========================================================================== */

:root {
  /* Palette */
  --paper: #fbf7f1;          /* warm off-white background */
  --paper-deep: #f4ede2;     /* alternate section background */
  --ink: #1d2427;            /* body text — 15.6:1 on paper */
  --ink-soft: #3d4a4f;       /* secondary text — 8.9:1 on paper */
  --teal: #0e4b57;           /* deep accent — 9.9:1 on paper */
  --teal-dark: #093640;
  --teal-tint: #e2eeee;
  --peach: #f7dcc4;          /* soft secondary */
  --peach-soft: #fbeadb;
  --sun: #e39b4b;            /* decorative only, never for text */
  --line: #d9cfc1;
  --line-strong: #7a6e60;    /* form borders — 4.6:1 on white (non-text 3:1 ✓) */
  --white: #ffffff;
  --error: #a3271c;          /* 6.9:1 on white */
  --error-bg: #fdeceb;
  --success: #1f6b3a;

  /* Type */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --step-0: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);   /* 18 → 20px */
  --step-1: clamp(1.3rem, 1.2rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.1rem);

  /* Space & shape */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 5vw, 7rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(29, 36, 39, 0.06), 0 8px 24px rgba(29, 36, 39, 0.07);
  --measure: 66ch;
  --wrap: 72rem;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--teal);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%; /* respect the user's browser setting */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p, ul, ol, dl { margin: 0 0 var(--space-2); }
p { max-width: var(--measure); text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.4em; }
strong { font-weight: 700; }

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--teal-dark); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--peach); color: var(--ink); }

.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;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.narrow { max-width: 48rem; }
.section { padding-block: var(--space-6); }
.section--tint { background: var(--paper-deep); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal a { color: var(--white); }
.section-intro { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; max-width: 40ch; }
.section-intro--wide { max-width: 52ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-1);
}
.section--teal .eyebrow { color: var(--peach); }
.center { text-align: center; }
.center p, .center .section-intro { margin-inline: auto; }

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 62rem) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3.25rem;      /* 52px */
  min-width: 3rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--ghost:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--teal-dark); }
.btn--light:hover { background: var(--peach-soft); border-color: var(--peach-soft); color: var(--teal-dark); }
.btn--lg { font-size: var(--step-1); min-height: 3.75rem; padding-inline: 2rem; }
.btn-arrow { transition: transform 0.15s ease; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover .btn-arrow { transform: translateY(-2px); }
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}
.brand:hover { color: var(--teal); }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.75rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav a:not(.btn):hover { color: var(--teal); text-decoration: underline; }
.site-nav .btn { min-height: 3rem; padding: 0.5rem 1.2rem; margin-left: 0.5rem; }
.nav-links { display: none !important; }
@media (min-width: 60rem) {
  .nav-links { display: flex !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-5); }
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--peach-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-3);
}
.hero h1 { margin-bottom: var(--space-3); max-width: 18ch; }
.hero__sub {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: var(--space-4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-3);
}
.hero__reassure {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.hero__reassure li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__reassure svg { width: 1.25rem; height: 1.25rem; color: var(--teal); flex: none; }
.hero__art { max-width: 34rem; margin-inline: auto; width: 100%; }
.hero__art svg { width: 100%; height: auto; aspect-ratio: 520 / 440; }

/* ---------- Problem ---------- */
.problem__grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 56rem) { .problem__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; } }
.pullquote {
  margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 6px solid var(--sun);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--teal-dark);
}
.pullquote p { margin: 0; }
.feelings { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.feelings li {
  position: relative;
  padding-left: 2rem;
}
.feelings li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 0.6em;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--peach);
  border: 2px solid var(--sun);
}

/* ---------- Comparison strip ---------- */
.compare {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
@media (min-width: 52rem) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.compare__item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.compare__item p { margin: 0; color: var(--ink-soft); }
.compare__item--us {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.compare__item--us h3 { color: var(--white); }
.compare__item--us p { color: #e8f1f1; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  counter-reset: step;
}
.steps li { margin: 0; }
.step-card {
  position: relative;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: var(--shadow);
}
.step-card__num {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}
.step-card h3 { font-size: 1.3rem; }
.step-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Walk away with ---------- */
.takeaways { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.takeaways li { margin: 0; }
.takeaway {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  height: 100%;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.takeaway__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
}
.takeaway__icon svg { width: 1.6rem; height: 1.6rem; }
.takeaway h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.takeaway p { margin: 0; color: var(--ink-soft); }

/* ---------- Fit (who it's for) ---------- */
.fit { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 52rem) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col {
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
}
.fit__col--yes { background: var(--white); box-shadow: var(--shadow); }
.fit__col--no { background: transparent; border: 2px dashed var(--line); }
.fit__col ul { list-style: none; padding: 0; margin: 0; }
.fit__col li { position: relative; padding-left: 2.25rem; }
.fit__col li + li { margin-top: 0.85rem; }
.fit__col li svg {
  position: absolute; left: 0; top: 0.2em;
  width: 1.5rem; height: 1.5rem;
}
.fit__col--yes li svg { color: var(--success); }
.fit__col--no li svg { color: var(--ink-soft); }

/* ---------- Cases ---------- */
.case {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.case__head { padding: var(--space-3) var(--space-3) 0; }
.case__who { font-size: 1rem; font-weight: 700; color: var(--teal); margin-bottom: 0.25rem; }
.case h3 { font-size: 1.3rem; }
.case__body { padding: 0 var(--space-3) var(--space-3); flex: 1; }
.case dl { margin: 0; }
.case dt {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}
.case dt.before { color: var(--ink-soft); }
.case dt.after { color: var(--teal); }
.case dd { margin: 0.25rem 0 0; }
.case__result {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--peach-soft);
  font-weight: 600;
  color: var(--teal-dark);
  max-width: none;
}
.note {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Pricing ---------- */
.price-wrap { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 56rem) { .price-wrap { grid-template-columns: 1fr 1.1fr; } }
.price-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
@media (min-width: 40rem) { .price-card { padding: var(--space-4); } }
.price-card h3 { color: var(--teal-dark); margin-bottom: 0.25rem; }
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: var(--space-2) 0;
  font-family: var(--font-head);
  color: var(--teal-dark);
}
.price-card__amount { font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; }
.price-card__unit { font-family: var(--font-body); color: var(--ink-soft); font-size: 1.0625rem; }
.price-card ul { list-style: none; padding: 0; margin: var(--space-3) 0; }
.price-card li { position: relative; padding-left: 2.25rem; }
.price-card li + li { margin-top: 0.75rem; }
.price-card li svg { position: absolute; left: 0; top: 0.2em; width: 1.5rem; height: 1.5rem; color: var(--success); }
.price-card .btn { width: 100%; }
.price-card__small { margin: var(--space-2) 0 0; font-size: 1.0625rem; color: var(--ink-soft); text-align: center; max-width: none; }
.section--teal .price-intro p { color: #e8f1f1; }

/* ---------- Guides ---------- */
.guide {
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.guide picture, .guide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--peach-soft);
}
.guide__body { padding: var(--space-3); }
.guide__role { color: var(--teal); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.guide h3 { margin-bottom: 0.25rem; }
.guide p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--space-4); }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 3.5rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq summary h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}
.faq__icon {
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--teal-tint);
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.9rem; height: 2px;
  background: var(--teal);
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq__icon::after { transition: transform 0.2s ease; }
}
.faq__answer { padding: 0 var(--space-3) var(--space-3); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Intake form ---------- */
.intake { scroll-margin-top: 1rem; }
.intake__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  margin-top: var(--space-4);
}
@media (min-width: 40rem) { .intake__card { padding: var(--space-4); } }

.progress { margin-bottom: var(--space-3); }
.progress[hidden] { display: none; }
.progress__label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}
.progress__label span:last-child { color: var(--ink-soft); font-weight: 600; }
.progress__track {
  height: 0.75rem;
  background: var(--teal-tint);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 14.3%;
  background: var(--teal);
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
  .progress__bar { transition: width 0.3s ease; }
}

.form-step {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  min-width: 0;
}
.form-step + .form-step {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}
.js-steps .form-step + .form-step { border-top: 0; padding-top: 0; }
.js-steps .form-step { margin-bottom: 0; }
.form-step legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.2;
}
.form-step legend:focus { outline: none; }
.form-step legend:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.step-help { color: var(--ink-soft); margin-bottom: var(--space-3); }

.field { margin-bottom: var(--space-3); }
.field > label, .group-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.opt, .req-note { font-weight: 400; color: var(--ink-soft); }
.req { color: var(--error); font-weight: 700; }
.hint { display: block; color: var(--ink-soft); font-size: 1.0625rem; margin: -0.15rem 0 0.5rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}
textarea { min-height: 8rem; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230e4b57' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 75, 87, 0.3);
}
.field--short input { max-width: 26rem; }

/* Checkbox / radio "chips" with big tap targets */
.choices {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
}
@media (min-width: 40rem) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choices legend { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; padding: 0; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  line-height: 1.35;
}
.choice:hover { border-color: var(--teal); background: #f7fbfb; }
.choice input {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice input:focus-visible { outline: none; }

.other-field { margin: -0.75rem 0 var(--space-3); }
.other-field[hidden] { display: none; }

/* Errors */
.error-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  color: var(--error);
  font-weight: 600;
  font-size: 1.0625rem;
}
.error-msg[hidden] { display: none; }
.error-msg::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.4rem; height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}
[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-bg); }
.choices.has-error .choice { border-color: var(--error); }

.form-alert {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--error-bg);
  border: 2px solid var(--error);
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.form-alert[hidden] { display: none; }
.form-alert p { margin: 0; }

.form-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.form-nav[hidden] { display: none; }
.form-nav .btn[hidden] { display: none; }
.form-nav__spacer { flex: 1; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-saved { color: var(--ink-soft); font-size: 1.0625rem; margin: var(--space-2) 0 0; }
.form-saved[hidden] { display: none; }
.form-submit-nojs { margin-top: var(--space-2); }
.js-steps .form-submit-nojs { display: none; }

.consent { margin-bottom: var(--space-2); }
.consent .choice { align-items: flex-start; }
.consent .choice input { margin-top: 0.15rem; }

.next-steps { counter-reset: n; list-style: none; padding: 0; margin: var(--space-3) 0; }
.next-steps li { position: relative; padding-left: 3rem; min-height: 2.25rem; }
.next-steps li + li { margin-top: var(--space-2); }
.next-steps li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--teal-dark);
  font-weight: 800;
}

.thanks { text-align: left; }
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks__icon { width: 4.5rem; height: 4.5rem; margin-bottom: var(--space-2); }

/* Honeypot — hidden from humans, still in the DOM for bots */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: #e3eded;
  padding-block: var(--space-5) var(--space-4);
}
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1.25rem; font-family: var(--font-body); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0.25rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 3rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { color: var(--peach); }
.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.0625rem;
}
.footer-bottom p { max-width: none; margin: 0; }

/* ---------- Legal / simple pages ---------- */
.page-head { padding-block: var(--space-5) var(--space-3); }
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 1.0625rem;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 0.5rem; color: var(--ink-soft); }
.breadcrumbs a { display: inline-block; padding-block: 0.6rem; }
.prose { padding-bottom: var(--space-6); }
.prose h2 { margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose ul { max-width: var(--measure); }
.placeholder {
  background: #fff3c4;
  border-radius: 4px;
  padding: 0 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.callout {
  background: var(--peach-soft);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin-bottom: var(--space-3); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; background: var(--white); }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border: 1px solid var(--line); }
th { background: var(--teal-tint); color: var(--teal-dark); }

.notfound { padding-block: var(--space-6); }
.notfound svg { width: min(100%, 22rem); margin-bottom: var(--space-3); }
.link-list { list-style: none; padding: 0; }
.link-list a { display: inline-flex; min-height: 3rem; align-items: center; font-weight: 600; }

/* ---------- Print ---------- */
@media print {
  .site-header nav, .intake, .skip-link, .hero__art { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  a { color: #000; }
}
.site-footer .placeholder { color: var(--ink); }
.placeholder { color: var(--ink); }

/* Compare list (full width under the problem section) */
ul.compare { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
ul.compare li { margin: 0; }

/* Keep logo and CTA on one row on small phones */
@media (max-width: 26rem) {
  .brand { font-size: 1.15rem; gap: 0.45rem; }
  .brand svg { width: 2rem; height: 2rem; }
  .site-nav .btn { padding: 0.5rem 0.9rem; margin-left: 0; font-size: 1rem; }
}
