/* ==========================================================================
   Taoify 站群 v2 设计系统
   - 纯本地资源，无 CDN / 无外部字体 / 无图片依赖
   - 品牌紫沿用 aitaoify.com，按主题簇提供 accent 变体
   - 所有区块由内容引擎按事实源渲染，本文件只负责视觉
   ========================================================================== */

:root {
  --brand: #6d28d9;
  --brand-2: #8b5cf6;
  --brand-soft: #f3efff;
  --accent: #6d28d9;
  --accent-2: #8b5cf6;
  --accent-soft: #f3efff;
  --accent-ink: #4c1d95;

  --ink: #101828;
  --body: #475467;
  --muted: #98a2b3;
  --line: #e4e7ec;
  --line-soft: #f0f2f5;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f3f5f9;
  --dark: #0c1224;
  --dark-2: #141c34;
  --white: #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .12);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body[data-accent="violet"]  { --accent:#6d28d9; --accent-2:#8b5cf6; --accent-soft:#f3efff; --accent-ink:#4c1d95; }
body[data-accent="blue"]    { --accent:#1d4ed8; --accent-2:#3b82f6; --accent-soft:#eef4ff; --accent-ink:#1e3a8a; }
body[data-accent="indigo"]  { --accent:#4338ca; --accent-2:#6366f1; --accent-soft:#eef0ff; --accent-ink:#312e81; }
body[data-accent="teal"]    { --accent:#0f766e; --accent-2:#14b8a6; --accent-soft:#e9f8f6; --accent-ink:#115e59; }
body[data-accent="amber"]   { --accent:#b45309; --accent-2:#f59e0b; --accent-soft:#fff6e6; --accent-ink:#92400e; }
body[data-accent="purple"]  { --accent:#7e22ce; --accent-2:#a855f7; --accent-soft:#f7efff; --accent-ink:#581c87; }
body[data-accent="rose"]    { --accent:#be185d; --accent-2:#f43f5e; --accent-soft:#fff0f5; --accent-ink:#831843; }
body[data-accent="cyan"]    { --accent:#0e7490; --accent-2:#06b6d4; --accent-soft:#e8f8fc; --accent-ink:#155e75; }
body[data-accent="green"]   { --accent:#15803d; --accent-2:#22c55e; --accent-soft:#edfaf0; --accent-ink:#14532d; }
body[data-accent="orange"]  { --accent:#c2410c; --accent-2:#fb923c; --accent-soft:#fff2e9; --accent-ink:#9a3412; }
body[data-accent="slate"]   { --accent:#334155; --accent-2:#64748b; --accent-soft:#f1f4f8; --accent-ink:#1e293b; }
body[data-accent="navy"]    { --accent:#1e3a8a; --accent-2:#3b5bdb; --accent-soft:#edf1ff; --accent-ink:#172554; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.72;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.alt { background: var(--surface); }
.center { text-align: center; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.24; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(32px, 4.1vw, 52px); }
h2 { font-size: clamp(27px, 3.1vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em;
  color: var(--accent); text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--body); font-size: 17px; }
.hl { color: var(--accent); }
.lead { font-size: 18px; color: var(--body); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; }
.notice {
  margin-top: 26px; padding: 14px 18px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px; color: var(--body);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--accent-ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-plain { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-plain:hover { gap: 14px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

/* ---------- top bar / nav ---------- */
.topbar {
  background: var(--dark); color: #cbd5e1; font-size: 12.5px;
  padding: 8px 0; letter-spacing: .01em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }
.topbar b { color: #fff; font-weight: 650; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 820; letter-spacing: -.045em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 800;
  letter-spacing: 0; transform: rotate(-6deg);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--body); font-weight: 550; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14px; color: var(--body); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 78px 0 70px;
  background:
    radial-gradient(900px 520px at 88% -12%, var(--accent-soft), transparent 62%),
    radial-gradient(700px 460px at 4% 108%, #f6f8ff, transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 62px; align-items: center; }
.hero h1 { margin: 22px 0 20px; text-wrap: balance; }
.hero h1 .accent-line {
  display: block; color: var(--accent); font-size: .58em; font-weight: 650;
  letter-spacing: .01em; margin-top: 12px;
}
.hero .lead { max-width: 560px; font-size: 18.5px; }
.hero .sub { margin-top: 12px; color: var(--muted); font-size: 14px; }
.hero .btn-row { margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 34px; font-size: 13.5px; color: var(--body); }
.hero-trust i { font-style: normal; color: var(--accent); font-weight: 800; margin-right: 6px; }

/* CSS-drawn product mock: no external assets */
.mock {
  position: relative; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d5dd; display: block; }
.mock-bar i:first-child { background: #f97066; }
.mock-bar i:nth-child(2) { background: #fdb022; }
.mock-bar i:nth-child(3) { background: #32d583; }
.mock-bar span { margin-left: 12px; font-size: 11.5px; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 116px 1fr; min-height: 320px; }
.mock-side { background: var(--dark); padding: 18px 12px; }
.mock-side b { display: block; color: #fff; font-size: 12px; margin-bottom: 14px; letter-spacing: -.02em; }
.mock-side div { color: #94a3b8; font-size: 11.5px; padding: 7px 9px; border-radius: 6px; margin-bottom: 3px; }
.mock-side div.on { background: rgba(255,255,255,.12); color: #fff; }
.mock-main { padding: 20px; }
.mock-main h4 { font-size: 14px; margin-bottom: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mock-kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 9px; padding: 10px; }
.mock-kpi small { display: block; color: var(--muted); font-size: 10px; }
.mock-kpi b { font-size: 17px; letter-spacing: -.03em; }
.mock-kpi b em { font-style: normal; font-size: 10px; color: var(--accent); margin-left: 3px; }
.mock-table { border: 1px solid var(--line-soft); border-radius: 9px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 1.3fr .8fr .7fr; gap: 8px; padding: 9px 11px; font-size: 11px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { background: var(--surface); color: var(--muted); font-size: 10px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 650; }
.pill.ok { background: #e7f7ed; color: #15803d; }
.pill.run { background: #eef2ff; color: #4338ca; }
.pill.wait { background: #fff4e5; color: #b45309; }
.mock-float {
  position: absolute; right: 14px; bottom: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 11px 15px; font-size: 11.5px; color: var(--body);
  display: flex; align-items: center; gap: 9px;
}
.mock-float b { color: var(--accent); font-size: 15px; }

/* ---------- metric strip ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.metrics > div { padding: 22px 18px; border-right: 1px solid var(--line-soft); }
.metrics > div:last-child { border-right: 0; }
.metric-num { font-size: 27px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); }
.metric-num span { font-size: 14px; margin-left: 2px; }
.metric-label { font-size: 13px; font-weight: 650; margin-top: 2px; }
.metric-note { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 19px; font-weight: 700; margin-bottom: 16px;
}
.card h3 { margin-bottom: 9px; font-size: 18px; }
.card p { color: var(--body); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tag { font-size: 11.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- pain / solution ---------- */
.pain-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
}
.pain .q { font-weight: 700; font-size: 16px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.pain .q::before { content: "?"; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.pain .a { color: var(--body); font-size: 14.5px; }
.pain .gain { margin-top: 12px; font-size: 13px; color: var(--accent); font-weight: 650; }
.pain .gain::before { content: "→ "; }

/* ---------- pillars ---------- */
.pillar { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: 0; padding-top: 0; }
.pillar .no { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -.05em; opacity: .55; }
.pillar h3 { font-size: 22px; margin-bottom: 6px; }
.pillar .lead { font-size: 15.5px; color: var(--body); margin-bottom: 12px; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar li { position: relative; padding-left: 20px; font-size: 14px; color: var(--body); margin-bottom: 6px; }
.pillar li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.step::after { content: ""; position: absolute; right: -19px; top: 46px; width: 19px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step .no { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--body); }

/* ---------- two paths ---------- */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.path {
  padding: 32px; border-radius: var(--r-lg); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 100%);
}
.path::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: var(--accent); opacity: .22; filter: blur(8px); }
.path .eyebrow { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.path h3 { font-size: 25px; margin: 18px 0 10px; position: relative; }
.path p { color: #c7d2e3; font-size: 14.5px; position: relative; }
.path .aud { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #aebbd0; position: relative; }
.path .btn { margin-top: 22px; position: relative; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px;
  display: flex; flex-direction: column; position: relative;
}
.price.popular { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price.popular::before {
  content: "多数人选这个"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.price h3 { font-size: 17px; }
.price .num { font-size: 31px; font-weight: 800; letter-spacing: -.04em; margin: 12px 0 2px; }
.price .num span { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price .note { font-size: 12px; color: var(--muted); min-height: 34px; }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.price li { font-size: 13.5px; color: var(--body); padding: 6px 0 6px 18px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.commission { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.commission div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; text-align: center; }
.commission b { display: block; font-size: 23px; color: var(--accent); letter-spacing: -.03em; }
.commission small { color: var(--muted); font-size: 12px; }

/* ---------- comparison ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.tbl th { background: var(--surface); font-weight: 700; font-size: 13px; color: var(--body); }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td:first-child { font-weight: 650; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 17px 20px; font-weight: 650; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--accent); }
.faq .ans { padding: 0 20px 18px; color: var(--body); font-size: 14.5px; }

/* ---------- article body ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { font-size: 26px; margin: 38px 0 14px; }
.article h3 { font-size: 19px; margin: 28px 0 10px; }
.article p { color: var(--body); font-size: 16px; margin-bottom: 16px; }
.article ul { color: var(--body); padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article .callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 18px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 26px 0; font-size: 15px; color: var(--accent-ink); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--accent-ink) 160%);
  color: #fff; padding: 76px 0; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(20px); }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); position: relative; }
.cta-band p { color: #c7d2e3; margin-top: 14px; font-size: 16px; position: relative; }
.cta-band .btn-row { position: relative; }
.cta-band .fine { color: #94a3b8; margin-top: 18px; position: relative; }

/* ---------- footer ---------- */
.footer { background: #0a0f1e; color: #94a3b8; padding: 58px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer a { display: block; padding: 4px 0; color: #94a3b8; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo span { color: #a78bfa; }
.footer .desc { max-width: 320px; line-height: 1.7; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.footer .legal { font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.6; }

/* ---------- daily insight column + article meta ---------- */
.insight-list { max-width: 860px; margin: 0 auto; }
.insight-item {
  display: grid; grid-template-columns: 128px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.insight-item:first-child { border-top: 0; }
.insight-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.insight-item h3 { font-size: 20px; margin-bottom: 8px; }
.insight-item h3 a:hover { color: var(--accent); }
.insight-item p { color: var(--body); font-size: 14.5px; margin-bottom: 10px; }
.topic-pill { font-size: 11.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }
.empty-state { padding: 44px; text-align: center; color: var(--body); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); }
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
}
.ai-badge::before { content: "✦"; color: var(--accent); }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.article h1 { font-size: clamp(30px, 3.6vw, 44px); }

/* ---------- reveal ----------
   Content is visible by default. The animation is a pure enhancement: no
   fill-mode, no IntersectionObserver dependency, so a blocked/delayed script
   or a headless renderer can never leave the page blank. */
.reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.js .reveal { animation: rise .55s ease; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mock { transform: none; max-width: 560px; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metrics > div:nth-child(3) { border-right: 0; }
  .grid-4, .prices, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 58px 0; }
  .nav .wrap { height: 62px; }
  .nav-links, .nav-cta .login { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .hero { padding: 52px 0 48px; }
  .grid-2, .grid-3, .grid-4, .pain-list, .paths, .prices, .steps, .commission { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .insight-item { grid-template-columns: 1fr; gap: 8px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-float { right: 8px; bottom: -12px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { animation: none; opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; }
}

/* ===== S2: per-site editorial block ===== */
.voice-body p { margin: 0 0 14px; color: var(--body); font-size: 15px; line-height: 1.85; }
.voice-body p:last-child { margin-bottom: 0; }
.voice-close { color: var(--accent); font-weight: 600; }
.voice-qa { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.voice-qa .q { font-weight: 600; margin-bottom: 8px; }
.voice-qa .a { color: var(--body); font-size: 14.5px; }

/* ---------- S4: search-intent Q&A block ---------- */
.kw-block { margin-top: 34px; }
.kw-block .section-head { margin-bottom: 18px; }
.kw-qa { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kw-qa:last-of-type { border-bottom: 0; }
.kw-qa h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.kw-qa p { margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.8; }
.kw-next { margin-top: 18px; color: var(--body); font-size: 14px; line-height: 1.8; }
.kw-next a, .kw-block a { color: var(--accent); text-decoration: none; font-weight: 600; }
.kw-next a:hover, .kw-block a:hover { text-decoration: underline; }

/* ===== S2: six layout variants + four surface variants =====
   Layout rules are desktop-only so the existing tablet/mobile single-column
   breakpoints keep working unchanged. Surface rules apply at all widths. */
@media (min-width: 1021px) {
  body[data-layout="1"] .hero-grid { grid-template-columns: .95fr 1.05fr; }
  body[data-layout="1"] .hero-grid > :first-child { order: 2; }
  body[data-layout="1"] .hero-grid > :last-child { order: 1; }
  body[data-layout="1"] .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-layout="1"] .pain-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  body[data-layout="2"] .hero-grid { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }
  body[data-layout="2"] .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-layout="2"] .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body[data-layout="3"] .hero { padding-top: 112px; padding-bottom: 112px; }
  body[data-layout="3"] .grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-layout="3"] .pain-list { grid-template-columns: 1fr; }

  body[data-layout="4"] .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  body[data-layout="4"] .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-layout="4"] .paths { grid-template-columns: 1fr; }

  body[data-layout="5"] .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 36px; }
  body[data-layout="5"] .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-layout="5"] .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body[data-layout="2"] .card { border: 1px solid var(--line); }
body[data-layout="3"] .card { border: 1px solid var(--accent); }
body[data-layout="4"] .section.alt { background: var(--accent-soft); }
body[data-layout="5"] .pain { border-left: 3px solid var(--accent); }
body[data-skin="0"] .voice-body { background: var(--surface); }
body[data-skin="2"] .voice-body { border-left: 4px solid var(--accent); }
body[data-skin="3"] .section-head h2 { letter-spacing: -.02em; }

/* ==========================================================================
   S3 — eight structurally different first screens.
   These are DOM variants (see tools/site_design.py), not column tweaks:
   each moves the eyebrow / headline / copy / CTA / trust / product mock into
   a different arrangement, and the 10 body <section>s are reordered per site.
   ========================================================================== */
.hx-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hx-col { min-width: 0; }
.hx-media .mock { width: 100%; }
.hx-wide { margin-top: 40px; max-width: 880px; }
.hx-center { max-width: 790px; margin: 0 auto; text-align: center; }
.hx-center .btn-row, .hx-center .hero-trust, .hx-center .hx-center-row { justify-content: center; }
.hx-center .hx-center-row { display: flex; }
.hx-center .hero-trust { display: flex; }
.hx-idx { font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.hx-rule { display: block; width: 1px; height: 120px; background: var(--line); margin: 18px 0; }
.hx-qmark { font-size: 120px; line-height: 1; font-weight: 800; color: var(--accent); opacity: .18; }
.hx-answer { padding-left: 26px; border-left: 3px solid var(--accent); }
.hx-ticker { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 34px; }
.hx-ticker .hero-trust { margin-top: 0; }
.hx-stack-top { max-width: 920px; margin-bottom: 34px; }
.hx-rail-trust .hero-trust { flex-direction: column; gap: 8px; }
.hx-panel-trust .hero-trust { border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.hero-note { margin-top: 10px; font-size: 13.5px; color: var(--accent-ink); font-weight: 600; }

@media (min-width: 1021px) {
  .hero--centered .hx-center { max-width: 820px; }
  .hero--magazine .hx-grid { grid-template-columns: 92px 1.2fr .8fr; gap: 34px; align-items: start; }
  .hero--magazine .hx-rail { display: flex; flex-direction: column; gap: 10px; }
  .hero--magazine .hx-rail .eyebrow { writing-mode: vertical-rl; }
  .hero--qa .hx-grid { grid-template-columns: .85fr 1.15fr; gap: 46px; }
  .hero--ticker .hx-grid { grid-template-columns: 1.15fr .85fr; gap: 46px; }
  .hero--reverse .hx-grid { grid-template-columns: .95fr 1.05fr; }
  .hero--stack .hx-grid { grid-template-columns: 1.1fr .9fr; gap: 44px; }
  .hero--panel .hx-grid { gap: 40px; }
}
/* The product mock is always a white card, even inside a dark hero: reset
   inherited light text so its table stays readable. */
.hero .mock { color: var(--ink); }
body[data-hero="panel"] .hero { border-bottom: 0; }
body[data-hero="panel"] .hero h1,
body[data-hero="panel"] .hero .lead { color: #fff; }
body[data-hero="panel"] .hero .sub,
body[data-hero="panel"] .hero .hero-note,
body[data-hero="panel"] .hero .hero-trust { color: #c7d2e3; }
body[data-hero="panel"] .hero .eyebrow { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
body[data-hero="panel"] .hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
body[data-hero="panel"] .hero .hero-note { color: #c4b5fd; }

/* ---------- S3: six navigation treatments ---------- */
body[data-nav="centered"] .topbar { display: none; }
body[data-nav="centered"] .nav .wrap { flex-wrap: wrap; height: auto; padding: 12px 0; justify-content: center; position: relative; }
body[data-nav="centered"] .nav .logo { width: 100%; justify-content: center; }
body[data-nav="centered"] .nav .nav-links { width: 100%; margin: 10px 0 0; justify-content: center; flex-wrap: wrap; }
body[data-nav="centered"] .nav .nav-cta { position: absolute; right: 0; top: 12px; }
body[data-nav="pill"] .nav-links { gap: 8px; }
body[data-nav="pill"] .nav-links a { padding: 7px 14px; border-radius: 999px; background: var(--surface); }
body[data-nav="pill"] .nav-links a:hover, body[data-nav="pill"] .nav-links a[aria-current="page"] { background: var(--accent-soft); }
body[data-nav="underline"] .nav { background: #fff; backdrop-filter: none; border-bottom: 2px solid var(--accent-soft); }
body[data-nav="underline"] .nav-links a { padding: 23px 2px; border-bottom: 2px solid transparent; }
body[data-nav="underline"] .nav-links a:hover { border-bottom-color: var(--accent); }
body[data-nav="dark"] .topbar { display: none; }
body[data-nav="dark"] .nav { background: var(--dark); border-bottom-color: rgba(255,255,255,.1); }
body[data-nav="dark"] .nav .logo, body[data-nav="dark"] .nav-links a { color: #e2e8f0; }
body[data-nav="dark"] .nav-links a:hover { color: #fff; }
body[data-nav="dark"] .nav-toggle { color: #fff; }
body[data-nav="compact"] .topbar { display: none; }
body[data-nav="compact"] .nav .wrap { height: 56px; }
body[data-nav="compact"] .logo { font-size: 19px; }
body[data-nav="compact"] .nav-links { gap: 14px; }
body[data-nav="compact"] .nav-links a { font-size: 13px; }
@media (max-width: 760px) {
  body[data-nav="dark"] .nav.open .nav-links { background: var(--dark); }
  body[data-nav="dark"] .nav.open .nav-links a { border-bottom-color: rgba(255,255,255,.12); }
  body[data-nav="centered"] .nav .nav-cta { display: none; }
}

/* ---------- S3: four surface languages ---------- */
body[data-cards="soft"] .card, body[data-cards="soft"] .pain,
body[data-cards="soft"] .step, body[data-cards="soft"] .price,
body[data-cards="soft"] .voice-body, body[data-cards="soft"] .insight-item {
  background: var(--surface); border-color: transparent; box-shadow: none;
}
body[data-cards="outline"] .card, body[data-cards="outline"] .pain,
body[data-cards="outline"] .step, body[data-cards="outline"] .price,
body[data-cards="outline"] .voice-body {
  background: #fff; box-shadow: none; border-style: solid; border-color: var(--line);
}
body[data-cards="elevated"] .card, body[data-cards="elevated"] .pain,
body[data-cards="elevated"] .step, body[data-cards="elevated"] .price,
body[data-cards="elevated"] .voice-body {
  border-color: transparent; box-shadow: var(--shadow-md);
}
body[data-cards="flat"] .card, body[data-cards="flat"] .pain,
body[data-cards="flat"] .step, body[data-cards="flat"] .price,
body[data-cards="flat"] .voice-body {
  background: var(--surface-2); border-color: transparent;
  border-bottom: 3px solid var(--accent); box-shadow: none;
}

/* ---------- S3: four footer treatments ---------- */
body[data-footer="wide"] .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
body[data-footer="compact"] .footer-grid { grid-template-columns: 1fr; gap: 18px; }
body[data-footer="compact"] .footer { padding-top: 32px; padding-bottom: 24px; }
body[data-footer="compact"] .footer h4 { display: inline; margin-right: 10px; }
body[data-footer="dark"] .footer { background: var(--dark); color: #c7d2e3; }
body[data-footer="dark"] .footer a, body[data-footer="dark"] .footer h4,
body[data-footer="dark"] .footer .logo { color: #e2e8f0; }
body[data-footer="dark"] .footer .desc, body[data-footer="dark"] .footer .legal { color: #94a3b8; }
body[data-footer="dark"] .footer-bottom { border-top-color: rgba(255,255,255,.12); }

/* ---------- S3: all hero variants stay readable on small screens ---------- */
@media (max-width: 1020px) {
  .hx-grid, .hero--magazine .hx-grid, .hero--qa .hx-grid,
  .hero--ticker .hx-grid, .hero--stack .hx-grid { grid-template-columns: 1fr; gap: 36px; }
  .hx-rail { display: none !important; }
  .hx-center { max-width: 100%; }
  .hx-wide { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hx-answer { padding-left: 0; border-left: 0; }
  .hx-qmark { font-size: 76px; }
  .hero--magazine .hx-mag-side, .hero--centered .hx-center { text-align: left; }
}
