/* ==========================================================================
   JEH Consulting of Idaho — site styles
   No external fonts or CDNs: every request stays first-party.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy-900: #0b1b2b;
  --navy-800: #102a43;
  --navy-700: #163c5e;
  --navy-600: #1d5183;
  --teal-600: #0f8b8b;
  --teal-500: #14a3a3;
  --teal-400: #2cc0bf;
  --amber-500: #e09112;

  --ink:       #12212e;
  --ink-soft:  #40576b;
  --ink-mute:  #6b8299;
  --line:      #dde5ec;
  --line-soft: #eaf0f5;
  --surface:   #ffffff;
  --surface-2: #f4f8fb;
  --page:      #fbfcfe;

  /* The mark is a solid silhouette, so its ink is a token: brand navy on
     light, and a pale tint on dark where navy would disappear. */
  --mark-ink: #102a43;

  --ok:   #0f7a52;
  --warn: #a8600a;
  --err:  #b3261e;
  --err-bg: #fdf3f2;

  --radius:    12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
  --shadow-md: 0 4px 12px rgba(16, 42, 67, .08), 0 2px 4px rgba(16, 42, 67, .05);
  --shadow-lg: 0 18px 40px rgba(16, 42, 67, .12), 0 4px 12px rgba(16, 42, 67, .06);

  --container: 1140px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #e8eef4;
    --ink-soft:  #b3c3d1;
    --ink-mute:  #8aa0b3;
    --line:      #24384c;
    --line-soft: #1b2d3f;
    --surface:   #11212f;
    --surface-2: #16293a;
    --page:      #0b1725;

    --teal-600: #2cc0bf;
    --teal-500: #43cfce;
    --err:   #ff8a80;
    --err-bg: #2a1a19;
    --mark-ink: #9fc9e4;

    --ok:    #5fd3a3;
    --warn:  #e8b35c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .55);
  }
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.018em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-500); }
ul, ol { padding-left: 1.2em; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy-800); color: #fff; padding: .75rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: 0 0 auto; }
/* Height-driven: the Idaho silhouette is taller than it is wide, so a fixed
   square box would squash it. */
.brand__mark { flex: 0 0 auto; width: auto; height: 34px; color: var(--mark-ink); }
/* The footer ground is always dark navy, so the mark is always light there. */
.footer__brand .brand__mark { color: #cfe2ee; height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand__sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .94rem; font-weight: 600;
  padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--teal-600); }
.nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: .6rem var(--gutter) 1.1rem; background: var(--page);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .75rem .4rem; border-radius: 0; }
  .nav a + a { border-top: 1px solid var(--line-soft); }
  .nav .btn { margin: .8rem 0 0; justify-content: center; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 650; font-size: .96rem; line-height: 1;
  padding: .82rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-600); color: #fff; }
.btn--primary:hover { background: var(--teal-500); color: #fff; }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: #eef5fa; color: var(--navy-800); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 12% -10%, rgba(44, 192, 191, .22), transparent 60%),
    radial-gradient(800px 450px at 88% 8%, rgba(29, 81, 131, .30), transparent 62%),
    linear-gradient(165deg, var(--navy-900), var(--navy-800) 58%, var(--navy-700));
  color: #eaf3f9;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--page));
  opacity: .16; pointer-events: none;
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }

