@import url("./brand-tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sx-font-body);
  font-size: var(--sx-size-body);
  line-height: var(--sx-leading);
  color: var(--sx-body);
  background: #fff;
}
h1, h2, h3 { font-family: var(--sx-font-head); color: var(--sx-ink); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .85rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1.1rem; }
a { color: var(--sx-teal-deep); }
strong { color: var(--sx-ink); }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--sx-teal-mist); }
.tint { background: var(--sx-teal-wash); }
.muted { color: var(--sx-muted); }
.small { font-size: .875rem; line-height: 1.6; }

.btn {
  display: inline-block; font: inherit; font-weight: 600;
  background: var(--sx-teal-deep); color: #fff; border: 0;
  padding: .9rem 1.9rem; border-radius: var(--sx-radius);
  text-decoration: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--sx-teal-living); }
.btn:focus-visible { outline: 3px solid var(--sx-amber); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: #d7dbd9; color: #7b807e; cursor: not-allowed; opacity: .85;
}
.btn-wide { width: 100%; text-align: center; }

/* Site header, trust page only */
.site-head { border-bottom: 1px solid var(--sx-teal-mist); padding: 1rem 0; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-head img { height: 34px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--sx-body); }
.site-nav a:hover { color: var(--sx-teal-deep); }

.hero { padding: 4rem 0 3rem; }
.lede { font-size: 1.15rem; color: var(--sx-muted); margin-bottom: 1.75rem; }
.under-btn { margin-top: .9rem; }

.card { background: #fff; border: 1px solid var(--sx-teal-mist); border-radius: var(--sx-radius); padding: 1.4rem 1.5rem; }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step-n { font-family: var(--sx-font-head); color: var(--sx-teal-living); font-size: 1.6rem; display: block; }

.qa { border-top: 1px solid var(--sx-teal-mist); padding: 1.3rem 0; }
.qa:last-of-type { border-bottom: 1px solid var(--sx-teal-mist); }
.qa h3 { color: var(--sx-ink); }
.qa p:last-child { margin-bottom: 0; }

.site-foot { background: var(--sx-ink); color: #cfe4dd; padding: 2.5rem 0; margin-top: 1rem; }
.site-foot a { color: #fff; }
.site-foot .disclaimer { color: #9dbdb4; margin-top: 1.25rem; }
.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; margin: .75rem 0; padding: 0; list-style: none; }

/* Funnel */
.funnel-head { padding: 1.25rem 0; border-bottom: 1px solid var(--sx-teal-mist); }
.funnel-head img { height: 30px; width: auto; display: block; margin-inline: auto; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; justify-content: center;
  color: var(--sx-muted); font-size: .9rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.trust-strip li + li::before { content: "·"; margin-right: 1.1rem; color: var(--sx-teal-living); }
.centered { text-align: center; }

.progress-wrap { margin: 0 0 2rem; }
.progress-label { font-size: .85rem; color: var(--sx-muted); margin-bottom: .45rem; }
.progress-track { height: 6px; background: var(--sx-teal-mist); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--sx-teal-living); border-radius: 999px; transition: width .3s ease; }

.opts { display: grid; gap: .7rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.opt {
  display: block; width: 100%; text-align: left; font: inherit;
  background: #fff; border: 2px solid var(--sx-teal-mist); border-radius: var(--sx-radius);
  padding: 1rem 1.15rem; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.opt:hover { border-color: var(--sx-teal-living); background: var(--sx-teal-wash); }
.opt:focus-visible { outline: 3px solid var(--sx-amber); outline-offset: 2px; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--sx-ink); }
.field input {
  width: 100%; font: inherit; padding: .8rem .9rem;
  border: 2px solid var(--sx-teal-mist); border-radius: var(--sx-radius); background: #fff; color: var(--sx-body);
}
.field input:focus { outline: 0; border-color: var(--sx-teal-living); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--sx-teal-wash); border: 1px solid var(--sx-teal-mist);
  border-radius: var(--sx-radius); padding: 1.1rem 1.2rem; margin: 1.5rem 0 1.25rem;
}
.consent input { margin-top: .35rem; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; accent-color: var(--sx-teal-deep); }
.consent label { font-size: .9rem; line-height: 1.6; }

.why-free { border-left: 3px solid var(--sx-amber); padding-left: 1.1rem; margin: 1.75rem 0; }
.why-free h3 { margin-bottom: .3rem; }

.err { color: #a3231b; font-size: .9rem; margin: .5rem 0 0; }
.back {
  background: none; border: 0; font: inherit; color: var(--sx-muted);
  cursor: pointer; padding: .4rem 0; text-decoration: underline;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

main { flex: 1 0 auto; }
.site-foot, body > footer { flex-shrink: 0; }
