/* Web Vyapari — site.css
   Order: @font-face, :root tokens (the only place colour literals appear), reset/base,
   layout, components, sections, page-specific, motion, media queries, reduced motion. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/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: 400 700;
  font-display: swap;
  src: url("/assets/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+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.06%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --c-bg: #ECECEA;
  --c-surface: #F6F6F4;
  --c-line: #CFCFCB;
  --c-muted: #646460;
  --c-ink: #1C1C1A;
  --c-accent: #EA5418;
  --c-accent-ink: #B23A0C;
  --c-accent-glow: rgba(234, 84, 24, 0.35);
  --c-white: #FFFFFF;
  --c-shadow: rgba(28, 28, 26, 0.14);
  --c-shadow-soft: rgba(28, 28, 26, 0.06);
  --c-header-bg: rgba(236, 236, 234, 0.92);
  --c-sheen: rgba(255, 255, 255, 0.9);

  --radius-card: 18px;
  --radius-ctl: 12px;
  --radius-pill: 999px;
  --shadow-card: inset 0 1px 0 var(--c-white), inset 0 -1px 0 var(--c-shadow-soft), 0 1px 2px var(--c-shadow-soft), 0 12px 28px -14px var(--c-shadow);
  --shadow-card-lift: inset 0 1px 0 var(--c-white), inset 0 -1px 0 var(--c-shadow-soft), 0 2px 4px var(--c-shadow-soft), 0 22px 40px -16px var(--c-shadow);
  --shadow-well: inset 0 2px 4px var(--c-shadow-soft), inset 0 0 0 1px var(--c-line);
  --shadow-btn: inset 0 1px 0 var(--c-white), 0 1px 2px var(--c-shadow-soft), 0 6px 14px -8px var(--c-shadow);

  --font-sans: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 68px;
  --gap: 16px;
  --section-pad: clamp(64px, 9vw, 120px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
p a, li a, .prose a, .text-link {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
p a:hover, li a:hover, .prose a:hover, .text-link:hover { color: var(--c-accent-ink); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--c-accent-glow); color: var(--c-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.section { padding-block: var(--section-pad) 0; }
section[id], [id="design-approval"] { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .lead { color: var(--c-muted); font-size: 1.0625rem; }
.section-head h2 { outline: none; }

/* ---------- Components ---------- */
.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.label-accent { color: var(--c-accent-ink); }
.label-row { display: inline-flex; align-items: center; gap: 10px; }

.card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.card.is-interactive { transition: transform 200ms ease; }
/* The lift shadow layer exists only while hovered/focused, so idle cards cost no extra paint layers. */
.card.is-interactive:hover::after, .card.is-interactive:focus-within::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-card-lift);
  pointer-events: none;
  animation: lift-in 200ms ease both;
}
@keyframes lift-in { from { opacity: 0; } to { opacity: 1; } }
.card.is-interactive:hover, .card.is-interactive:focus-within { transform: translateY(-3px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-ctl);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, opacity 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-ink);
  border-color: var(--c-accent-ink);
  box-shadow: inset 0 1px 0 var(--c-accent-glow), 0 1px 2px var(--c-shadow-soft), 0 10px 22px -12px var(--c-accent-glow);
}
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: var(--shadow-btn);
}
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

.led {
  position: relative;
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-glow);
}
.led::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.6;
  animation: led-pulse 2.4s ease-out infinite;
}
@keyframes led-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
}
.screw::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--c-line);
  transform: rotate(-35deg);
}
.screw.tl { top: 14px; left: 14px; }
.screw.tr { top: 14px; right: 14px; }
.screw.bl { bottom: 14px; left: 14px; }
.screw.br { bottom: 14px; right: 14px; }

.vents { display: flex; gap: 4px; }
.vents span {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-ctl);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  color: var(--c-ink);
}
.icon svg { width: 22px; height: 22px; }

