:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #18212b;
  --ink-2: #4a5562;
  --ink-3: #5c6570;
  --line: #e2e6ea;
  --line-2: #d3d9df;
  --brand: #008fbe;
  --brand-ink: #00729a;
  --brand-wash: #e8f4f9;
  --amber: #8a5000;
  --amber-wash: #fdf3e3;
  --radius: 10px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Sora", "Noto Sans TC", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
img, svg { display: block; }
::selection { background: #cbe7f2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-2) var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.latin { font-family: var(--latin); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-en { font-family: var(--latin); font-weight: 300; font-size: 17px; letter-spacing: .32em; }
.brand-tc { font-size: 11px; letter-spacing: .38em; color: var(--ink-3); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 8px;
  font: 500 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: #005f80; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; }
.nav .btn, .nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.22; font-weight: 700;
  letter-spacing: -.01em; text-wrap: balance;
}
.hero-lead { margin-top: 24px; font-size: clamp(16px, 1.35vw, 18px); color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.terms { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.terms li { display: inline-flex; align-items: center; gap: 8px; }
.terms svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.terms strong { color: var(--ink); font-weight: 700; }

.reach {
  display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3);
}
.reach a { color: var(--ink); text-decoration: none; font-weight: 500; }    .reach a:hover { text-decoration: underline; }

/* ---------- 首屏示意面板 ---------- */
.demo {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(24, 33, 43, .05), 0 6px 14px -8px rgba(24, 33, 43, .16);
}
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.demo-bar b { font-weight: 500; color: var(--ink); }
.sample-tag {
  font-size: 12px; color: var(--amber); background: var(--amber-wash);
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.demo-body { display: grid; gap: 14px; padding: 18px; }

.step-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.step-label svg { width: 14px; height: 14px; }

/* 單據 */
.doc { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.doc-sheet {
  width: 92px; aspect-ratio: 210 / 297; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--surface); padding: 10px 9px; display: grid; align-content: start; gap: 5px;
}
.doc-sheet i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.doc-sheet i:nth-child(1) { width: 60%; height: 6px; background: var(--line-2); margin-bottom: 4px; }
.doc-sheet i:nth-child(4), .doc-sheet i:nth-child(7) { width: 70%; }
.doc-sheet i.hit { background: #9fd3e7; }
.fields { display: grid; gap: 6px; font-size: 14px; }
.field {
  display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; align-items: baseline;
  padding: 6px 10px; border-radius: 6px; background: var(--bg);
  transition: background-color .4s var(--ease-out);
}
.field dt { color: var(--ink-3); font-size: 13px; }
.field dd { color: var(--ink); font-weight: 500; }
.field.is-read { background: var(--brand-wash); }
.type-chip { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 4px; }
.type-dev { color: var(--brand-ink); background: var(--brand-wash); }
.type-ops { color: #3f6b2e; background: #edf5e8; }

/* Excel 列 */
.sheet { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th { font-weight: 500; color: var(--ink-3); background: var(--bg); font-size: 12px; }
.sheet .amt { text-align: right; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet tr.new td { background: var(--brand-wash); }
.sheet tr.new { transition: opacity .5s var(--ease-out); }

/* 面板 */
.board { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 8px; }
.board div { padding: 12px 14px; }
.board div + div { border-left: 1px solid var(--line); }
.board dt { font-size: 12px; color: var(--ink-3); }
.board dd { font-size: 20px; font-weight: 600; line-height: 1.4; }
.board dd.bump { color: var(--brand-ink); }

/* 動態：只有 JS 啟動且未要求減少動態時才從初始狀態播放；預設即為完成狀態 */
.demo.is-playing .field { background: var(--bg); }
.demo.is-playing .sheet tr.new { opacity: 0; }
.demo.is-playing .doc-sheet i.hit { background: var(--line); }

/* ---------- 共用區塊 ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-white { background: var(--surface); }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.35; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
.prose { color: var(--ink-2); font-size: 17px; max-width: 36em; }
.prose + .prose { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .h2 + .prose { margin-top: 20px; }

/* 痛點：置中標題＋引言卡片，第一列三張、第二列兩張置中 */
.pain-head { text-align: center; max-width: 44em; margin: 0 auto clamp(40px, 5vw, 56px); }
.pain-head .prose { margin: 20px auto 0; }
.doubts { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1010px; margin: 0 auto; }
.doubts li {
  flex: 0 1 calc((100% - 40px) / 3); min-height: 178px;
  padding: 28px 28px 32px; background: #f3f4f6; border-radius: 14px;
}
.doubts svg { width: 22px; height: 22px; color: var(--brand-ink); margin: 0 0 22px 28px; }
.doubts p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.75; font-weight: 500; color: var(--ink); }

/* 做法：時間軸，簽約前後分段 */
.approach-head .h2 { font-size: clamp(24px, 3vw, 38px); }
.approach-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.approach-head .prose { justify-self: start; }
.timeline { margin-top: clamp(48px, 6vw, 72px); }
.phases { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 14px; }
.phase { font-size: 14px; font-weight: 500; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid currentColor; display: flex; justify-content: space-between; gap: 12px; }
.phase-free { color: var(--brand-ink); }
.phase-paid { color: var(--brand-ink); }
.phase small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto auto; gap: 0 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 44px; display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--latin); color: var(--brand-ink); background: var(--brand-wash);
}
.steps li::after { content: ""; position: absolute; top: 15px; left: 38px; right: -8px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; font-weight: 700; line-height: 1.5; text-wrap: balance; align-self: start; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.price {
  margin-top: clamp(48px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center;
  padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.price-figure { font-size: 15px; color: var(--ink-2); }
.price-figure strong { display: block; font: 600 clamp(28px, 3vw, 36px)/1.2 var(--latin); color: var(--ink); letter-spacing: -.01em; }
.price-figure strong small { font: 500 16px var(--font); color: var(--ink-2); margin-right: 6px; }
.price ul { display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.price li { display: flex; gap: 8px; align-items: baseline; }
.price li svg { width: 15px; height: 15px; color: var(--brand); flex: none; transform: translateY(2px); }

/* 為什麼是蕎輝 */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nw { white-space: nowrap; }
.statement { background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 144px) 0; }
.statement-lead { font-size: clamp(16px, 1.4vw, 18px); color: #c3cbd3; }
.statement-big {
  margin-top: 24px; font-size: clamp(26px, 4.2vw, 52px); line-height: 1.4; font-weight: 700;
  letter-spacing: -.01em; color: #fff; max-width: 22em;
}
.statement-big em { font-style: normal; color: #7fd0ec; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 56px); }
.pillars li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.pillars li:nth-child(-n+2) { border-top-color: var(--ink); }
.pillars h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.pillars p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* 自家案例：過去 vs 現在 */
.case-head { max-width: 46em; }
.case-head .prose { margin-top: 20px; }
.compare { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; }
.compare-col { border-radius: 14px; padding: 28px; }
.compare-before { background: var(--bg); border: 1px dashed var(--line-2); }
.compare-after { background: var(--surface); border: 1px solid var(--line-2); }
.compare-col { align-self: start; }
.compare h3 { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.compare-after h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.before-flow { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.before-flow li { display: flex; gap: 10px; align-items: baseline; }
.before-flow svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; transform: translateY(2px); }
.pipeline { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pipe { position: relative; padding-right: 20px; }
.pipe-icon { display: block; width: 22px; height: 22px; color: var(--brand-ink); }
.pipe-icon svg { width: 22px; height: 22px; }
.pipe::after { content: ""; position: absolute; top: 11px; left: 34px; right: 12px; height: 1px; background: #9fd3e7; }
.pipe:last-child::after { display: none; }
.pipe h4 { margin: 18px 0 4px; font-size: 17.5px; font-weight: 700; }
.pipe p { font-size: 14px; color: var(--ink-2); }
.case-close { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between; }
.case-close p { font-size: 17px; color: var(--ink); font-weight: 500; }

/* ---------- 微軟系統整合服務分頁 ---------- */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { margin-top: 18px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.page-hero .prose { margin-top: 20px; }
.services { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 32px; font-size: 16px; color: var(--ink); }
.services li { display: flex; gap: 10px; align-items: baseline; }
.services li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); flex: none; transform: translateY(-2px); }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.jump span { color: var(--ink-3); }
.jump a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.jump a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; padding: clamp(48px, 6vw, 72px) 0; }
.product + .product { border-top: 1px solid var(--line); }
.product-name { font: 600 clamp(26px, 2.6vw, 32px)/1.3 var(--latin); color: var(--ink); }
.product-name.tc { font-family: var(--font); font-weight: 700; }
.product-sum { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.features h3 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.features li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.features li + li { margin-top: 4px; }
.features li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 1px; background: var(--ink-3); }
.features .wide { grid-column: 1 / -1; }

/* 收尾聯絡 */
.contact { background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 120px) 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { color: #fff; }
.contact .lead { margin-top: 18px; font-size: 17px; color: #c3cbd3; max-width: 30em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e6edf2; }
.contact .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.contact .btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.contact :focus-visible { outline-color: #7fd0ec; }
.info { border-top: 1px solid rgba(255,255,255,.18); }
.info div { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.info dt { color: #97a3ae; }
.info dd { color: #fff; overflow-wrap: anywhere; }
.info a { color: #fff; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info small { display: block; font-size: 13px; color: #7fd0ec; margin-top: 2px; }
.footer { margin-top: clamp(64px, 8vw, 96px); padding: 28px 0 36px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #97a3ae; }
.footer .brand-en { color: #fff; }
.footer .brand-tc { color: #97a3ae; }

/* ---------- 首頁（公司總覽）與公司資訊頁 ---------- */
.crumb + h1 { margin-top: 18px; }
.home-hero { padding: clamp(64px, 10vw, 136px) 0 clamp(64px, 9vw, 120px); }
.home-hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; max-width: 17em; text-wrap: balance; }
.home-hero .hero-lead { max-width: 34em; }
.biz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.biz-item { display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.biz-item h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.35; }
.biz-tag { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.biz-points { margin: 24px 0 28px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.biz-points li { display: flex; gap: 10px; align-items: baseline; }
.biz-points svg { width: 15px; height: 15px; color: var(--brand); flex: none; transform: translateY(2px); }
.biz-item .btn { margin-top: auto; align-self: flex-start; }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .prose { margin-top: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--brand-ink); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link svg { width: 16px; height: 16px; }
.facts { border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink); overflow-wrap: anywhere; }
.facts a { color: var(--ink); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.facts small { display: block; margin-top: 2px; font-size: 13px; color: var(--brand-ink); }
.contact-solo { max-width: 40em; }
.contact-more { margin-top: 28px; font-size: 14px; color: #97a3ae; }
.contact-more a { color: #fff; }
@media (max-width: 960px) {
  .biz { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .facts div { grid-template-columns: 5.5em minmax(0, 1fr); font-size: 15px; }
}

/* ---------- 手機選單與 RWD ---------- */
@media (max-width: 960px) {
  .doubts li { flex-basis: calc((100% - 20px) / 2); }
  .hero-grid { grid-template-columns: 1fr; }
  .demo { max-width: 620px; }
  .split, .approach-head, .why-grid, .product, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; }
  .steps li { padding: 0 0 24px 48px; display: block; grid-row: auto; }
  .steps li::after { top: 38px; bottom: 6px; left: 15px; right: auto; width: 1px; height: auto; }
  .phases { display: none; }
  .steps li:nth-child(1) h3::after, .steps li:nth-child(4) h3::after { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 500; padding: 0 8px; border-radius: 4px; vertical-align: 2px; }
  .steps li:nth-child(1) h3::after { content: "簽約前，免費諮詢一次"; color: var(--brand-ink); background: var(--brand-wash); }
  .steps li:nth-child(4) h3::after { content: "簽約後"; color: var(--brand-ink); background: var(--brand-wash); }
  .price { grid-template-columns: 1fr; padding: 24px; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(2) { border-top-color: var(--line); }
  .doubts { gap: 12px; }
  .doubts li { flex-basis: 100%; min-height: 0; padding: 22px 22px 24px; }
  .doubts svg { margin: 0 0 14px; }
  .pipeline { grid-template-columns: 1fr; gap: 18px; }
  .pipe { display: grid; grid-template-columns: 22px 1fr; gap: 0 14px; padding: 0; }
  .pipe h4 { margin: 0 0 2px; font-size: 17px; line-height: 1.3; }
  .pipe p { grid-column: 2; }
  .pipe::after { top: 30px; left: 11px; right: auto; bottom: -12px; width: 1px; height: auto; }
  .compare-col { padding: 22px 20px; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .info div { grid-template-columns: 4.5em 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; inset: 68px 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; box-shadow: 0 18px 30px -24px rgba(24, 33, 43, .35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .demo-body { padding: 14px; }
  .demo-sub { display: none; }
  .doc { grid-template-columns: 1fr; }
  .doc-sheet { display: none; }
  .sheet th:nth-child(2), .sheet td:nth-child(2) { display: none; }
  .board dd { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
