/* btoaircon.sg — design system. Edit here, then run `node _src/build.mjs`. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/bricolage.woff2") format("woff2");
}

:root {
  --ink: #06101f;
  --ink-2: #0c1a30;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --line: #dfe7f1;
  --text: #0a1628;
  --muted: #4d5d78;
  --link: #0a6f94;
  --ice: #5ce1e6;
  --ice-2: #38bdf8;
  --ice-soft: #e2f8fb;
  --heat: #ff6b3d;
  --heat-soft: #fff0ea;
  --ok: #128a52;
  --gold: #8a5a00;
  --gold-soft: #fff4d6;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 22, 40, 0.04), 0 12px 32px -12px rgba(10, 22, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(6, 16, 31, 0.06), 0 32px 64px -24px rgba(6, 16, 31, 0.35);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050c18;
    --surface: #0c1729;
    --surface-2: #122038;
    --line: #1e2e4a;
    --text: #eaf1fb;
    --muted: #9aabc6;
    --link: #6fdcf0;
    --ice-soft: #0d2c3c;
    --heat-soft: #3a1a10;
    --ok: #4ade80;
    --gold: #fcd34d;
    --gold-soft: #33280a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 3px solid var(--ice-2); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ice); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 16, 31, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #eaf1fb;
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand i { font-style: normal; color: var(--ice); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: #c3d0e4; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 99px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, 0.08); border: 0; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; color: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    background: #06101f; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 14px; border-radius: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 13px 20px; border-radius: 99px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ice { background: linear-gradient(135deg, var(--ice), var(--ice-2)); color: var(--ink); box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.6); }
.btn-ice:hover { box-shadow: 0 12px 28px -8px rgba(56, 189, 248, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-wa { background: #128a52; color: #fff; }
.btn-wa:hover { background: #0f7445; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Live pill ---------- */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex: none; position: relative; }
.is-live .live-dot { background: #34d399; }
.is-live .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #eaf1fb; background: var(--ink);
  padding: 56px 0 150px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(255, 107, 61, 0.34), transparent 60%),
    radial-gradient(50% 60% at 8% 100%, rgba(92, 225, 230, 0.26), transparent 65%),
    radial-gradient(40% 50% at 50% 40%, rgba(56, 120, 248, 0.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 20%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 20%, #000, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: #c3d0e4;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 14px; border-radius: 99px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--ice) 10%, var(--ice-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: #b6c4da; max-width: 560px; margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 13.5px; color: #9fb0c9; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--ice); flex: none; }

/* thermal card */
.thermo {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 28px; padding: 24px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(8px);
}
.thermo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #b6c4da; font-weight: 600; margin-bottom: 18px; }
.thermo-head span { display: inline-flex; align-items: center; gap: 8px; }
.thermo-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.thermo-side small { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #9fb0c9; margin-bottom: 4px; }
.thermo-temp { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.thermo-temp sup { font-size: 0.4em; font-weight: 700; vertical-align: top; position: relative; top: 0.25em; margin-left: 2px; letter-spacing: 0; }
.t-hot { color: #ff8a5c; }
.t-cool { color: var(--ice); }
.thermo-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: #fff; }
.thermo-arrow svg { width: 20px; height: 20px; }
.thermo-bar { height: 8px; border-radius: 99px; margin: 20px 0 16px; background: linear-gradient(90deg, #ff6b3d, #ffb199 35%, #9be9f0 65%, #38bdf8); }
.thermo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thermo-stat { background: rgba(6, 16, 31, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; }
.thermo-stat small { display: block; font-size: 11.5px; color: #9fb0c9; font-weight: 600; }
.thermo-stat b { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.thermo-note { font-size: 13px; color: #b6c4da; margin-top: 14px; line-height: 1.5; }
.thermo-note b { color: #fff; }
.thermo-src { font-size: 11.5px; color: #7f91ad; margin-top: 10px; }
.thermo-src a { color: #9fb0c9; text-decoration: underline; }

@media (max-width: 900px) {
  .hero { padding: 36px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Sizer (calculator) ---------- */
.sizer-shell { margin-top: -96px; position: relative; z-index: 2; }
.sizer {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
}
.sizer-form { padding: 30px; min-width: 0; }
.sizer-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.sizer-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.step legend, .step-label { font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 0; }
.step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 12.5px; display: inline-grid; place-items: center; font-family: var(--body); font-weight: 700; flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px transparent; transition: all 0.15s;
}
.seg label:hover span { box-shadow: inset 0 0 0 1.5px var(--muted); }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--ice-2); outline-offset: 2px; }

.rooms { display: grid; gap: 8px; }
.room {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: var(--surface-2); transition: opacity 0.15s;
}
.room.off { opacity: 0.55; }
.room-name { font-weight: 600; font-size: 14.5px; min-width: 0; }
.room-area { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.room-area input { width: 62px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); text-align: right; font-weight: 600; font-size: 14px; }
.room-btu { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--ice-soft); color: var(--link); white-space: nowrap; min-width: 92px; text-align: center; }
.room.off .room-btu { background: transparent; color: var(--muted); }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #b8c4d6; transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked + i { background: #0e9bb8; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 3px solid var(--ice-2); outline-offset: 2px; }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; font-weight: 600; }
.opt-row small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: #0e9bb8; height: 28px; }
.range-row output { font-weight: 700; min-width: 76px; text-align: right; font-size: 14.5px; }
.fine { font-size: 12.5px; color: var(--muted); }

.sizer-result { background: var(--ink); color: #eaf1fb; padding: 30px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; isolation: isolate; }
.sizer-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(92, 225, 230, 0.2), transparent 60%); }
.res-kicker { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ice); }
.res-system { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.res-sub { color: #b6c4da; font-size: 14px; margin-top: 8px; }
.res-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.res-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.res-list b { font-weight: 700; white-space: nowrap; }
.res-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 14px; }
.kpi small { display: block; font-size: 12px; color: #9fb0c9; font-weight: 600; margin-bottom: 2px; }
.kpi b { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; display: block; }
.kpi span { font-size: 11.5px; color: #9fb0c9; display: block; margin-top: 3px; line-height: 1.4; }
.res-warn { font-size: 13px; background: rgba(255, 107, 61, 0.14); border: 1px solid rgba(255, 107, 61, 0.4); color: #ffd3c4; padding: 10px 12px; border-radius: 12px; }
.res-actions { display: grid; gap: 10px; margin-top: auto; }
@media (max-width: 900px) {
  .sizer { grid-template-columns: 1fr; border-radius: 24px; }
  .sizer-form, .sizer-result { padding: 22px 18px; }
  .room { grid-template-columns: auto 1fr auto; row-gap: 6px; }
  .room-btu { grid-column: 2 / -1; justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0 0; }
.section:last-of-type { padding-bottom: 84px; }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stamp { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.stamp svg { width: 14px; height: 14px; }

/* price cards */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pkg { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pkg-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pkg h3 { font-size: 21px; font-weight: 700; margin-top: 2px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--ice-soft); color: var(--link); white-space: nowrap; }
.chip-gold { background: var(--gold-soft); color: var(--gold); }
.pkg-config { font-size: 14px; color: var(--muted); }
.pkg-model { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.pkg-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.pkg-price b { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.range { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); }
.range i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--ice), var(--ice-2)); }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }
.pkg-seen { font-size: 12px; color: var(--muted); }

/* partner offers */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.offer { padding: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ice), var(--ice-2)); }
.offer-head { display: flex; align-items: center; gap: 12px; }
.offer-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--ice); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; flex: none; }
.offer-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.offer-head p { font-size: 12.5px; color: var(--muted); }
.offer-if { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.offer-gift { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.offer-foot { margin-top: auto; display: grid; gap: 10px; }
.sponsor-strip { margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); border: 1.5px dashed var(--line); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.sponsor-strip b { color: var(--text); }

/* live panel */
.live-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-card { padding: 26px; }
.live-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.metric small { font-size: 12px; color: var(--muted); font-weight: 600; display: block; }
.metric b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.metric > span { font-size: 11.5px; color: var(--muted); display: block; }
.insight { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ice-soft); font-size: 14.5px; }
.insight.hot { background: var(--heat-soft); }
.outlook { list-style: none; padding: 0; display: grid; gap: 8px; }
.outlook li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; font-size: 14px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; }
.outlook b { font-weight: 700; }
.outlook .hi { font-weight: 700; color: var(--heat); white-space: nowrap; }
.outlook .hi span { color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .live-panel { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .metric b { font-size: 21px; } .metric { padding: 12px 10px; } }

/* guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.guide { padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.guide:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ice-2); }
.guide-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ice-soft); color: var(--link); display: grid; place-items: center; margin-bottom: 6px; }
.guide-ico svg { width: 22px; height: 22px; }
.guide h3 { font-size: 19px; font-weight: 700; }
.guide p { color: var(--muted); font-size: 14.5px; }
.guide .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--link); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 17px; cursor: pointer; padding: 18px 28px 18px 0; list-style: none; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 15.5px; }

/* CTA band */
.cta-band { margin-top: 84px; border-radius: 28px; background: var(--ink); color: #eaf1fb; padding: 44px; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, rgba(255, 107, 61, 0.3), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(92, 225, 230, 0.25), transparent 60%); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; max-width: 560px; }
.cta-band p { color: #b6c4da; margin-top: 8px; max-width: 520px; }
@media (max-width: 640px) { .cta-band { padding: 28px 22px; } }

/* ---------- Article pages ---------- */
.page-hero { background: var(--ink); color: #eaf1fb; padding: 44px 0 52px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 92% 0%, rgba(255, 107, 61, 0.22), transparent 60%), radial-gradient(45% 90% at 0% 100%, rgba(92, 225, 230, 0.2), transparent 65%); }
.crumbs { font-size: 13px; color: #9fb0c9; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.crumbs a { color: #c3d0e4; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #5a6c8a; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; max-width: 900px; }
.page-hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: #b6c4da; max-width: 720px; margin-top: 16px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: #9fb0c9; }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 48px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc h2 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: 6px 14px; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.toc ol a:hover { color: var(--text); border-left-color: var(--ice-2); text-decoration: none; }
.toc-cta { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.toc-cta p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; } .toc { position: static; order: -1; } .toc-cta { display: none; } }

.prose { max-width: 760px; font-size: 17px; line-height: 1.7; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 800; margin-top: 2em; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.7em; letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose .table-wrap { margin-top: 1.4em; }
.prose table { font-size: 15px; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ice-2); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.tldr h2 { font-size: 13px !important; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--body); color: var(--link); margin: 0 0 8px !important; font-weight: 700; }
.tldr ul { margin-top: 0; }
.callout { background: var(--ice-soft); border-radius: 16px; padding: 18px 20px; font-size: 15.5px; }
.callout.warn { background: var(--heat-soft); }
.callout b:first-child { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
.sources { font-size: 14px; color: var(--muted); }
.sources li { word-break: break-word; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps b:first-child { display: block; font-family: var(--display); font-size: 17px; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checklist li { position: relative; padding: 12px 16px 12px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 !important; font-size: 15.5px; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--ice-2); }

/* cost tool */
.tool { padding: 24px; display: grid; gap: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field select, .field input[type="number"] { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.tool-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .tool-out { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6c4da; margin-top: 96px; padding: 56px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font-family: var(--body); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #7f91ad; margin-bottom: 14px; font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: #d6e0ef; }
.foot-grid li span { color: #7f91ad; font-size: 12.5px; display: block; }
.foot-about { max-width: 380px; margin-top: 14px; color: #9fb0c9; }
.foot-live { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #d6e0ef; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12.5px; color: #7f91ad; }
.foot-base p { max-width: 720px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Modal ---------- */
dialog.modal { border: 0; border-radius: 24px; padding: 26px; max-width: 480px; width: calc(100% - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); margin: auto; }
dialog.modal::backdrop { background: rgba(6, 16, 31, 0.7); backdrop-filter: blur(4px); }
.modal h2 { font-size: 22px; font-weight: 800; }
.modal p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.wa-preview { background: #e7f8ee; border: 1px solid #b6e6c8; color: #123d25; padding: 14px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; margin: 16px 0; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-wa { flex: 1; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.lost { text-align: center; padding: 96px 0; }
.lost h1 { font-size: clamp(64px, 14vw, 140px); font-weight: 800; letter-spacing: -0.06em; }
@media (max-width: 380px) { .nav-cta { display: none; } .nav-toggle { margin-left: auto; } }
.lost p { color: var(--muted); margin: 10px 0 26px; font-size: 18px; }