.hero h1 { color: #fff; margin-bottom: .55em; }
.hero__lede { font-size: clamp(1.04rem, 1.9vw, 1.2rem); color: #c3d8e7; max-width: 60ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { margin-top: 1.5rem; font-size: .9rem; color: #9db8cc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-400); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal-400); border-radius: 2px; }
.eyebrow--dark { color: var(--teal-600); }
.eyebrow--dark::before { background: var(--teal-600); }

/* Hero side panel */
.hero__panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero__panel h2 { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: #cfe2ee; }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--teal-400); }

/* --- Section headers ---------------------------------------------------- */
.section-head { max-width: 68ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; font-size: 1.04rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card--link:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; font-size: 1.12rem; }
.card p  { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 1rem;
  display: grid; place-items: center; color: var(--teal-600);
  background: color-mix(in srgb, var(--teal-500) 13%, transparent);
}
.card__list { margin: .9rem 0 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .9rem; }
.card__list li { margin-bottom: .3em; }

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; } }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: 1rem;
}
.step h3 { font-size: 1.04rem; margin-bottom: .35em; }
.step p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 0; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.2rem);
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; gap: 2.5rem; } }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #c3d8e7; margin-bottom: 0; max-width: 55ch; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900); color: #a9c1d3; margin-top: auto;
  padding-block: 3rem 2rem; font-size: .93rem;
}
.site-footer a { color: #cfe2ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; } }
.footer__grid h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .86rem; color: #8aa6bb;
}
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; }
.footer__brand .brand__sub { color: #8aa6bb; }

/* --- Tags / badges ------------------------------------------------------ */
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag {
  display: inline-block;
  font-size: .78rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-wrap { max-width: 800px; margin-inline: auto; }

.fieldset {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 1.6rem; margin: 0 0 1.4rem; box-shadow: var(--shadow-sm);
}
.fieldset > legend {
  padding: 0 .6rem; margin-left: -.6rem; font-weight: 700; font-size: 1.12rem; color: var(--ink);
}
.fieldset__hint { color: var(--ink-soft); font-size: .93rem; margin: .1rem 0 1.3rem; }

.field { margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.label { display: block; font-weight: 650; font-size: .94rem; margin-bottom: .4rem; }
.label .req { color: var(--err); margin-left: .15rem; }
.label .opt { color: var(--ink-mute); font-weight: 500; font-size: .85rem; margin-left: .3rem; }
.help { display: block; color: var(--ink-mute); font-size: .86rem; margin-top: .35rem; }

.input, .textarea, .select {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--page); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-mute); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-500) 22%, transparent);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b8299' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.input[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 20%, transparent);
}

.error-text { color: var(--err); font-size: .86rem; margin-top: .35rem; font-weight: 600; }
.error-text:empty { display: none; }

/* Radio cards */
.radio-cards { display: grid; gap: .75rem; }
@media (min-width: 760px) { .radio-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.radio-card { position: relative; display: block; cursor: pointer; height: 100%; }
.radio-card input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.radio-card__body {
  /* display is essential: this is a <span>, and an inline box ignores height
     and vertical padding, which collapses the card. */
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--page);
  padding: 1.05rem 1.1rem; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.radio-card:hover .radio-card__body { border-color: var(--ink-mute); }
.radio-card input:focus-visible + .radio-card__body {
  outline: 3px solid var(--teal-500); outline-offset: 2px;
}
.radio-card input:checked + .radio-card__body {
  border-color: var(--teal-500);
  background: color-mix(in srgb, var(--teal-500) 8%, var(--page));
  box-shadow: 0 0 0 1px var(--teal-500);
}
.radio-card__title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.radio-card__title .dot {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; transition: border-color .15s;
}
.radio-card input:checked + .radio-card__body .dot { border-color: var(--teal-500); }
.radio-card input:checked + .radio-card__body .dot::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500);
}
.radio-card__desc { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.radio-card__meta {
  display: block; margin-top: auto; padding-top: .6rem;
  font-size: .8rem; color: var(--ink-mute); font-weight: 600;
}

/* Plain radio / checkbox rows */
.choice { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; cursor: pointer; font-size: .95rem; }
.choice input { margin: .32rem 0 0; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--teal-600); }

/* Repeatable URL rows */
.repeat-row { display: flex; gap: .5rem; margin-bottom: .6rem; align-items: flex-start; }
.repeat-row .input { flex: 1 1 auto; }
.btn-icon {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--page); color: var(--ink-mute);
  border-radius: var(--radius-sm); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s;
}
.btn-icon:hover { color: var(--err); border-color: var(--err); background: var(--err-bg); }
.btn-icon[disabled] { opacity: .35; cursor: not-allowed; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--page);
  padding: 1.7rem 1.2rem; text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--teal-500); background: color-mix(in srgb, var(--teal-500) 5%, var(--page)); }
