/* ==========================================================================
   Smart Guy Math — Shared stylesheet
   Design: "Collegiate green & brass" — calm, academic, warm, understated.
   One shared file for all four pages. Tokens live in :root below.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote {
  margin: 0;
}
ul[class] { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  --ink: #1C2A24;
  --green: #22503B;
  --green-dark: #1A3E2D;
  --paper: #F7F5EF;
  --paper-tint: #FCFAF5;
  --brass: #B08A3E;
  --brass-dark: #856225;      /* on light bg — meets AA (4.5:1) for small labels */
  --brass-on-dark: #E4C583;   /* lighter gold for labels on the green contact band */
  --hairline: #DED9CC;
  --muted: #525C54;
  --footer-bg: #16261E;
  --footer-ink: #E9E5DA;
  --footer-muted: #A9B3A8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  --measure: 65ch;
  --container: 1120px;
  --radius: 6px;
  --space-section: clamp(3.25rem, 7vw, 6rem);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { max-width: var(--measure); }

a { text-decoration-color: var(--hairline); text-underline-offset: 3px; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Under-construction banner (temporary) ----------
   Toggle via SITE_CONFIG.underConstruction in site-config.js.
   To remove entirely at launch, delete this block. */
.construction-banner {
  background: #FBE9E7;            /* light alert tint so the red text stands out */
  color: #B3261E;                /* red */
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem 1rem;          /* ~3x the previous band height */
  border-bottom: 2px solid #B3261E;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--paper-tint); border-block: 1px solid var(--hairline); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.9rem;
}

.section-title { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--paper); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.text-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--green-dark); }
.text-link .arrow { transition: transform 0.18s ease; display: inline-block; }
.text-link:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .text-link .arrow { transition: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  white-space: nowrap;
}
.wordmark .wordmark-accent { color: var(--green); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle .bars::before,
.nav-toggle .bars::after,
.nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--brass); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.nav-list .nav-cta {
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 0.45rem 0.95rem;
  color: var(--green);
  font-weight: 600;
}
.nav-list .nav-cta:hover { background: var(--green); color: var(--paper); border-bottom-color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  font-weight: 500;
  max-width: 15ch;
}
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  margin-top: 1.15rem;
  max-width: 34ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.9rem;
}
.hero-meta {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); display: inline-block; }

/* Signature: brass tangent curve */
.hero-figure { position: relative; min-height: 220px; }
.hero-figure svg { width: 100%; height: auto; display: block; }
.curve-line { fill: none; stroke: var(--brass); }
.curve-fn { stroke-width: 2.25; opacity: 0.9; }
.curve-tangent { stroke-width: 1.25; opacity: 0.6; stroke-dasharray: 5 5; }
.curve-axis { stroke: var(--hairline); stroke-width: 1.25; }
.curve-dot { fill: var(--green); }

@media (prefers-reduced-motion: no-preference) {
  /* The path carries pathLength="1", so this draw is resolution-independent. */
  .curve-fn {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s ease forwards 0.15s;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Specialties ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.specialty {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
}
.specialty.secondary { border-top-color: var(--brass); }
.specialty h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.specialty .tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: 0.6rem;
}
.specialty ul { margin: 0.4rem 0 1.4rem; padding-left: 0; }
.specialty ul li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; color: var(--ink);
}
.specialty ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border: 1.5px solid var(--green); border-radius: 2px;
  transform: rotate(45deg);
}
.specialty.secondary ul li::before { border-color: var(--brass); }
.specialty .specialty-link { margin-top: auto; }

/* ---------- Generic prose blocks ---------- */
.prose > * + * { margin-top: 1.1rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* Why list */
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; margin-top: 1.75rem; }
.why-list li {
  padding-left: 1.75rem; position: relative; color: var(--ink);
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--brass);
}
.why-list li strong { display: block; font-weight: 600; }
.why-list li span { color: var(--muted); font-size: 0.97rem; }

