/* Base, typography, buttons, containers. Mobile-first: larger screens add rules with min-width media queries. */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--teal-text); }
a:hover { color: var(--fg); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }

/* text inputs: 16px stops iOS Safari zooming on focus; appearance reset removes iOS inner shadows */
input[type="text"], input[type="email"], input[type="search"], textarea {
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spark-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); color: var(--on-teal); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--teal); color: var(--fg); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent; padding: 0;
}
.icon-btn:hover { border-color: var(--teal); }

/* page sections */
.block { padding-block: 56px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.55rem, 5.5vw, 2.5rem); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 16px; }
.fine { margin-top: 20px; font-size: 13px; color: var(--muted); max-width: 860px; }

.include-notice { margin: 0; padding: 12px 20px; background: #FFF3CD; color: #5C4400; font-size: 14px; }

@media (min-width: 900px) {
  .block { padding-block: 88px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
