/* Sawmill marketing site: landing, pricing and contact pages.
   Palette, type and surfaces follow the app (core/ui/static/css/studio.css):
   a Roblox Studio–style dark UI with the Sawmill blue. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #1b1d1f;
  --bg-deep: #141617;
  --surface: #232527;
  --surface-2: #2b2d2f;
  --surface-3: #333537;
  --border: #393b3d;
  --text: #ffffff;
  --muted: #b1b2b3;
  --faint: #8a8c8e;
  --accent: #00a2ff;
  --accent-strong: #33b5ff;
  --accent-soft: rgb(0 162 255 / 0.14);
  --ok: #3dd68c;
  --warn: #f5b841;
  --danger: #f2545b;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 2px 8px rgb(0 0 0 / 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #000; padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(27 29 31 / 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 50% 0%, rgb(0 162 255 / 0.22), transparent 70%),
    radial-gradient(30rem 18rem at 85% 30%, rgb(0 162 255 / 0.08), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero__copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--border); border-radius: 999px; background: rgb(35 37 39 / 0.8);
  color: var(--muted); font-size: 14px;
}
.hero__badge:hover { color: var(--text); border-color: var(--accent); }
.hero__badge b { background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.035em; }
.hero h1 .accent { background: linear-gradient(100deg, #66c7ff, var(--accent) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: 24px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__actions .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.hero__note { margin-top: 16px; color: var(--faint); font-size: 14px; }
.hero__shot { margin-top: 64px; perspective: 1600px; }

/* ---------- Product mock (an HTML drawing of the app) ---------- */
.app {
  --rail: 52px; --explorer: 220px;
  display: grid; grid-template-columns: var(--rail) var(--explorer) 1fr; grid-template-rows: 40px 1fr;
  height: 520px; border: 1px solid var(--border); border-radius: 14px 14px 0 0; border-bottom: 0;
  background: var(--bg); box-shadow: var(--shadow); overflow: hidden; text-align: left;
  font-size: 13px; line-height: 1.4; transform-origin: 50% 100%;
}
@media (min-width: 900px) { .app { transform: rotateX(8deg); } }
/* Pin every part to its column: a hidden part (display: none) leaves the
   grid, and auto-placement would push the stage into a 0-wide column. */
.app__rail { grid-column: 1; grid-row: 2; }
.app__explorer { grid-column: 2; grid-row: 2; }
.app__stage { grid-column: 3; grid-row: 2; min-width: 0; }
.app__chrome { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.app__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.app__url { margin: 0 auto; padding: 4px 14px; border-radius: 6px; background: var(--surface); color: var(--faint); font-size: 12px; }
.app__rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: var(--bg-deep); border-right: 1px solid var(--border); color: var(--muted); }
.app__rail .icon { width: 18px; height: 18px; }
.app__rail span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; position: relative; }
.app__rail span.is-active { background: var(--accent-soft); color: var(--accent); }
.app__rail .app__logo { margin-bottom: 6px; }
.app__rail .badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.app__explorer { padding: 12px 10px; background: var(--surface); border-right: 1px solid var(--border); color: var(--muted); overflow: hidden; }
.app__label { padding: 0 8px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.app__tree { list-style: none; margin: 0; padding: 0; }
.app__tree li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 5px; white-space: nowrap; }
.app__tree li.is-sub { padding-left: 26px; }
.app__tree li.is-active { background: var(--accent-soft); color: var(--text); }
.app__tree .icon { width: 15px; height: 15px; }
.app__tree em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--faint); }
.app__stage { padding: 18px 20px; overflow: hidden; }
.app__crumbs { color: var(--accent); font-size: 12px; }
.app__title { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 18px; font-weight: 700; }
.app__title .btn { height: 28px; padding: 0 10px; font-size: 12px; margin-left: auto; }
.board { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; }
.board__col { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; min-height: 380px; }
.board__col h4 { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; }
.card b { display: block; font-weight: 600; font-size: 12.5px; color: var(--text); }
.card small { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--faint); font-size: 11px; }
.card .who { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; }
.pill { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.pill--high { background: rgb(245 184 65 / 0.16); color: var(--warn); }
.pill--urgent { background: rgb(242 84 91 / 0.15); color: var(--danger); }
.pill--med { background: var(--accent-soft); color: var(--accent-strong); }
.pill--low { background: var(--surface-3); color: var(--muted); }
.pill--done { background: rgb(61 214 140 / 0.14); color: var(--ok); }
@media (max-width: 1000px) { .app { --explorer: 0px; } .app__explorer { display: none; } }
@media (max-width: 760px) {
  .app { height: 400px; grid-template-columns: 0 0 1fr; }
  .app__rail { display: none; }
  .board { grid-template-columns: repeat(4, 200px); }
}

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts div { padding: 28px 24px; border-left: 1px solid var(--border); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font-size: 17px; }
.facts span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-left: 0; border-top: 1px solid var(--border); }
  .facts div:first-child { border-top: 0; }
}

