/* ==========================================================================
   Ask For Helping Hand — Reset, elements, component layer.
   Visual language follows konnectx.net. Consumes tokens.css only;
   no hard-coded colour or type values live here.
   ========================================================================== */

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--blue-200); color: var(--n-900); }

/* --- Headings ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-5xl); letter-spacing: var(--ls-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
h6 {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  line-height: var(--lh-normal);
}

p { text-wrap: pretty; }

a {
  color: var(--text-brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--blue-700); }

strong, b { font-weight: var(--fw-bold); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }

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

.section { padding-block: var(--section-y); }
.section--sunken  { background: var(--surface-sunken); }
.section--accent  { background: var(--surface-accent); }
.section--inverse { background: var(--surface-inverse); color: var(--text-on-dark); }
.section--inverse h1, .section--inverse h2,
.section--inverse h3, .section--inverse h4 { color: var(--text-on-dark); }

.prose { max-width: var(--measure); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.center-text { text-align: center; }

/* --- Eyebrow — konnectx sets these as small, widely-tracked blue caps --- */
.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-brand);
  margin-bottom: var(--sp-3);
}
.section--inverse .eyebrow { color: var(--cyan-400); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.section--inverse .section-head p { color: var(--text-on-dark-mut); }

/* --- Pill badge (the "Real availability · honest pricing" chip) -------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface-accent);
  color: var(--text-brand);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: var(--r-full);
  background: var(--brand); flex: none;
}
.section--inverse .pill {
  background: rgba(255,255,255,0.08); color: var(--cyan-400);
  border-color: var(--border-on-dark);
}
.section--inverse .pill__dot { background: var(--cyan-400); }

/* --- Buttons — konnectx is pill-first ---------------------------------- */
.btn {
  --_bg: var(--brand); --_fg: var(--brand-fg); --_bg-hover: var(--brand-hover);
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6); min-height: 48px;
  background: var(--_bg); color: var(--_fg);
  border: 1.5px solid transparent; border-radius: var(--r-full);
  font-family: var(--font-display); font-size: var(--fs-base);
  font-weight: var(--fw-bold); letter-spacing: var(--ls-snug);
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.btn:hover { background: var(--_bg-hover); color: var(--_fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--sh-brand); }

.btn--ghost {
  --_bg: transparent; --_fg: var(--text); --_bg-hover: var(--surface-sunken);
  border-color: var(--border-strong);
}

.btn--on-dark {
  --_bg: transparent; --_fg: var(--text-on-dark);
  --_bg-hover: rgba(255,255,255,0.1);
  border-color: var(--border-on-dark);
}

.btn--lg { padding: var(--sp-4) var(--sp-8); min-height: 56px; font-size: var(--fs-lg); }
.btn--block { width: 100%; }

/* --- Phone CTA — konnectx's two-line blue pill ------------------------- */
.phone-pill {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-3);
  min-height: 52px;
  background: var(--brand); color: var(--brand-fg);
  border-radius: var(--r-full);
  text-decoration: none;
  box-shadow: var(--sh-brand);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-base) var(--ease-out);
}
.phone-pill:hover { background: var(--brand-hover); color: var(--brand-fg); transform: translateY(-1px); }
.phone-pill__icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.18);
}
.phone-pill__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.phone-pill__label {
  font-size: 0.6875rem; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; opacity: 0.85;
}
.phone-pill__number {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: var(--fs-base); font-variant-numeric: tabular-nums;
}

/* Big hero phone block */
.phone-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-10);
  background: var(--brand); color: var(--brand-fg);
  border-radius: var(--r-3xl); text-decoration: none;
  box-shadow: var(--sh-brand);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-base) var(--ease-out);
}
.phone-cta:hover { background: var(--brand-hover); color: var(--brand-fg); transform: translateY(-2px); }
.phone-cta__label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; opacity: 0.9;
}
.phone-cta__number {
  font-family: var(--font-display); font-size: var(--fs-phone);
  font-weight: var(--fw-black); line-height: 1;
  letter-spacing: var(--ls-tight); font-variant-numeric: tabular-nums;
}

/* --- Cards ------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xs);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover {
  border-color: var(--border-brand); box-shadow: var(--sh-md);
  transform: translateY(-3px); color: inherit;
}
.card__icon {
  display: grid; place-items: center; flex: none;
  width: 3.25rem; height: 3.25rem;
  background: var(--surface-accent); color: var(--brand);
  border-radius: var(--r-xl);
}
/* Card and step titles are <h3> so heading levels never skip under a
   section's <h2>; these rules keep the h4-weight look they need. */