.dropzone.is-over { border-color: var(--teal-500); background: color-mix(in srgb, var(--teal-500) 11%, var(--page)); }
.dropzone__icon { color: var(--ink-mute); margin: 0 auto .7rem; }
.dropzone__title { font-weight: 650; font-size: .97rem; margin-bottom: .25rem; }
.dropzone__title span { color: var(--teal-600); text-decoration: underline; }
.dropzone__hint { color: var(--ink-mute); font-size: .84rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.filelist { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .5rem; }
.filelist:empty { display: none; }
.fileitem {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: .6rem .7rem;
}
.fileitem.is-bad { border-color: var(--err); background: var(--err-bg); }
.fileitem__thumb {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; object-fit: cover;
  background: var(--surface-2); display: grid; place-items: center; color: var(--ink-mute);
  overflow: hidden; font-size: .62rem; font-weight: 700; text-transform: uppercase;
}
.fileitem__meta { flex: 1 1 auto; min-width: 0; }
.fileitem__name {
  font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fileitem__sub { font-size: .8rem; color: var(--ink-mute); }
.fileitem.is-bad .fileitem__sub { color: var(--err); font-weight: 600; }

.quota { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--ink-mute); margin-top: .7rem; }

/* Honeypot — hidden from people, visible to naive bots */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* Submit area */
.form-actions { margin-top: 1.7rem; }
.form-status {
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .93rem; margin-bottom: 1rem; font-weight: 600;
}
.form-status[hidden] { display: none !important; }
.form-status--err { background: var(--err-bg); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.form-status--info { background: color-mix(in srgb, var(--teal-500) 10%, transparent); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal-500) 30%, transparent); }

.progress {
  height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: .9rem;
}
.progress[hidden] { display: none !important; }
.progress__bar { height: 100%; width: 0; background: var(--teal-500); border-radius: 999px; transition: width .2s ease; }

.privacy-note {
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .87rem; color: var(--ink-soft); margin-top: 1.2rem;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: .85rem 1rem;
}
.privacy-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal-600); }

.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Utility ------------------------------------------------------------ */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.noscript-note {
  background: var(--err-bg); border: 1px solid var(--err); color: var(--err);
  padding: 1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1.5rem;
}

/* --- Utilities replacing inline style attributes -------------------------
   The CSP sets `style-src 'self'` with no 'unsafe-inline', which blocks
   inline style="" attributes as well as <style> blocks. Every layout tweak
   therefore has to live here as a class.
   ------------------------------------------------------------------------ */
.section--pt-0  { padding-top: 0; }
.section--pt-lg { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--pb-md { padding-bottom: clamp(2rem, 5vw, 3rem); }
.section--pb-lg { padding-bottom: clamp(3rem, 7vw, 5rem); }

.lede      { color: var(--ink-soft); font-size: 1.05rem; }
.note      { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.4rem; }
.meta-line { color: var(--ink-mute); font-size: .92rem; }
.mono      { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.h-card  { font-size: 1.3rem; }
.h1--sm  { font-size: clamp(1.7rem, 4vw, 2.3rem); }

.mt-1  { margin-top: .4rem; }
.mt-3  { margin-top: 1.25rem; }
.mb-lg { margin-bottom: 1.8rem; }

.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

.card--roomy    { padding: clamp(2rem, 5vw, 3.2rem); }
.card__icon--xl { width: 58px; height: 58px; margin: 0 auto 1.4rem; border-radius: 50%; }

.textarea--sm { min-height: 90px; }
.help--tight  { margin: 0 0 .6rem; }

.eyebrow--center      { justify-content: center; }
.footer__bottom--bare { margin-top: 0; border-top: 0; padding-top: 0; }

/* --- Long-form prose (privacy policy and similar) ------------------------ */
.prose h2 { margin-top: 2.4rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.7rem; font-size: 1.05rem; color: var(--ink-soft); }
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose li { margin-bottom: .45em; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem;
}
.prose th, .prose td {
  text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th { font-weight: 700; background: var(--surface-2); }
.prose td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

.callout {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
