/* Charted — site stylesheet. Tokens and geometry come from the approved page designs in design/. */

:root {
  --navy: #1e4772;
  --navy-hover: #306089;
  --deep: #1f4465;
  --gold: #fdcd5d;
  --gold-hover: #fdd065;
  --sky-1: #a0bed8;
  --sky-2: #8bb2cf;
  --sky-3: #5a90bd;
  --pale-1: #e4ecf4;
  --pale-2: #eef3f8;
  --ink: #3f3f3f;
  --placeholder: #6f7f90;
  --white: #ffffff;

  --font-display: "Gabarito", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 6.94vw, 100px);
  --section-y: clamp(56px, 6.9vw, 100px);
  --max: 1440px;
  --focus: var(--navy);
}

*, *::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 { transition: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 1 auto; }

a { color: var(--navy); }
a:hover { color: var(--navy-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band--dark { --focus: var(--gold); }

img { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: pretty;
}
h1 { font-size: clamp(34px, 4.17vw, 60px); line-height: 1.32; }
h2 { font-size: clamp(32px, 3.47vw, 50px); line-height: 1.2; }
h3 { font-size: 25px; line-height: 1.2; }
.h2--small { font-size: clamp(24px, 2.08vw, 30px); }

p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.39vw, 20px); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 33px; border: 0; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-hover); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--gold); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); height: 56px; padding: 0 28px; border-radius: 15px; }
.btn--gold:hover { background: var(--gold-hover); color: var(--navy); }

.link-underline {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2;
  color: var(--navy); text-decoration: none; border-bottom: 3px solid var(--gold); padding-bottom: 2px;
}
.link-underline:hover { color: var(--navy-hover); }

/* Header / nav */
.site-header { background: var(--white); }
.nav {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__brand img { height: 56px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: clamp(24px, 2.8vw, 40px); flex-wrap: wrap; }
.nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2;
  color: var(--navy); text-decoration: none;
}
.nav__link[aria-current="page"] { border-bottom: 3px solid var(--gold); padding-bottom: 2px; }
.nav__toggle {
  display: none; height: 44px; padding: 0 16px; border: 3px solid var(--navy); border-radius: 10px;
  background: transparent; color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; cursor: pointer;
}
.band--dark .site-header { background: transparent; }
.band--dark .nav__link { color: var(--white); }
.band--dark .nav__toggle { border-color: var(--white); color: var(--white); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu {
    display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 20px; padding: 8px 0 4px;
  }
  .nav--open .nav__menu { display: flex; }
}