.card__title,
.step > h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
.card__body { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.card__footer {
  margin-top: auto; padding-top: var(--sp-3);
  font-family: var(--font-display); font-size: var(--fs-sm);
  font-weight: var(--fw-bold); color: var(--text-brand);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.card--link:hover .card__footer { gap: var(--sp-3); }
.card__footer svg { transition: transform var(--dur-base) var(--ease); }

.section--inverse .card {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-on-dark);
  box-shadow: none;
}
.section--inverse .card__body { color: var(--text-on-dark-mut); }

/* --- Badge ------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 0.2rem var(--sp-3);
  background: var(--surface-accent); color: var(--text-brand);
  border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.badge--accent  { background: var(--cyan-200); color: var(--navy); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--warn    { background: var(--warn-bg);    color: var(--warn); }
.badge--neutral { background: var(--n-100); color: var(--n-600); }

/* --- Trust strip ------------------------------------------------------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
.trust-strip--center { justify-content: center; }
.trust-item {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-muted);
}
.trust-item svg { color: var(--brand); flex: none; }
.section--inverse .trust-item { color: var(--text-on-dark-mut); }
.section--inverse .trust-item svg { color: var(--cyan-400); }

/* --- Numbered steps ---------------------------------------------------- */
.step { position: relative; padding-top: var(--sp-10); }
.step__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: var(--fs-2xl);
  font-weight: var(--fw-black); color: var(--blue-300);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.step::before {
  content: ""; position: absolute; top: 0.4em; left: 2.75rem; right: 0;
  height: 2px; background: var(--border);
}
.step:last-child::before { display: none; }

/* --- Stats ------------------------------------------------------------- */
.stat__figure {
  font-family: var(--font-display); font-size: var(--fs-4xl);
  font-weight: var(--fw-black); line-height: 1;
  letter-spacing: var(--ls-tight); color: var(--cyan-400);
}
.stat__label { font-size: var(--fs-sm); color: var(--text-on-dark-mut); margin-top: var(--sp-2); }

/* --- FAQ --------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; cursor: pointer;
  font-family: var(--font-display); font-size: var(--fs-lg);
  font-weight: var(--fw-bold); list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; flex: none; width: 0.65rem; height: 0.65rem;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item__body {
  padding-bottom: var(--sp-5); max-width: var(--measure);
  color: var(--text-muted);
}

/* --- Notice / disclosure ----------------------------------------------- */
.notice {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm); color: var(--text-muted);
  line-height: var(--lh-relaxed);
}
.notice--warm {
  background: var(--warn-bg); border-color: var(--amber-100);
  border-left-color: var(--warn); color: var(--amber-700);
}
.notice svg { flex: none; margin-top: 0.15em; }
.section--inverse .notice {
  background: rgba(255,255,255,0.05); border-color: var(--border-on-dark);
  border-left-color: var(--cyan-400); color: var(--text-on-dark-mut);
}

/* --- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field__label { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.field__hint { font-size: var(--fs-xs); color: var(--text-subtle); }

.input, .select, .textarea {
  width: 100%; padding: var(--sp-3) var(--sp-5); min-height: 52px;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-full);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.textarea { border-radius: var(--r-lg); min-height: 7rem; resize: vertical; line-height: var(--lh-relaxed); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--surface-accent); outline: none;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.5rem) 55%, calc(100% - 1.25rem) 55%;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat; padding-right: var(--sp-12);
}

/* Input + button on one pill row (konnectx's ZIP lookup) */
.inline-form { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.inline-form .input, .inline-form .select { flex: 1 1 14rem; min-width: 0; }

/* --- Ticker ------------------------------------------------------------ */
.ticker {
  overflow: hidden; padding-block: var(--sp-4);
  border-block: 1px solid var(--border); background: var(--surface-sunken);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: var(--sp-6); width: max-content;
                 animation: ticker-scroll 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: var(--sp-6);
  font-family: var(--font-display); font-size: var(--fs-sm);
  font-weight: var(--fw-semibold); color: var(--text-muted); white-space: nowrap;
}
.ticker__item::after {
  content: ""; width: 6px; height: 6px; background: var(--brand);
  border-radius: var(--r-full);
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- State grid -------------------------------------------------------- */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: var(--sp-2); }
.state-grid a {
  display: block; padding: var(--sp-3);
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  text-align: center; text-decoration: none; color: var(--text);
  transition: all var(--dur-fast) var(--ease);
}
.state-grid a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }

/* --- Tables ------------------------------------------------------------
   A table cannot shrink below its content width, so an unwrapped table
   drags the whole page into horizontal scroll on a 375px screen.
   ----------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.table-scroll > table { min-width: 34rem; }

/* --- Utilities --------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: calc(-1 * var(--sp-20));
  z-index: var(--z-modal);
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand); color: var(--brand-fg);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: var(--fw-bold); text-decoration: none;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 0; color: var(--brand-fg); }

.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-brand { color: var(--text-brand); }
.fs-xs { font-size: var(--fs-xs); }
.fs-sm { font-size: var(--fs-sm); }
.fs-lg { font-size: var(--fs-lg); }
.mt-0 { margin-top: 0; }
