/* Smart Local Leads design system (2026-11-27).
   Shared by the sales page, the client portal and admin. Tokens first, then components.
   Modern, light, calm: big type, soft layered shadows, rounded surfaces, one confident green. */
:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e9ef;
  --line-2: #eef1f5;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --brand: #047857;          /* emerald 700: buttons, links, small text (passes AA contrast on white) */
  --brand-2: #10b981;        /* emerald 500: highlights, gradients */
  --brand-ink: #064e3b;
  --brand-soft: #ecfdf5;
  --brand-line: #a7f3d0;
  --blue: #2563eb;  --blue-soft: #eff6ff;
  --amber: #b45309; --amber-soft: #fffbeb;
  --violet: #7c3aed; --violet-soft: #f5f3ff;
  --red: #dc2626;   --red-soft: #fef2f2;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(11,18,32,.06), 0 1px 1px rgba(11,18,32,.04);
  --sh-2: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px -6px rgba(11,18,32,.10);
  --sh-3: 0 2px 4px rgba(11,18,32,.04), 0 24px 48px -12px rgba(11,18,32,.18);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .9em; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.num, .price { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .xs { font-size: .78rem; } .center { text-align: center; } .right { text-align: right; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .row > .grow { flex: 1 1 220px; }
.between { justify-content: space-between; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px; } .narrow { max-width: 600px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 22px; }
.card + .card { margin-top: 14px; }
.card.pad-lg { padding: 28px; } .card.flat { box-shadow: none; } .card.soft { background: var(--brand-soft); border-color: var(--brand-line); }
.card h2, .card h3 { margin-bottom: .35em; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* Buttons */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 18px;
  font: 650 15px/1.2 var(--font); cursor: pointer; text-decoration: none; background: var(--b); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px -6px color-mix(in srgb, var(--b) 60%, transparent);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.04); } .btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.btn.lg { padding: 16px 22px; font-size: 17px; border-radius: 14px; } .btn.block { width: 100%; } .btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.blue { --b: var(--blue); } .btn.dark { --b: var(--ink); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Form fields */
label, .label { display: block; font-weight: 650; font-size: .9rem; margin: 14px 0 6px; color: var(--ink-2); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7dce4; border-radius: 12px; font: 16px var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #c3cad6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* Chips & pills */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--line-2); color: var(--ink-2); white-space: nowrap; border: 0; }
.chip.green { background: var(--brand-soft); color: var(--brand-ink); } .chip.blue { background: var(--blue-soft); color: #1e40af; }
.chip.amber { background: var(--amber-soft); color: var(--amber); } .chip.violet { background: var(--violet-soft); color: var(--violet); } .chip.red { background: var(--red-soft); color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Tooltip / info popover: <button class="tip" data-tip="…">?</button> (hover on desktop, tap on phones) */
.tip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--line-2); color: var(--muted); font: 700 12px var(--font); cursor: help; vertical-align: middle; margin-left: 4px; padding: 0; }
.tip:hover, .tip[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.pop { position: fixed; z-index: 90; max-width: min(320px, calc(100vw - 24px)); background: var(--ink); color: #f1f5f9; font-size: .86rem; line-height: 1.45; padding: 10px 12px; border-radius: 12px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.pop.on { opacity: 1; transform: none; pointer-events: auto; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--sh-3); font-weight: 550; display: flex; gap: 10px; align-items: center; animation: toastIn .25s var(--ease); }
.toast.err { background: var(--red); } .toast.ok::before { content: "✓"; color: var(--brand-2); font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Modal / bottom sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(11,18,32,.45); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: end center; animation: fade .2s; }
@media (min-width: 640px) { .sheet-bg { place-items: center; } }
.sheet { background: var(--surface); width: min(520px, 100vw); border-radius: 24px 24px 0 0; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); animation: sheetIn .28s var(--ease); max-height: 92vh; overflow: auto; }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
.sheet .x { float: right; border: 0; background: var(--line-2); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.bigcode { font: 800 clamp(2.2rem, 8vw, 3rem)/1 var(--font); letter-spacing: .18em; text-align: center; padding: 18px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); margin: 14px 0; font-variant-numeric: tabular-nums; }

/* Stepper */
.steps { display: grid; gap: 10px; counter-reset: st; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.step .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--line-2); color: var(--muted); }
.step.done .n { background: var(--brand); color: #fff; } .step.now .n { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 12%, transparent); }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .4s var(--ease); }

/* Accordion (FAQ / help) */
details.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; }
details.qa + details.qa { margin-top: 8px; }
details.qa summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 10px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--muted); font-weight: 700; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa > div { padding: 0 0 14px; color: var(--ink-2); }

/* Price breakdown */
.bill { display: grid; gap: 8px; }
.bill .line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.bill .line .what { color: var(--ink-2); } .bill .line .amt { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.bill .line.save .amt, .bill .line.save .what { color: var(--brand); } .bill .line.free .amt { color: var(--violet); }
.bill .total { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; font-size: 1.25rem; font-weight: 800; }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--line-2); padding: 4px; border-radius: 14px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 10px 8px; border-radius: 11px; font: 650 14px var(--font); color: var(--ink-2); cursor: pointer; line-height: 1.25; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg small { display: block; font-weight: 600; color: var(--brand); font-size: .74rem; }

/* Stepper +/- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--line-2); } .qty output { min-width: 34px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Skeleton */
.skel { background: linear-gradient(90deg, var(--line-2), #f8fafc, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Empty state */
.empty { text-align: center; padding: 34px 18px; } .empty .ico { font-size: 42px; margin-bottom: 8px; }
