:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --text: #102033;
  --muted: #536277;
  --line: #d9e1ec;
  --brand: #133a6f;
  --brand-strong: #0e2d56;
  --brand-soft: #dfeafb;
  --accent: #1b67d9;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 840px);
}

.section {
  padding: 5.5rem 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(217, 225, 236, 0.7);
  border-bottom: 1px solid rgba(217, 225, 236, 0.7);
}

.section-hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.section-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
  border-top: 1px solid rgba(217, 225, 236, 0.7);
  border-bottom: 1px solid rgba(217, 225, 236, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 251, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 225, 236, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.wordmark-text {
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--brand);
}

.hero-grid,
.two-up,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.align-start {
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol {
  margin: 0;
}

.hero-subhead,
.section-heading + p,
.section-heading + ul,
.section-heading.left + p {
  font-size: 1.1rem;
}

.hero-subhead {
  max-width: 42rem;
  margin-top: 1.35rem;
  color: var(--muted);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 32px rgba(19, 58, 111, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-strong);
}

.button-secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f8fbff;
}

.hero-points,
.bullet-list {
  padding-left: 1.15rem;
}

.hero-points {
  margin-top: 1.5rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(217, 225, 236, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.memo-questions,
.about-card,
.cta-card,
.memo-sample,
.comparison,
.step {
  padding: 1.6rem;
}

.card-label,
.memo-meta,
.fine-print,
.footer-note {
  color: var(--muted);
}

.card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-card h2 {
  margin-top: 0.5rem;
  font-size: 1.65rem;
}

.card-lead {
  margin-top: 0.85rem;
  color: var(--muted);
}

.hero-card ol,
.memo-questions ol {
  padding-left: 1.15rem;
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
  text-align: center;
  margin-inline: auto;
}

.section-heading.left {
  text-align: left;
  margin-inline: 0;
}

.narrow p + p,
.two-up p + p {
  margin-top: 1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step p,
.memo-questions p,
.comparison span,
.footer-grid p {
  color: var(--muted);
}

.step h3 + p,
.memo-questions h3 + ol,
.about-card h3 + ul {
  margin-top: 0.85rem;
}

.comparison {
  display: grid;
  gap: 0.2rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(217, 225, 236, 0.8);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-head {
  color: var(--text);
}

.memo-sample h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-top: 0.9rem;
  max-width: 28ch;
}

.memo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.memo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.memo-grid section {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid rgba(217, 225, 236, 0.8);
}

.memo-grid h4,
.source-box h4,
.footer-grid h3 {
  margin-bottom: 0.55rem;
}

.source-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(217, 225, 236, 0.8);
  border-radius: var(--radius-sm);
}

.source-box ul {
  padding-left: 1.15rem;
  color: var(--muted);
}

.fine-print {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer {
  padding: 2.8rem 0 3.2rem;
  border-top: 1px solid rgba(217, 225, 236, 0.8);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  align-items: start;
}

.footer-wordmark {
  margin-bottom: 0.85rem;
}

.footer-grid a {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-up,
  .steps-grid,
  .footer-grid,
  .memo-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-card {
    align-items: flex-start;
  }

  .comparison-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4rem 0;
  }

  .section-hero {
    padding-top: 5rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .top-nav {
    gap: 0.85rem;
  }

  .comparison-row,
  .comparison-head {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }
}
