/* ==========================================================================
   AI Helpline — inbound voice helpdesk for exam portals, citizen grievance
   lines and contact-centre operators. Page-scoped; every rule is prefixed hl-.
   Colours come from tokens.css so light and dark themes both work.
   ========================================================================== */

.hl {
  --hl-radius: 28px;
  --hl-card: var(--bg-raised);
  --hl-line: var(--border);
  --hl-ok: #34c77b;
  --hl-warn: #f5a524;
  --hl-stop: #ed4c6a;
  --hl-info: #59b6ff;
}
[data-theme="light"] .hl { --hl-ok: #1f9d5c; --hl-warn: #b86e00; --hl-stop: #c8304f; --hl-info: #1f6fc2; }

.hl-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hl-accent { color: var(--primary-text); }
.hl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hl-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.hl-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.hl-lead { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.6; max-width: 60ch; }
.hl-note { font-size: var(--fs-xs); color: var(--text-faint); }
.hl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--hl-line);
  background: var(--bg-panel);
  color: var(--text-muted);
  white-space: nowrap;
}
.hl-pill--ok { color: var(--hl-ok); border-color: color-mix(in oklab, var(--hl-ok) 35%, transparent); background: color-mix(in oklab, var(--hl-ok) 12%, transparent); }
.hl-pill--warn { color: var(--hl-warn); border-color: color-mix(in oklab, var(--hl-warn) 35%, transparent); background: color-mix(in oklab, var(--hl-warn) 12%, transparent); }
.hl-pill--live { color: var(--primary-text); border-color: var(--primary-ring); background: var(--primary-soft); }
.hl-pill--stop { color: var(--hl-stop); border-color: color-mix(in oklab, var(--hl-stop) 35%, transparent); background: color-mix(in oklab, var(--hl-stop) 10%, transparent); }
.hl-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hl-pill--live .hl-dot { animation: hl-pulse 1.6s ease-in-out infinite; }

/* ---------- Hero ----------------------------------------------------- */
.hl-hero { padding-block: calc(var(--header-h) + 1.25rem) var(--band-sm); }
.hl-hero__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #e9efe9;
  border-radius: var(--hl-radius);
  background:
    radial-gradient(80% 90% at 85% 10%, rgba(111 231 210 / 0.12), transparent 60%),
    radial-gradient(60% 70% at 10% 100%, rgba(201 247 91 / 0.10), transparent 60%),
    #0b0e13;
  border: 1px solid rgba(233 240 236 / 0.08);
  padding: clamp(1.75rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  color: var(--text);
}
[data-theme="light"] .hl-hero__panel { box-shadow: 0 40px 80px -40px rgba(10 12 17 / 0.45); }
.hl-hero__rings { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hl-hero__rings circle { fill: none; stroke: rgba(233 240 236 / 0.07); }
.hl-hero__copy { display: grid; gap: 1.4rem; align-content: start; }
.hl-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hl-hero__title .hl-serif { color: var(--primary); }
.hl-hero__sub { color: #97a1a8; font-size: var(--fs-md); line-height: 1.6; max-width: 54ch; }
.hl-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2), border-color var(--dur-2);
  border: 1px solid transparent;
  cursor: pointer;
}
.hl-btn:hover { transform: translateY(-1px); }
.hl-btn svg { width: 16px; height: 16px; }
.hl-btn--lime { background: var(--primary); color: var(--on-primary); box-shadow: var(--glow-primary); }
.hl-btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(233 240 236 / 0.04); }
.hl-btn--ghost:hover { border-color: var(--primary-ring); }
.hl-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(233 240 236 / 0.12);
  font-size: var(--fs-sm);
  color: #c9d1cc;
}
.hl-hero__facts li { display: flex; gap: 0.55rem; align-items: flex-start; }
.hl-hero__facts svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--primary); }

