/* Base: reset additions, typography, layout helpers, buttons, forms */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sm-font-body); font-size: var(--sm-fs-base); line-height: 1.6;
  color: var(--sm-ink-2); background: var(--sm-white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--sm-font-display); color: var(--sm-ink); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sm-green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--sm-navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-md); z-index: 2000; }
.skip-link:focus { top: 1rem; }

.i { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--sm-bg); }
.section--dark { background: var(--sm-navy); color: #B9C4E6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 var(--sm-fs-xs)/1 var(--sm-font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sm-blue); margin-bottom: var(--sp-4); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sm-green); }
.section--dark .eyebrow { color: #8FA6FF; }
.h2 { font-size: var(--sm-fs-3xl); }
.lead { font-size: var(--sm-fs-lg); color: var(--sm-ink-2); max-width: 60ch; }
.section--dark .lead { color: #B9C4E6; }
.h2 + .lead { margin-top: var(--sp-4); }
.lead { font-weight: 400; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); margin-bottom: var(--sp-7); flex-wrap: wrap; }
.sec-head > div { max-width: 700px; }
.sec-head .lead { margin-top: var(--sp-4); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--sm-blue); --_fg: #fff; --_bd: var(--sm-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r-md);
  font: 700 var(--sm-fs-sm)/1.1 var(--sm-font-display); letter-spacing: .005em;
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn--cta { --_bg: var(--sm-green); --_bd: var(--sm-green); }
.btn--cta:hover { --_bg: var(--sm-green-600); --_bd: var(--sm-green-600); }
.btn--primary:hover { --_bg: var(--sm-blue-600); --_bd: var(--sm-blue-600); }
.btn--ghost { --_bg: transparent; --_fg: var(--sm-ink); --_bd: var(--sm-line-2); }
.btn--ghost:hover { --_bd: var(--sm-blue); --_fg: var(--sm-blue); box-shadow: none; }
.btn--ghost-light { --_bg: rgba(255,255,255,.06); --_fg: #fff; --_bd: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --_bg: rgba(255,255,255,.14); --_bd: #fff; box-shadow: none; }
.btn--wa { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.35); }
.btn--wa .i { color: #4ADE80; }
.btn--wa:hover { --_bd: #4ADE80; box-shadow: none; }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: var(--sm-fs-xs); }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font: 700 var(--sm-fs-sm) var(--sm-font-display); color: var(--sm-blue); }
.link-arrow .i { transition: transform var(--t-fast); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font: 600 var(--sm-fs-xs)/1.2 var(--sm-font-display); color: var(--sm-ink); letter-spacing: .01em; }
.field label .req { color: var(--sm-danger); }
.input {
  width: 100%; min-height: 50px; padding: .7rem .95rem; font: 500 var(--sm-fs-sm) var(--sm-font-body); color: var(--sm-ink);
  background: #fff; border: 1.5px solid var(--sm-line-2); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); appearance: none; -webkit-appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366718F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.input::placeholder { color: #8A94B0; font-weight: 400; }
.input:hover { border-color: #9FAAD0; }
.input:focus { outline: none; border-color: var(--sm-blue); box-shadow: 0 0 0 4px rgba(24, 53, 199, .14); }
.field.is-invalid .input { border-color: var(--sm-danger); box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.field .err { display: none; font-size: var(--sm-fs-xs); color: var(--sm-danger); font-weight: 500; }
.field.is-invalid .err { display: block; }

/* Segmented radio (learning mode) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border: 1.5px solid var(--sm-line-2); border-radius: var(--r-md); font: 700 var(--sm-fs-sm)/1.2 var(--sm-font-display); color: var(--sm-ink); transition: var(--t-fast); background: #fff; }
.seg small { font: 500 var(--sm-fs-xs) var(--sm-font-body); color: var(--sm-ink-3); }
.seg input:checked + span { border-color: var(--sm-blue); background: var(--sm-blue-100); box-shadow: 0 0 0 3px rgba(24,53,199,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--sm-green); outline-offset: 2px; }

/* Placeholder marker — shown while the prototype is under review.
   Remove `data-review` from <body> to hide every marker at once. */
.ph-tag { display: none; font: 700 10px/1 var(--sm-font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--sm-warn); background: #FFF4E5; border: 1px dashed #F5B971; border-radius: 4px; padding: 3px 6px; vertical-align: middle; width: max-content; }
body[data-review] .ph-tag { display: inline-block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Bootstrap grid gutters stay inside the page gutter (prevents mobile overflow) */
.wrap .row.g-5 { --bs-gutter-x: var(--gutter); --bs-gutter-y: 2.5rem; }
