:root {
  --bg: #f7fbff;
  --paper: #ffffff;
  --ink: #132238;
  --muted: #5d6b7e;
  --line: #dbe7f3;
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --accent: #38bdf8;
  --accent-soft: #eaf5ff;
  --tint: #eef7ff;
  --warm: #fff8e7;
  --shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
  --shadow-soft: 0 16px 44px rgba(28, 47, 74, 0.08);
  --radius: 22px;
}

* { 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(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.zoom-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.zoom-link img {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.zoom-link:hover img {
  transform: translateY(-1px) scale(1.01);
}
.zoom-link:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.45);
  outline-offset: 4px;
  border-radius: 18px;
}
.zoom-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(3rem, 6.4vw, 5.15rem); max-width: 920px; margin-inline: auto; }
h2 { font-size: clamp(2rem, 4.1vw, 3.2rem); }
h3 { font-size: 1.13rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.section-pad { padding: 78px 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 231, 243, 0.9);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--brand-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 760;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(56, 189, 248, 0.45); outline-offset: 3px; }
.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}
.button-primary:hover { background: var(--brand-dark); }
.button-secondary {
  color: var(--brand-dark);
  background: var(--paper);
  border-color: var(--line);
}
.button-secondary:hover { border-color: rgba(37, 99, 235, 0.32); }
.button-small { min-height: 40px; padding: 0 15px; font-size: 0.9rem; }

.hero {
  padding-top: 86px;
  padding-bottom: 66px;
  background:
    radial-gradient(circle at 80% 6%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 15% 18%, rgba(37, 99, 235, 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-stack {
  display: grid;
  gap: 36px;
}
.hero-copy-centered {
  text-align: center;
  max-width: 940px;
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.subtitle {
  margin: 20px auto 0;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  color: #243145;
  max-width: 720px;
}
.hero-body,
.section-heading p,
.two-col > div:first-child p,
.scheduler-card p,
.final-card p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 740px;
}
.hero-copy-centered .hero-body { margin-inline: auto; }
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.fine-print { margin-top: 13px; font-size: 0.91rem; color: var(--muted); }
.hero-visual-wide {
  margin: 0 auto;
  width: min(100%, 1220px);
}
.hero-visual-wide img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.panel,
.feature-card,
.download-card,
.scheduler-card,
.final-card,
.preview-frame,
.tip-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.section-heading { max-width: 760px; margin-bottom: 34px; }
.preview-frame { padding: 14px; overflow: hidden; }
.preview-frame img { border-radius: 16px; border: 1px solid var(--line); }
.preview-frame .zoom-link,
.inline-preview .zoom-link { display: block; }
.preview-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.preview-labels article,
.definition-grid > div {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.preview-labels p,
.definition-grid p,
.feature-card p { margin-top: 8px; color: var(--muted); }
.compact-cta { padding-top: 0; }
.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
}
.download-card p:not(.eyebrow), .template-note { margin-top: 12px; color: var(--muted); }
.template-note { max-width: 780px; font-size: 0.94rem; }
.download-actions { text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}
.align-start { align-items: start; }
.panel { padding: 28px; }
.bullet-list, .x-list { padding: 0; margin: 20px 0 0; list-style: none; }
.bullet-list li, .x-list li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  color: var(--muted);
}
.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}
.x-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}
.aside-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 16px;
  background: var(--warm);
  color: #655024;
}
.tinted { background: var(--tint); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card { padding: 22px; box-shadow: none; }
.feature-card-wide { grid-column: span 2; }
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.step-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
}
.step-list span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-weight: 820;
}
.tip-box {
  margin-top: 18px;
  padding: 18px 22px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
th, td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th { color: var(--ink); background: #f3f8ff; }
tr:last-child td { border-bottom: 0; }
.inline-preview {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.inline-preview img { width: 100%; }
.inline-preview-codes { max-width: 900px; justify-self: end; }
.inline-preview-totals { margin-top: 28px; }
.definition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.limits {
  background: linear-gradient(135deg, #10233f, #1d3d66);
  color: #fff;
}
.limits .eyebrow { color: #bfe8ff; }
.limits p { color: rgba(255,255,255,0.78); }
.panel-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.panel-dark li, .panel-dark p { color: rgba(255,255,255,0.84); }
.scheduler-cta {
  background:
    radial-gradient(circle at 16% 20%, rgba(56, 189, 248, 0.16), transparent 32%),
    var(--bg);
}
.scheduler-card,
.final-card {
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.scheduler-actions { display: grid; gap: 12px; min-width: 280px; }
.support-line { font-weight: 760; color: var(--brand-dark) !important; }
.final-cta { padding-top: 0; }
.final-card { text-align: center; display: block; }
.final-card p { margin-inline: auto; }
.site-footer {
  padding: 44px 0;
  background: #0f1f35;
  color: rgba(255,255,255,0.76);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
}
.site-footer strong { color: #fff; }
.site-footer p { margin-top: 10px; max-width: 720px; }
.site-footer ul { padding: 0; margin: 10px 0 0; list-style: none; }
.site-footer li { margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 980px) {
  .nav { display: none; }
  .section-pad { padding: 64px 0; }
  .hero { padding-top: 72px; }
  .download-card,
  .two-col,
  .scheduler-card,
  .footer-grid { grid-template-columns: 1fr; }
  .download-actions, .scheduler-actions { text-align: left; min-width: 0; }
  .preview-labels,
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 64px; }
  .button-small { display: none; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .subtitle { font-size: 1.15rem; }
  .hero-body { font-size: 1rem; }
  .cta-row { display: grid; }
  .preview-labels,
  .card-grid,
  .definition-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .download-card,
  .scheduler-card,
  .final-card { padding: 26px; }
  .hero-visual-wide img { border-radius: 18px; }
  .brand { font-size: 0.96rem; }
}
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #183b70;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(24, 59, 112, 0.28);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #0f2d59;
  box-shadow: 0 18px 42px rgba(24, 59, 112, 0.34);
}

.back-to-top:focus-visible {
  outline: 3px solid #84c5ff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 68px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
  }
}