/* Hero stage: phone + floating cards */
.hl-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.hl-phone {
  position: relative;
  z-index: 2;
  width: min(228px, 64vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(145deg, #2c323d, #0d1015 40%, #1d222b);
  box-shadow:
    0 0 0 1px rgba(255 255 255 / 0.06),
    inset 0 0 0 1.5px rgba(255 255 255 / 0.08),
    0 50px 90px -30px rgba(0 0 0 / 0.85),
    0 18px 40px -20px rgba(0 0 0 / 0.6);
}
.hl-phone::before,
.hl-phone::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2a3039;
}
.hl-phone::before { top: 22%; height: 11%; }
.hl-phone::after { top: 36%; height: 7%; }
.hl-phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #f6f7f4;
  color: #10141b;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.hl-phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #050608;
  z-index: 3;
}
.hl-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 0;
  height: 48px;
  font-weight: 600;
  font-size: 12px;
}
.hl-phone__status svg { height: 11px; width: auto; }
.hl-phone__app {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid #e3e6e0;
}
.hl-phone__app strong { display: block; font-size: 12.5px; }
.hl-phone__app span { font-size: 10.5px; color: #5b6570; }
.hl-phone__emblem { width: 30px; height: 30px; flex: none; }
.hl-brand-mark { --hl-ring: #c9f75b; --hl-iris: #6fe7d2; }
[data-theme="light"] .hl-brand-mark { --hl-ring: #6f9a12; --hl-iris: #0a7f73; }
.hl-phone__lines {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #2f6d06;
  background: #e5f7c4;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hl-phone__lines i { width: 6px; height: 6px; border-radius: 50%; background: #4c9a0e; animation: hl-pulse 1.6s infinite; }
.hl-callcard {
  margin: 12px 12px 6px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px -10px rgba(16 20 27 / 0.35), 0 0 0 1px #e8ebe5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.hl-callcard svg.hl-av { width: 40px; height: 40px; }
.hl-callcard strong { font-size: 12.5px; display: block; }
.hl-callcard small { font-size: 10.5px; color: #5b6570; }
.hl-callcard__time { font-family: var(--font-mono); font-size: 11px; color: #10141b; background: #eef1ec; padding: 3px 7px; border-radius: 8px; }
.hl-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 30px; margin: 2px 0 4px; }
.hl-wave i {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7fc31c, #26b9a3);
  height: 30%;
  animation: hl-wave 1.1s ease-in-out infinite;
}
.hl-wave i:nth-child(2n) { animation-delay: -0.3s; }
.hl-wave i:nth-child(3n) { animation-delay: -0.6s; }
.hl-wave i:nth-child(5n) { animation-delay: -0.85s; }
.hl-transcript { flex: 1; overflow: hidden; padding: 4px 12px 8px; display: grid; gap: 7px; align-content: start; }
.hl-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 14px;
  line-height: 1.38;
  font-size: 11.5px;
  opacity: 0;
  translate: 0 6px;
  animation: hl-in 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.9s + 0.3s);
}
.hl-bubble b { display: block; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.hl-bubble--caller { background: #ffffff; box-shadow: 0 0 0 1px #e3e6e0; justify-self: start; border-bottom-left-radius: 4px; }
.hl-bubble--ai { background: #10141b; color: #eef2ea; justify-self: end; border-bottom-right-radius: 4px; }
.hl-bubble--ai b { color: #c9f75b; opacity: 0.9; }
.hl-source {
  margin: 0 12px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #3e4852;
  background: #eef1ec;
  border-radius: 10px;
  padding: 6px 8px;
}
.hl-source svg { width: 14px; height: 14px; flex: none; }
.hl-phone__keys { display: flex; justify-content: space-around; padding: 8px 18px 18px; }
.hl-phone__keys span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e9ece6; }
.hl-phone__keys span:last-child { background: #e5484d; }
.hl-phone__keys svg { width: 17px; height: 17px; fill: none; stroke: #10141b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl-phone__keys span:last-child svg { stroke: #fff; fill: #fff; }

.hl-float {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(20 24 31 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(233 240 236 / 0.1);
  box-shadow: 0 30px 60px -30px rgba(0 0 0 / 0.8);
  color: #e9efe9;
  padding: 14px;
}
.hl-float__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 11px; color: #97a1a8; }
.hl-float__head strong { color: #e9efe9; font-size: 12.5px; }
.hl-float--queue { animation: hl-bob 7s ease-in-out infinite; }
.hl-float--stat { align-self: end; animation: hl-bob 8s ease-in-out -3s infinite; }
.hl-q { display: grid; gap: 7px; }
.hl-q li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: 11px; }
.hl-q li svg { width: 26px; height: 26px; }
.hl-q li span { color: #c9d1cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-q li em { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.hl-q .is-talk { color: #c9f75b; background: rgba(201 247 91 / 0.14); }
.hl-q .is-done { color: #6fe7a8; background: rgba(52 199 123 / 0.15); }
.hl-q .is-xfer { color: #ffc46b; background: rgba(245 165 36 / 0.16); }
.hl-stat__big { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.hl-stat__row { display: flex; justify-content: space-between; font-size: 11px; color: #97a1a8; margin-top: 8px; }
.hl-stat__row b { color: #e9efe9; }
.hl-stat svg { width: 100%; height: 40px; margin-top: 8px; }

.hl-hero__caption { margin-top: 0.9rem; text-align: center; font-size: var(--fs-xs); color: var(--text-faint); }

@media (max-width: 980px) {
  .hl-hero__panel { grid-template-columns: minmax(0, 1fr); }
  .hl-stage { grid-template-columns: minmax(160px, 1fr) auto minmax(140px, 1fr); }
}
@media (max-width: 560px) {
  .hl-hero__facts { grid-template-columns: minmax(0, 1fr); }
  .hl-stage { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 0.5rem; }
  .hl-float { animation: none; }
  .hl-float--queue { order: 2; margin: 0; }
  .hl-float--stat { order: 3; margin: 0; align-self: stretch; }
  .hl-phone { justify-self: center; }
}

/* ---------- Audience strip ------------------------------------------ */
.hl-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }
.hl-who span {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------- Generic card + section wrappers ------------------------- */
.hl-card {
  background: var(--hl-card);
  border: 1px solid var(--hl-line);
  border-radius: 24px;
  box-shadow: var(--shadow-md), var(--inner-hairline);
}
.hl-section-head { display: grid; gap: 1rem; max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hl-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.hl-section-head--wide { max-width: none; }
.hl figure { max-width: none; }
#peaks .hl-peak { width: 100%; max-width: none; }

/* ---------- Peak chart ---------------------------------------------- */
.hl-peak { padding: clamp(1.25rem, 3vw, 2rem); }
.hl-peak svg { width: 100%; height: auto; display: block; overflow: visible; }
.hl-peak .ax { stroke: var(--border); stroke-width: 1; }
.hl-peak .ax-t { fill: var(--text-faint); font: 500 11px var(--font-mono); }
.hl-peak .cap { stroke: var(--text-muted); stroke-width: 2; stroke-dasharray: 6 6; }
.hl-peak .cap-t { fill: var(--text-muted); font: 600 12px var(--font-body); }
.hl-peak .curve { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(201 247 91 / 0.35)); }
[data-theme="light"] .hl-peak .curve { stroke: #6aa516; filter: none; }
.hl-peak .area { fill: url(#hl-peak-fill); }
.hl-peak .miss { fill: url(#hl-hatch); }
.hl-peak .lbl { fill: var(--text); font: 600 12px var(--font-body); }
.hl-peak .lbl-dot { fill: var(--bg-raised); stroke: var(--primary); stroke-width: 2.5; }
[data-theme="light"] .hl-peak .lbl-dot { stroke: #6aa516; }
.hl-peak .lead { stroke: var(--border-strong); stroke-width: 1; }
.hl-peak__legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: var(--fs-sm); color: var(--text-muted); }
.hl-peak__legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hl-peak__legend i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.hl-peak__legend .k-calls { background: var(--primary); height: 4px; }
.hl-peak__legend .k-cap { border-top: 2px dashed var(--text-muted); height: 0; }
.hl-peak__legend .k-miss { background: repeating-linear-gradient(135deg, var(--hl-stop) 0 3px, transparent 3px 6px); opacity: 0.8; }

.hl-facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.hl-fact { padding: 1.4rem; }
.hl-fact h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.hl-fact p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.hl-fact__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--primary-text); letter-spacing: 0.12em; margin-bottom: 0.6rem; display: block; }
@media (max-width: 820px) { .hl-facts3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Case story ---------------------------------------------- */
.hl-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.hl-case__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-block: 1.5rem; }
.hl-case__facts div { padding: 1rem; border-radius: 16px; background: var(--bg-panel); border: 1px solid var(--border); }
.hl-case__facts b { display: block; font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: -0.02em; color: var(--text); }
.hl-case__facts span { font-size: var(--fs-xs); color: var(--text-muted); }
.hl-asks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.hl-asks span { padding: 0.4rem 0.8rem; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: var(--fs-xs); font-weight: 500; border: 1px solid var(--primary-ring); }
.hl-case h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text); margin-top: 1.25rem; }
.hl-flow { padding: clamp(1rem, 2.5vw, 1.75rem); }
.hl-flow svg { width: 100%; height: auto; display: block; }
.hl-flow .n-box { fill: var(--bg-panel); stroke: var(--border-strong); }
.hl-flow .n-ai { fill: #0f141b; stroke: rgba(201 247 91 / 0.55); }
.hl-flow .n-t { fill: var(--text); font: 600 13px var(--font-body); }
.hl-flow .n-s { fill: var(--text-muted); font: 400 11px var(--font-body); }
.hl-flow .n-ai-t { fill: #e9efe9; font: 600 13px var(--font-body); }
.hl-flow .n-ai-s { fill: #97a1a8; font: 400 11px var(--font-body); }
.hl-flow .edge { fill: none; stroke: var(--border-strong); stroke-width: 1.6; }
.hl-flow .edge-ok { stroke: var(--hl-ok); }
.hl-flow .edge-x { stroke: var(--hl-warn); }
.hl-flow .flowdot { fill: var(--primary); }
.hl-flow .tag-ok { fill: var(--hl-ok); font: 700 10px var(--font-mono); letter-spacing: 0.06em; }
.hl-flow .tag-x { fill: var(--hl-warn); font: 700 10px var(--font-mono); letter-spacing: 0.06em; }
.hl-rules { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.hl-rules li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.hl-rules li strong { color: var(--text); font-weight: 600; }
.hl-rules svg { width: 20px; height: 20px; margin-top: 1px; }
@media (max-width: 960px) {
  .hl-case { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .hl-case__facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Segments (tabs) ----------------------------------------- */
.hl-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.hl-tab {
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  font: 600 var(--fs-sm) var(--font-body);
  cursor: pointer;
  transition: all var(--dur-2);
}
.hl-tab:hover { color: var(--text); border-color: var(--border-strong); }
.hl-tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.hl-seg { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.25rem, 3vw, 2.25rem); align-items: center; }
.hl-seg[hidden] { display: none; }
.hl-seg h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.hl-seg__who { color: var(--text-muted); margin-top: 0.4rem; font-size: var(--fs-sm); }
.hl-seg__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.hl-seg__cols h4 { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 0.6rem; }
.hl-seg__cols ul { display: grid; gap: 0.45rem; }
.hl-seg__cols li { font-size: var(--fs-sm); color: var(--text); padding-left: 1rem; position: relative; line-height: 1.45; }
.hl-seg__cols li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); }
.hl-seg__cols .is-team li::before { background: var(--hl-warn); }
.hl-seg__cols .is-full { grid-column: 1 / -1; }
.hl-chat {
  border-radius: 20px;
  background: #0f131a;
  border: 1px solid rgba(233 240 236 / 0.08);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  color: #e9efe9;
}
.hl-chat__head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(233 240 236 / 0.08); font-size: 12px; }
.hl-chat__head svg { width: 34px; height: 34px; }
.hl-chat__head strong { display: block; font-size: 13px; }
.hl-chat__head span { color: #97a1a8; font-size: 11px; }
.hl-chat__head .hl-pill { margin-left: auto; }
.hl-chat .hl-bubble { max-width: 92%; font-size: 12.5px; }
.hl-chat .hl-bubble--caller { background: #1b212c; color: #e9efe9; box-shadow: none; }
.hl-chat .hl-bubble--ai { background: #e9f8c8; color: #10141b; }
.hl-chat .hl-bubble--ai b { color: #3f6e0a; }
.hl-chat .hl-bubble--xfer { background: rgba(245 165 36 / 0.14); color: #ffd9a0; justify-self: center; text-align: center; font-size: 11.5px; max-width: 100%; }
@media (max-width: 900px) { .hl-seg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hl-seg__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How it works -------------------------------------------- */
.hl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: hl-step; }
.hl-step { padding: 1.1rem; display: grid; gap: 0.9rem; align-content: start; }
.hl-step__art { border-radius: 16px; background: var(--bg-sunken); border: 1px solid var(--border); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.hl-step__art svg { width: 100%; height: 100%; }
.hl-step h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; line-height: 1.25; }
.hl-step h3::before { counter-increment: hl-step; content: "0" counter(hl-step); font: 600 0.72rem var(--font-mono); color: var(--primary-text); }
.hl-step p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.hl-art-paper { fill: var(--bg-raised); stroke: var(--border-strong); }
.hl-art-line { fill: var(--border-strong); }
.hl-art-ink { fill: var(--text); }
.hl-art-muted { fill: var(--text-muted); }
.hl-art-lime { fill: var(--primary); }
.hl-art-lime-s { stroke: var(--primary); }
.hl-art-dark { fill: #10141b; }
@media (max-width: 1000px) { .hl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hl-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guardrails ---------------------------------------------- */
.hl-guard { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hl-guard__list { display: grid; gap: 0.75rem; }
.hl-guard__item { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--bg-panel); border: 1px solid var(--border); }
.hl-guard__item svg { width: 44px; height: 44px; }
.hl-guard__item h3 { font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.hl-guard__item p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; margin-top: 0.15rem; }
.hl-guard__demo { padding: 1.25rem; display: grid; gap: 0.75rem; }
.hl-guard__demo .hl-chat { box-shadow: var(--shadow-lg); }
.hl-guard__stamp {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 700 10.5px var(--font-mono);
  letter-spacing: 0.08em;
  color: #ff8fa3;
  background: rgba(237 76 106 / 0.14);
  border: 1px dashed rgba(237 76 106 / 0.6);
  padding: 4px 9px;
  border-radius: 8px;
  text-transform: uppercase;
}
.hl-redact { background: #4a5260; color: transparent; border-radius: 3px; user-select: none; }
@media (max-width: 960px) { .hl-guard { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Report dashboard ---------------------------------------- */
.hl-dash { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: 1rem; }
.hl-dash__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hl-dash__bar strong { font-family: var(--font-display); font-size: var(--fs-md); color: var(--text); }
.hl-dash__bar .hl-note { margin-left: 0.5rem; }
.hl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.hl-kpi { padding: 1rem; border-radius: 16px; background: var(--bg-panel); border: 1px solid var(--border); }
.hl-kpi span { font-size: var(--fs-xs); color: var(--text-muted); }
.hl-kpi b { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); letter-spacing: -0.03em; color: var(--text); font-weight: 600; margin-top: 0.2rem; }
.hl-kpi small { font-size: 0.72rem; color: var(--hl-ok); font-weight: 600; }
.hl-dash__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 0.75rem; }
.hl-panel { padding: 1rem 1.1rem; border-radius: 16px; background: var(--bg-panel); border: 1px solid var(--border); }
.hl-panel h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--text); margin-bottom: 0.85rem; }
.hl-bars { display: grid; gap: 0.6rem; }
.hl-bars li { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.75rem; font-size: var(--fs-xs); color: var(--text-muted); }
.hl-bars li b { color: var(--text); font-weight: 600; }
.hl-bars li i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; position: relative; }
.hl-bars li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.hl-donut { display: grid; grid-template-columns: 110px 1fr; gap: 0.9rem; align-items: center; }
.hl-donut svg { width: 110px; height: 110px; }
.hl-donut .trk { fill: none; stroke: var(--bg-sunken); stroke-width: 14; }
.hl-donut .seg { fill: none; stroke-width: 14; }
.hl-donut .ctr { fill: var(--text); font: 600 18px var(--font-display); }
.hl-donut .ctr-s { fill: var(--text-muted); font: 500 9px var(--font-body); }
.hl-donut ul { display: grid; gap: 0.4rem; font-size: var(--fs-xs); color: var(--text-muted); }
.hl-donut li { display: flex; align-items: center; gap: 0.45rem; }
.hl-donut li i { width: 9px; height: 9px; border-radius: 3px; }
.hl-donut li b { margin-left: auto; color: var(--text); }
.hl-hours svg { width: 100%; height: auto; }
.hl-hours .ln { fill: none; stroke: var(--secondary); stroke-width: 2.5; }
[data-theme="light"] .hl-hours .ln { stroke: #1a9e8a; }
.hl-hours .ar { fill: url(#hl-hours-fill); }
.hl-hours .tx { fill: var(--text-faint); font: 500 8px var(--font-mono); }
.hl-hours .gd { stroke: var(--border); }
@media (max-width: 1000px) {
  .hl-dash__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hl-dash__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .hl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-dash__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact-centre operators -------------------------------- */
.hl-ops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hl-tiers { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: 0.6rem; }
.hl-tier { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-panel); position: relative; }
.hl-tier + .hl-tier::before { content: ""; position: absolute; left: 47px; top: -0.6rem; height: 0.6rem; border-left: 2px dashed var(--border-strong); }
.hl-tier--ai { background: #0f141b; border-color: rgba(201 247 91 / 0.45); color: #e9efe9; }
.hl-tier--ai p { color: #97a1a8 !important; }
.hl-tier__lvl { font: 700 0.72rem var(--font-mono); letter-spacing: 0.1em; color: var(--text-faint); text-align: center; }
.hl-tier--ai .hl-tier__lvl { color: #c9f75b; }
.hl-tier h3 { font-size: var(--fs-base); font-weight: 600; }
.hl-tier p { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 0.15rem; line-height: 1.5; }
.hl-tier__bar { width: 92px; height: 10px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.hl-tier--ai .hl-tier__bar { background: rgba(233 240 236 / 0.08); }
.hl-tier__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: inherit; }
.hl-ops__points { display: grid; gap: 1rem; margin-top: 1.5rem; }
.hl-ops__points li { display: grid; grid-template-columns: 28px 1fr; gap: 0.75rem; }
.hl-ops__points li > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); border: 1px solid var(--primary-ring); color: var(--primary-text); font: 700 0.72rem var(--font-mono); }
.hl-ops__points strong { display: block; color: var(--text); font-weight: 600; }
.hl-ops__points p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 960px) { .hl-ops { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hl-tier { grid-template-columns: 48px 1fr; } .hl-tier__bar { display: none; } .hl-tier + .hl-tier::before { left: 39px; } }

/* ---------- Languages ----------------------------------------------- */
.hl-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; max-width: 900px; margin-inline: auto; }
.hl-langs span { padding: 0.55rem 1rem; border-radius: var(--r-pill); background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); }
.hl-langs span em { font-style: normal; color: var(--text-faint); margin-left: 0.35rem; }
.hl-langs .is-mix { border-color: var(--primary-ring); background: var(--primary-soft); }

/* ---------- Pricing ------------------------------------------------- */
.hl-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.hl-price__main { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.25rem; align-content: start; background: #0b0e13; color: #e9efe9; position: relative; isolation: isolate; }
.hl-price__main::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201 247 91 / 0.18), transparent 65%); z-index: -1; }
.hl-price__row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.hl-price__amt { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 4.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #c9f75b; }
.hl-price__unit { font-size: var(--fs-md); color: #c9d1cc; }
.hl-price__label { font-size: var(--fs-sm); color: #97a1a8; }
.hl-price__sub { display: flex; align-items: baseline; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(233 240 236 / 0.1); }
.hl-price__sub b { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; }
.hl-price__sub span { color: #97a1a8; font-size: var(--fs-sm); }
.hl-price__detail { padding: clamp(1.5rem, 4vw, 2.5rem); }
.hl-price__detail h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.hl-price__detail ol { display: grid; gap: 0.55rem; counter-reset: hl-li; }
.hl-price__detail li { display: grid; grid-template-columns: 26px 1fr; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.hl-price__detail li::before { counter-increment: hl-li; content: counter(hl-li); font: 600 0.72rem var(--font-mono); color: var(--primary-text); padding-top: 0.15rem; }
.hl-price__detail li strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .hl-price { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ + contact ------------------------------------------- */
.hl-faq { display: grid; gap: 0.6rem; max-width: 860px; margin-inline: auto; }
.hl-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden; }
.hl-contact__side { padding: clamp(1.5rem, 4vw, 2.75rem); background: #0b0e13; color: #e9efe9; display: grid; gap: 1.1rem; align-content: start; }
.hl-contact__side h2 { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.hl-contact__side h2 .hl-serif { color: #c9f75b; }
.hl-contact__side p { color: #97a1a8; }
.hl-contact__side a { color: #e9efe9; text-decoration: none; display: inline-flex; gap: 0.6rem; align-items: center; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid rgba(233 240 236 / 0.12); background: rgba(233 240 236 / 0.04); }
.hl-contact__side a:hover { border-color: rgba(201 247 91 / 0.45); }
.hl-contact__side a svg { width: 18px; height: 18px; color: #6fe7d2; }
.hl-person { display: grid; gap: 0.15rem; }
.hl-person strong { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; }
.hl-person span { color: #97a1a8; font-size: var(--fs-sm); letter-spacing: 0.04em; }
.hl-form { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.hl-form h3 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.hl-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.hl-form__grid .is-full { grid-column: 1 / -1; }
.hl-form label { display: grid; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.hl-form input,
.hl-form select,
.hl-form textarea {
  width: 100%;
  font: 400 var(--fs-sm) var(--font-body);
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.hl-form textarea { resize: vertical; min-height: 110px; }
.hl-form input:focus,
.hl-form select:focus,
.hl-form textarea:focus { outline: 2px solid var(--primary-ring); outline-offset: 1px; border-color: var(--primary-ring); }
.hl-form .hl-btn { justify-self: start; align-self: start; width: auto; height: auto; min-height: 0; aspect-ratio: auto; }
.hl-form .hl-btn svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) { .hl-contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hl-form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion -------------------------------------------------- */
@keyframes hl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes hl-wave { 0%, 100% { height: 22%; } 50% { height: 95%; } }
@keyframes hl-in { to { opacity: 1; translate: 0 0; } }
@keyframes hl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hl-dash { to { stroke-dashoffset: -40; } }
@keyframes hl-ring { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-fade { to { opacity: 1; } }
@keyframes hl-bar { to { transform: scaleX(1); } }
@keyframes hl-marquee { to { transform: translateX(-50%); } }
.hl-flow .edge-anim { stroke-dasharray: 5 7; animation: hl-dash 1.6s linear infinite; }

.hl-hero__rings circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hl-ring 7s ease-in-out infinite;
}
.hl-hero__rings circle:nth-child(2) { animation-delay: -1.2s; }
.hl-hero__rings circle:nth-child(3) { animation-delay: -2.4s; }
.hl-hero__rings circle:nth-child(4) { animation-delay: -3.6s; }
.hl-hero__rings circle:nth-child(5) { animation-delay: -4.8s; }

.hl-peak .curve { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: hl-draw 2.8s var(--ease-out) .2s forwards; }
.hl-peak .area, .hl-peak .miss { opacity: 0; animation: hl-fade .8s ease 1.8s forwards; }
.hl-runner { filter: drop-shadow(0 0 6px #c9f75b); }
.hl-peak .lbl-dot { transform-box: fill-box; transform-origin: center; animation: hl-pulse 2.2s ease-in-out infinite; }
.hl-step { animation: hl-bob 6s ease-in-out infinite; }
.hl-step:nth-child(2) { animation-delay: -1.2s; }
.hl-step:nth-child(3) { animation-delay: -2.4s; }
.hl-step:nth-child(4) { animation-delay: -3.6s; }
.hl-tier__bar i { transform: scaleX(0); transform-origin: left center; animation: hl-bar 1.2s var(--ease-out) .3s forwards; }
.hl-guard__item { animation: hl-in .6s ease both; }
.hl-guard__item:nth-child(2) { animation-delay: .1s; }
.hl-guard__item:nth-child(3) { animation-delay: .2s; }
.hl-guard__item:nth-child(4) { animation-delay: .3s; }

.hl-bars li i::after { transform: scaleX(0); transform-origin: left center; animation: hl-bar 1.1s var(--ease-out) forwards; }
.hl-bars li:nth-child(2) i::after { animation-delay: .08s; }
.hl-bars li:nth-child(3) i::after { animation-delay: .16s; }
.hl-bars li:nth-child(4) i::after { animation-delay: .24s; }
.hl-bars li:nth-child(5) i::after { animation-delay: .32s; }

.hl-q li { opacity: 0; animation: hl-in .45s ease forwards; }
.hl-q li:nth-child(2) { animation-delay: .12s; }
.hl-q li:nth-child(3) { animation-delay: .24s; }
.hl-q li:nth-child(4) { animation-delay: .36s; }
.hl-q li:nth-child(5) { animation-delay: .48s; }

.hl-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hl-marquee__track { display: flex; gap: .6rem; width: max-content; animation: hl-marquee 32s linear infinite; }
.hl-marquee__track span { padding: .55rem 1rem; border-radius: var(--r-pill); background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-sm); }
.hl-marquee__track span em { font-style: normal; color: var(--text-faint); margin-left: .35rem; }
.hl-marquee__track .is-mix { border-color: var(--primary-ring); background: var(--primary-soft); }
.hl-asks--price { margin-top: 0; }
.hl-price__detail .hl-asks span { background: var(--bg-sunken); }

@media (prefers-reduced-motion: reduce) {
  .hl *, .hl *::before, .hl *::after { animation: none !important; }
  .hl-bubble, .hl-q li { opacity: 1; translate: 0 0; }
  .hl-peak .curve { stroke-dashoffset: 0; }
  .hl-peak .area, .hl-peak .miss { opacity: 1; }
  .hl-bars li i::after, .hl-tier__bar i { transform: none; }
}
