/* =========================================================================
   ScaleNest Local Growth — design system
   Light base, dark hero and proof sections. One accent per vertical.
   ========================================================================= */

:root {
  /* Ink (dark sections) */
  --ink:        #0A1017;
  --ink-2:      #101923;
  --ink-3:      #17222F;
  --ink-line:   rgba(255, 255, 255, .10);
  --ink-text:   #E8EDF3;
  --ink-muted:  #94A3B4;

  /* Paper (light sections) */
  --paper:      #FFFFFF;
  --surface:    #F6F8FA;
  --surface-2:  #EFF2F6;
  --line:       #E2E7EC;
  --line-soft:  #EDF0F4;
  --text:       #0C141D;
  --muted:      #57646F;

  /* Accents — overridden per vertical via [data-accent] */
  --accent:      #FF6B2C;
  --accent-deep: #D64F17;
  --accent-soft: #FFF1E9;
  --accent-ink:  #FFFFFF;

  --ok:    #12A594;
  --warn:  #E8A33D;
  --crit:  #E5484D;
  --info:  #2E7CF6;

  /* Geometry */
  --container: 1180px;
  --gutter: 24px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(12, 20, 29, .05), 0 1px 3px rgba(12, 20, 29, .04);
  --shadow:    0 4px 12px rgba(12, 20, 29, .06), 0 1px 3px rgba(12, 20, 29, .04);
  --shadow-lg: 0 24px 48px -20px rgba(12, 20, 29, .22), 0 8px 20px -12px rgba(12, 20, 29, .12);

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-accent="sky"]  { --accent: #2E7CF6; --accent-deep: #1B5CC4; --accent-soft: #EAF1FE; }
[data-accent="teal"] { --accent: #0FA093; --accent-deep: #0A7A70; --accent-soft: #E6F6F4; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
/* Inline icons default to a text-sized box; every component rule below that
   sets its own width/height wins on specificity. */
svg { display: inline-block; vertical-align: middle; width: 18px; height: 18px; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.028em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }
.section--dark {
  background: var(--ink);
  color: var(--ink-text);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  letter-spacing: -.042em;
  line-height: 1.02;
  font-weight: 660;
}
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.h3 { font-size: clamp(1.12rem, 1.7vw, 1.32rem); letter-spacing: -.02em; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}
.section--dark .lead { color: var(--ink-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .745rem;
  font-weight: 620;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--accent);
  flex: none;
}
.section--dark .eyebrow { color: var(--accent); }

.muted { color: var(--muted); }
.section--dark .muted { color: var(--ink-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 580;
  font-size: .97rem;
  letter-spacing: -.012em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn--primary:hover { background: var(--accent-deep); }

.btn--ghost {
  border-color: var(--line);
  background: var(--paper);
  color: var(--text);
}
.btn--ghost:hover { border-color: #C9D1DA; background: var(--surface); }

.section--dark .btn--ghost,
.hero .btn--ghost,
.cta-band .btn--ghost,
.nav--dark .btn--ghost {
  background: rgba(255,255,255,.05);
  border-color: var(--ink-line);
  color: #fff;
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }

.btn--lg { padding: 17px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-arrow { transition: transform .18s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav--dark {
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  border-bottom-color: var(--ink-line);
  color: var(--ink-text);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -.03em; font-size: 1.06rem; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand__mark svg { width: 14px; height: 14px; }
.brand__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px;
}
.nav--dark .brand__tag { color: var(--ink-muted); border-left-color: var(--ink-line); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 13px; border-radius: 999px; font-size: .93rem; font-weight: 520;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav--dark .nav__link { color: var(--ink-muted); }
.nav--dark .nav__link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__link.is-active { color: var(--text); }
.nav--dark .nav__link.is-active { color: #fff; }

.nav__region {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted);
}
.nav--dark .nav__region { border-color: var(--ink-line); color: var(--ink-muted); }
.nav__region:hover { color: var(--text); }
.nav--dark .nav__region:hover { color: #fff; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav--dark .nav__toggle { border-color: var(--ink-line); }
.nav__toggle span { display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: currentColor;
}
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px;
  }
  .nav--dark .nav__links { background: var(--ink); border-bottom-color: var(--ink-line); }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 12px 4px; font-size: 1rem; border-radius: 8px; }
  .nav__links .btn { margin-top: 10px; }
  .nav__region { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    radial-gradient(700px 420px at 8% 105%, rgba(46, 124, 246, .18), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 620px at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 0%, #000 20%, transparent 78%);
}
.hero__inner {
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}
.hero .display { color: #fff; }
.hero__sub { margin-top: 22px; max-width: 33em; color: var(--ink-muted); font-size: clamp(1.03rem, 1.4vw, 1.18rem); line-height: 1.58; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 22px; font-size: .88rem; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ink-line);
  font-size: .8rem; font-weight: 560; letter-spacing: -.005em;
  color: var(--ink-text);
  margin-bottom: 24px;
}
.hero__badge b {
  background: var(--accent); color: #fff; font-weight: 620;
  border-radius: 999px; padding: 2px 9px; font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; flex: none;
}
@media (max-width: 460px) { .hero__badge { font-size: .76rem; padding-right: 11px; } }

/* ---------- Flow visual (Search -> Page -> Lead -> Phone -> Job) ---------- */
.flow {
  display: grid;
  gap: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.flow__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.flow__card {
  background: #fff; color: var(--text);
  border-radius: var(--r); padding: 13px 14px;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.5);
  font-size: .82rem; line-height: 1.42;
  min-width: 0;
}
.flow__card--dark { background: var(--ink-3); color: var(--ink-text); border: 1px solid var(--ink-line); box-shadow: none; }
.flow__label {
  font-size: .655rem; font-weight: 660; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.flow__card--dark .flow__label { color: var(--ink-muted); }
.flow__serp-url { color: var(--ok); font-size: .72rem; }
.flow__serp-title { color: #1a56c4; font-weight: 570; letter-spacing: -.01em; }
.flow__ad {
  display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-right: 6px; color: var(--text);
}
.flow__arrow { color: var(--ink-muted); display: grid; place-items: center; }
.flow__arrow svg { width: 18px; height: 18px; }

.flow__field { height: 9px; border-radius: 3px; background: var(--surface-2); margin-top: 7px; }
.flow__field--short { width: 58%; }
.flow__cta {
  margin-top: 10px; height: 22px; border-radius: 6px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: .62rem; font-weight: 640; letter-spacing: .03em;
}

.push {
  background: var(--ink-3); border: 1px solid var(--ink-line);
  border-radius: 14px; padding: 12px 13px; color: var(--ink-text);
}
.push__head { display: flex; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.push__dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.push__title { margin-top: 8px; font-weight: 620; font-size: .9rem; letter-spacing: -.015em; color: #fff; }
.push__meta { margin-top: 3px; font-size: .78rem; color: var(--ink-muted); }
.push__actions { margin-top: 11px; display: flex; gap: 7px; }
.push__btn {
  flex: 1; text-align: center; font-size: .72rem; font-weight: 600;
  padding: 7px 8px; border-radius: 8px; background: var(--accent); color: #fff;
}
.push__btn--ghost { background: rgba(255,255,255,.08); color: var(--ink-text); }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line);
}
.stats__item { padding: 26px 4px 0; }
.stats__value { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 660; letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.stats__label { margin-top: 6px; font-size: .87rem; color: var(--ink-muted); max-width: 24em; }
@media (max-width: 700px) { .stats { grid-template-columns: minmax(0,1fr); gap: 4px; } .stats__item { padding-top: 20px; } }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: #CFD7E0; transform: translateY(-2px); box-shadow: var(--shadow); }
.card__title { font-size: 1.05rem; font-weight: 620; letter-spacing: -.022em; }
.card__body { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.58; }

.section--surface .card { background: var(--paper); }
.section--dark .card {
  background: rgba(255,255,255,.035);
  border-color: var(--ink-line);
}
.section--dark .card:hover { border-color: rgba(255,255,255,.2); box-shadow: none; }
.section--dark .card__body { color: var(--ink-muted); }

.card__icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 18px;
}
.section--dark .card__icon { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.card__icon svg { width: 19px; height: 19px; }

/* Pain cards */
.pain-card { display: flex; gap: 16px; align-items: flex-start; }
.pain-card__x {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 2px;
  background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit);
  display: grid; place-items: center;
}
.pain-card__x svg { width: 13px; height: 13px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.section--dark .steps { background: var(--ink-line); border-color: var(--ink-line); }
.step { background: var(--paper); padding: 28px 26px; }
.section--dark .step { background: var(--ink); }
.step__n {
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 14px;
}
.step__title { font-size: 1.02rem; font-weight: 620; letter-spacing: -.022em; }
.step__body { margin-top: 9px; color: var(--muted); font-size: .93rem; line-height: 1.56; }
.section--dark .step__body { color: var(--ink-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: minmax(0,1fr); } }

/* ---------- Split (example lead) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); } }

.leadcard {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink-text);
}
.leadcard__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; border-bottom: 1px solid var(--ink-line);
  background: rgba(255,255,255,.03);
  font-size: .7rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
}
.leadcard__bar .push__dot { margin-right: 2px; }
.leadcard__time { margin-left: auto; color: var(--ink-muted); letter-spacing: .04em; font-weight: 560; }
.leadcard__name { padding: 18px 18px 4px; font-size: 1.28rem; font-weight: 640; letter-spacing: -.03em; color: #fff; }
.leadcard__rows { padding: 12px 18px 4px; }
.leadcard__row {
  display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 14px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.055);
  font-size: .875rem;
}
.leadcard__row:last-child { border-bottom: 0; }
.leadcard__k { color: var(--ink-muted); }
.leadcard__v { color: var(--ink-text); font-weight: 520; }
.leadcard__actions { display: flex; gap: 9px; padding: 14px 18px 18px; }
.leadcard__actions .push__btn { padding: 11px; font-size: .84rem; }
@media (max-width: 420px) { .leadcard__row { grid-template-columns: minmax(0,1fr); gap: 2px; } }

/* ---------- Services ---------- */
.svc { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__title { font-weight: 600; letter-spacing: -.02em; }
.svc__body { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .svc { grid-template-columns: minmax(0,1fr); gap: 6px; } }

/* ---------- Pricing / models ---------- */
.model { display: flex; flex-direction: column; height: 100%; }
.model--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.model__tag {
  align-self: flex-start; font-size: .68rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px;
}
.model__tag--muted { background: var(--surface-2); color: var(--muted); }
.model__points { margin-top: 18px; display: grid; gap: 9px; }
.model__points li { display: flex; gap: 9px; align-items: flex-start; font-size: .91rem; color: var(--muted); }
.model__points svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--ok); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left; font-size: 1.03rem; font-weight: 570; letter-spacing: -.02em;
}
.faq__icon { flex: none; width: 22px; height: 22px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; margin-top: 2px; transition: transform .2s var(--ease), background .2s; }
.faq__icon svg { width: 11px; height: 11px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding-bottom: 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Lead form ---------- */
.formwrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; grid-column: span 2; min-width: 0; }
.field--half { grid-column: span 1; }
@media (max-width: 620px) { .field--half { grid-column: span 2; } }

.field__label { font-size: .875rem; font-weight: 570; letter-spacing: -.01em; }
.field__req { color: var(--accent); margin-left: 2px; }
.field__help { font-size: .8rem; color: var(--muted); }
.field__error { font-size: .8rem; color: var(--crit); display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error select, .field.has-error textarea { border-color: var(--crit); }

.input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-size: .97rem;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%2357646F' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; cursor: pointer; transition: all .15s var(--ease); background: var(--paper);
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 570; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--r);
  padding: 22px; text-align: center; cursor: pointer; transition: all .15s;
  background: var(--surface);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { display: none; }
.dropzone__icon { color: var(--muted); margin: 0 auto 8px; width: 22px; height: 22px; display: block; }
.dropzone__text { font-size: .9rem; font-weight: 550; }
.dropzone__hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.filelist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filechip { font-size: .8rem; background: var(--surface-2); border-radius: 999px; padding: 5px 11px; color: var(--muted); }

.form-footer { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-legal { font-size: .82rem; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }

.form-success { display: none; text-align: center; padding: 22px 0; }
.form-success.is-visible { display: block; }
.form-success__icon {
  width: 52px; height: 52px; border-radius: 999px; margin: 0 auto 18px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok);
  display: grid; place-items: center;
}
.is-submitting { opacity: .6; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 88% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
}
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band .lead { color: var(--ink-muted); margin-top: 16px; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--ink-muted); padding-block: 56px 40px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: minmax(0,1fr); } }
.footer__title { color: #fff; font-size: .78rem; font-weight: 640; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 14px; }
.footer__list { display: grid; gap: 9px; font-size: .92rem; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem;
}

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-muted); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 560;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted);
}
.section--dark .pill { border-color: var(--ink-line); color: var(--ink-muted); }
.pill--live { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- Reveal ----------
   Content is visible by default and only hidden once the runtime confirms it
   can reveal it again. Without JavaScript the page still reads in full. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; padding: 13px 12px; font-size: .93rem; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 72px; } }

/* =========================================================================
   Dashboard (client + admin)
   ========================================================================= */
.app { background: var(--surface); min-height: 100vh; }
.app__bar {
  background: var(--ink); color: var(--ink-text);
  border-bottom: 1px solid var(--ink-line);
}
.app__bar-inner { display: flex; align-items: center; gap: 16px; height: 62px; min-width: 0; }
.app__bar-inner .brand { min-width: 0; }
.app__who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 620px) {
  .app__bar-inner > .pill { display: none; }
  .app__who span:not(.avatar) { display: none; }
  .brand__tag { display: none; }
}
.avatar { width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(140deg, var(--accent), var(--accent-deep)); display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 640; }

.app__head { padding-block: 28px 8px; }
.app__title { font-size: 1.6rem; letter-spacing: -.035em; font-weight: 640; }
.app__sub { color: var(--muted); font-size: .93rem; margin-top: 5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 22px; overflow-x: auto; }
.tab {
  padding: 11px 14px; font-size: .93rem; font-weight: 550; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0;
  white-space: nowrap;
}
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.kpi--hero { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.kpi__label { font-size: .78rem; font-weight: 620; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi--hero .kpi__label { color: var(--ink-muted); }
.kpi__value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 660; letter-spacing: -.035em; margin-top: 9px; font-variant-numeric: tabular-nums; }
.kpi--hero .kpi__value { color: #fff; }
.kpi__foot { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.kpi--hero .kpi__foot { color: var(--ink-muted); }
.delta { font-weight: 600; }
.delta--up { color: var(--ok); }
.delta--down { color: var(--crit); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 20px; overflow: hidden; }
.panel__head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.panel__title { font-size: 1rem; font-weight: 620; letter-spacing: -.02em; }
.panel__tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.panel__body { padding: 20px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select, .filters .input { padding: 8px 12px; font-size: .88rem; border-radius: 9px; width: auto; min-width: 130px; }

.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 780px; }
table.data th {
  text-align: left; font-size: .74rem; font-weight: 660; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.cell-strong { font-weight: 570; letter-spacing: -.01em; }
.cell-sub { color: var(--muted); font-size: .83rem; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 580; border-radius: 999px; padding: 4px 10px;
  border: 1px solid var(--line); background: var(--paper); white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.status--new       { color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.status--contacted { color: var(--info);    border-color: color-mix(in srgb, var(--info) 30%, transparent);   background: #EEF4FE; }
.status--qualified { color: #7A4FD1;        border-color: #DCD0F5; background: #F4EFFE; }
.status--sitevisit { color: #B07407;        border-color: #F0DFC0; background: #FDF6E9; }
.status--quotesent { color: #0B7285;        border-color: #C7E4EA; background: #EAF6F9; }
.status--won       { color: var(--ok);      border-color: color-mix(in srgb, var(--ok) 32%, transparent);     background: #E7F6F4; }
.status--lost      { color: var(--crit);    border-color: #F3CFD0; background: #FDEDED; }
.status--invalid   { color: var(--muted);   background: var(--surface-2); }

.statusmenu { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; background: var(--paper); min-width: 118px; }

.bars { display: grid; gap: 12px; }
.bar__row { display: grid; grid-template-columns: 140px minmax(0,1fr) 62px; gap: 12px; align-items: center; font-size: .88rem; }
.bar__track { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: var(--accent); }
.bar__fill--2 { background: var(--info); }
.bar__fill--3 { background: var(--ok); }
.bar__fill--4 { background: #C0C8D2; }
@media (max-width: 560px) { .bar__row { grid-template-columns: 96px minmax(0,1fr) 52px; font-size: .82rem; } }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 14px; }
.spark__bar { flex: 1; background: color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 3px 3px 0 0; min-height: 4px; }
.spark__bar:last-child { background: var(--accent); }

.alert { display: flex; gap: 13px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.alert:last-child { border-bottom: 0; }
.alert__dot { width: 8px; height: 8px; border-radius: 99px; margin-top: 7px; flex: none; }
.alert--critical .alert__dot { background: var(--crit); box-shadow: 0 0 0 4px color-mix(in srgb, var(--crit) 15%, transparent); }
.alert--warning .alert__dot  { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 15%, transparent); }
.alert--info .alert__dot     { background: var(--info); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 15%, transparent); }
.alert__client { font-weight: 580; font-size: .91rem; }
.alert__msg { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.alert__age { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: var(--r); padding: 13px 15px; font-size: .88rem; color: var(--accent-deep);
  margin-top: 20px;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- Print ---------- */
@media print {
  .nav, .callbar, .cta-band, .footer { display: none !important; }
  .section { padding-block: 24px; }
}
