/* ReStore site styles. Tokens from HANDOFF §1. */
:root {
  --ink: #0c1f1d; --dark: #091a18; --deep: #06120f; --on-teal: #06201c;
  --teal: #2fd3b5; --teal-hover: #5ee6cc; --teal-light: #7ff0da; --teal-text: #0b6b5c; --teal-link: #0e8a78; --teal-tint: #d9f6ef; --teal-wash: #eefaf6;
  --page: #f3f5f2; --band: #e6ece8; --border: #dde3df; --border-soft: #edf0ee; --input: #cfd8d4;
  --muted: #41544f; --muted-2: #5b6e6a;
  --warn-bg: #fff1d6; --warn: #8a5a00; --danger-bg: #fbe4dc; --danger: #b4462f; --danger-ink: #9a3a25; /* text on --danger-bg (AA) */
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1240px;
  --header-h: 57px;
}
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win over class display rules (e.g. .thanks { display: flex }),
   otherwise "hidden" panels, tooltips and messages stay visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal-link); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; } /* keep aspect ratio when width/height attributes are set */
input, select, textarea, button { font: inherit; }
button { cursor: pointer; }
/* Focus ring: dark teal on light surfaces (bright teal is about 1.9:1 on white), bright teal on dark ones,
   dark ink on teal ones. The outline sits outside the control, so the surface around it is what counts. */
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
.dark :focus-visible, .panel-dark :focus-visible, .qb-total :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }
.kstore :focus-visible, .quote-cta :focus-visible { outline-color: var(--on-teal); }
.form :focus-visible, .bundle.best :focus-visible { outline-color: var(--teal-text); } /* light cards inside dark sections */
.kstore-card :focus-visible { outline-color: var(--teal); } /* dark card inside the teal band */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.dark { background: var(--dark); color: #fff; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--teal-text); text-transform: uppercase; }
.dark .eyebrow, .panel-dark .eyebrow { color: var(--teal-light); }
.h2 { font: 700 clamp(34px, 4.5vw, 56px)/1.02 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }
.dark .lead, .panel-dark .lead { color: rgba(255,255,255,.74); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: 48px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card .num { font: 500 12px var(--mono); color: var(--teal-text); }
.card .num.danger { color: var(--danger); }
.card-title { font: 700 22px/1.15 var(--display); letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; text-wrap: pretty; }
.section { padding-top: 110px; padding-bottom: 110px; scroll-margin-top: 70px; }
section[id] { scroll-margin-top: 70px; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-teal { background: var(--teal); color: var(--on-teal); }
.btn-teal:hover { background: var(--teal-hover); color: var(--on-teal); }
.btn-ghost { color: #fff; font-weight: 500; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover { background: var(--teal-text); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(9,26,24,.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .bar { max-width: var(--wrap); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; }
.wordmark { font: 700 21px var(--display); letter-spacing: -.01em; }
.wordmark span { color: var(--teal); }
/* overflow-x: auto clips vertically too: the bottom padding (taken back by the margin) keeps room for the
   scrollspy underline (motion.css) inside the scroll box. */
.site-nav { display: flex; gap: 20px; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 14px; padding-bottom: 8px; margin-bottom: -8px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: rgba(255,255,255,.72); }
.site-nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 8px; align-items: center; flex: none; white-space: nowrap; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; overflow: hidden; font: 500 11px var(--mono); }
.lang button { padding: 6px 8px; background: none; border: 0; color: rgba(255,255,255,.55); }
.lang button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; }
.lang button:disabled { cursor: not-allowed; }
.btn-outline-sm { color: #fff; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); }
.btn-outline-sm:hover { color: #fff; border-color: #fff; }
.btn-teal-sm { background: var(--teal); color: var(--on-teal); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 8px; }
.btn-teal-sm:hover { background: var(--teal-hover); color: var(--on-teal); }
@media (max-width: 720px) {
  .site-header .bar { padding: 10px 16px; gap: 14px; }
  .wordmark { display: none; }
  .lang, .header-actions .btn-outline-sm { display: none; }
}

/* Hero */
.hero-grid { padding-top: 88px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero h1 { font: 700 clamp(44px, 6.4vw, 84px)/.98 var(--display); letter-spacing: -.035em; margin: 22px 0 0; text-wrap: balance; }
.hero h1 em, .cta h2 em { font-weight: 500; color: var(--teal-light); }
.hero-sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.74); max-width: 580px; margin: 26px 0 0; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.orbit-wrap { display: flex; justify-content: center; }
.orbit { width: 100%; max-width: 470px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47,211,181,.18), rgba(47,211,181,.04) 70%); border: 1px solid rgba(127,240,218,.35); position: relative; display: grid; place-items: center; }
.orbit-chip { position: absolute; transform: translate(-50%, -50%); background: #0f2b28; border: 1px solid rgba(127,240,218,.45); color: #fff; font: 500 12px var(--sans); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.orbit-ring { width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(127,240,218,.5); display: grid; place-items: center; position: relative; }
.orbit-ring > .label { position: absolute; top: 9%; font: 500 10.5px var(--mono); color: var(--teal-light); letter-spacing: .05em; }
.orbit-core { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--page); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 60px rgba(47,211,181,.35); }
.orbit-core small { font: 500 10px var(--mono); color: var(--muted-2); letter-spacing: .05em; }
.orbit-core strong { font: 700 19px/1.1 var(--display); margin-top: 4px; }
@media (max-width: 480px) { .orbit-chip { font-size: 10.5px; padding: 4px 8px; } }
.stats { border-top: 1px solid rgba(255,255,255,.1); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.stat { padding: 30px 24px 34px 0; display: flex; flex-direction: column; gap: 8px; }
.stat b { font: 700 56px/1 var(--display); color: var(--teal-light); }
.stat span { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); max-width: 260px; }

/* Approach */
.panel-dark { background: var(--dark); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 56px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; margin-top: 10px; }
.point { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.point b { font-weight: 600; }
.point span { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.66); }
.layer { border-radius: 14px; padding: 22px 24px; }
.layer-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.layer-head b { font: 700 20px var(--display); }
.layer-head span { font: 500 11px var(--mono); opacity: .7; letter-spacing: .04em; }
.layer p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; opacity: .8; }
.layer-1 { background: var(--teal); color: var(--on-teal); }
.layer-2 { border: 1px dashed rgba(127,240,218,.55); margin: 0 18px; }
.layer-3 { background: var(--page); color: var(--ink); margin: 0 36px; }
.connector { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 28px; font: 500 11px var(--mono); color: var(--teal-light); letter-spacing: .04em; }
.connector span { font-size: 16px; }

/* Range */
.range-groups { display: flex; flex-direction: column; gap: 40px; margin-top: 52px; }
.range-group { display: grid; grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); gap: 24px; }
.range-group > h3 { font: 700 22px var(--display); letter-spacing: -.01em; padding-top: 18px; border-top: 2px solid var(--ink); margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.mod { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; min-height: 170px; color: var(--ink); width: 100%; }
button.mod:hover { border-color: #b9c6c0; }
.mod[aria-expanded="true"] { border-color: var(--ink); }
.mod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; }
.mod-head b { font: 700 20px var(--display); letter-spacing: -.01em; }
.mod-head span { font: 500 12px var(--mono); color: var(--teal-text); text-align: right; max-width: 50%; flex: none; }
.mod-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
.mod-addons { display: none; flex-direction: column; gap: 8px; width: 100%; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.mod[aria-expanded="true"] .mod-addons { display: flex; }
.addon { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.5; }
.addon strong { font-weight: 600; }
.addon span:last-child { font-family: var(--mono); white-space: nowrap; }
.mod-hint { font: 500 11px var(--mono); color: var(--muted-2); margin-top: auto; }
@media (max-width: 640px) { .range-group { grid-template-columns: 1fr; gap: 14px; } }

/* In the field (pinned) */
.field { height: 340vh; position: relative; }
.stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; display: flex; flex-direction: column; }
.stage-grid { flex: 1; min-height: 0; width: 100%; padding-top: clamp(12px, 3vh, 40px); padding-bottom: clamp(10px, 2vh, 20px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; align-items: center; }
.stage-copy { display: flex; flex-direction: column; gap: clamp(10px, 2.2vh, 26px); }
.stage-copy h2 { font: 700 clamp(26px, min(4vw, 6vh), 52px)/1.02 var(--display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.steps { display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 20px); }
.step { border-left: 2px solid rgba(255,255,255,.12); padding-left: 16px; opacity: .4; transition: opacity .3s, border-color .3s; }
.step.on { border-color: var(--teal); opacity: 1; }
.step-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.step-head .n { font: 500 12px var(--mono); color: var(--teal-light); }
.step-head b { font: 700 21px var(--display); letter-spacing: -.01em; }
.step-head .price { font: 500 11px var(--mono); color: rgba(255,255,255,.55); }
.step p { margin: 4px 0 0 30px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); text-wrap: pretty; }
.devices { position: relative; height: 100%; min-height: 420px; }
.device { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; }
.tablet { z-index: 1; opacity: 0; }
.tablet-frame { background: #0b1110; padding: 14px; border-radius: 28px; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.tablet-frame img { display: block; width: min(560px, 40vw, calc((100vh - 200px) * 1.333)); border-radius: 16px; }
.phone { z-index: 2; transform-origin: 50% 80%; }
.phone-frame { background: #0b1110; padding: 9px; border-radius: 46px; box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1); }
.phone-screen { position: relative; overflow: hidden; border-radius: 38px; }
.phone-screen img { display: block; height: min(calc(100vh - 210px), 580px); min-height: 300px; width: auto; }
.highlight { position: absolute; left: 6%; right: 6%; top: 78.4%; height: 8.6%; border-radius: 14px; border: 3px solid var(--teal); box-shadow: 0 0 0 9999px rgba(9,26,24,.5); opacity: 0; pointer-events: none; }
.progress { height: 3px; background: rgba(255,255,255,.08); }
.progress div { height: 100%; width: 0; background: var(--teal); }
/* Narrow screens: the pinned two-column stage doesn't fit, so show a plain stacked version. */
@media (max-width: 760px) {
  .field { height: auto; }
  .stage { position: static; height: auto; }
  .step { opacity: 1; border-color: var(--teal); }
  .devices { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-bottom: 40px; }
  .device { position: static; transform: none !important; opacity: 1 !important; }
  .tablet-frame img { width: min(100%, 560px); }
  .phone-screen img { height: 480px; }
  .highlight { display: none; }
  .progress { display: none; }
}

/* Field Ops */
.ops { border-top: 1px solid rgba(255,255,255,.08); }
.tabs { display: flex; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.tab { border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 500; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); }
.tab[aria-selected="true"] { background: var(--teal); color: var(--on-teal); border-color: var(--teal); }
.ops-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(min(260px, 100%), 1fr); gap: 28px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .ops-grid { grid-template-columns: 1fr; } }
.browser { background: #0b1110; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a48; }
.browser-bar span { flex: 1; text-align: center; font: 400 11px var(--mono); color: rgba(255,255,255,.45); }
.browser img { display: block; width: 100%; height: auto; }
.ops-points { display: flex; flex-direction: column; gap: 18px; }
.ops-points .point span { color: rgba(255,255,255,.68); }

/* Standalone */
.photo-card { padding: 0; overflow: hidden; border-radius: 16px; gap: 0; }
.photo-card img { display: block; width: 100%; height: 240px; object-fit: cover; }
.photo-card div { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.zebra { margin-top: 18px; background: var(--ink); color: #fff; border-radius: 16px; overflow: hidden; }
.zebra > img { display: block; width: 100%; height: clamp(220px, 32vw, 400px); object-fit: cover; object-position: 60% 40%; }
.hardware { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.hardware > div { padding: 28px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid rgba(255,255,255,.08); }
.hardware small { font: 500 11px var(--mono); color: var(--teal-light); letter-spacing: .05em; }
.hardware b { font: 700 20px var(--display); }
.hardware p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.7); }

/* Web */
.band { background: var(--band); }
.web-grid { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 56px; }
.web-grid > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.tile { background: #fff; border-radius: 12px; padding: 20px; }
.tile small { font: 500 11px var(--mono); color: var(--muted-2); }
.tile .price { font: 700 30px var(--display); margin-top: 6px; }
.tile .price span { font: 400 14px var(--sans); color: var(--muted-2); }
.tile p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.tile.ink { background: var(--ink); color: #fff; }
.tile.ink small { color: var(--teal-light); }
.tile.ink .price span, .tile.ink p { color: rgba(255,255,255,.75); }
.web-points { display: flex; flex-direction: column; gap: 2px; }
.web-point { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid #cdd7d2; }
.web-point span { font: 500 12px var(--mono); color: var(--teal-text); padding-top: 3px; }
.web-point p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.web-point strong { color: var(--ink); font-weight: 600; }

/* Automation (pinned) */
.automation { background: var(--teal); color: var(--on-teal); height: 260vh; position: relative; }
.auto-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); }
.chip-row { display: flex; gap: 14px; will-change: transform; }
.chip-row span { flex: none; border-radius: 999px; padding: 12px 22px; font: 500 clamp(14px, 1.4vw, 18px) var(--sans); white-space: nowrap; }
.chip-row.a span { background: var(--on-teal); color: var(--teal-light); }
.chip-row.b { transform: translateX(-45%); }
.chip-row.b span { background: rgba(6,32,28,.1); border: 1px solid rgba(6,32,28,.25); color: var(--on-teal); }
.love { font: 700 clamp(46px, 9vw, 140px)/.95 var(--display); letter-spacing: -.045em; margin: 0; text-align: center; padding: 0 28px; display: flex; flex-wrap: wrap; justify-content: center; column-gap: .22em; }
.love span { display: inline-block; opacity: .12; transform: translateY(30px); }
.love span:last-child { font-style: italic; font-weight: 500; }
/* Narrow screens: home.js stops the automation animation (pinned() is false), so unpin it the way calm mode does
   instead of scrolling past a frozen stage. */
@media (max-width: 760px) {
  .automation { height: auto; }
  .auto-stage { position: static; height: auto; padding: 64px 0; }
  .chip-row { flex-wrap: wrap; justify-content: center; transform: none !important; padding: 0 16px; }
  .chip-row span:nth-child(n+6) { display: none; } /* the repeats only fill the sliding marquee */
}

/* Economics */
.table-wrap { margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; }
.table-wrap:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; } /* focusable so keyboards can scroll it on phones */
.compare { width: 100%; min-width: 680px; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.compare thead th { padding-top: 16px; padding-bottom: 16px; border-bottom-color: var(--border); font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted-2); }
.compare tbody th { font-weight: 500; width: 40%; }
.compare td { color: var(--muted-2); }
.compare .ours { background: var(--teal-wash); color: var(--teal-text); font-weight: 500; border-bottom-color: #e0f1eb; }
.compare tr:last-child > * { border-bottom: 0; }

/* Pricing */
.toggle { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 14px; color: #fff; text-align: left; }
.toggle .pill { width: 34px; height: 20px; border-radius: 10px; padding: 2px; display: flex; flex: none; background: rgba(255,255,255,.22); justify-content: flex-start; transition: background .15s; }
.toggle .pill::after { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle[aria-pressed="true"] .pill { background: var(--teal); justify-content: flex-end; }
.toggle small { display: block; font-size: 12px; opacity: .65; }
.bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 48px; }
.bundle { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.bundle.best { background: var(--page); color: var(--ink); border: 0; box-shadow: 0 0 0 2px var(--teal); }
.bundle-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bundle-head b { font: 700 24px var(--display); }
.badge { font: 500 11px var(--mono); background: var(--ink); color: var(--teal-light); padding: 4px 8px; border-radius: 5px; }
.bundle-price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.bundle-price b { font: 700 50px/1 var(--display); letter-spacing: -.03em; }
.bundle-price span { font-size: 14px; opacity: .7; }
.bundle-sep { font: 400 12px var(--mono); opacity: .65; margin-top: 8px; }
.bundle-sep s { text-decoration: line-through; }
.bundle-tag { font-size: 14px; line-height: 1.55; opacity: .82; margin: 18px 0 0; min-height: 66px; }
.bundle ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 18px 0 0; padding: 18px 0 0; font-size: 14px; border-top: 1px solid rgba(127,127,127,.25); }
.bundle li { display: flex; gap: 10px; line-height: 1.4; }
.bundle li::before { content: '✓'; color: var(--teal); }
.bundle-extra { font-size: 13px; opacity: .65; margin: 13px 0 24px; flex: 1; }
.bundle .cta-btn { border: 1px solid rgba(255,255,255,.25); color: #fff; text-align: center; padding: 13px; border-radius: 10px; font-weight: 600; }
.bundle .cta-btn:hover { border-color: #fff; color: #fff; }
.bundle.best .cta-btn { background: var(--ink); border: 0; }
.bundle.best .cta-btn:hover { background: var(--teal-text); }
.price-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.consult { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.consult b { font: 700 20px var(--display); }
.consult div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.consult div span:first-child { opacity: .8; }
.consult div span:last-child { font-family: var(--mono); white-space: nowrap; }
.quote-cta { background: var(--teal); color: var(--on-teal); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.quote-cta small { font: 500 12px var(--mono); letter-spacing: .04em; }
.quote-cta b { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.quote-cta .mono { font-family: var(--mono); }
.quote-cta a { align-self: flex-start; margin-top: auto; background: var(--on-teal); color: #fff; font-weight: 600; padding: 12px 18px; border-radius: 10px; }
.quote-cta a:hover { background: var(--ink); color: #fff; }
.fine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px 32px; margin-top: 40px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.62); }
.fine div { border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }

/* Built here */
.built-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.built-grid > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.till { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.till-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.till-head span { font: 500 11px var(--mono); background: var(--teal-tint); color: var(--teal-text); padding: 4px 8px; border-radius: 5px; }
.till-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.till-row span:nth-child(2) { font-family: var(--mono); color: var(--muted-2); }
.till-row span:nth-child(3) { font-family: var(--mono); font-weight: 500; }
.till-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.till-total small { font: 400 12px var(--mono); color: var(--muted-2); }
.till-total b { font: 700 26px var(--display); }
.ruled { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ruled b { font: 700 21px var(--display); letter-spacing: -.01em; }
.ruled p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; text-wrap: pretty; }

/* Final CTA + form */
.cta { padding-bottom: 110px; }
.cta .panel-dark { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; position: relative; overflow: hidden; }
.cta .watermark { position: absolute; left: -140px; bottom: -160px; width: 520px; opacity: .07; pointer-events: none; }
.cta-copy { display: flex; flex-direction: column; gap: 18px; position: relative; }
.cta h2 { font: 700 clamp(38px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; margin: 0; }
.cta-contact { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(255,255,255,.62); }
.cta-contact a { color: var(--teal-light); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--page); color: var(--ink); border-radius: 14px; padding: 24px; position: relative; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form h3 { font: 700 20px var(--display); margin: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form select, .form textarea { padding: 11px; border: 1px solid var(--input); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { min-height: 84px; resize: vertical; }
.form button[type="submit"] { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 14px; font-weight: 600; font-size: 15px; }
.form button[type="submit"]:hover { background: var(--teal-text); }
.form button[disabled] { opacity: .6; cursor: progress; }
.form .error { color: var(--danger); font-size: 14px; margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.thanks { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--page); color: var(--ink); border-radius: 14px; padding: 32px; position: relative; }
.thanks b { font: 700 24px var(--display); }
.thanks span { color: var(--teal-text); }
@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
  .form input, .form select, .form textarea { font-size: 16px; } /* under 16px, iOS zooms in on focus */
}

/* Footer */
.site-footer { background: var(--deep); color: rgba(255,255,255,.6); font-size: 13px; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: min(260px, 100%); }
.footer-brand .brand img { width: 26px; height: 26px; }
.footer-brand .wordmark { font-size: 18px; display: inline; }
.footer-brand .tm { font-size: 12px; opacity: .75; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #fff; }

/* Preview gating: features under review show only on /preview/ (build-preview adds html[data-preview]).
   Shipping them = removing these attributes from the markup. */
html:not([data-preview]) [data-preview-only] { display: none !important; }
html[data-preview] [data-live-only] { display: none !important; }

/* Calm mode. html.calm is set before first paint (inline script in <head>) when the visitor's
   device asks for reduced motion, unless they switched animations on in the footer. */
html:not(.calm) .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
html:not(.calm) .rv.in { opacity: 1; transform: none; }
html.calm { scroll-behavior: auto; }
html.calm .field, html.calm .automation { height: auto; }
html.calm .stage, html.calm .auto-stage { position: static; height: auto; padding: 80px 0; }
html.calm .step { opacity: 1; }
html.calm .love span { opacity: 1; transform: none; }
html.calm .chip-row { flex-wrap: wrap; justify-content: center; transform: none !important; padding: 0 28px; }
html.calm .devices { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
html.calm .device { position: static; transform: none !important; opacity: 1 !important; }
html.calm .highlight, html.calm .progress { display: none; }
.motion-toggle { background: none; border: 0; padding: 0; color: rgba(255,255,255,.6); font: inherit; cursor: pointer; }
.motion-toggle:hover { color: #fff; }

@media print { .site-header, .site-footer { display: none !important; } }

/* Quote builder */
.qb { padding-top: 64px; padding-bottom: 100px; }
.qb h1 { font: 700 clamp(38px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; margin: 14px 0 0; max-width: 820px; }
.qb > .lead { font-size: 16px; max-width: 820px; margin-top: 20px; }
.qb-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .qb-grid { grid-template-columns: minmax(0, 1fr); } } /* not 1fr: its auto minimum let the total card widen the page */
.qb-list { display: flex; flex-direction: column; gap: 14px; }
.qb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qb-btn { background: #fff; border: 1px solid var(--input); border-radius: 8px; padding: 8px 14px; color: var(--ink); }
.qb-count { margin-left: auto; font: 400 12px var(--mono); color: var(--muted-2); }
.qb-note { background: #fff7e8; border: 1px solid #f0dcb2; border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: #5c4513; }
#qb-groups { display: flex; flex-direction: column; gap: 14px; }
.qb-group { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.qb-group h2 { margin: 0; padding: 12px 18px; background: #f8faf9; border-bottom: 1px solid var(--border); font: 500 11px var(--mono); color: var(--muted-2); letter-spacing: .05em; text-transform: uppercase; }
.qb-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--border-soft); }
.qb-row:last-child { border-bottom: 0; }
.qb-row.child { padding-left: 44px; background: #fbfcfb; }
.qb-row.on { background: #f2fbf8; }
.qb-row label { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; cursor: pointer; }
.qb-row input[type="checkbox"] { appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; flex: none; background: #fff; border: 1px solid var(--input); display: grid; place-items: center; cursor: pointer; }
.qb-row input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.qb-row input[type="checkbox"]:checked::after { content: '✓'; color: #fff; font-size: 12px; }
.qb-row input[type="checkbox"]:disabled { cursor: default; }
.qb-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qb-row .txt b { font-weight: 500; }
.qb-row .txt small { font-size: 13px; color: var(--muted-2); line-height: 1.45; }
.qb-row .amt { font: 500 13px var(--mono); white-space: nowrap; min-width: 70px; text-align: right; }
.stepper { display: flex; align-items: center; border: 1px solid var(--input); border-radius: 8px; overflow: hidden; flex: none; }
.stepper button { background: #fff; border: 0; padding: 5px 10px; color: var(--ink); }
.stepper span { font: 500 13px var(--mono); padding: 0 8px; white-space: nowrap; }
@media (max-width: 560px) { .qb-row { flex-wrap: wrap; } .qb-row label { flex-basis: 100%; } .qb-row .stepper { margin-left: 34px; } .qb-row .amt { margin-left: auto; } }
.qb-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .qb-side { position: static; } }
.qb-total { background: var(--dark); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.qb-total .eyebrow { color: var(--teal-light); font-size: 11px; }
.qb-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qb-amount b { font: 700 54px/1 var(--display); font-size: clamp(38px, 12vw, 54px); letter-spacing: -.03em; }
.qb-amount span { opacity: .7; }
.qb-bundle { background: rgba(47,211,181,.14); border: 1px solid rgba(47,211,181,.4); color: var(--teal-light); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.qb-lines { display: flex; flex-direction: column; gap: 8px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.qb-lines div { display: flex; justify-content: space-between; gap: 12px; }
.qb-lines span:first-child { opacity: .75; }
.qb-lines span:last-child { font-family: var(--mono); }
.qb-total .toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); padding: 10px 12px; }
.qb-total .toggle b { font-weight: 500; font-size: 14px; display: block; }
.qb-hours { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.dark-stepper { border-color: rgba(255,255,255,.2); }
.dark-stepper button { background: transparent; color: #fff; padding: 6px 12px; }
.dark-stepper span { font-size: 14px; padding: 0 10px; }
.qb-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.qb-actions a { text-align: center; padding: 11px 6px; }
.qb-actions button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 11px 6px; font-size: 14px; }
.qb-actions button:hover { border-color: #fff; }
.qb-fine { font-size: 12.5px; line-height: 1.6; color: var(--muted-2); padding: 0 4px; margin: 0; }
@media print {
  .qb-tools, .qb-actions, .qb-total .toggle, .qb-hours button, .qb-row:not(.on):not(.always) { display: none !important; }
  .qb-grid { grid-template-columns: 1fr 1fr; }
  .qb-total { background: #fff; color: var(--ink); border: 1px solid var(--border); }
}

/* KStore offer */
.offer-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(47,211,181,.12); border: 1px solid rgba(47,211,181,.45); color: #fff; font-size: 14px; transition: background .15s, border-color .15s; }
.offer-pill b { background: var(--teal); color: var(--on-teal); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.offer-pill span { color: var(--teal-light); transition: transform .15s; }
.offer-pill:hover { color: #fff; background: rgba(47,211,181,.2); border-color: var(--teal); }
.offer-pill:hover span { transform: translateX(3px); }
.kstore { background: var(--teal); color: var(--on-teal); }
.kstore-grid { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(min(300px, 100%), 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .kstore-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; } }
.kstore-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.kstore-tag { font: 500 13px var(--mono); letter-spacing: .04em; background: var(--on-teal); color: var(--teal-light); padding: 6px 12px; border-radius: 999px; }
.kstore h2 { font: 700 clamp(44px, 6.2vw, 84px)/.95 var(--display); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.kstore-sub { font: 500 italic clamp(24px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.02em; margin: -4px 0 0; }
.kstore-copy > p:not(.kstore-sub) { font-size: 17px; line-height: 1.65; margin: 4px 0 0; max-width: 600px; color: rgba(6,32,28,.82); text-wrap: pretty; }
.kstore-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-line { color: var(--on-teal); border-color: rgba(6,32,28,.35); font-weight: 500; }
.btn-line:hover { color: var(--on-teal); border-color: var(--on-teal); }
.kstore-card { background: var(--dark); color: #fff; border-radius: 20px; padding: clamp(28px, 3.5vw, 40px); box-shadow: 0 30px 70px rgba(6,32,28,.28); }
.kstore-big { display: flex; align-items: baseline; gap: 14px; font: 700 clamp(96px, 11vw, 148px)/.85 var(--display); letter-spacing: -.05em; color: var(--teal-light); }
.kstore-big span { font: 500 24px var(--display); letter-spacing: -.01em; color: #fff; }
.kstore-free { font: 700 32px var(--display); letter-spacing: -.02em; margin-top: 18px; }
.kstore-free em { font-weight: 500; color: var(--teal-light); }
.kstore-card ul { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.kstore-card li { display: flex; gap: 10px; }
.kstore-card li::before { content: '✓'; color: var(--teal); }

/* Customer logos. Still: a centred, wrapping grid of equal tiles. With motion on, js/customers.js
   moves the row onto a rail that slides one row's width per loop (--shift, --dur). */
.customers { padding: 88px 0 20px; }
.customers-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.customers-title { font: 700 clamp(26px, 3.2vw, 38px)/1.1 var(--display); letter-spacing: -.025em; margin: 0; max-width: 720px; text-wrap: balance; }
.logo-wall { margin-top: 40px; }
.logo-track { list-style: none; margin: 0 auto; padding: 0 28px; max-width: var(--wrap); display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-track li { flex: none; width: 212px; height: 108px; padding: 0 18px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.logo-track img { display: block; }
.logo-track li.wide { width: 438px; } /* very wide logos (Sila) get two tiles' room */
@media (max-width: 560px) {
  .logo-track { gap: 10px; padding: 0 16px; }
  .logo-track li { width: calc(50% - 5px); height: 92px; padding: 0 12px; }
  .logo-track img { max-width: 100%; height: auto; }
  .logo-track li.wide { width: 100%; }
}
.logo-wall.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logo-rail { display: flex; width: max-content; }
/* Each copy ends with half a gap and starts with half a gap, so the seam matches the spacing inside a row. */
.marquee .logo-track { flex-wrap: nowrap; max-width: none; margin: 0; padding: 0 7px; gap: 14px; }
.marquee .logo-track li { width: 212px; height: 108px; padding: 0 18px; }
.marquee .logo-track li.wide { width: 438px; }
html:not(.calm) .marquee .logo-rail { animation: logo-slide var(--dur, 60s) linear infinite; }
.marquee:hover .logo-rail { animation-play-state: paused; }
@keyframes logo-slide { to { transform: translate3d(calc(-1 * var(--shift, 0px)), 0, 0); } }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; background: var(--teal-tint); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
/* motion.css drops the outline on focused form inputs for a border + glow, which a native checkbox can't show. */
.form .check input:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
