/* Secondary pages (FAQ, contact, terms, privacy, refunds, accessibility, logo) in the look of the new
   home page, white skin (2026-11-24). Presentation only: no words, links, form fields or scripts change.
   Linked last in each page's <head>, so it wins over site.css, sub.css and the pages' own <style> blocks.
   Owner, same day: "all the other link pages match". The app (app.pharmacyiq.co) is not touched. */

:root {
  --a-ink: #0e1614;
  --a-muted: #56655f;
  --a-faint: #66746f;
  --a-line: #e3ece8;
  --a-soft: #f4f8f6;
  --a-accent: #17744b;
  --a-pine: #163e39;
  --a-btn: linear-gradient(155deg, #10302d 12%, #17744b 82%, #3ed598 130%); /* owner 2026-11-24: lime corner glow removed, calmer */
  --a-hl: linear-gradient(100deg, #163e39 0%, #17744b 55%, #3ed598 110%);
  /* The popup skin (gate-a.css) reads these; on the home page they come from the page's own font files. */
  --f-jakarta: "Plus Jakarta Sans";
  --f-mono: "JetBrains Mono";
}
body { color: var(--a-ink); background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- Top bar: a floating white pill, like the home page's ---------- */
.snav { background: transparent; border-bottom: 0; top: 12px; padding: 12px 14px 0; pointer-events: none; }
.snav-in {
  pointer-events: auto;
  max-width: 1180px;
  height: 62px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 22, 20, 0.08);
  box-shadow: 0 12px 34px -18px rgba(22, 62, 57, 0.35);
}
.snav .brand img { height: 20px; }
.snav-links { background: transparent; border: 0; padding: 0; gap: 2px; }
.snav-links a { font-size: 15px; font-weight: 400; color: var(--a-muted); padding: 0.5rem 1.05rem; }
.snav-links a:hover { color: var(--a-ink); }
.snav-links a.on { background: var(--a-soft); color: var(--a-ink); font-weight: 500; box-shadow: none; }

/* ---------- Buttons: the home page's pill ---------- */
.sbtn { font-weight: 500; font-size: 15px; height: 42px; padding: 0 22px; transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease; }
.sbtn-p, .sbtn-p:hover { background: var(--a-btn); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 14px 30px -14px rgba(22, 62, 57, 0.6); }
.sbtn-p:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sbtn-o { border: 1px solid var(--a-line); color: var(--a-ink) !important; background: #fff; }
.sbtn-o:hover { border-color: var(--a-accent); }

/* ---------- Page header: the home page's rounded panel with the dot grid ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: -74px 14px 0;
  border-radius: 28px;
  text-align: center;
  color: var(--a-ink) !important;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 30%, #eaf6ef 100%) !important;
  border: 1px solid rgba(23, 116, 75, 0.4);
  box-shadow: 0 0 0 5px rgba(23, 116, 75, 0.05), 0 40px 90px -34px rgba(22, 62, 57, 0.4);
  padding-top: clamp(140px, 13vw, 176px) !important;
  padding-bottom: clamp(52px, 6vw, 84px) !important;
}
.page-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(14, 22, 20, 0.08) 1px, transparent 1.4px) 0 0 / 22px 22px;
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--a-faint) !important; font-size: 0.86rem; }
.page-hero .crumbs a:hover { color: var(--a-pine) !important; }
.page-hero h1 {
  color: var(--a-ink) !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.06 !important;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem) !important;
  text-wrap: balance;
}
/* Room under the panel so the content clears its shadow. */
.page-hero + .section, .page-hero + .ct-sec { padding-top: clamp(44px, 5vw, 64px) !important; }
.page-hero .lead { color: var(--a-muted) !important; font-size: 1.12rem; max-width: 620px; margin-left: auto !important; margin-right: auto !important; text-wrap: balance; }

/* ---------- Type in the page body: lighter and tighter, as on the home page ---------- */
main h2, main h3 { font-weight: 500; letter-spacing: -0.03em; color: var(--a-ink); }
main strong, main b { font-weight: 600; }
.article h2 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; color: var(--a-ink); }
.article p, .article li { color: #33423d; }
.article a, .faq details p a, .tiny a { color: var(--a-accent); font-weight: 500; }

/* ---------- FAQ rows: the home page's thin plus ---------- */
.faq { border-top-color: var(--a-line); }
.faq details { border-bottom-color: var(--a-line) !important; }
.faq summary { font-weight: 400; font-size: 1.17rem; letter-spacing: -0.01em; color: var(--a-ink); padding: 24px 2px !important; }
.faq summary::after { background: none; border: 0; width: 24px; height: 24px; font-weight: 300; font-size: 1.6rem; color: var(--a-muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { content: "+"; background: none; border: 0; color: var(--a-pine); transform: rotate(45deg); }
.faq details p { color: var(--a-muted); font-size: 1rem; padding-bottom: 24px !important; }
.fq-cta { border-radius: 22px; background: var(--a-soft); border-color: var(--a-line); }
.fq-cta b { font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Footer: white, the day landscape, and the wordmark running off the bottom ---------- */
footer.nf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ffffff;
  color: #3c4a46;
  padding: 96px 0 0;
  border-top: 1px solid var(--a-line);
}
footer.nf::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/img/a/ridge-day.webp) center bottom / cover no-repeat; }
footer.nf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 44%, rgba(255, 255, 255, 0) 78%); }
footer.nf .wrap { max-width: 1180px; padding: 0 28px; }
footer.nf .brand img { content: url(/assets/img/pharmacyiq-logo-green.svg); height: 21px; }
footer.nf .f-intro { font-size: 1.5rem; line-height: 1.22; font-weight: 400; letter-spacing: -0.035em; color: var(--a-ink); margin: 18px 0 16px; max-width: 320px; }
footer.nf .f-h { color: var(--a-ink); font-weight: 600; }
footer.nf a { color: #2a3834; }
footer.nf a:hover { color: var(--a-accent); }
footer.nf .f-note { border-top-color: var(--a-line); color: #4d5d58; }
/* The wordmark. */
footer.nf .wrap::after {
  content: "";
  display: block;
  width: 94vw;
  aspect-ratio: 150 / 23;
  margin: clamp(120px, 18vw, 280px) 0 -3.2vw calc(50% - 47vw);
  background: url(/assets/img/pharmacyiq-logo-white.svg) center / contain no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, 0.25) 100%);
  mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, 0.25) 100%);
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.25));
}

