/* ============================================================
   Typst 推广官网 — 设计系统
   配色基于 Typst 品牌紫 #A561FF（扁平 · 现代 · 专业）
   ============================================================ */

:root {
  /* 品牌主色（取自 Typst logo 紫） */
  --brand: #A561FF;
  --brand-strong: #8B45F2;
  --brand-deep: #6D28D9;
  --brand-ink: #2b1a4d;
  --brand-soft: #f4edff;
  --brand-soft-2: #e9dcfd;
  --brand-line: #e3d4fb;

  /* 强调蓝（辅助色，用于渐变与次要点缀） */
  --accent: #4f46e5;
  --gradient: linear-gradient(135deg, #A561FF 0%, #8B5CF6 45%, #6366F1 100%);
  --gradient-soft: linear-gradient(135deg, #f4edff 0%, #eef0ff 100%);

  /* 中性色 */
  --ink: #201a30;
  --ink-2: #453c5e;
  --muted: #6f6684;
  --border: #e7e1f2;
  --surface: #ffffff;
  --surface-alt: #faf8fd;
  --surface-elev: #ffffff;

  /* 功能色 */
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  /* 排版 */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas,
    "Liberation Mono", monospace;

  /* 布局 */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 26, 77, 0.05), 0 1px 6px rgba(43, 26, 77, 0.06);
  --shadow-md: 0 6px 18px rgba(43, 26, 77, 0.08), 0 2px 6px rgba(43, 26, 77, 0.05);
  --shadow-lg: 0 18px 48px rgba(43, 26, 77, 0.14);
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 基础元素 ---------- */
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }

code, pre, kbd {
  font-family: var(--font-mono);
}

img, svg { max-width: 100%; height: auto; display: inline-block; }

::selection { background: rgba(165, 97, 255, 0.22); }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--alt { background: var(--surface-alt); }
.section--gradient {
  background: var(--gradient-soft);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(139, 69, 242, 0.32);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(139, 69, 242, 0.42); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--brand-deep);
  border-color: var(--brand-line);
}
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand-strong); color: var(--brand-deep); }

.btn--outline-on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-on-dark:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo .logo-mark { border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav a.active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(165, 97, 255, 0.16), transparent 60%),
    radial-gradient(900px 480px at 6% 8%, rgba(99, 102, 241, 0.14), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-deep);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 0.95rem; }
.hero-meta strong { color: var(--ink); font-size: 1.1rem; display: block; }
.hero-meta span { display: flex; align-items: baseline; gap: 6px; }

.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card .card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.hero-card .card-top .c {
  width: 12px; height: 12px; border-radius: 50%;
  background: #f2e9ff; border: 1px solid var(--brand-line);
}
.hero-card .card-top .c:nth-child(1) { background: #fca5a5; border-color: #fecaca; }
.hero-card .card-top .c:nth-child(2) { background: #fcd34d; border-color: #fde68a; }
.hero-card .card-top .c:nth-child(3) { background: #86efac; border-color: #bbf7d0; }
.hero-card .card-top .fname { margin-left: auto; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

.code-block {
  padding: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #3b3350;
  overflow-x: auto;
}
.code-block .c-kw { color: #7c3aed; font-weight: 600; }
.code-block .c-fn { color: #4f46e5; }
.code-block .c-str { color: #059669; }
.code-block .c-cm { color: #9aa0b5; }
.code-block .c-math { color: #c2410c; }

.hero-caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 12px; }

/* ---------- 数据条 ---------- */
.stat-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat { text-align: center; }
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.card--feature { padding: 30px; }
.card--feature h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- 使用场景 ---------- */
.scenario-list { display: grid; gap: 16px; }
.scenario {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.scenario:hover { border-color: var(--brand-line); background: #fdfcff; }
.scenario .num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.scenario h3 { margin-bottom: 4px; font-size: 1.08rem; }
.scenario p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- 引用 / 信任 ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.trust-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* ---------- 特性表格 / 代码展示 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col .copy h2 { margin-bottom: 16px; }
.two-col .copy p { color: var(--ink-2); }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #1f1833;
  color: #e7e2f5;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.panel .panel-head {
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #b9aee0;
}
.panel pre { margin: 0; padding: 18px; font-size: 0.86rem; line-height: 1.6; overflow-x: auto; color: #efeafb; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px; background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- 下载页 ---------- */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.platform-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.platform-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }
.platform-tab:hover { border-color: var(--brand-strong); }

.dl-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  animation: fadeIn 0.25s ease;
}
.dl-panel.active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dl-card {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.dl-card h3 { display: flex; align-items: center; gap: 10px; }
.dl-card h3 .badge {
  font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--gradient);
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.dl-card ul { margin: 0; padding: 0; list-style: none; }
.dl-card li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--ink-2);
  font-size: 0.96rem;
}
.dl-card li:last-child { border-bottom: none; }
.dl-card li code { background: var(--brand-soft); color: var(--brand-deep); padding: 2px 7px; border-radius: 6px; font-size: 0.85rem; }
.dl-card .dl-note { margin-top: 16px; font-size: 0.86rem; color: var(--muted); }

.verline { text-align: center; color: var(--muted); }
.verline strong { color: var(--brand-deep); }

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 13, 43, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
button { outline: none } 
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-head .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.modal-close {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1;
  flex: none;
}
.modal-close:hover { background: var(--brand-soft); color: var(--brand-deep); }
.modal-body { padding: 24px 26px 26px; }

.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  background: var(--surface-alt);
}
.qr-card .qr-wrap {
  width: 176px; height: 176px;
  margin: 0 auto 12px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.qr-card .qr-wrap svg { width: 100%; height: 100%; display: block; }
.qr-card .qr-name { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.qr-card .qr-hint { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.qr-card .qr-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--muted);
  word-break: break-all;
}
.modal-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.modal-foot a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev { transition: transform 0.2s ease; color: var(--brand); font-size: 1.2rem; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a .inner { padding: 0 20px 20px; color: var(--ink-2); font-size: 0.97rem; }
.faq-a .inner p { margin: 0 0 10px; }
.faq-a .inner p:last-child { margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #1f1833;
  color: #c9c0e2;
  padding: 64px 0 32px;
}
.site-footer a { color: #c9c0e2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 0.92rem; margin-top: 14px; max-width: 30rem; }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #a99fc6;
}
.footer-bottom a { color: #a99fc6; }

/* ---------- 页头（内页） ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 80% -20%, rgba(165, 97, 255, 0.16), transparent 60%),
    var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 46rem; margin: 0 auto; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ---------- 参考来源 ---------- */
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; color: var(--ink-2); }
.source-list li:last-child { border-bottom: none; }
.source-list a { word-break: break-all; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

/* ---------- CTA 区块 ---------- */
.cta-band {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 40rem; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }
.cta-band .btn--primary:hover { transform: translateY(-1px); }
.cta-band .btn--outline-on-dark { border-color: rgba(255,255,255,0.6); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { max-width: 560px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .dl-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { padding: 11px 18px; font-size: 0.9rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .qr-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .modal { max-height: 90vh; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
