/* belovidovo.tech — brand palette from the Belovidovo Brand Kit:
   walnut #4A2E1C, terracotta #B4532A (the one accent), whitewash #FBF6EC,
   stone #D6CEC0 / #A39A8C, gold #C8962E (rare). */

:root {
  --bg: #FBF6EC;
  --bg-2: #F3ECDF;
  --surface: #FFFDF9;
  --ink: #2E1F16;
  --ink-2: #5E4A3B;
  --ink-3: #7A6555;
  --line: #E6DCCB;
  --walnut: #4A2E1C;
  --band: #4A2E1C;
  --band-ink: #FBF6EC;
  --band-ink-2: #D6CEC0;
  --band-line: rgba(251, 246, 236, .14);
  --terra: #B4532A;
  --terra-2: #9A4422;
  --on-terra: #FFFaf2;
  --terra-soft: #F7E4D6;
  --stone: #D6CEC0;
  --stone-2: #A39A8C;
  --gold: #C8962E;
  --gold-soft: #F7ECCF;
  --sage: #4A7650;
  --sage-soft: #E2EEDD;
  --rose: #A5412E;
  --rose-soft: #F8E0D9;
  --dot: rgba(74, 46, 28, .13);
  --shadow: 0 22px 60px rgba(74, 46, 28, .13), 0 2px 6px rgba(74, 46, 28, .06);
  --shadow-sm: 0 8px 24px rgba(74, 46, 28, .08);
  --radius: 18px;
  --measure: 64ch;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15100C; --bg-2: #1B1511; --surface: #221A14; --ink: #F3EAE0; --ink-2: #CDBBA8; --ink-3: #A8957F;
    --line: #3A2E25; --walnut: #F3EAE0; --band: #0E0A07; --band-ink: #F3EAE0; --band-ink-2: #BCAA98; --band-line: rgba(243, 234, 224, .10);
    --terra: #E0875C; --terra-2: #EC9E78; --on-terra: #1C100A; --terra-soft: #3A2217;
    --stone: #4A3F35; --stone-2: #6E6255; --gold: #D9AE55; --gold-soft: #3A2E14;
    --sage: #9CC49F; --sage-soft: #1E2C1F; --rose: #EE9A86; --rose-soft: #3B1F18;
    --dot: rgba(243, 234, 224, .08);
    --shadow: 0 22px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15100C; --bg-2: #1B1511; --surface: #221A14; --ink: #F3EAE0; --ink-2: #CDBBA8; --ink-3: #A8957F;
  --line: #3A2E25; --walnut: #F3EAE0; --band: #0E0A07; --band-ink: #F3EAE0; --band-ink-2: #BCAA98; --band-line: rgba(243, 234, 224, .10);
  --terra: #E0875C; --terra-2: #EC9E78; --on-terra: #1C100A; --terra-soft: #3A2217;
  --stone: #4A3F35; --stone-2: #6E6255; --gold: #D9AE55; --gold-soft: #3A2E14;
  --sage: #9CC49F; --sage-soft: #1E2C1F; --rose: #EE9A86; --rose-soft: #3B1F18;
  --dot: rgba(243, 234, 224, .08);
  --shadow: 0 22px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { 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(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
p { margin: 0; }
a { color: var(--terra); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 560; line-height: 1.1; margin: 0;
  letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
em { font-style: italic; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
section { padding-block: clamp(64px, 9vw, 116px); }

.eyebrow, .kicker {
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em;
  color: var(--terra); text-transform: lowercase; margin: 0;
}
.kicker .num { color: var(--ink-3); margin-right: 10px; }
.kicker .num::after { content: " /"; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: var(--measure); }
.sec-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .lede { font-size: 1.15rem; }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  background: var(--terra); color: var(--on-terra);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--terra-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--terra); color: var(--terra); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
.brand .mark { width: 38px; height: 38px; }
.brand .wordmark { height: 23px; width: auto; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: var(--terra); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; }
}

/* ───── Hero ───── */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 em { color: var(--terra); font-weight: 500; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sage); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .95rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 7px; }

.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.hero-art .blob { position: absolute; inset: -6% -10% -6% -4%; width: 114%; height: 112%; z-index: 0; }
.hero-art .blob .b1 { fill: var(--terra-soft); }
.hero-art .blob .b2 { fill: var(--gold-soft); }
.hero-art .blob .b3 { fill: var(--stone); opacity: .45; }
.hero-art .house { position: absolute; right: 2%; bottom: -2%; width: 150px; opacity: .95; z-index: 1; filter: drop-shadow(0 12px 22px rgba(74, 46, 28, .18)); }
@media (max-width: 560px) { .hero-art { min-height: 0; padding-bottom: 70px; } .hero-art .house { width: 96px; right: 0; bottom: 0; } }

.terminal {
  position: relative; z-index: 2; width: min(460px, 100%);
  background: #1D1510; color: #EFE4D6; border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; margin: 0;
  transform: rotate(-1.2deg);
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #2A1F18; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 12px var(--mono); color: #BCAA98; }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #5A4637; display: block; }
.lights i:nth-child(1) { background: #E0875C; } .lights i:nth-child(2) { background: #D9AE55; } .lights i:nth-child(3) { background: #8FB08E; }
.term-body { padding: 18px 18px 20px; font: 13.5px/1.7 var(--mono); }
.term-body .ask { color: #FBF6EC; margin-bottom: 14px; }
.prompt { color: #E0875C; margin-right: 6px; }
.term-body ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.term-body li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; opacity: 0; transform: translateY(4px); animation: line-in .45s ease forwards; }
.term-body li:nth-child(1) { animation-delay: .5s; } .term-body li:nth-child(2) { animation-delay: 1.3s; } .term-body li:nth-child(3) { animation-delay: 2.1s; }
.term-body .when { color: #A8957F; }
.term-body .done .what { color: #A9D3A8; }
.term-body .caret-line { margin-top: 12px; color: #FBF6EC; }
.caret { display: inline-block; width: 8px; height: 16px; background: #E0875C; vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes line-in { to { opacity: 1; transform: none; } }

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow-sm); font-size: .88rem; line-height: 1.3;
  animation: float 7s ease-in-out infinite;
}
.chip b { display: block; font-weight: 700; }
.chip small { color: var(--ink-3); font-size: .78rem; }
.chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 700; }
.chip-a { top: -2%; right: -3%; }
.chip-a .ic { background: var(--sage-soft); color: var(--sage); }
.chip-b { bottom: 10%; left: -2%; animation-delay: -3.5s; }
.chip-b .ic { background: var(--gold-soft); color: var(--gold); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .chip-a { top: -18px; right: 4px; } .chip-b { display: none; } }

/* ───── Ribbon ───── */
.ribbon { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: 22px; }
.ribbon .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; font-size: .97rem; color: var(--ink-2); }
.ribbon span { display: inline-flex; align-items: center; gap: 10px; }
.ribbon span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--terra); transform: rotate(45deg); flex: none; }
.ribbon b { color: var(--ink); font-weight: 700; }

/* ───── Cards ───── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 10px; align-content: start;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--terra) 35%, var(--line)); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--terra-soft); color: var(--terra); display: grid; place-items: center; margin-bottom: 6px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--ink-2); font-size: .99rem; }

/* ───── Compare band ───── */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--band-line) 1px, transparent 1px), linear-gradient(90deg, var(--band-line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.band .wrap { position: relative; }
.band .kicker { color: #E0875C; }
.band .kicker .num { color: var(--band-ink-2); }
.band h2 { color: var(--band-ink); }
.band h2 em { color: #E9A27F; }
.compare { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--band-line); }
.compare-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--band-line); align-items: baseline; }
.compare-head { padding-block: 12px; font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: lowercase; color: var(--band-ink-2); }
.compare-head .us-h { color: #E9A27F; }
.compare .topic { font: 500 .85rem var(--mono); color: var(--band-ink-2); text-transform: lowercase; }
.compare .them { color: var(--band-ink-2); }
.compare .them::before { content: "×"; margin-right: 10px; opacity: .6; }
.compare .us { color: var(--band-ink); font-weight: 600; }
.compare .us::before { content: "✓"; margin-right: 10px; color: #A9D3A8; }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head { display: none; }
}

/* ───── Products ───── */
.product { margin-top: clamp(40px, 6vw, 72px); }
.product-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm);
}
.product-head .pico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--terra-soft); color: var(--terra); }
.product-head .pico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.product-head p { color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 .78rem var(--mono); color: var(--ink-3); margin-bottom: 6px; text-transform: lowercase; }
.tag .pulse { width: 7px; height: 7px; }
@media (max-width: 820px) { .product-head { grid-template-columns: 1fr; gap: 14px; } }