/* ---------- Focus ring in the home page's green ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline-color: var(--a-accent); }
.skip { background: var(--a-pine); border-radius: 0 0 14px 0; font-weight: 500; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .snav { top: 10px; padding: 10px 12px 0; }
  .snav-in { height: 50px; padding: 0 18px; width: max-content; margin: 0 auto; }
  .snav .brand img { height: 18px; }
  .page-hero { margin: -60px 12px 0; border-radius: 24px; padding-top: 112px !important; padding-bottom: 44px !important; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem) !important; }
  .page-hero .lead { font-size: 1.02rem; }
  .faq summary { font-size: 1.06rem; padding: 20px 2px !important; }
  .smbar { background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--a-line); }
  .smbar .sbtn { height: 50px; }
  .smbar-l { color: var(--a-ink); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
  footer.nf { padding-top: 64px; }
  /* The footer is taller on a phone, so the white wash runs further down to keep the legal text on white. */
  footer.nf::after { background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 62%, rgba(255, 255, 255, 0) 90%); }
  footer.nf .wrap { padding: 0 22px; }
  footer.nf li a, footer.nf .f-top > div:first-child > a { display: inline-flex; align-items: center; min-height: 40px; }
  footer.nf ul { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sbtn, .faq summary::after { transition: none; }
}