.js-fallback, .form-js-note {
  padding: 14px 16px;
  border-radius: var(--radius-ctl);
  background: var(--c-surface);
  box-shadow: var(--shadow-well);
  color: var(--c-ink);
  margin-bottom: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--radius-ctl);
  background: var(--c-ink);
  color: var(--c-surface);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-header-bg);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  margin-right: auto;
}
.logo svg { width: 30px; height: 30px; color: var(--c-ink); }
.logo .logo-led { fill: var(--c-accent); }
.logo .logo-trace { stroke: var(--c-surface); }
.nav-panel { order: 3; width: 100%; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding-bottom: 8px;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-ctl);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
}
.nav-list a:hover { background: var(--c-surface); }
.header-cta { padding: 10px 16px; min-height: 44px; font-size: 0.9rem; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-ctl);
  background: var(--c-surface);
  box-shadow: var(--shadow-btn);
  font-weight: 600;
  font-size: 0.9rem;
}
.menu-btn svg { width: 18px; height: 18px; }
html.nav-ready .menu-btn { display: inline-flex; }
html.nav-ready .nav-panel:not(.is-open) { display: none; }
html.nav-ready .nav-panel.is-open .nav-list {
  flex-direction: column;
  padding: 8px 0 16px;
}
html.nav-ready .nav-panel.is-open .nav-list a { width: 100%; font-size: 1rem; }

/* ---------- Hero board ---------- */
.hero { padding-block: clamp(20px, 4vw, 48px) 0; }
.board {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(10px, 2.4vw, 28px);
  border-radius: calc(var(--radius-card) + 8px);
  background-color: var(--c-bg);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.traces path { fill: none; stroke: var(--c-line); stroke-width: 1.5; stroke-linecap: round; }
.traces .trace-glow { stroke: var(--c-accent); stroke-width: 1.5; stroke-dasharray: 2 14; opacity: 0.55; }
.trace-dot {
  fill: var(--c-accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
.device, .module, .step { z-index: 1; }

.device {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px) 0;
  text-align: left;
}
.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.status { display: inline-flex; align-items: center; gap: 8px; }
.device h1 { max-width: 13ch; }
.device .intro {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--c-muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 36px);
}
.port-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: clamp(32px, 5vw, 48px) calc(-1 * clamp(20px, 5vw, 64px)) 0;
  padding: 14px clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--c-line);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: var(--c-bg);
}
.ports { display: flex; gap: 6px; }
.ports span {
  display: block;
  width: 18px;
  height: 8px;
  border-radius: 3px;
  background: var(--c-surface);
  box-shadow: var(--shadow-well);
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 312px;
  align-content: start;
}
.module {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 92px;
  padding: 16px 18px;
}
.module .module-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module .value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.module .module-label { font-size: 0.875rem; color: var(--c-muted); line-height: 1.35; }
.trust .module:nth-child(5) { grid-column: 1 / -1; }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: var(--gap); }
.service { padding: 24px; display: grid; gap: 14px; align-content: start; }
.service p { color: var(--c-muted); }
.service .card-code { position: absolute; top: 22px; right: 22px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--gap); align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 24px;
}
.price-card.is-popular { box-shadow: var(--shadow-card), 0 0 0 1px var(--c-ink); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  min-height: 28px;
  border-radius: var(--radius-pill);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
.price-card h3 { font-size: 1.375rem; }
.price-card .summary { color: var(--c-muted); margin-top: -10px; }
.price {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-ctl);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
}
.price .amount {
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price .monthly { font-size: 0.925rem; color: var(--c-muted); }
.feature-list { display: grid; gap: 10px; flex: 1; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.tick { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--c-accent-ink); }
.maintenance-note {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-ctl);
  border: 1px dashed var(--c-line);
  color: var(--c-muted);
}
.maintenance-note .led { margin-top: 9px; }
.pricing-empty { padding: 28px; display: grid; gap: 16px; justify-items: start; }

/* ---------- Process ---------- */
.process-wrap { position: relative; }
.process-list {
  position: relative;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  border-radius: 1px;
  background: var(--c-line);
}
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 20px 22px 16px;
}
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
}
.step-num .led { position: absolute; top: 2px; right: 2px; }
.step-body { display: grid; gap: 8px; align-content: start; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.step p { color: var(--c-muted); }
.step .payment-note { color: var(--c-ink); font-weight: 600; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.work-card { padding: 14px; display: grid; gap: 0; align-content: start; }
.frame {
  border-radius: calc(var(--radius-card) - 6px);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
}
.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); }
.url-pill {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-muted);
  text-align: center;
}
.frame-well { position: relative; aspect-ratio: 16 / 10; background: var(--c-surface); }
.frame-well img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background-image: radial-gradient(var(--c-line) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.work-body { display: grid; gap: 14px; padding: 22px 10px 10px; }
.work-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.work-title h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.work-type { color: var(--c-muted); font-size: 0.95rem; margin-top: -8px; }
.work-problem { color: var(--c-ink); }
.work-meta { display: grid; gap: 8px; }
.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  justify-self: start;
}
.visit-link:hover { color: var(--c-accent-ink); }
.visit-link svg { width: 16px; height: 16px; }