.feature { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px dashed var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature.flip { grid-template-columns: 1.18fr .82fr; }
.feature.flip .copy { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .copy { order: 0; } }
.feature .copy { display: grid; gap: 14px; }
.feature .copy h4 { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 560; line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.feature .copy p { color: var(--ink-2); }
.feature .copy .eyebrow, .about-copy .kicker { color: var(--terra); }
.about-copy .kicker .num { color: var(--ink-3); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: .98rem; }
.feature ul li { padding-left: 26px; position: relative; }
.feature ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(-45deg) translateY(-3px); }
.saves { display: inline-flex; line-height: 1.35; align-items: center; gap: 9px; background: var(--gold-soft); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 600; width: max-content; max-width: 100%; }
.saves i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* app window mockups */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink); min-width: 0; }
.win .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.win .bar .lights i { background: var(--stone); }
.win .bar .url { margin-left: 8px; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--ink-3); font: 11.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app { padding: 16px; display: grid; gap: 12px; }
.apphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.apphead .logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.apphead .logo img { width: 22px; height: 22px; }
.apphead .who { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.tabs { display: flex; gap: 16px; font-weight: 600; font-size: 12px; color: var(--ink-3); overflow-x: auto; scrollbar-width: none; }
.tabs b { color: var(--terra); border-bottom: 2px solid var(--terra); padding-bottom: 4px; white-space: nowrap; }
.tabs span { white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; background: var(--surface); min-width: 0; }
.panel h5 { margin: 0; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .n { font-weight: 700; }
.row .sub { color: var(--ink-3); }
.pill { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; flex: none; }
.pill.ok { background: var(--sage-soft); color: var(--sage); }
.pill.warn { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.pill.due { background: var(--rose-soft); color: var(--rose); }
.pill.acc { background: var(--terra-soft); color: var(--terra); }
.stat { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { font: 600 20px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--ink-3); }
.mbtn { border-radius: 8px; padding: 7px 12px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.mbtn.p { background: var(--terra); color: var(--on-terra); border-color: var(--terra); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--sage-soft); color: var(--sage); border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 700; }
.toast .ic { width: 20px; height: 20px; border-radius: 50%; background: var(--sage); color: var(--surface); display: grid; place-items: center; font-size: 11px; flex: none; }

.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--walnut); color: var(--bg); border-radius: 12px; padding: 12px 14px; }
:root[data-theme="dark"] .timer { background: #2E2219; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timer { background: #2E2219; color: var(--ink); } }
.timer .t { font: 500 22px var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.timer .lbl { font-size: 12px; opacity: .8; }
.timer .rec { width: 9px; height: 9px; border-radius: 50%; background: #E0875C; display: inline-block; margin-right: 8px; animation: blink 1.4s steps(1) infinite; }
.timer .stop { background: #E0875C; color: #1C100A; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 12px; }

.invoice { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; background: var(--bg); }
.invoice .ih { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.invoice .ih .who { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-weight: 600; }
.invoice .ih .who img { width: 26px; height: 26px; }
.invoice .ih .no { text-align: right; font-size: 11px; color: var(--ink-3); }
.invoice .ih .no b { display: block; font: 600 16px var(--display); color: var(--terra); letter-spacing: .08em; }
.invoice .lines .row { font-size: 12px; }
.invoice .foot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); }
.invoice .qr { width: 64px; height: 64px; }
.invoice .qr rect { fill: var(--ink); }
.invoice .qr .qbg { fill: var(--surface); }
.invoice .pay { font-size: 11.5px; color: var(--ink-2); }
.invoice .pay b { display: block; color: var(--ink); font-size: 13px; }
.invoice .total { font: 600 18px var(--display); color: var(--ink); text-align: right; }

/* HCA drawing */
.plan-wrap { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.rail { display: grid; gap: 6px; align-content: start; }
.rail span { width: 44px; height: 38px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font: 600 10px var(--mono); color: var(--ink-3); background: var(--surface); }
.rail span.on { border-color: var(--terra); color: var(--terra); background: var(--terra-soft); }
.plan { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.plan .grid-l { stroke: var(--line); stroke-width: 1; }
.plan .wall { fill: color-mix(in srgb, var(--stone) 35%, transparent); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.plan .enc { fill: url(#hatch); }
.plan .hatch-l { stroke: var(--gold); stroke-width: 1.4; opacity: .7; }
.plan .drain { stroke: #4E86A8; stroke-width: 3; fill: none; stroke-dasharray: 8 5; }
.plan .pier { fill: var(--terra); stroke: var(--surface); stroke-width: 2; }
.plan .pier-n { fill: var(--on-terra); font: 700 8px var(--mono); }
.plan .dim { fill: var(--ink-3); font: 500 10px var(--mono); }
.plan .dimline { stroke: var(--ink-3); stroke-width: 1; }
.plan .sel { fill: none; stroke: var(--terra); stroke-width: 1.5; stroke-dasharray: 3 3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.map .land { fill: #C9CDB0; } .map .land2 { fill: #B8BF9C; } .map .road { fill: #E7E1D3; } .map .tree { fill: #93A279; }
.map .roof { fill: #8C7B6B; } .map .foot { fill: rgba(224, 135, 92, .28); stroke: #E0875C; stroke-width: 2.5; stroke-linejoin: round; }
.map .pin { fill: #B4532A; }
.map .badge { position: absolute; left: 10px; bottom: 10px; background: rgba(29, 21, 16, .78); color: #FBF6EC; font: 500 10.5px var(--mono); padding: 4px 8px; border-radius: 6px; }
.checks { display: grid; gap: 6px; }
.checks div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.checks .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; }
.lineitems .row { font-size: 12px; }
.lineitems .src { font: 500 10px var(--mono); color: var(--ink-3); }
.offline { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); color: var(--ink-3); }
.offline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.product-next {
  margin-top: clamp(40px, 6vw, 72px); position: relative; overflow: hidden;
  border: 1.5px dashed color-mix(in srgb, var(--terra) 45%, var(--line)); border-radius: 22px;
  padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--terra-soft) 45%, transparent) 14px 15px);
}
.product-next h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.product-next p { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.product-next .next-label { font: 500 .82rem var(--mono); color: var(--terra); margin-bottom: 8px; }
@media (max-width: 760px) { .product-next { grid-template-columns: 1fr; } }

/* ───── Process ───── */
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: calc(25% - 4px); top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--stone-2) 0 6px, transparent 6px 12px); z-index: 0; }
.steps li { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--terra); color: var(--terra); display: grid; place-items: center; font: 500 .95rem var(--mono); margin-bottom: 6px; }
.steps li:last-child .step-num { background: var(--terra); color: var(--on-terra); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.builtin { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.builtin-label { font: 500 .8rem var(--mono); color: var(--terra); text-transform: lowercase; }
.builtin ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.builtin li { font-size: .95rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg); }
@media (max-width: 760px) { .builtin { grid-template-columns: 1fr; } }

/* ───── FAQ ───── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); padding-block: 18px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 1.07rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--terra); font: 400 1.5rem/1 var(--sans); transition: transform .2s ease; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--ink-2); max-width: var(--measure); }

/* ───── About ───── */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 400px; width: 100%; margin-inline: auto; }
.about-art::before { content: ""; position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--terra-soft); }
.about-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--stone-2); opacity: .6; }
.about-art img { position: relative; width: 62%; height: auto; }
.about-copy { display: grid; gap: 16px; }
.about-copy p { color: var(--ink-2); max-width: var(--measure); }
.about-copy .sig { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* ───── Contact ───── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy { display: grid; gap: 18px; }
.contact-copy > p { color: var(--ink-2); }
.facts { margin: 8px 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 500 .8rem var(--mono); color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.contact-form .opt { color: var(--ink-3); font-weight: 400; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra) 18%, transparent); }
.interest { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interest legend { font-size: .92rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.interest label { display: inline-flex; font-weight: 500; font-size: .9rem; cursor: pointer; }
.interest input { position: absolute; opacity: 0; pointer-events: none; }
.interest span { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); transition: all .15s ease; }
.interest input:checked + span { border-color: var(--terra); background: var(--terra-soft); color: var(--terra); }
.interest input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--sage); font-weight: 600; }
.form-status.err { color: var(--rose); }

/* ───── Footer ───── */
.site-footer { background: var(--band); color: var(--band-ink-2); padding-block: 44px 36px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.footer-logo { width: 210px; height: auto; display: block; }
.footer-meta { display: grid; gap: 4px; font-size: .92rem; }
.footer-meta p:first-child { color: var(--band-ink); }
.site-footer a { color: var(--band-ink); }
.to-top { text-decoration: none; font: 500 .85rem var(--mono); border: 1px solid var(--band-line); padding: 8px 14px; border-radius: 999px; }
.to-top:hover { border-color: #E0875C; }
.fine { grid-column: 1 / -1; font-size: .8rem; opacity: .75; border-top: 1px solid var(--band-line); padding-top: 18px; margin-top: 6px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ───── Motion ───── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .term-body li { opacity: 1; transform: none; }
}
@media (max-width: 480px) { .hero .eyebrow { font-size: .7rem; letter-spacing: .02em; padding-inline: 8px 12px; } }