/* ---------- App grid ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .apps { grid-template-columns: 1fr; } }
.app-card {
  position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgb(35 37 39 / 0.4));
  transition: border-color .2s, transform .2s;
}
.app-card:hover { border-color: rgb(0 162 255 / 0.55); transform: translateY(-2px); }
.app-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.app-card__icon .icon { width: 22px; height: 22px; }
.app-card h3 { margin-top: 18px; font-size: 18px; }
.app-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Feature rows ---------- */
.rows { display: grid; gap: 112px; }
@media (max-width: 860px) { .rows { gap: 72px; } }
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.row:nth-child(even) .row__media { order: -1; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 32px; } .row:nth-child(even) .row__media { order: 0; } }
.row h3 { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); }
.row p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333b5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.panel {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); padding: 20px; font-size: 14px; overflow: hidden;
}
.panel__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.panel__head .icon { width: 16px; height: 16px; color: var(--accent); }
.panel__head b { color: var(--text); }

/* releases panel */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stage { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.stage span { display: block; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.stage b { display: block; margin-top: 4px; }
.stage small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.stage.is-live { border-color: rgb(61 214 140 / 0.5); }
.stage.is-live small { color: var(--ok); }
.commits { margin-top: 14px; display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.commits div { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; background: var(--bg); }
.commits code { color: var(--accent-strong); }

/* wiki panel */
.md { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.md .h { color: var(--text); font-weight: 700; }
.md .k { color: var(--accent-strong); }
.md .m { color: var(--faint); }
.presence { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.presence i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid var(--surface); margin-left: -8px; }

/* finance panel */
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger td { padding: 10px 6px; border-top: 1px solid var(--border); }
.ledger tr:first-child td { border-top: 0; }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger .in { color: var(--ok); }
.ledger .out { color: var(--text); }
.ledger small { display: block; color: var(--faint); font-size: 11.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { padding: 12px; border-radius: 8px; background: var(--surface-2); }
.kpis span { display: block; color: var(--faint); font-size: 11.5px; }
.kpis b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* assistant panel */
.chat { display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; }
.msg__av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.msg__body { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.msg__body b { display: block; margin-bottom: 2px; color: var(--text); font-size: 13px; }
.msg__body .at { color: var(--accent-strong); }
.msg--bot .msg__body { background: var(--accent-soft); border: 1px solid rgb(0 162 255 / 0.3); }

/* ---------- Ownership band ---------- */
.own { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 860px) { .own { grid-template-columns: 1fr; } }
.own div { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.own .icon { width: 24px; height: 24px; color: var(--accent); }
.own h3 { margin-top: 14px; font-size: 17px; }
.own p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding: 64px 48px; border-radius: 18px; text-align: center;
  border: 1px solid rgb(0 162 255 / 0.35);
  background: radial-gradient(40rem 20rem at 50% 0%, rgb(0 162 255 / 0.25), transparent 70%), var(--surface);
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta p { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }
.cta .hero__actions { margin-top: 32px; }
@media (max-width: 600px) { .cta { padding: 48px 20px; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 80px 0 48px; text-align: center; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36rem 18rem at 50% 0%, rgb(0 162 255 / 0.18), transparent 70%); }
.page-hero h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 56px); }
.page-hero p { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: 18px; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; margin-top: 32px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.billing button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.billing em { font-style: normal; font-size: 12px; opacity: 0.85; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.plan__price b { font-size: 44px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); font-size: 14px; }

/* Rate cards */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .rates { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.rate { padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--surface), rgb(35 37 39 / 0.5)); }
.rate:first-child { border-color: rgb(0 162 255 / 0.55); background: linear-gradient(180deg, rgb(0 162 255 / 0.09), var(--surface) 55%); }
.rate__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.rate__icon .icon { width: 22px; height: 22px; }
.rate h2 { margin-top: 18px; font-size: 20px; }
.rate__note { margin-top: 4px; color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.rate__text { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc__inputs { display: grid; gap: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
@media (max-width: 600px) { .calc__inputs { padding: 20px 16px; } }
.calc__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__group legend { display: flex; width: 100%; justify-content: space-between; margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 600; }
.calc__group legend span { color: var(--faint); font-weight: 400; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 540px) { .chips { grid-template-columns: 1fr; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip__box {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px 12px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.chip__box .icon { width: 20px; height: 20px; color: var(--faint); }
.chip__box b { display: block; font-size: 15px; font-weight: 600; }
.chip__box small { display: block; color: var(--faint); font-size: 13px; }
.chip__box::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; border: 1.5px solid var(--border); border-radius: 6px;
}
.chip:hover .chip__box { border-color: var(--muted); }
.chip input:checked + .chip__box { border-color: var(--accent); background: rgb(0 162 255 / 0.08); }
.chip input:checked + .chip__box .icon { color: var(--accent); }
.chip input:checked + .chip__box::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.chip input:focus-visible + .chip__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__quick { display: flex; gap: 16px; margin-top: 10px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: 500 14px/1.4 var(--font); cursor: pointer; }
.link-btn:hover { color: var(--accent-strong); text-decoration: underline; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .calc__row { grid-template-columns: 1fr; } }
.calc__row .field { align-content: start; }
.stepper { display: flex; }
.stepper button {
  flex: none; width: 46px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: 500 20px/1 var(--font); cursor: pointer;
}
.stepper button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stepper button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stepper button:hover { background: var(--surface-3); }
.field .stepper input { border-radius: 0; border-left: 0; border-right: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range { width: 100%; margin-top: 12px; accent-color: var(--accent); }
.calc__summary {
  position: sticky; top: 88px; padding: 28px; border: 1px solid rgb(0 162 255 / 0.45); border-radius: 14px;
  background: radial-gradient(24rem 12rem at 50% 0%, rgb(0 162 255 / 0.16), transparent 70%), var(--surface);
  box-shadow: var(--shadow);
}
@media (max-width: 960px) { .calc__summary { position: static; } }
.calc__label { color: var(--muted); font-size: 14px; font-weight: 600; }
.calc__total { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.calc__total b { font-size: 52px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc__total span { color: var(--muted); }
.calc__billed { color: var(--faint); font-size: 14px; }
.calc__lines { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 15px; }
.calc__lines div { display: flex; justify-content: space-between; gap: 12px; }
.calc__lines dt { color: var(--muted); }
.calc__lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__per { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.calc__save { margin-top: 6px; color: var(--ok); font-size: 14px; font-weight: 600; }
.calc__summary .btn { margin-top: 12px; }
.calc__summary .btn:first-of-type { margin-top: 20px; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
@media (max-width: 600px) { .form { padding: 22px 18px; } }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: 400 16px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b1b2b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form__foot p { color: var(--faint); font-size: 13px; flex: 1; min-width: 200px; }
.form__status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-info { background: var(--accent-soft); color: var(--text); border: 1px solid rgb(0 162 255 / 0.35); }
.form__status.is-error { background: rgb(242 84 91 / 0.12); color: #ff8a8f; border: 1px solid rgb(242 84 91 / 0.35); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 48px 32px; border: 1px solid rgb(61 214 140 / 0.4); border-radius: 14px; background: var(--surface); text-align: center; }
.sent .icon { width: 48px; height: 48px; color: var(--ok); }
.sent h2 { margin-top: 16px; font-size: 26px; }
.sent p { margin-top: 10px; color: var(--muted); }
.aside { display: grid; gap: 16px; }
.aside > div { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.aside h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.aside h3 .icon { color: var(--accent); }
.aside p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.aside .btn { margin-top: 16px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.steps li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 32px; padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-deep); color: var(--muted); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand p { margin-top: 14px; max-width: 320px; }
.site-footer h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
