/* Allergy Solutions — shared styles
   Palette sampled directly from the logo artwork. */

:root {
  --teal: #0B6365;
  --teal-deep: #05363A;
  --emerald: #468A75;
  --sage: #BECFC5;
  --sage-pale: #E4EDE7;
  --paper: #F8FBF9;
  --pollen: #D99B2B;
  --ink: #0F2B2A;
  --muted: #5C7876;
  --line: rgba(11, 99, 101, 0.16);
  --alert: #A6402F;

  --shadow-s: 0 1px 2px rgba(5, 54, 58, .06), 0 4px 14px rgba(5, 54, 58, .06);
  --shadow-m: 0 2px 6px rgba(5, 54, 58, .07), 0 18px 44px rgba(5, 54, 58, .10);

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --display: "Quicksand", ui-rounded, "Segoe UI", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--teal-deep);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
a { color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 1rem;
  display: block;
}

.lede { font-size: 1.16rem; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 251, 249, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--teal);
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand svg { display: block; }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--display);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .01em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.pill[aria-current="page"] { background: var(--sage-pale); border-color: transparent; }
.pill.pill-accent { border-color: rgba(217,155,43,.5); color: #8A5E10; }
.pill.pill-accent:hover { background: var(--pollen); color: var(--teal-deep); border-color: var(--pollen); }

.nav-toggle { display: none; }

/* ---------- Search ---------- */

.search-shell { position: relative; }

.search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(420px, 88vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  padding: 14px;
  display: none;
}

.search-panel.open { display: block; }

.search-panel input {
  width: 100%;
  font-family: var(--display);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.search-results { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 10px 4px; text-decoration: none; }
.search-results a:hover { background: var(--sage-pale); }
.search-results .r-title { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--teal-deep); }
.search-results .r-desc { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.search-empty { font-size: .88rem; color: var(--muted); padding: 12px 4px 4px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 620px at 78% 12%, rgba(190,207,197,.55), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--sage-pale) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }

.hero h1 .accent {
  color: var(--emerald);
  display: block;
}

.hero .lede { max-width: 46ch; font-size: 1.22rem; }

.hero-ring { display: flex; justify-content: center; }
.pollen-ring { display: block; }
#hero-ring .pollen-ring { width: min(400px, 82vw); height: auto; }
.brand-mark svg, .ring-divider svg { width: auto; }
.pollen-ring .dot { transform-origin: center; }

@keyframes ringspin { to { transform: rotate(360deg); } }
.ring-rotor { animation: ringspin 78s linear infinite; transform-origin: 200px 200px; }

@keyframes bloom {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* ---------- Big audience buttons ---------- */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
}

.audience-btn {
  appearance: none;
  text-align: left;
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  border-radius: var(--r-l);
  padding: 30px 30px 26px;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-m);
  transition: transform .2s ease, box-shadow .2s ease;
}

.audience-btn:hover { transform: translateY(-3px); }

.audience-btn.patients { background: #fff; }
.audience-btn.providers { background: var(--teal); }
.audience-btn.providers h2, .audience-btn.providers p, .audience-btn.providers .eyebrow { color: #fff; }
.audience-btn.providers .eyebrow { color: var(--sage); }
.audience-btn.providers p { color: rgba(255,255,255,.82); }

.audience-btn h2 { font-size: 2rem; margin-bottom: .25em; }
.audience-btn p { margin: 0; font-size: 1rem; color: var(--muted); }
.audience-btn .go { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 18px; display: inline-block; }

/* ---------- Sections & cards ---------- */

section { padding: clamp(48px, 7vw, 84px) 0; }
section.tight { padding: clamp(32px, 4vw, 48px) 0; }
.section-sage { background: var(--sage-pale); }
.section-teal { background: var(--teal-deep); color: var(--sage-pale); }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal p { color: rgba(255,255,255,.8); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  box-shadow: var(--shadow-s);
}

.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .96rem; color: var(--muted); }

a.card { text-decoration: none; display: block; transition: transform .18s ease, box-shadow .18s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }

.tool-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tool {
  flex: 1 1 320px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px 22px;
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.tool .t-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.tool .t-body p { margin: 0; font-size: .9rem; color: var(--muted); }
.tool .t-icon {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-pale);
}
.tool.pollen-tool .t-icon { background: rgba(217,155,43,.18); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--teal-deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { background: var(--sage-pale); }
.btn-pollen { background: var(--pollen); color: var(--teal-deep); }
.btn-pollen:hover { background: #C0871F; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }

/* ---------- Forms ---------- */

label { display: block; font-family: var(--display); font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--teal-deep); }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus, .pill:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}
.hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Modal / gate ---------- */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5, 54, 58, .55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--paper);
  border-radius: var(--r-l);
  max-width: 520px;
  width: 100%;
  padding: 34px;
  box-shadow: var(--shadow-m);
}
.modal h2 { font-size: 1.5rem; }
.modal .confirm-statement {
  font-size: 1.2rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--sage-pale);
  border-left: 3px solid var(--emerald);
  padding: 18px 20px;
  border-radius: 0 var(--r-s) var(--r-s) 0;
  margin: 0 0 22px;
}
.modal-actions { display: flex; gap: 12px; }
.gate-step { display: none; }
.gate-step.active { display: block; }

.notice {
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-size: .92rem;
  margin: 0 0 16px;
}
.notice-warn { background: rgba(166,64,47,.08); border: 1px solid rgba(166,64,47,.25); color: #7A2F22; }
.notice-info { background: var(--sage-pale); border: 1px solid var(--line); color: var(--teal-deep); }
.notice-ok { background: rgba(70,138,117,.12); border: 1px solid rgba(70,138,117,.35); color: #245243; }

/* ---------- Shop ---------- */

.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
}
.product .tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 10px; display: block;
}
.product h3 { font-size: 1.06rem; }
.product .desc { font-size: .9rem; color: var(--muted); flex: 1; }
.product .price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--teal-deep); margin: 10px 0 14px; }
.product .rx { font-size: .78rem; color: var(--alert); font-family: var(--mono); letter-spacing: .04em; margin-bottom: 10px; }

.cart {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 22px;
  box-shadow: var(--shadow-s);
}
.cart-line { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cart-line .qty { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 14px 0 18px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .95rem; padding: 0 4px; }
.remove:hover { color: var(--alert); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pay-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-s);
  padding: 14px 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--teal-deep);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .18s ease, background .18s ease;
}
.pay-btn:hover { border-color: var(--emerald); background: var(--sage-pale); }
.pay-btn small { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tables & data ---------- */

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--emerald); }
td.num { font-family: var(--mono); font-size: .86rem; }

details.guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 4px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-s);
}
details.guide summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--teal-deep);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "+"; font-size: 1.5rem; color: var(--emerald); line-height: 1; }
details.guide[open] summary::after { content: "–"; }
details.guide .guide-body { padding-bottom: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
details.guide .guide-body h4 { margin: 18px 0 .3em; font-size: .96rem; color: var(--emerald); }
details.guide .guide-body ul { margin: 0 0 1em; padding-left: 20px; }
details.guide .guide-body li { margin-bottom: .4em; }

.dl-list { list-style: none; padding: 0; margin: 0; }
.dl-list li { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dl-list .meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ring divider ---------- */

.ring-divider { display: flex; justify-content: center; padding: 8px 0; opacity: .8; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,.72);
  padding: 56px 0 32px;
  font-size: .92rem;
}
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--pollen); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ring { order: -1; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .header-nav.open { display: flex; }
  .header-nav .pill { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .search-shell { width: 100%; }
  .search-panel { position: static; width: 100%; box-shadow: none; }
  .audience, .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
