/* ===========================================================================
   base.css — shared foundation, loaded on every page BEFORE the page's own
   <style> and before nav.css, so anything here is a default the page can still
   override. Purely additive: it fills gaps (focus rings, selection colour,
   reduced-motion, a canonical palette fallback) and standardises a couple of
   utilities. It does not restyle existing components.
   =========================================================================== */

/* Canonical Spoofey palette. Pages that still declare their own :root win on
   the cascade (same specificity, later in the document) — this is the floor,
   so a page that forgets a token still gets the right colour. */
:root{
  --void:#060912;
  --deep:#0B1122;
  --panel:#0C1226;
  --violet:#4F46E5;
  --electric:#2563EB;
  --glow:#93A5FF;
  --signal:#2DD4BF;
  --cyan:#38BDF8;
  --ink:#ECE7F7;
  --muted:#9A8CB8;
  --faint:#6B5E85;
  --danger:#F87171;
  --warn:#FBBF24;
  --ok:#34D399;
  --glass:rgba(79,70,229,.06);
  --glass-brd:rgba(37,99,235,.16);
  --line:rgba(37,99,235,.09);
  --radius:16px;
  /* card surfaces and the two corner radii nearly every page used to
     declare for itself */
  --surface:rgba(15,10,26,.55);
  --surface-2:rgba(20,14,34,.62);
  --r:14px;
  --r-sm:11px;
  /* AI Suite: one gradient family for everything AI. --ai-grad is the bright
     one (icons, small text on the dark UI); --ai-grad-deep is for surfaces
     white sits on (buttons, badges, the active AI tab). */
  --ai-grad:linear-gradient(135deg,#7DD3FC 0%,#818CF8 42%,#C084FC 78%,#F0ABFC 100%);
  --ai-grad-deep:linear-gradient(135deg,#2563EB 0%,#6D28D9 58%,#A21CAF 100%);
}

/* Motion: one easing and three lengths, so everything that moves on the site
   moves alike (a sliding indicator, a pane arriving, a number changing).
   All of it is switched off under prefers-reduced-motion below. */
:root{
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur-1:.18s;   /* hovers, colour changes */
  --dur-2:.32s;   /* something arriving */
  --dur-3:.45s;   /* an indicator sliding */
}
@keyframes fieldIn{from{opacity:0;transform:translateY(8px)}}
@keyframes paneIn{from{opacity:0;transform:translateY(6px)}}
@keyframes numBump{0%{color:#fff;text-shadow:0 0 14px rgba(94,234,212,.9)}100%{text-shadow:none}}

*{box-sizing:border-box}

/* Type: Geist for everything, Geist Mono only for code - snippets, API paths
   and method tags, key hints. Both load from Google Fonts in each page's
   <head>. Headlines are semibold with tight tracking; a page rule that sets
   its own weight still wins. */
:root{
  --font-sans:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
h1,h2,h3{font-weight:600}

/* Visible keyboard focus everywhere. The dark theme swallows the UA default;
   only .snav had a real ring before. Mouse clicks are unaffected. */
:focus-visible{
  outline:2px solid var(--signal,#2DD4BF);
  outline-offset:2px;
  border-radius:6px;
}
/* don't double-ring elements that already draw their own focus treatment */
.snav :focus-visible{outline-color:var(--signal,#2DD4BF)}

::selection{background:rgba(37,99,235,.32);color:#fff}

/* Shared horizontal-scroll wrapper for wide tables. Pages already use this
   class name in a few places; this makes it real everywhere. */
.table-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* Respect reduced-motion globally instead of each page re-declaring it. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  html{scroll-behavior:auto}
}

/* ===========================================================================
   Shared components, added in the site-wide style audit. Each of these used
   to be re-declared (with small drift) in 10-15 separate page <style>
   blocks; they live here once now. Pages should stop re-defining these
   selectors locally — the last page-local definition in source order always
   wins over this file, so a leftover local rule silently un-fixes this one.
   =========================================================================== */

/* "Numeric" role: phone numbers, codes, ids, balances. Tabular so digits
   align in a column. */
.mono{font-family:'Geist',sans-serif;font-variant-numeric:tabular-nums}

/* Two-tier secondary-text system. .subtitle sits directly under a page or
   section heading; .hint is fine print under one specific control. */
.subtitle{font-size:14px;color:var(--muted);line-height:1.6;margin:0}
.hint{font-size:12.5px;color:var(--faint);margin:4px 0 0}

/* Checkbox: a real <input type=checkbox> visually replaced by a painted
   tick, ported verbatim from admin.html's original (itself ported from
   calls.html's pre-call explainer "don't show again" control) — this was
   the one checkbox design on the site that already looked designed, so it
   becomes the canonical one instead of inventing a new fourth version.
   Real <input> is hidden; .acbx-box is the visible box. `label.acbx` (not
   `.acbx`) so it beats a page-local `.modal label` reset by source order. */
label.acbx{
  display:flex;align-items:center;gap:11px;cursor:pointer;margin:0;position:relative;
  text-transform:none;letter-spacing:normal;
  font:500 12.5px/1.35 'Geist',system-ui,sans-serif;color:var(--muted);
  padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:rgba(37,99,235,.04);
  transition:color .15s ease,background .18s ease,border-color .18s ease;
  user-select:none;-webkit-tap-highlight-color:transparent;
}
label.acbx:hover{color:var(--ink);background:rgba(37,99,235,.08);border-color:var(--glass-brd)}
label.acbx:has(.acbx-i:checked){color:var(--ink);border-color:rgba(37,99,235,.4);background:rgba(37,99,235,.1)}
.acbx-i{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
.acbx-box{
  flex:0 0 auto;width:19px;height:19px;border-radius:6px;display:grid;place-items:center;
  background:rgba(10,7,20,.5);border:1.5px solid var(--glass-brd);
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .12s ease;
}
label.acbx:active .acbx-box{transform:scale(.9)}
.acbx-box svg{
  width:11px;height:11px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:17;stroke-dashoffset:17;transition:stroke-dashoffset .22s cubic-bezier(.65,0,.35,1) .03s;
}
.acbx-i:checked + .acbx-box{
  background:linear-gradient(135deg,var(--electric),#1D4ED8);border-color:transparent;
  box-shadow:0 6px 16px -7px rgba(37,99,235,.75);
}
.acbx-i:checked + .acbx-box svg{stroke-dashoffset:0}
.acbx-i:focus-visible + .acbx-box{box-shadow:0 0 0 3px rgba(37,99,235,.4)}
.acbx-t{flex:1;min-width:0}
.acbx-t small{display:block;color:var(--faint);font-size:11px;margin-top:2px;letter-spacing:normal;text-transform:none}
@media(prefers-reduced-motion:reduce){ label.acbx,.acbx-box,.acbx-box svg{transition:none} }

/* Toggle switch: one visual language for every on/off setting site-wide.
   Two markup flavours already exist on the site (self-contained `.tgl`
   label, and a `.switch`+`.slider` pair used inside a separate label) —
   both are kept and made to render identically, rather than forcing a
   markup rewrite for a purely visual fix. */
.tgl,.switch{position:relative;flex:0 0 auto}
.tgl,.tgl-mini{display:inline-flex;align-items:center;gap:11px;cursor:pointer;font-size:14.5px;color:var(--ink)}
.tgl input,.tgl-mini input,.switch input{position:absolute;opacity:0;width:0;height:0}
.switch{display:inline-block;width:50px;height:28px;cursor:pointer}
.tgl .track,.tgl-mini .track,.switch .slider{
  width:50px;height:28px;border-radius:100px;background:rgba(107,94,133,.3);
  border:1px solid var(--glass-brd);position:relative;transition:background .2s ease,border-color .2s ease;
}
.switch .slider{position:absolute;inset:0;width:auto;height:auto}
.tgl .track::after,.tgl-mini .track::after,.switch .slider::after{
  content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;transition:transform .2s ease;box-shadow:0 1px 3px rgba(0,0,0,.4);
}
.tgl input:checked + .track,.tgl-mini input:checked + .track,.switch input:checked + .slider{background:linear-gradient(135deg,var(--electric),#1D4ED8);border-color:transparent}
.tgl input:checked + .track::after,.tgl-mini input:checked + .track::after,.switch input:checked + .slider::after{transform:translateX(22px)}
.tgl input:focus-visible + .track,.tgl-mini input:focus-visible + .track,.switch input:focus-visible + .slider{outline:2px solid var(--signal);outline-offset:2px}
/* .tgl-mini is also used bare (no .tgl) by the sitewide agent-dock widget -
   both spellings get the same compact size. */
.tgl-mini .track,.tgl.tgl-mini .track{width:34px;height:20px}
.tgl-mini .track::after,.tgl.tgl-mini .track::after{width:14px;height:14px}
.tgl-mini input:checked + .track::after,.tgl.tgl-mini input:checked + .track::after{transform:translateX(14px)}
@media(prefers-reduced-motion:reduce){ .tgl .track,.tgl .track::after,.switch .slider,.switch .slider::after{transition:none} }

/* Credit amounts, site-wide: the Place a call balance card's teal diamond +
   the amount in the same --signal green. Replaces the old bare "cr" /
   "cr/mo" suffixes. Markup:
     <span class="crd">3.2</span>                    3.2 credits
     <span class="crd">3.2<span class="u">/mo</span></span>   per month
   Add title="credits" (or aria-label) where the unit matters to screen
   readers; the icon itself is decorative. Plain-text spots (toasts,
   placeholders, emails) say "credits" in words instead. */
.crd{display:inline-flex;align-items:baseline;gap:.36em;white-space:nowrap;
  color:var(--signal,#2DD4BF);font-weight:600;font-variant-numeric:tabular-nums}
.crd::before{content:"";flex:0 0 auto;align-self:center;width:.58em;height:.58em;border-radius:.15em;
  background:linear-gradient(135deg,var(--signal,#2DD4BF),var(--cyan,#38BDF8));transform:rotate(45deg);
  box-shadow:0 0 10px -2px rgba(45,212,191,.55);margin:0 .08em}
.crd .u{color:var(--muted,#9A8CB8);font-weight:500;font-size:.86em;margin-left:-.18em}

/* ---------------------------------------------------------------------------
   The AI mark: three sparkles (a big one, a small one bottom-right, a tiny
   one top-left), the ONE icon for anything AI on the site. Drawn as a CSS
   mask so it takes the AI gradient; sized by font-size (1em square) unless
   given a width/height. On a coloured or gradient surface add .on-color (or
   rely on the .ai-btn / .ai-co-ic rules) for a white mark.
     <span class="ai-mark" aria-hidden="true"></span>
   --------------------------------------------------------------------------- */
.ai-mark{display:inline-block;flex:0 0 auto;width:1em;height:1em;vertical-align:-.12em;background:var(--ai-grad);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2.5Q12.6 9.4 19.5 11Q12.6 12.6 11 19.5Q9.4 12.6 2.5 11Q9.4 9.4 11 2.5Z'/%3E%3Cpath d='M19 15Q19.7 17.8 22.5 18.5Q19.7 19.2 19 22Q18.3 19.2 15.5 18.5Q18.3 17.8 19 15Z'/%3E%3Cpath d='M4.5 1.8Q5 4 7.2 4.5Q5 5 4.5 7.2Q4 5 1.8 4.5Q4 4 4.5 1.8Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 2.5Q12.6 9.4 19.5 11Q12.6 12.6 11 19.5Q9.4 12.6 2.5 11Q9.4 9.4 11 2.5Z'/%3E%3Cpath d='M19 15Q19.7 17.8 22.5 18.5Q19.7 19.2 19 22Q18.3 19.2 15.5 18.5Q18.3 17.8 19 15Z'/%3E%3Cpath d='M4.5 1.8Q5 4 7.2 4.5Q5 5 4.5 7.2Q4 5 1.8 4.5Q4 4 4.5 1.8Z'/%3E%3C/svg%3E") center/contain no-repeat}
.ai-mark.on-color,.ai-btn .ai-mark,.ai-co-ic .ai-mark{background:#fff}
/* gradient text for the word "AI" in labels that sit next to the mark */
.ai-text{background:var(--ai-grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------------------------------------------------------------------------
   Page label (.eyebrow): the small line above a page's H1 ("Place a call",
   "Rent a number", "Business"). Plain text, no pill or icon: sentence case,
   Geist semibold, in the same blue-to-teal ink as the section labels
   (.kicker), which replaced the old tiny letter-spaced capitals.
     <span class="eyebrow">Place a call</span>
   --------------------------------------------------------------------------- */
.eyebrow{display:inline-block;margin-bottom:14px;font-family:'Geist',system-ui,sans-serif;font-size:15.5px;font-weight:700;
  letter-spacing:-.005em;text-transform:none;line-height:1.3;
  background:linear-gradient(90deg,#A5B4FC,#5EEAD4);-webkit-background-clip:text;background-clip:text;color:transparent}
.kicker{display:inline-block;margin-bottom:12px;font-family:'Geist',system-ui,sans-serif;font-size:15px;font-weight:700;
  letter-spacing:-.005em;text-transform:none;line-height:1.3;
  background:linear-gradient(90deg,#A5B4FC,#5EEAD4);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------------------------------------------------------------------------
   Motion for anything you click. An arrow in a link or button (.arr: a "→"
   span or an arrow <svg>) glides forward on hover; every button gives a
   little on press. `translate` / `scale` are their own properties, so they
   stack on top of each page's own hover transform instead of fighting it.
   --------------------------------------------------------------------------- */
.arr{display:inline-block;transition:translate .28s cubic-bezier(.2,.8,.2,1)}
a:hover .arr,button:hover .arr,a:focus-visible .arr,button:focus-visible .arr,.arr-host:hover .arr{translate:3px 0}
/* not on SVG shapes: they scale about the drawing's origin, so a pressed map region slid out from under the pointer and the click was lost */
:where(button,.btn,[role="button"],a.cta,.snav-btn):not(svg *):active:not(:disabled){scale:.97}
@media (prefers-reduced-motion:reduce){ .arr{transition:none} a:hover .arr,button:hover .arr{translate:none} :where(button,.btn,a.cta):active{scale:none} }

/* ---------------------------------------------------------------------------
   Business avatar (bizmark.js). The business's first letter on one of ten
   colour pairs and one of six textures, both picked from a hash of the
   business id, so it stays the same wherever it's shown (and survives a
   rename). An uploaded logo replaces it. Size with --sz.
   --------------------------------------------------------------------------- */
.bzm{--sz:44px;position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--sz);height:var(--sz);
  border-radius:calc(var(--sz) * .3);overflow:hidden;isolation:isolate;
  background:linear-gradient(var(--ang,135deg),var(--a,#2563EB),var(--b,#4F46E5));
  box-shadow:0 10px 26px -14px var(--a,#2563EB),inset 0 1px 0 rgba(255,255,255,.3),inset 0 -1px 0 rgba(0,0,0,.2)}
.bzm::before,.bzm::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.bzm::after{background:linear-gradient(180deg,rgba(255,255,255,.2),transparent 48%)}
.bzm-l{font-family:'Geist',system-ui,sans-serif;font-weight:700;font-size:calc(var(--sz) * .46);line-height:1;
  color:#fff;letter-spacing:-.02em;text-shadow:0 1px 2px rgba(0,0,0,.28)}
.bzm img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.bzm.has-logo::before,.bzm.has-logo::after{display:none}
.bzm-t0::before{background:radial-gradient(120% 90% at 0% 0%,rgba(255,255,255,.32),transparent 55%)}
.bzm-t1::before{background:repeating-linear-gradient(135deg,rgba(255,255,255,.1) 0 2px,transparent 2px 7px)}
.bzm-t2::before{background:radial-gradient(rgba(255,255,255,.26) 1px,transparent 1.5px) 0 0/6px 6px}
.bzm-t3::before{background:repeating-radial-gradient(circle at 100% 100%,rgba(255,255,255,.14) 0 1.5px,transparent 1.5px 7px)}
.bzm-t4::before{background:radial-gradient(60% 60% at 82% 18%,rgba(255,255,255,.34),transparent 70%),radial-gradient(70% 70% at 8% 100%,rgba(0,0,0,.28),transparent 70%)}
.bzm-t5::before{background:conic-gradient(from 210deg at 72% 26%,rgba(255,255,255,.28),transparent 22%,transparent 76%,rgba(255,255,255,.14))}

/* ---------------------------------------------------------------------------
   Site footer, drawn by nav.js into <footer class="sfoot" data-site-footer>
   on every public page, so every page ends the same way.
   --------------------------------------------------------------------------- */
.sfoot{position:relative;z-index:2;border-top:1px solid rgba(37,99,235,.14);margin-top:56px;
  background:linear-gradient(180deg,rgba(6,9,18,0),rgba(6,9,18,.55))}
.sfoot-in{max-width:1120px;margin:0 auto;padding:48px 24px 26px;display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:28px}
.sfoot-brand .sfoot-logo{display:inline-flex;align-items:center;gap:10px;font-family:'Geist',sans-serif;font-weight:700;font-size:18px;color:var(--ink,#ECE7F7);text-decoration:none}
.sfoot-mark{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(140deg,#2563EB,#1E3A8A);
  box-shadow:0 6px 18px -6px rgba(37,99,235,.8),inset 0 1px 1px rgba(255,255,255,.25)}
.sfoot-mark img{width:15px;height:17px;display:block}
.sfoot-brand p{margin-top:12px;font-size:13.5px;line-height:1.6;color:var(--muted,#9A8CB8);max-width:300px}
.sfoot-col h4{font-family:'Geist',sans-serif;font-size:13px;font-weight:700;color:var(--ink,#ECE7F7);margin-bottom:12px;letter-spacing:0;text-transform:none}
.sfoot-col a{display:block;font-size:13.5px;color:var(--muted,#9A8CB8);text-decoration:none;padding:4px 0;transition:color .15s}
.sfoot-col a:hover{color:var(--ink,#ECE7F7)}
.sfoot-col a .ai-mark{width:11px;height:11px;margin-left:5px;vertical-align:-1px}
.sfoot-bottom{max-width:1120px;margin:0 auto;padding:18px 24px 30px;border-top:1px solid rgba(37,99,235,.1);
  display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;font-size:12.5px;color:var(--faint,#6B5E85)}
.sfoot-bottom a{color:var(--faint,#6B5E85);text-decoration:none}
.sfoot-bottom a:hover{color:var(--muted,#9A8CB8)}
@media (max-width:860px){ .sfoot-in{grid-template-columns:1fr 1fr;gap:26px 20px} .sfoot-brand{grid-column:1/-1} }
@media (max-width:420px){ .sfoot-in{padding:36px 16px 20px} .sfoot-bottom{padding:16px 16px 26px;flex-direction:column} }
.bzm img[hidden],.bzm-l[hidden]{display:none}

/* ---------------------------------------------------------------------------
   HTTP method label (.mth): the POST / GET tag ahead of an API path, as on
   the support centre's API docs (support-kit.js pill()). Same shape and
   colours as the tags the support page's API card always showed.
     <b class="mth mth-post">POST</b>
   --------------------------------------------------------------------------- */
.mth{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;padding:2px 7px;border-radius:6px;
  font:700 10px/1.5 'Geist Mono',system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;
  color:#93C5FD;background:rgba(59,130,246,.12);border:1px solid rgba(59,130,246,.3)}
.mth-post{color:#6EE7B7;background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.3)}
.mth-put,.mth-patch{color:#FCD34D;background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.3)}
.mth-delete{color:#FCA5A5;background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.3)}
.ep-path{font-family:'Geist Mono',system-ui,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.005em}

/* Search-box glyphs (.lp-ico): the topic's Solar glyph filled with the
   brand gradient (#spfIcoGrad, which nav.js puts on every page; lavender
   if it isn't there). Beats the glyph's own fill and any outline styling a
   search bar gives its svg. */
.lp-ico{flex:0 0 auto}
.lp-ico :is(path,circle,rect,ellipse,polygon){fill:url(#spfIcoGrad) #A5B4FC;stroke:none}
.lp-ico.u48 :is(path,circle,rect,ellipse,polygon){fill:url(#spfIcoGrad48) #A5B4FC}