/* Philosophy pull */
.philosophy blockquote,
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.3;
  color: var(--green);
  max-width: 22ch;
  border-left: 3px solid var(--brass);
  padding-left: 1.25rem;
}

/* Steps (a real sequence — numbered) */
.steps { counter-reset: step; margin-top: 2rem; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brass-dark);
  min-width: 2.4rem;
}
.step .step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.step p { color: var(--muted); max-width: 58ch; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-tint);
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(34,80,59,0.04) 10px 11px);
}
.photo-placeholder .ph-label { font-weight: 600; color: var(--green); margin-bottom: 0.35rem; }
.photo-placeholder .ph-note { font-size: 0.85rem; }

/* Temporary: About section shown with no photo yet (placeholder hidden).
   Collapse the two-column grid to a single, readable column. To restore the
   photo layout, remove `about-grid--no-photo` from the About grid in
   index.html, remove `hidden` from its .photo-frame, and delete this block. */
.about-grid--no-photo { grid-template-columns: 1fr; }
.about-grid--no-photo .prose { max-width: 65ch; }

/* ---------- Contact ---------- */
.contact { background: var(--green); color: var(--paper); }
.contact .eyebrow { color: var(--brass-on-dark); }
.contact h2 { color: var(--paper); }
.contact .lead { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 2rem;
}
.contact-aside p { color: color-mix(in srgb, var(--paper) 85%, transparent); }
.contact-aside a { color: var(--paper); font-weight: 600; text-decoration-color: var(--brass); }
.contact-channels { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.contact-channel { display: flex; gap: 0.6rem; align-items: baseline; }
.contact-channel .ch-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brass-on-dark); min-width: 4.5rem;
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem;
}
.field label .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  outline: 2px solid color-mix(in srgb, var(--green) 35%, transparent);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success { color: var(--green); }
.form-status.error { color: #9a3412; }
.hp-field { position: absolute; left: -9999px; }
@media (prefers-reduced-motion: reduce) {
  .field input, .field select, .field textarea { transition: none; }
}

/* ---------- Interior page hero ---------- */
.page-hero { background: var(--paper-tint); border-bottom: 1px solid var(--hairline); }
.page-hero .container { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1rem; max-width: 54ch; }
.page-hero .hero-ctas { margin-top: 1.75rem; }

/* ---------- Broad topic list (never a full syllabus) ---------- */
.topic-columns {
  columns: 2; column-gap: 2.5rem; margin-top: 1.75rem; max-width: 780px;
}
.topic-columns li {
  break-inside: avoid; padding-left: 1.5rem; position: relative; margin-bottom: 0.7rem;
}
.topic-columns li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px;
  border: 1.5px solid var(--brass); border-radius: 2px; transform: rotate(45deg);
}
@media (max-width: 560px) { .topic-columns { columns: 1; } }

/* ---------- Approach list ---------- */
.approach-list { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: var(--measure); }
.approach-list li { padding-left: 1.75rem; position: relative; }
.approach-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--green);
}

/* ---------- Simple CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--paper-tint);
  border-top: 1px solid var(--hairline);
}
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); max-width: 22ch; }
.cta-band p { color: var(--muted); max-width: 54ch; text-align: center; }

/* On-page contact actions (landing-page CTA bands, homepage hero) */
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1rem; }
.cta-alt, .cta-phone { color: var(--muted); font-size: 0.95rem; margin: 0; }
.cta-alt a, .cta-phone a {
  color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px;
}
.hero-copy .cta-phone { margin-top: 1rem; }

/* ---------- Payment ---------- */
.pay-card {
  max-width: 560px;
  margin: 2rem auto 0;
  background: var(--paper-tint);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}
