/* Visitor popup skin for the home page (concept A, 2026-11-24).
   gate.js and gate.css are untouched: this file only restyles the popup so it matches the new home page.
   It is linked from the home page alone, and every rule is scoped to html.piq-a (set by that page),
   so the FAQ page's popup keeps its current look.
   Owner, 2026-11-23: no glow on the popup. A hairline, a plain drop shadow, nothing pulsing. */

html.piq-a {
  --g-font: var(--f-hanken), system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-mono: var(--f-mono), ui-monospace, monospace;
  --g-ink: #e9f2ec;
  --g-muted: #a9bab2;
  --g-line: rgba(233, 242, 236, 0.13);
  --g-accent: #c9f26e;
  --g-soft: rgba(233, 242, 236, 0.06);
  --g-card: radial-gradient(110% 80% at 50% 0%, #142622 0%, #0c1917 62%);
  --g-edge: rgba(201, 242, 110, 0.3);
  --g-dots: rgba(233, 242, 236, 0.1);
  --g-btn: linear-gradient(155deg, #10302d 12%, #17744b 68%, #7fd1ac); /* owner 2026-11-24: lime corner glow removed, calmer */
  --g-btn-w: 400;
  --g-dw: 300;
  --g-dls: -0.05em;
  --g-pill-bg: rgba(233, 242, 236, 0.05);
  --g-pill-bd: rgba(233, 242, 236, 0.14);
  --g-on-bg: rgba(201, 242, 110, 0.08);
  --g-on-bd: #c9f26e;
  --g-on-ink: #ffffff;
  --g-tint: rgba(201, 242, 110, 0.1);
  --g-seal-ink: #10302d;
  --g-autofill: #14241f;
  --g-err: #ffd9a8;
  --g-toast: rgba(14, 28, 25, 0.96);
}
html.piq-a.piq-a-light {
  --g-font: var(--f-jakarta), system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-ink: #0e1614;
  --g-muted: #56655f;
  --g-line: #dfe9e4;
  --g-accent: #17744b;
  --g-soft: #f4f8f6;
  --g-card: radial-gradient(120% 90% at 50% 0%, #ffffff 30%, #eaf6ef 100%);
  --g-edge: rgba(23, 116, 75, 0.3);
  --g-dots: rgba(14, 22, 20, 0.08);
  --g-btn: linear-gradient(155deg, #10302d 12%, #17744b 82%, #3ed598 130%); /* owner 2026-11-24: lime corner glow removed, calmer */
  --g-btn-w: 500;
  --g-dw: 400;
  --g-dls: -0.035em;
  --g-pill-bg: #ffffff;
  --g-pill-bd: #d5e2dc;
  --g-on-bg: #163e39;
  --g-on-bd: #163e39;
  --g-on-ink: #ffffff;
  --g-tint: #e6f4ec;
  --g-seal-ink: #ffffff;
  --g-autofill: #eef6f2;
  --g-err: #a4470a;
  --g-toast: rgba(255, 255, 255, 0.97);
}

html.piq-a .piq-gate {
  font-family: var(--g-font);
  color: var(--g-ink);
  background: rgba(6, 15, 13, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html.piq-a .piq-card {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 26px 30px 24px;
  background: var(--g-card);
  border: 1px solid var(--g-edge);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
/* The hero panel's dot grid, fading out down the card (replaces the corner glow). */
html.piq-a .piq-card::before {
  left: 0;
  right: 0;
  top: 0;
  width: auto;
  height: 190px;
  border-radius: 0;
  background: radial-gradient(var(--g-dots) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

html.piq-a .piq-top { margin-bottom: 24px; }
html.piq-a .piq-top img { height: 18px; }
html.piq-a.piq-a-light .piq-top img { content: url(/assets/img/pharmacyiq-logo-green.svg); }
html.piq-a .piq-pill {
  height: 30px;
  padding: 0 13px;
  font-family: var(--g-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--g-accent);
  background: var(--g-tint);
  border: 1px solid color-mix(in srgb, var(--g-accent) 34%, transparent);
}
html.piq-a .piq-pill i { width: 6px; height: 6px; background: var(--g-accent); box-shadow: none; animation: none; }
html.piq-a .piq-x { width: 36px; height: 36px; background: transparent; border: 1px solid var(--g-line); color: var(--g-ink); }
html.piq-a .piq-x:hover { background: transparent; border-color: var(--g-accent); color: var(--g-ink); }

html.piq-a .piq-card h2 {
  font-size: 33px;
  line-height: 1.08;
  font-weight: var(--g-dw);
  letter-spacing: var(--g-dls);
  color: var(--g-ink);
}
html.piq-a .piq-sub { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--g-muted); }

html.piq-a .piq-form { margin-top: 20px; gap: 8px; }
html.piq-a .piq-lab { margin: 8px 0 0; font-size: 13.5px; font-weight: 400; color: var(--g-muted); }
html.piq-a .piq-form > .piq-lab:first-child { margin-top: 0; }
html.piq-a .piq-in {
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--g-line);
  background: var(--g-soft);
  color: var(--g-ink);
  font-weight: 400;
}
html.piq-a .piq-in::placeholder { color: var(--g-muted); font-weight: 400; opacity: 0.75; }
html.piq-a .piq-in:focus {
  border-color: var(--g-accent);
  background: var(--g-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-accent) 16%, transparent);
}
html.piq-a .piq-in:-webkit-autofill { -webkit-text-fill-color: var(--g-ink); box-shadow: 0 0 0 60px var(--g-autofill) inset; caret-color: var(--g-ink); }
html.piq-a .piq-field::after { background: linear-gradient(90deg, transparent, var(--g-accent) 50%, transparent); }

/* Registry matches under the name field. */
html.piq-a .piq-form .piq-note { font-size: 13px; color: var(--g-muted); }
html.piq-a .piq-res { color: var(--g-ink); border: 1px solid var(--g-line); background: var(--g-soft); }
html.piq-a .piq-res:hover,
html.piq-a .piq-res:focus-visible { background: var(--g-tint); border-color: var(--g-accent); }
html.piq-a .piq-ico { background: var(--g-tint); color: var(--g-accent); }
html.piq-a .piq-rt b { font-weight: 500; }
html.piq-a .piq-rt b small,
html.piq-a .piq-rt span { color: var(--g-muted); font-weight: 400; }
html.piq-a .piq-res > svg { color: var(--g-muted); }
html.piq-a .piq-match { background: var(--g-tint); border: 1px solid color-mix(in srgb, var(--g-accent) 45%, transparent); box-shadow: none; }
html.piq-a .piq-seal { background: var(--g-accent); color: var(--g-seal-ink); box-shadow: none; }
html.piq-a .piq-tag { font-family: var(--g-mono); font-weight: 400; letter-spacing: 0.14em; color: var(--g-accent); }
html.piq-a .piq-match strong { font-weight: 500; color: var(--g-ink); }
html.piq-a .piq-match span,
html.piq-a .piq-match .piq-npi { color: var(--g-muted); }
html.piq-a .piq-match .piq-seal { color: var(--g-seal-ink); }
html.piq-a .piq-match .piq-tag { color: var(--g-accent); }

/* What brings you here? */
html.piq-a .piq-intent { margin-top: 8px; }
html.piq-a .piq-intent legend { font-size: 13.5px; font-weight: 400; color: var(--g-muted); }
html.piq-a .piq-intent span {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--g-ink);
  background: var(--g-pill-bg);
  border: 1px solid var(--g-pill-bd);
}
html.piq-a .piq-intent label:hover span { border-color: var(--g-accent); }
html.piq-a .piq-intent input:checked + span { background: var(--g-on-bg); border-color: var(--g-on-bd); color: var(--g-on-ink); box-shadow: none; }
html.piq-a .piq-intent input:focus-visible + span { outline: 2px solid var(--g-accent); }

html.piq-a .piq-err { font-weight: 400; color: var(--g-err); }
html.piq-a .piq-btn {
  height: 56px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: var(--g-btn-w);
  color: #ffffff;
  background: var(--g-btn);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
html.piq-a .piq-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
html.piq-a .piq-fine { margin-top: 6px; font-size: 13px; color: var(--g-muted); }
html.piq-a .piq-fine a { color: var(--g-ink); }

html.piq-a .piq-demo { margin-top: 18px; gap: 10px; font-size: 15px; color: var(--g-muted); }
html.piq-a .piq-ghost { height: 40px; padding: 0 18px; border: 1px solid var(--g-line); background: transparent; color: var(--g-ink); font-weight: 400; }
html.piq-a .piq-ghost:hover { background: transparent; border-color: var(--g-accent); color: var(--g-ink); }
html.piq-a .piq-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--g-line); font-size: 14.5px; color: var(--g-muted); }
html.piq-a .piq-foot a { color: var(--g-accent); font-weight: 400; text-decoration-color: color-mix(in srgb, var(--g-accent) 45%, transparent); }

html.piq-a .piq-hello .piq-seal { box-shadow: none; }
/* Bigger tap area on the two small text links, without moving them. */
html.piq-a .piq-fine a, html.piq-a .piq-foot a { position: relative; }
html.piq-a .piq-fine a::after, html.piq-a .piq-foot a::after { content: ""; position: absolute; inset: -12px -8px; }
html.piq-a .piq-gate a:focus-visible,
html.piq-a .piq-gate button:focus-visible { outline: 2px solid var(--g-accent); }

/* The "Thanks" pill that shows after the popup closes. */
html.piq-a .piq-toast {
  font-family: var(--g-font);
  font-weight: 400;
  color: var(--g-ink);
  background: var(--g-toast);
  border: 1px solid var(--g-line);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.5);
}
html.piq-a .piq-toast a { background: #c9f26e; color: #10302d; font-weight: 500; }

@media (max-width: 560px) {
  html.piq-a .piq-gate { padding: max(12px, 3vh) 12px 12px; }
  html.piq-a .piq-card { padding: 22px 20px 20px; border-radius: 24px; }
  html.piq-a .piq-top { margin-bottom: 20px; gap: 8px; }
  html.piq-a .piq-top img { height: 16px; }
  html.piq-a .piq-top-r { gap: 8px; }
  html.piq-a .piq-pill { height: 28px; padding: 0 9px; font-size: 9px; letter-spacing: 0.08em; gap: 6px; }
  html.piq-a .piq-x { width: 40px; height: 40px; }
  html.piq-a .piq-card h2 { font-size: clamp(22px, 6.6vw, 27px); }
  html.piq-a .piq-sub { font-size: 15px; margin-top: 10px; }
  html.piq-a .piq-form { margin-top: 16px; }
  html.piq-a .piq-in { height: 48px; }
  html.piq-a .piq-intent { gap: 6px; }
  html.piq-a .piq-intent label { flex: 1 1 auto; }
  html.piq-a .piq-intent span { width: 100%; justify-content: center; height: 40px; padding: 0 12px; font-size: 14px; }
  html.piq-a .piq-btn { height: 52px; margin-top: 8px; }
  html.piq-a .piq-demo { margin-top: 14px; gap: 8px; }
  html.piq-a .piq-foot { margin-top: 16px; padding-top: 14px; }
}
/* Short phones: tighten so the whole card fits without scrolling. */
@media (max-width: 560px) and (max-height: 720px) {
  html.piq-a .piq-gate { padding: 8px; }
  html.piq-a .piq-card { padding: 16px 18px 14px; }
  html.piq-a .piq-top { margin-bottom: 12px; }
  html.piq-a .piq-sub { font-size: 14.5px; line-height: 1.4; margin-top: 6px; }
  html.piq-a .piq-form { margin-top: 10px; gap: 6px; }
  html.piq-a .piq-lab { margin-top: 4px; font-size: 13px; }
  html.piq-a .piq-in { height: 44px; }
  html.piq-a .piq-intent { margin-top: 4px; }
  html.piq-a .piq-intent legend { margin-bottom: 6px; }
  html.piq-a .piq-btn { height: 48px; margin-top: 6px; }
  html.piq-a .piq-fine { margin-top: 2px; font-size: 12.5px; }
  html.piq-a .piq-demo { margin-top: 9px; gap: 6px 8px; }
  html.piq-a .piq-foot { margin-top: 12px; padding-top: 11px; }
}
/* Very narrow phones: keep the badge clear of the close button. */
@media (max-width: 350px) {
  html.piq-a .piq-top img { height: 14px; }
  html.piq-a .piq-pill { font-size: 8.5px; letter-spacing: 0.03em; padding: 0 8px; gap: 5px; }
  html.piq-a .piq-x { width: 36px; height: 36px; }
}