/* ---------- Promises ---------- */
.promises-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.promise { padding: 22px; display: grid; gap: 10px; align-content: start; }
.promise h3 { font-size: 1.0625rem; }
.promise p { color: var(--c-muted); font-size: 0.95rem; }
.promise .label-row { margin-bottom: 4px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: var(--gap); }
.review { padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; font-size: 1rem; }
.review .quote-mark { width: 28px; height: 28px; color: var(--c-line); }
.review blockquote { flex: 1; font-size: 1rem; line-height: 1.65; }
.review-foot { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.review-name { font-weight: 600; }
.review-business { color: var(--c-muted); font-size: 0.925rem; }
.sample-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--c-muted);
  font-size: 1em;
  font-weight: 600;
  color: var(--c-ink);
}
.review-source { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- FAQ ---------- */
.faq-list { padding: 6px clamp(14px, 3vw, 28px); }
.faq-item + .faq-item { border-top: 1px solid var(--c-line); }
.faq-item h3 { font-size: 1.0625rem; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 16px 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 600;
  line-height: 1.4;
}
.faq-icon {
  flex: none;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  transition: transform 200ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--c-ink);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 48px 20px 0; color: var(--c-muted); }
.faq-a a { color: var(--c-ink); }

/* ---------- Contact & forms ---------- */
.contact-grid { display: grid; gap: var(--gap); align-items: start; }
.contact-info { padding: 26px 24px; display: grid; gap: 22px; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; font-weight: 600; }
.next-steps { display: grid; gap: 12px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--c-muted); }
.next-steps li::before {
  counter-increment: ns;
  content: "0" counter(ns);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-ink);
}
.next-steps strong { color: var(--c-ink); font-weight: 600; }

.form-card { padding: clamp(22px, 3vw, 32px); }
.form-card .form-head { display: grid; gap: 8px; margin-bottom: 22px; }
.form-card .form-head p { color: var(--c-muted); }
.form-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.form-fields[disabled] { opacity: 0.55; }
.field-row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 0.925rem; }
.field .optional { color: var(--c-muted); font-weight: 400; }
.field-hint { font-size: 0.85rem; color: var(--c-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--c-muted);
  border-radius: var(--radius-ctl);
  background: var(--c-surface);
  box-shadow: inset 0 2px 4px var(--c-shadow-soft);
  font-size: 1rem;
  line-height: 1.4;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--c-accent); }