.pay-card .btn { margin-top: 1.25rem; }
.pay-soon {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.pay-secure-note {
  margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.review-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.review-by { color: var(--muted); font-size: 0.92rem; font-style: normal; }
.reviews-empty { color: var(--muted); margin-top: 1.5rem; }
.reviews-more { margin-top: 1.75rem; }

/* Loud placeholder flag — deliberately impossible to mistake for a real
   review. Reuses the alert red of the under-construction banner. */
.review-flag {
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  background: #FBE9E7;
  color: #B3261E;
  border: 1px solid #B3261E;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; }
.site-footer .container { padding-block: 3rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .wordmark { color: var(--footer-ink); }
.footer-brand .wordmark .wordmark-accent { color: #7FB79A; }
.footer-brand p { color: var(--footer-muted); font-size: 0.95rem; margin-top: 0.75rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brass); margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: var(--footer-ink); text-decoration: none; font-size: 0.97rem; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  color: var(--footer-muted); font-size: 0.88rem;
}

/* ---------- Utilities ---------- */
.center-narrow { max-width: 720px; margin-inline: auto; }
[hidden] { display: none !important; }

/* Device-aware contact CTAs: touch devices (phones/most tablets) get the
   tap-to-text/call buttons; mouse devices (laptops/desktops), where sms:/tel:
   links are unreliable, get a readable "text from your phone" message instead.
   Detection is by INPUT TYPE (CSS Level 4), not screen width. Mobile-first
   default assumes touch, so any browser that doesn't match the desktop query
   still shows the working tap buttons. */
.desktop-only { display: none; }                 /* hidden on touch/unknown (base) */
@media (hover: hover) and (pointer: fine) {
  .touch-only  { display: none !important; }      /* hide tap buttons on mouse devices */
  .desktop-only { display: block; }               /* show the message on mouse devices */
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 360px; }
  .specialties-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  /* Mobile navigation — toggle only appears when JS is active, so a no-JS
     visitor never sees a dead button; the nav falls back to a stacked list. */
  .js .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 24px rgba(28,42,36,0.08);
  }
  .primary-nav[hidden] { display: none; }
  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.15rem, 4vw, 2.5rem) 1rem;
  }
  .nav-list a { padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav-list a:hover { border-bottom-color: var(--hairline); color: var(--green); }
  .nav-list a[aria-current="page"] { color: var(--green); }
  .nav-list .nav-cta {
    border: 1.5px solid var(--green); text-align: center; margin-top: 0.75rem;
    border-radius: var(--radius); padding: 0.75rem;
  }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (min-width: 681px) {
  /* Ensure nav is always visible on larger screens even if JS toggled hidden */
  .primary-nav[hidden] { display: block !important; }
}

/* ==========================================================================
   Legal / compliance additions
   Footer disclosure + legal links, Privacy/Terms pages, SMS consent block.
   Kept in one block so the pre-launch compliance styling is easy to find.
   ========================================================================== */

/* Footer legal links + operating-entity disclosure */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.footer-legal a { color: var(--footer-ink); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer-legal .footer-domain { color: var(--footer-muted); }
.footer-operated {
  margin-top: 1rem;
  color: var(--footer-muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* Legal pages (Privacy Policy, Terms of Service) */
.legal { max-width: 760px; }
.legal > * + * { margin-top: 1.05rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.legal h2 + p, .legal h2 + ul { margin-top: 0.75rem; }
.legal ul { padding-left: 1.4rem; max-width: var(--measure); }
.legal li + li { margin-top: 0.4rem; }
.legal a {
  color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px;
}
.legal .legal-updated { color: var(--muted); font-size: 0.92rem; }

/* SMS consent (contact form) */
.sms-consent { margin-bottom: 1.1rem; }
.sms-consent .checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.sms-consent .checkbox input[type="checkbox"] {
  margin-top: 0.28em;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
}
.sms-consent .checkbox span { color: var(--ink); }
.sms-consent a {
  color: var(--green); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 2px;
}
.sms-consent-note { font-size: 0.82rem; color: var(--muted); margin: 0.5rem 0 0; }