/* Hero band (Home) */
.band--dark {
  color: var(--white);
  background:
    radial-gradient(48% 70% at 0% 100%, #a0bed8 0%, rgba(160,190,216,0) 62%),
    radial-gradient(40% 50% at 100% 0%, #5a90bd 0%, rgba(90,144,189,0) 70%),
    linear-gradient(112deg, #1e4772 0%, #24507c 40%, #306089 100%);
}
.hero { color: var(--white); }
.hero__inner {
  padding-top: clamp(48px, 5.9vw, 85px); padding-bottom: clamp(56px, 6.9vw, 100px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero h1 { color: var(--white); max-width: 1000px; }
.hero .lead { color: var(--white); max-width: 760px; margin-top: 24px; }
.hero__note { margin-top: 12px; color: var(--white); }
.band--dark .form-status { color: var(--gold); }

/* Sign-up card (name / email / phone / consent / bot check) */
.signup-card {
  position: relative; width: 100%; max-width: 655px; margin-top: 32px; padding: 28px;
  background: var(--white); border-radius: 20px; color: var(--ink); text-align: left;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 10px 30px rgba(31, 68, 101, 0.18);
}
.band--pale-2 .signup-card { border: 3px solid var(--navy); box-shadow: none; }
.signup-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--navy); }
.field__hint { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--placeholder); }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 2px solid var(--sky-2); border-radius: 12px;
  background: var(--white); color: var(--navy);
  font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.5; letter-spacing: -0.02em;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent a { color: var(--navy); }
/* The Turnstile widget is invisible mode (renders nothing) — keep its container out of the card's flex gap. */
.signup-card .cf-turnstile { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; }
.signup-card .btn { width: 100%; }
.signup-card__legal { font-size: 14px; line-height: 1.45; color: var(--placeholder); }
.signup-card__legal a { color: var(--navy); }
.form-status { margin-top: 8px; min-height: 24px; font-weight: 600; color: var(--navy); }
.band--dark .form-status { color: var(--gold); }
.form-status--error { color: #b3261e; }
.band--dark .form-status--error { color: #ffd6d2; }

/* Sections */
.section { background: var(--white); }
.section__inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section__inner--flush-top { padding-top: 0; }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 4.4vw, 64px); align-items: start;
}
.split--center { align-items: center; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.stack .btn { margin-top: 0; }

.band--pale {
  background:
    radial-gradient(45% 60% at 100% 0%, #8bb2cf 0%, rgba(139,178,207,0) 70%),
    linear-gradient(112deg, #a0bed8 0%, #e4ecf4 38%, #eef3f8 62%, #a0bed8 100%);
}
.band--pale-2 {
  background:
    radial-gradient(50% 70% at 0% 100%, #8bb2cf 0%, rgba(139,178,207,0) 70%),
    linear-gradient(112deg, #a0bed8 0%, #e4ecf4 40%, #eef3f8 60%, #a0bed8 100%);
}

/* Accordion (native details) */
.acc-list { display: flex; flex-direction: column; gap: 12px; }
.acc {
  border: 3px solid var(--sky-2); border-radius: 10px; background: var(--white);
  transition: border-color .3s ease;
}
.acc[open] { border-color: var(--navy); }
.acc__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; cursor: pointer; list-style: none;
}
.acc__summary::-webkit-details-marker { display: none; }
.acc__label { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.5; color: var(--navy); }
.acc__num { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--navy-hover); }
.acc__chev {
  flex: none; width: 11px; height: 11px; margin-right: 6px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s ease;
}
.acc[open] .acc__chev { transform: translateY(3px) rotate(-135deg); }
.acc__body { padding: 0 24px 20px; }
.acc--numbered .acc__body { padding-left: 64px; }

/* Stage cards */
.stages-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.stages-head h2 { flex: 1 1 360px; }
.stages-head .lead { flex: 1 1 360px; max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin-top: clamp(32px, 3.3vw, 48px); }
.card { border: 3px solid var(--sky-2); border-radius: 15px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.card--navy { border-color: var(--navy); background: var(--navy); color: var(--white); }
.card--navy h3, .card--navy p { color: var(--white); }
.eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--navy-hover); }
.card--navy .eyebrow { color: var(--gold); }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card li { display: flex; align-items: center; gap: 12px; }
.card li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--gold); }

/* Why Charted feature rows */
.features { display: flex; flex-direction: column; gap: 16px; }
.feature { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; background: var(--white); border: 3px solid var(--sky-2); border-radius: 15px; }
.feature__num {
  flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px;
  background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.feature__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature h3 { font-size: 20px; line-height: 1.3; }

/* Bottom sign-up */
.signup-section__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.signup-section__inner h2 { max-width: 820px; }
.signup-section__inner .lead { max-width: 620px; margin-top: 20px; }

/* Content pages (FAQ, comparison) */
.page-intro { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.page-body { padding-top: clamp(48px, 5.9vw, 85px); padding-bottom: var(--section-y); display: flex; flex-direction: column; gap: clamp(40px, 3.3vw, 48px); }
.page-body--compare { gap: clamp(48px, 4.4vw, 64px); }
.qa-list { max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.qa { border: 3px solid var(--sky-2); border-radius: 10px; padding: 22px 24px; }
.qa h2, .qa h3 { font-weight: 500; font-size: 20px; line-height: 1.5; }
.qa__rule { height: 1.5px; background: var(--sky-2); margin: 14px 0 15px; }
.compare { display: flex; flex-direction: column; gap: 24px; }
.compare__intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.compare__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; }

/* Footer */
.site-footer { background: var(--white); }
.site-footer__inner {
  padding-top: clamp(40px, 4.4vw, 64px); padding-bottom: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px 64px;
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.site-footer__brand img { height: 48px; width: auto; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.site-footer__col h3 { margin-bottom: 4px; }
.site-footer__col a { font-size: 20px; color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { color: var(--navy); }
.site-footer__col a.email { color: var(--navy); }
.site-footer__col a.email:hover { text-decoration: underline; }
.site-footer__legal { padding-bottom: 40px; text-align: right; }

/* Legal pages */
.legal { max-width: 820px; display: flex; flex-direction: column; gap: 32px; }
.legal__meta { font-size: 14px; color: var(--placeholder); }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font-size: clamp(24px, 2.08vw, 30px); scroll-margin-top: 24px; }
.legal h3 { font-size: 20px; line-height: 1.3; margin-top: 8px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .callout { border: 3px solid var(--sky-2); border-radius: 10px; padding: 18px 22px; background: var(--white); }
.legal .callout--gold { border-color: var(--gold); }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.legal .toc a { font-size: 15px; }
.legal .placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* 404 */
.notfound { padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 760px; }
