/* LowerScript Florida — refreshed theme
   Palette: Florida sunshine + ocean + citrus accent */
:root {
  /* —— the one thing that localizes per state —— */
  --state-accent:      #0a6c8a;   /* FL: Coastal Teal   (TX: #22417e · AZ: #bd5a34) */
  --state-accent-dark: #084e63;   /* FL: deep ocean     (TX: #1a2f5c · AZ: #97432340→#8f4526) */

  /* —— aliases: existing var names now point at the accent —— */
  --ocean:      var(--state-accent);
  --ocean-dark: var(--state-accent-dark);

  /* —— constant across all states (the master brand) —— */
  --sky:    #e9f6fb;   /* light wash — tint of accent, restated per state if desired */
  --sand:   #fff8ee;   /* warm off-white */
  --citrus: #ff8a3d;   /* orange accent (CTA) — CONSTANT */
  --citrus-dark: #e8722a;
  --sun:    #ffc23d;   /* sunshine yellow — CONSTANT, the mark never changes color */
  --ink:    #11242b;
  --muted:  #5b6b71;
  --line:   #dfeaee;
  --white:  #ffffff;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8,78,99,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

a { color: var(--ocean); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Visible keyboard focus (accessibility) */
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .store-btn:focus-visible, .wallet-btn:focus-visible { outline-color: var(--ink); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .85rem 1.25rem; }
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; display:inline-flex; flex-direction:column; align-items:flex-start; gap:2px; line-height:1.04; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-word { display:flex; align-items:baseline; gap:.04rem; }
.brand-mark { color: var(--ocean); }
.brand-mark.accent { color: var(--citrus); }
.brand-tag {
  font-size: .62rem; font-weight: 700; font-style: italic; letter-spacing: .02em;
  background: var(--sun); color: var(--ink); padding: .15rem .45rem; border-radius: 5px;
  white-space: nowrap;
}
/* Persistent button bar: nav items render as pill buttons that wrap and stay
   visible at every window width (no hamburger). */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav a:not(.btn) { color: var(--ocean-dark); background: var(--sky); padding: .45rem .85rem; border-radius: 999px; }
.nav a:not(.btn):hover { background: #d6ecf4; color: var(--ocean-dark); }
.nav a[aria-current="page"]:not(.btn) { background: var(--ocean); color: #fff; }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem !important; font-size: .85rem; }
.lang-switch:hover { border-color: var(--ocean); }

/* Hamburger toggle retired — nav is now a persistent wrapping button bar. */
.nav-toggle { display: none !important; }

/* Buttons */
.btn {
  display: inline-block; background: var(--citrus); color: #fff; font-weight: 700;
  text-decoration: none; padding: .7rem 1.2rem; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .05s ease, background .2s ease; white-space: nowrap;
}
.btn:hover { background: var(--citrus-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem .85rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ocean); border: 2px solid var(--ocean); }
.btn-ghost:hover { background: var(--ocean); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--sky) 0%, #ffffff 55%, var(--sand) 100%);
  padding: 3.5rem 0 3rem;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--ocean); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: #2c3d43; max-width: 54ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.trust-row { list-style: none; display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: 1rem 0 0; }
.trust-row li { font-weight: 700; color: var(--ocean-dark); position: relative; padding-left: 1.4rem; }
.trust-row li::before { content: "✓"; position: absolute; left: 0; color: var(--citrus); font-weight: 900; }

/* Hero card visual (reuses the real .rxc card component) */
.hero-card { display: flex; justify-content: center; }
.hero-card .rxc { box-shadow: var(--shadow); }

/* Value strip */
.strip { background: var(--ocean); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 1.5rem 1.25rem; text-align: center; }
.strip-grid strong { display: block; font-size: 1.6rem; color: var(--sun); }
.strip-grid span { font-size: .85rem; opacity: .9; }

/* Sections */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--sand); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: var(--citrus); color: #fff; border-radius: 50%; font-weight: 800; margin-bottom: .5rem;
}
.steps h3 { margin: .25rem 0 .4rem; }

/* Pharmacy list */
.pharmacy-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.pharmacy-list li { background: var(--sky); color: var(--ocean-dark); font-weight: 700; padding: .5rem 1rem; border-radius: 999px; }

/* Proof / trust */
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin: 1.5rem 0 1rem; }
.proof-stat { background: #fff; border-radius: 12px; padding: 1.4rem 1rem; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--citrus); }
.proof-stat strong { display: block; font-size: 1.9rem; color: var(--ocean); line-height: 1.1; }
.proof-stat span { font-size: .85rem; color: var(--muted); }
.proof-stat sup { color: var(--muted); }
.proof-note { margin-top: .5rem; }
.collect-reviews {
  margin-top: 1.75rem; background: #fff; border: 1px dashed var(--ocean); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.collect-reviews p { margin: 0; }

/* CTA */
.cta-section { background: linear-gradient(160deg, var(--sand), var(--sky)); }
.store-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.store-btn {
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: .85rem 1.4rem; border-radius: 10px;
}
.store-btn:hover { background: #000; }

/* Price lookup */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.price-check-section { background: linear-gradient(160deg, var(--sky), #fff); }
.price-lookup { margin: 1.5rem auto 0; max-width: 640px; }
.price-lookup .btn { display: inline-block; }
.price-lookup p { margin-top: .85rem; }

/* Data-pending badge (Phase 7 research templates) */
.data-pending { display:inline-block; background: var(--sun); color: var(--ink); font-weight:700; font-size:.8rem; padding:.3rem .7rem; border-radius:6px; margin:.5rem 0 1rem; }

/* Answer-first (GEO) + Quick Facts table */
.answer-first { font-size: 1.08rem; line-height: 1.65; border-left: 4px solid var(--ocean); background: var(--sky); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1rem 0 1.25rem; }
.facts-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.facts-table th, .facts-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th[scope="row"] { width: 42%; color: var(--muted); font-weight: 700; }
.facts-table tr:nth-child(odd) td, .facts-table tr:nth-child(odd) th { background: #fbfdfe; }
.compare-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.compare-table th, .compare-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--ocean); color: #fff; }
.compare-table th[scope="row"] { color: var(--muted); font-weight: 700; width: 26%; }
.compare-table tr:nth-child(even) td { background: #fbfdfe; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq summary::marker { color: var(--citrus); }
.faq p { margin: .75rem 0 0; color: #33474d; }
.faq-full details { box-shadow: var(--shadow); }
.link-more { font-weight: 700; text-decoration: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.contact-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card h2 { font-size: 1.15rem; margin-top: 0; }
.big-link { font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.contact-form-wrap { margin-top: 2rem; }
.contact-form { display: grid; gap: 1rem; max-width: 520px; }
.contact-form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}

/* Downloadable card — three-zone layout (header / white code panel / footer) */
.card-stage { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin: 2rem 0 1.25rem; }
.rxc {
  width: 100%; max-width: 420px; aspect-ratio: 1.586 / 1; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff; font-family: "Segoe UI", system-ui, sans-serif;
  display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line);
}
/* Header band */
.rxc-header {
  position: relative; background: linear-gradient(135deg, #0a6c8a 0%, #084e63 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 12px 18px;
}
.rxc-brandblock { display: flex; flex-direction: column; line-height: 1.05; }
.rxc-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.rxc-brand .accent { color: var(--citrus); }
.rxc-byline { font-size: .66rem; font-style: italic; color: var(--sun); letter-spacing: .02em; margin-top: 1px; }
.rxc-sun { position: absolute; right: 12px; top: 7px; width: 44px; height: 44px; }
/* White body with codes */
.rxc-body { padding: 12px 18px 10px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.rxc-codeblock { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.rxc-kicker { margin: 0; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rxc-codes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; margin: 0; }
.rxc-codes dt { margin: 0; font-size: .56rem; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.rxc-codes dd { margin: 0; font-size: 1.22rem; font-weight: 800; color: var(--ocean-dark);
  letter-spacing: .03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rxc-promo { display: flex; flex-direction: column; gap: 1px; }
.rxc-save { margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink); }
.rxc-accepted { margin: 0; font-size: .6rem; color: var(--muted); }
/* Footer strip */
.rxc-footer {
  background: var(--ocean-dark); color: #e9f4f8;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 18px; font-size: .66rem;
}
.rxc-footer strong { color: var(--sun); }
.rxc-poweredby { font-size: 50%; }

/* Card back */
.rxc-back .rxc-body-back { gap: 8px; text-align: left; justify-content: flex-start; padding-top: 12px; }
.rxc-pharm { margin: 0; font-size: .66rem; line-height: 1.4; color: var(--ink); }
.rxc-disc { margin: 0; padding-left: 1rem; }
.rxc-disc li { font-size: .6rem; line-height: 1.35; color: #33474d; margin-bottom: .2rem; }

.card-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; align-items: center; }
.wallet-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: .5rem; background: #000; color: #fff;
  text-decoration: none; font-weight: 600; font-size: .92rem; padding: .65rem 1.2rem; border-radius: 10px;
}
.wallet-btn:hover { background: #1a1a1a; }
.wallet-btn i { width: 16px; height: 16px; border-radius: 50%; background: var(--sun); display: inline-block; }
.wallet-btn.is-pending { opacity: .55; }
.card-howto { text-align: left; margin-top: 2.5rem; }
.card-steps { padding-left: 1.2rem; }
.card-steps li { margin-bottom: .6rem; }

@media print {
  .site-header, .site-footer, .nav, .card-actions, .card-howto, .eyebrow, .lede, #cardNotice, .skip-link, h1 { display: none !important; }
  body { background: #fff; }
  .card-stage { display: block; margin: 0; text-align: center; }
  #rxCardBack[hidden] { display: grid !important; }
  .rxc { box-shadow: none; margin: 0 auto 24px; page-break-inside: avoid; }
}

/* Footer */
.site-footer { background: var(--ink); color: #cfdde2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem; padding: 2.5rem 1.25rem 1.5rem; }
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-mark.accent { color: var(--citrus); }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: #cfdde2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 1.25rem 2rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .strip-grid, .proof-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }

  /* Keep wide data tables usable on small screens */
  .facts-table, .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ==========================================================================
   Price-check tool (LWO-002) — conversational insurance-vs-cash widget.
   Uses the site's existing palette variables (--ocean/--sun/--citrus/etc.)
   rather than a separate color system. Senior-accessibility pass applied:
   >=16px body/chat text, >=44px tap targets, high-contrast badges, no
   auto-advancing timeouts.
   ========================================================================== */
.pc-page { max-width: 620px; margin: 0 auto; }
.pc-widget {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.pc-head {
  background: linear-gradient(135deg, var(--ocean), var(--ocean-dark)); color: #fff;
  padding: 18px 20px; display: flex; align-items: center; gap: 12px;
}
.pc-head .pc-dot {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sun); flex: 0 0 42px;
  display: grid; place-items: center; font-weight: 800; color: #4a3800; font-size: 1rem;
}
.pc-head h1, .pc-head h2 { margin: 0; font-size: 1.05rem; }
.pc-head p { margin: 3px 0 0; font-size: .82rem; opacity: .92; }
.pc-thread {
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-height: 320px; max-height: 440px; overflow-y: auto; scroll-behavior: smooth;
}
.pc-bubble {
  max-width: 88%; padding: 13px 16px; border-radius: 16px; font-size: 1rem; line-height: 1.5;
}
.pc-bubble.bot { background: var(--sky); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.pc-bubble.me { background: var(--ocean); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 10px; align-self: flex-start; }
.pc-chip {
  border: 1.5px solid var(--ocean); background: #fff; color: var(--ocean-dark); font-weight: 700;
  font-size: 1rem; padding: 12px 18px; min-height: 44px; min-width: 44px; border-radius: 999px; cursor: pointer;
}
.pc-chip:hover { background: var(--sky); }
.pc-chip.solid { background: var(--ocean); color: #fff; }
.pc-select, .pc-text-input {
  font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.pc-entry { display: flex; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.pc-entry input { flex: 1; }
.pc-entry button {
  border: 0; border-radius: 999px; background: var(--ocean); color: #fff; font-weight: 700;
  padding: 0 20px; min-height: 44px; cursor: pointer; font-size: 1rem;
}
.pc-entry button:hover { background: var(--ocean-dark); }
.pc-typing { align-self: flex-start; color: var(--muted); font-size: .95rem; padding: 4px 6px; }
.pc-verdict { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 6px; }
.pc-verdict .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-verdict .pc-name { font-weight: 800; }
.pc-badge { font-size: .82rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pc-b-card { background: #e5f4ec; color: #137a4f; }
.pc-b-plan { background: #e6f2f6; color: var(--ocean); }
.pc-b-toss { background: #eef2f4; color: var(--muted); }
.pc-b-check { background: #fbf3d6; color: #8a6d00; }
.pc-verdict .pc-prices { font-size: .95rem; color: var(--ink); margin-top: 8px; }
.pc-tally { background: #e5f4ec; color: #137a4f; font-weight: 700; border-radius: 12px; padding: 12px 14px; font-size: 1rem; }
.pc-note { background: #fbf3d6; color: #8a6d00; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.pc-disc { font-size: .88rem; color: var(--muted); padding: 0 18px 16px; }
.pc-privacy { font-size: .85rem; color: var(--ocean-dark); text-align: center; padding: 4px 18px 8px; font-weight: 700; }
.pc-provenance { font-size: .85rem; color: var(--muted); text-align: center; padding: 10px; border-top: 1px solid var(--line); }
.pc-sample-banner {
  background: var(--sun); color: var(--ink); text-align: center; font-weight: 800; font-size: .9rem;
  padding: 8px; letter-spacing: .04em; text-transform: uppercase;
}
.pc-waiting {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 2rem; text-align: center;
}
.pc-waiting h1 { margin-top: 0; }
.pc-waiting p { font-size: 1.05rem; }
.pc-waiting .pc-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.pc-zip-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; width: 100%; padding: 0 18px; }
.pc-zip-row input { width: 140px; }
.pc-error-text { color: #b3261e; font-size: .88rem; padding: 0 18px; }

@media (max-width: 640px) {
  .pc-thread { max-height: 60vh; }
  .brand-logo { height: 32px; }
}


/* ===== Mobile hardening (2026-09-01) — stop hero/card horizontal overflow on phones ===== */
html, body { overflow-x: hidden; }
@media (max-width: 860px) {
  .hero-grid > * { min-width: 0; }            /* let grid children shrink below their content width */
  .hero-card .rxc { width: 100%; max-width: 360px; }
}
@media (max-width: 400px) {
  .rxc-codes { grid-template-columns: repeat(3, 1fr); gap: 6px 8px; }
  .rxc-codes dd { font-size: 1.02rem; }
  .rxc-brand { font-size: 1.1rem; }
}