.field [aria-invalid="true"] { border-color: var(--c-accent-ink); border-width: 2px; }
.field-error { font-size: 0.875rem; font-weight: 600; color: var(--c-accent-ink); }
.counter { justify-self: end; font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-muted); }
.form-actions { display: grid; gap: 12px; padding-top: 4px; }
.consent { font-size: 0.875rem; color: var(--c-muted); }
.form-status { margin-top: 18px; }
.form-status:empty { display: none; }
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-ctl);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  font-weight: 500;
}
.form-status.is-success { box-shadow: var(--shadow-well), inset 4px 0 0 var(--c-accent); }
.form-status.is-error { box-shadow: var(--shadow-well), inset 4px 0 0 var(--c-accent-ink); }
.form-status a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--section-pad); padding: 56px 0 28px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 12px; max-width: 34ch; align-content: start; justify-items: start; }
.footer-brand p { color: var(--c-muted); }
.footer-col { display: grid; gap: 6px; align-content: start; }
.footer-col ul { display: grid; gap: 0; }
.footer-col li { display: flex; align-items: center; min-height: 44px; color: var(--c-muted); }
.footer-col .label { margin-bottom: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-col a:hover { color: var(--c-accent-ink); text-decoration: underline; text-decoration-color: var(--c-accent); }
.footer-col span { color: var(--c-muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.875rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  border: 1px solid var(--c-accent-ink);
  box-shadow: 0 10px 24px -10px var(--c-shadow), 0 0 0 4px var(--c-surface);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float.is-tucked {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

/* ---------- Loader ---------- */
.loader { display: none; }
html.show-loader, html.show-loader body { overflow: hidden; }
html.show-loader .loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--c-bg);
  transition: opacity 350ms ease;
  contain: strict;
}
.loader.is-closing { opacity: 0; }
.loader.is-fast { transition-duration: 200ms; }
.loader-head { display: flex; align-items: center; gap: 10px; }
.segs {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  width: min(320px, 76vw);
  padding: 8px;
  border-radius: var(--radius-ctl);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
}
.seg { height: 18px; border-radius: 3px; background: var(--c-bg); box-shadow: var(--shadow-well); }
.seg.is-on { background: var(--c-accent); box-shadow: 0 0 6px var(--c-accent-glow); }
.loader-pct { font-family: var(--font-mono); font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; }

/* ---------- Caller page ---------- */
.caller-hero .device { padding-bottom: clamp(32px, 5vw, 56px); }
.caller-hero .device h1 { max-width: 16ch; }
.role-text { margin-top: 18px; max-width: 62ch; color: var(--c-muted); font-size: 1.0625rem; }
.terms-grid { display: grid; gap: var(--gap); }
.term { padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.term p { color: var(--c-muted); }
.term ul { display: grid; gap: 10px; }
.term li { display: flex; gap: 10px; align-items: flex-start; }
.commission-figure {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3.5rem, 2.6rem + 4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.term .example {
  padding: 14px 16px;
  border-radius: var(--radius-ctl);
  background: var(--c-bg);
  box-shadow: var(--shadow-well);
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------- Legal & 404 ---------- */
.legal { padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px); max-width: 860px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 10px 0 8px; }
.legal .updated { color: var(--c-muted); margin-bottom: 28px; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.015em; margin: 32px 0 10px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: var(--c-ink); }
.notfound { min-height: 58vh; display: grid; align-content: center; }
.notfound .device { max-width: 720px; margin-inline: auto; padding-bottom: clamp(32px, 5vw, 56px); }
.error-code { font-family: var(--font-mono); font-weight: 500; font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Motion ---------- */
.reveal { transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.low-power .led::after,
html.low-power .trace-dot { animation: none; }

/* Staggered 3D rise of the cards inside a section as it scrolls in. */
html.js .reveal:not(.is-in) .card,
html.js .reveal:not(.is-in) .faq-item {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 42px, 0) rotateX(14deg);
}
html.js .reveal.is-in:not(.is-settled) .card,
html.js .reveal.is-in:not(.is-settled) .faq-item {
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.16, 0.84, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 85ms);
}
html.js.low-power .reveal:not(.is-in) .card,
html.js.low-power .reveal:not(.is-in) .faq-item { transform: translateY(16px); }

/* Circuit lines draw themselves in; the orange current then flows along them. */
.traces .trace-base { stroke-dasharray: 1; }
@keyframes trace-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes trace-flow { to { stroke-dashoffset: -32; } }
@keyframes fade-in-glow { from { opacity: 0; } to { opacity: 0.55; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.traces .trace-glow { animation: trace-flow 1.6s linear infinite; }
html.low-power .traces .trace-glow { animation: none; }
html.js .reveal:not(.is-in) .traces .trace-base { stroke-dashoffset: 1; }
html.js .reveal.is-in .traces .trace-base { animation: trace-draw 1200ms ease 350ms both; }

/* Hero: modules assemble in depth after the loader, then the board reacts to pointer and scroll. */
@keyframes assemble {
  from { opacity: 0; transform: translate3d(0, 30px, -90px) rotateX(18deg); }
  to { opacity: 1; transform: none; }
}
html.motion .hero .device, html.motion .hero .module { opacity: 0; }
html.motion.hero-go .hero .device, html.motion.hero-go .hero .module {
  animation: assemble 950ms cubic-bezier(0.16, 0.84, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 40ms);
}
html.motion .hero .traces .trace-base { stroke-dashoffset: 1; }
html.motion.hero-go .hero .traces .trace-base { animation: trace-draw 1100ms ease 500ms both; }
html.motion.hero-go .hero .traces .trace-glow { animation: fade-in-glow 500ms ease 1300ms both, trace-flow 1.6s linear 1300ms infinite; }
html.motion.hero-go .hero .traces .trace-dot { animation: fade-in 400ms ease 1300ms both, dot-pulse 2.4s ease-in-out 1700ms infinite; }

.board.is-3d {
  transform-origin: 50% 100%;
  transform:
    perspective(1600px)
    rotateX(calc(var(--rx, 0deg) + var(--sp, 0) * 12deg))
    rotateY(var(--ry, 0deg))
    translateY(calc(var(--sp, 0) * 36px))
    scale(calc(1 - var(--sp, 0) * 0.05));
}

/* Interactive cards tilt toward the pointer with a soft light sheen. */
.card.is-interactive.is-tilting {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px);
  transition: transform 140ms ease-out;
  background-image: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), var(--c-sheen), transparent 62%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* ---------- Media queries ---------- */
@media (max-width: 767px) {
  .device-top .vents { display: none; }
  .header-inner { gap: 8px; }
  .header-cta { padding: 10px 12px; font-size: 0.875rem; }
}
@media (max-width: 419px) {
  .logo-text, .menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { padding: 0 12px; }
}
@media (max-width: 767px) {
  .screw.bl, .screw.br { display: none; }
  .port-strip { padding-inline: clamp(20px, 5vw, 64px); }
  .port-strip .ports { display: none; }
}
@media (max-width: 380px) {
  .device { padding-inline: 16px; }
  .port-strip { margin-inline: -16px; padding-inline: 16px; }
  .cta-row .btn { width: 100%; }
  .board { padding: 8px; }
}
@media (min-width: 768px) {
  .services-grid, .pricing-grid, .reviews-grid, .terms-grid, .promises-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .pricing-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 204px; }
  .trust .module:nth-child(4) { grid-column: 1 / span 1; }
  .trust .module:nth-child(5) { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
  .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
    grid-template-rows: minmax(150px, auto) minmax(150px, auto) 112px;
    column-gap: 48px;
    row-gap: 22px;
    padding: 36px;
  }
  .board {
    background-image: radial-gradient(var(--c-line) 1px, transparent 1.2px);
    background-size: 22px 22px;
  }
  .device { grid-column: 2; grid-row: 1 / span 2; padding-inline: 48px; }
  .device .port-strip { margin-inline: -48px; padding-inline: 48px; }
  .device h1 { font-size: clamp(2.5rem, 1rem + 2.9vw, 3.5rem); max-width: 15ch; }
  .notfound .device, .caller-hero .device { grid-column: 1 / -1; grid-row: auto; }
  .caller-hero .board, .notfound .board { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr); }
  .caller-hero .device h1, .notfound .device h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4rem); }
  .trust { display: contents; }
  .trust .module { align-self: center; }
  .trust .slot-l1 { grid-column: 1; grid-row: 1; }
  .trust .slot-l2 { grid-column: 1; grid-row: 2; }
  .trust .slot-r1 { grid-column: 3; grid-row: 1; }
  .trust .slot-r2 { grid-column: 3; grid-row: 2; }
  .trust .slot-b { grid-column: 2 !important; grid-row: 3; justify-self: center; width: min(100%, 300px); }
  .services-grid, .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .promises-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terms-grid .term-wide { grid-column: span 2; }
  .process-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .process-list::before { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px; align-content: start; }
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

  /* Header: full nav from 1024px; below that the menu button takes over. */
  .nav-panel { order: 0; width: auto; margin-left: auto; }
  .nav-list { padding: 0; flex-wrap: nowrap; gap: 0; }
  .nav-list a { padding: 0 9px; font-size: 0.875rem; white-space: nowrap; }
  .logo { margin-right: 0; }
  .header-inner { flex-wrap: nowrap; }
  .menu-btn { display: none !important; }
  html.nav-ready .nav-panel:not(.is-open) { display: block; }
  .header-cta { margin-left: 4px; }
}
@media (min-width: 1280px) {
  :root { --gap: 22px; }
  .board { padding: 44px; }
}

/* ---------- Reduced motion (keep last) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal:not(.is-in) { opacity: 1; transform: none; }
  html.js .reveal:not(.is-in) .card, html.js .reveal:not(.is-in) .faq-item { opacity: 1; transform: none; }
  html.js .reveal:not(.is-in) .traces .trace-base { stroke-dashoffset: 0; }
  .board.is-3d { transform: none; }
  .scroll-progress { display: none; }
  .card.is-interactive:hover, .card.is-interactive:focus-within, .btn:hover { transform: none; }
}
