:root {
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --navy: #0B1F3A;
  --navy-light: #1E3A66;
  --muted: rgba(11, 31, 58, 0.72); /* small print only */
  --line: 1px solid var(--navy);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

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

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.small { font-size: 0.875rem; color: var(--muted); }

.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;
}

/* Header */
.site-header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 72px;
}
.wordmark-small { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.login {
  font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  background: var(--navy); color: var(--white); border: var(--line);
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background-color 300ms var(--ease);
}
.btn:hover { background: var(--navy-light); color: var(--white); }

/* Hero */
.hero { text-align: center; padding: 72px 0 96px; }
.hero .eyebrow { font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 24px; }
.hero h1 { font-size: clamp(3rem, 13vw, 8.5rem); font-weight: 400; letter-spacing: -0.01em; }
.hero .promise { font-family: var(--serif); font-size: clamp(1.25rem, 3.6vw, 1.75rem); max-width: 34ch; margin: 28px auto 40px; }
.hero .small { max-width: 44ch; margin: 20px auto 0; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--off-white); }
.label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 16px;
}
section h2 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-bottom: 40px; }

.lines { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.lines li { padding: 16px 0; border-top: var(--line); }
.lines li:last-child { border-bottom: var(--line); }
.sub { font-size: 1.75rem; margin: 56px 0 20px; }
.topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 40px; }
.topics li { padding: 16px 0; border-top: 1px solid rgba(11, 31, 58, 0.25); }
.topics b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.tier { display: block; margin-top: 6px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 700px) { .topics { grid-template-columns: 1fr 1fr; } }

/* Cards */
.cards { display: grid; gap: 24px; padding-top: 12px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); padding: 36px 28px;
  box-shadow: inset 0 0 0 1px var(--navy);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card h3 { font-size: 2rem; }
.card .price { font-family: var(--serif); font-size: 2.75rem; margin: 8px 0 12px; }
.card .desc { margin: 0 0 20px; }
.card ul { padding: 0; margin: 0 0 28px; list-style: none; flex: 1; }
.card li { padding: 8px 0 8px 18px; position: relative; border-top: 1px solid rgba(11, 31, 58, 0.15); }
.card li::before { content: "·"; position: absolute; left: 4px; }
.card .btn { width: 100%; }
.tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--navy); color: var(--white);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 12px;
}
.note { font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; }
.plan-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px;
  font-size: 0.9375rem; text-underline-offset: 3px;
}
.after-cards { text-align: center; margin-top: 40px; }

.card:focus-within {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 2px var(--navy), 0 24px 48px -16px rgba(11, 31, 58, 0.35);
  z-index: 1;
}
.cards:focus-within .card:not(:focus-within) { opacity: 0.6; }

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 24px; }
  .card.featured { transform: translateY(-12px); }
  .card.featured:focus-within { transform: translateY(-12px) scale(1.05); }
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 0 2px var(--navy), 0 24px 48px -16px rgba(11, 31, 58, 0.35);
    z-index: 1;
  }
  .cards:hover .card:not(:hover) { opacity: 0.6; }
}
@media (hover: hover) and (min-width: 900px) {
  .card.featured:hover { transform: translateY(-12px) scale(1.05); }
}

/* Table */
.table-wrap { position: relative; /* keeps the hidden ✓ labels inside the scroller */ overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: var(--line); border-bottom: var(--line); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 14px 12px; text-align: center; border-bottom: 1px solid rgba(11, 31, 58, 0.25); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; border-bottom: var(--line); }
tbody th { text-align: left; font-weight: 400; }
th:first-child {
  position: sticky; left: 0; z-index: 1;
  background: var(--off-white); text-align: left; width: 40%; min-width: 180px;
  box-shadow: 1px 0 0 rgba(11, 31, 58, 0.25);
}

/* Questions */
.faq { max-width: 46rem; border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; min-height: 44px; padding: 18px 0;
  font-family: var(--serif); font-size: 1.375rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--navy-light); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer ul { margin: 0 0 12px; padding-left: 20px; }

/* Footer */
.site-footer { border-top: var(--line); padding: 56px 0 48px; }
.site-footer .wordmark-small { display: inline-block; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0 0 10px; max-width: 46rem; }

/* Legal pages */
.legal { max-width: 46rem; padding-top: 48px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.75rem, 9vw, 4rem); margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin: 48px 0 12px; padding-top: 24px; border-top: var(--line); }
.legal p, .legal ul, .legal table { margin: 0 0 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal blockquote { margin: 20px 0; padding: 16px 20px; background: var(--off-white); border-left: var(--line); font-family: var(--serif); font-size: 1.25rem; }
.legal table { min-width: 0; }
.legal th, .legal td { text-align: left; }
.legal th:first-child { position: static; width: 30%; min-width: 0; }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; }

/* Scroll reveal (only when JS has set .js on <html>) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
