/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --accent: #1f3a5c;
  --accent-hover: #16283f;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #48484c;
  --max-width: 1100px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow {
  max-width: 700px;
}
.section {
  padding: 120px 0;
}
/* Keep anchored headings clear of the sticky header */
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.75rem, 5vw + 1rem, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  color: var(--text-muted);
}
strong { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 980px;
  padding: 14px 28px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--secondary:hover { background: var(--bg-alt); }
.btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: var(--accent);
  color: #fff;
}
.btn--small:hover { background: var(--accent-hover); }
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-weight: 700;
  font-size: 1.455rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  margin-left: auto;
  margin-right: 24px;
}
.nav__toggle {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  padding: 8px 0;
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  /* Mobile: disclosure menu, panel drops below the header bar */
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 20px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav__links a { padding: 8px 0; }
}
@media (min-width: 901px) {
  /* Desktop: always-visible inline links, no toggle */
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: 28px; }
  .nav::details-content { content-visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 120px;
  text-align: left;
}
@media (max-width: 768px) {
  .hero { padding: 100px 0 80px; }
}
.hero__subhead {
  font-size: clamp(1.1rem, 1vw + 1rem, 1.35rem);
  max-width: 60ch;
  margin-bottom: 2em;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.25em;
}
.hero__note {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Problem ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .problem__grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; }
}
.cards--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .cards--three { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 32px;
}
.card p { margin-bottom: 0; }
.card--offer {
  display: flex;
  flex-direction: column;
}
.card--offer p { margin-bottom: 1em; }
.card__for {
  font-weight: 600;
  color: var(--text);
}
.card__price {
  font-size: 0.9rem;
  margin-top: auto;
}
.card__link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

/* ---------- Shared content bits ---------- */
.section--alt { background: var(--bg-alt); }
.section--alt .card,
.section--alt .callout {
  background: #fff;
}
.section-sub {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.2rem);
  max-width: 68ch;
}
.subhead {
  margin-top: 56px;
  margin-bottom: 0;
}
.lede {
  max-width: 68ch;
  margin-top: 40px;
}
.note {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 68ch;
}
.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid rgba(31, 58, 92, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.section--alt .badge { background: #fff; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Callout ---------- */
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 40px;
}
.callout h3 { margin-bottom: 0.4em; }
.callout p { margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 72ch;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist--plain li::before {
  border: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: none;
  top: 0.7em;
}

/* ---------- Tables ---------- */
.scroll-hint {
  display: none;
  font-size: 0.85rem;
  margin: 32px 0 -24px;
}
@media (max-width: 900px) {
  .scroll-hint { display: block; }
}
.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}
.table th,
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}
.table thead th {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.faq p {
  margin: 0 0 20px;
  max-width: 68ch;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { margin-bottom: 0; }

/* ---------- About / CTA (alternating backgrounds) ---------- */
.about {
  background: var(--bg-alt);
}
.cta__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
