:root {
  color-scheme: light;
  --ink: #091b36;
  --muted: #5d687b;
  --blue: #0162f7;
  --line: #dfe5ee;
  --paper: #fff;
  --soft: #f7f8fa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
a { color: inherit; }

.site-header,
.page,
.page-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand img { display: block; width: 116px; height: auto; }
.header-links { display: flex; gap: 24px; font-size: 13px; }
.header-links a { color: var(--muted); text-decoration: none; }
.header-links a:hover { color: var(--blue); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumbs a { color: var(--blue); text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  padding: 46px;
  border: 1px solid #e3e8f0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 91% 18%, rgba(41, 152, 255, .16), transparent 31%),
    linear-gradient(120deg, #fff4f1, #edf5ff 72%, #fff);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(41, 152, 255, .35), transparent 42%),
    var(--ink);
}
.hero-card span { color: #b7c3d4; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-card strong { margin: 8px 0 6px; font-size: 30px; line-height: 1.12; }
.hero-card small { color: #b7c3d4; line-height: 1.45; }

.calculator-shell {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid #e5e9ef;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(9, 27, 54, .08);
}

.calculator-frame {
  display: block;
  width: 100%;
  min-height: 1850px;
  border: 0;
  overflow: hidden;
}

.content {
  margin-top: 34px;
  padding: 8px 0 50px;
}
.content-intro { max-width: 900px; }
.content h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.content h3 { margin-bottom: 8px; font-size: 19px; }
.content p, .content li { color: var(--muted); font-size: 16px; line-height: 1.65; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}
.content-card b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--blue);
  background: #e7f1ff;
}

.faq {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 0; font-weight: 700; cursor: pointer; }
.faq details p { max-width: 900px; padding: 0 0 18px; margin: 0; }

.source-note {
  margin-top: 32px;
  padding: 22px;
  border-left: 3px solid var(--blue);
  background: #f2f7ff;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 800px) {
  .site-header,
  .page,
  .page-footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 60px; }
  .header-links a:first-child { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    border-radius: 26px;
  }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 15px; }
  .hero-card { display: none; }
  .calculator-shell { margin-top: 16px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .calculator-frame { min-height: 2800px; }
  .content-grid { grid-template-columns: 1fr; }
  .content { margin-top: 24px; }
  .page-footer { flex-direction: column; }
}
