:root {
  /* Chemist2you: mascot blue, wordmark crimson, midnight navy from the tagline, warm porcelain and champagne */
  --bg: #fbf8f3;
  --bg-2: #f4efe7;
  --surface: #ffffff;
  --ink: #14183a;
  --muted: #5e6378;
  --line: #e7e1d6;
  --brand: #3352b1;
  --brand-deep: #23397f;
  --brand-ink: #ffffff;
  --brand-soft: #eef1fb;
  --crimson: #b22935;
  --gold: #c6a467;
  --gold-soft: #f6efe1;
  --midnight: #14183a;
  --accent: #c6a467;
  --nhs: #005eb8;
  --nhs-soft: #e6f0fa;
  --private: #8a5a1c;
  --private-soft: #f6efe1;
  --ok: #1f7a4d;
  --warn: #a0620f;
  --err: #b22935;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 24, 58, .04), 0 10px 30px rgba(20, 24, 58, .06);
  --shadow-lg: 0 30px 60px -20px rgba(20, 24, 58, .28);
  --focus: 0 0 0 3px rgba(51, 82, 177, .35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-family: var(--serif); font-weight: 450; letter-spacing: -.01em; }
h3, .h3 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2, .h2 { font-size: 1.45rem; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 16px; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.block { display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.inline { display: inline; }

/* header */
.site-header { background: rgba(251, 248, 243, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mascot { width: 40px; height: 40px; object-fit: contain; }
.wordmark { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.wordmark em { font-style: italic; color: var(--crimson); font-weight: 450; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--brand); }
.site-nav a.btn { color: var(--ink); }
.nav-toggle { display: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.site-nav .linklike { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
}

/* footer */
.site-footer { margin-top: 64px; background: var(--midnight); color: #d9dcec; padding: 48px 0 40px; }
.site-footer .muted { color: #9ea3c0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.brand-footer .wordmark { color: #fff; font-size: 1.8rem; }
.brand-footer .wordmark em { color: #ff8f98; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); margin: 12px 0 16px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border-radius: 999px; letter-spacing: .01em; transition: background .15s, border-color .15s, color .15s, transform .15s; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { border-color: var(--brand); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; margin-top: 8px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span, .field > label { font-weight: 600; font-size: .9rem; }
.field.grow { flex: 1 1 260px; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input:not([type]), select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #dcd5c8; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-height: 44px;
}
textarea { min-height: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field-row > .field:not(.grow) { flex: 0 1 200px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.error { color: var(--err); }
.field-check { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset { border: 1px solid var(--line); }
legend { font-weight: 700; padding: 0 6px; }

/* messages */
.messages { padding-top: 16px; }
.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--surface); }
.msg-success { border-color: #bbe5c8; background: #eefaf2; }
.msg-warning { border-color: #f5d7a1; background: #fff8eb; }
.msg-error { border-color: #f3c0c0; background: #fff1f1; }
.msg-info { border-color: #c7d7fb; background: #f2f6ff; }

/* hero / home */
.search-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 22px 26px 26px; box-shadow: var(--shadow-lg); margin-top: 8px; position: relative; }
.search-card-title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 6px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab.is-active { color: var(--ink); border-bottom-color: var(--crimson); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; cursor: pointer; }
.chip:hover, .chip.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.chip-small { padding: 3px 10px; font-size: .85rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* cards & panels */
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.grid .card { margin-bottom: 0; }
.card-link { text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card-link:hover { border-color: var(--brand); color: var(--ink); }
.card h3 { margin-bottom: .3em; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.panel-accent { background: var(--brand-soft); border-color: #cfd8f3; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.badge-nhs { background: var(--nhs-soft); color: var(--nhs); }
.badge-private { background: var(--private-soft); color: var(--private); }
.badge-nhs-or-private { background: #eef6e8; color: #3f6212; }
.badge-plain { background: #eef2f1; color: var(--muted); font-weight: 600; }
.badge-verified { background: #e7f7ec; color: var(--ok); }

/* search page */
.search-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0; }
.results-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .results-layout { grid-template-columns: 1fr; } }
.pharmacy-head { display: flex; justify-content: space-between; gap: 12px; }
.distance { font-weight: 700; color: var(--brand); white-space: nowrap; }
.offer-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.offer-list.big li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.price { font-weight: 700; color: var(--private); font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.typeahead { position: relative; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.suggestions a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 400; }
.suggestions a:hover, .suggestions a.is-active { background: var(--brand-soft); }
.suggestions small { color: var(--muted); }

/* detail pages */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.facts dl, .facts-inline { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 8px; }
.facts dt, .facts-inline dt { font-weight: 700; color: var(--muted); }
.facts dd, .facts-inline dd { margin: 0; }

/* A–Z */
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 20px; font-size: .95rem; }
.jump.letters a { font-weight: 700; }
.az-group { margin-bottom: 24px; }
.az-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 24px; }
.az-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.az-columns { columns: 3 220px; padding: 0; list-style: none; }
.az-columns li { padding: 3px 0; break-inside: avoid; }
.filters { margin-bottom: 8px; }

/* tables / stats */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-2); font-size: .85rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.status { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #eef2f1; }
.status-pending { background: #fff4dc; color: var(--warn); }
.status-approved, .status-linked { background: #e7f7ec; color: var(--ok); }
.status-rejected { background: #fdeaea; color: var(--err); }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } }

/* portal */
.portal-nav { background: var(--midnight); color: #fff; }
.portal-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.portal-nav .muted { color: #a9afd0; margin-right: 8px; }
.portal-nav nav { display: flex; gap: 4px; flex-wrap: wrap; }
.portal-nav nav a { color: #e3e6f5; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.portal-nav nav a:hover, .portal-nav nav a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.portal-nav select { width: auto; min-height: 34px; padding: 4px 8px; }
.sticky-toolbar { position: sticky; top: 72px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 20px; }
.toggle-group { display: flex; gap: 6px; flex-wrap: wrap; }
.count { white-space: nowrap; }
.svc-group { margin-bottom: 26px; }
.svc-group[hidden] { display: none; }
.svc-group-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.svc-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .12s, background .12s; }
.svc-item[hidden] { display: none; }
.svc-item.is-checked { border-color: var(--brand); background: var(--brand-soft); }
.svc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.svc-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.svc-extra { display: none; gap: 6px; margin-top: 8px; padding-left: 30px; }
.svc-item.is-checked .svc-extra { display: flex; }
.svc-extra input { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.form-foot { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 20px 0 12px; text-align: right; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } .sticky-toolbar { top: 72px; } }


/* ---------------------------------------------------------------- Chemist2you brand layer */
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.eyebrow-light { color: var(--gold); }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 22px; }
.display span { display: block; font-style: italic; font-weight: 300; color: #aebcff; }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.02em; }
.display-2 em { font-style: italic; font-weight: 300; color: var(--brand); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--midnight); }
.btn-gold:hover { background: #d8ba82; border-color: #d8ba82; color: var(--midnight); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.site-nav a.btn { border-color: var(--ink); }
.site-nav a.btn:hover { background: var(--ink); color: #fff; }

/* hero */
.page-home main { overflow-x: clip; }
.hero { position: relative; background: radial-gradient(120% 90% at 85% 10%, #2b46a3 0%, #1b2560 42%, var(--midnight) 78%); color: #fff; padding: 64px 0 56px; overflow: hidden; }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(198,164,103,.22), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 32px; padding-bottom: 28px; }
.hero-lead { font-size: 1.15rem; color: #cfd5f2; max-width: 34em; margin: 0; }
.hero-art { position: relative; height: 380px; }
.orb { position: absolute; inset: 20px 10px 10px 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.04) 55%, transparent 70%); border: 1px solid rgba(255,255,255,.14); }
.hero-mascot { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; transform: translate(-50%, -48%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, -48%); } 50% { transform: translate(-50%, -52%); } }
.float-card { position: absolute; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.float-card strong { color: var(--gold); }
.fc-1 { top: 26px; left: -6px; }
.fc-2 { top: 46%; right: -8px; }
.fc-3 { bottom: 22px; left: 18px; }
.fc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; margin-right: 8px; box-shadow: 0 0 0 4px rgba(110,231,168,.2); }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 220px; max-width: 340px; width: 100%; margin: 0 auto; }
  .hero-mascot { width: 160px; height: 160px; }
  .fc-3 { display: none; }
  .fc-2 { right: 0; } .fc-1 { left: 0; }
}
.page-home .tabs { border-bottom-color: var(--line); }

/* trust strip */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-inner > div { padding: 26px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.trust-inner > div:first-child { border-left: 0; padding-left: 0; }
.trust strong { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.trust span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .trust-inner { grid-template-columns: 1fr 1fr; } .trust-inner > div { border-left: 0; padding-left: 0; } }

/* ethos */
.wrap.section { padding-top: 40px; padding-bottom: 40px; }
.page-home .section { padding-top: 80px; padding-bottom: 80px; }
.page-home .wrap.section { padding-top: 64px; padding-bottom: 32px; }
.page-home .how { padding-bottom: 8px; }
@media (max-width: 760px) { .page-home .section { padding-top: 56px; padding-bottom: 56px; } }
.ethos .section-intro { max-width: 720px; margin-bottom: 40px; }
.intro-lead { font-size: 1.15rem; color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.pillars li { padding: 22px 22px 8px 0; }
.pillars li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--crimson); font-size: 1rem; }
.pillars h3 { font-family: var(--serif); font-weight: 450; font-size: 1.35rem; margin: 6px 0 8px; }
.pillars p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } .pillars li, .pillars li + li { padding: 20px 16px 16px 0; border-left: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* explore */
.explore { background: var(--bg-2); }
.explore .section-head { align-items: flex-end; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); padding: 26px 24px 22px; text-decoration: none; color: var(--ink); border: 1px solid transparent; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); color: var(--ink); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-family: var(--serif); font-weight: 450; font-size: 1.3rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; flex: 1; }
.feature-meta { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .icon { width: 30px; height: 30px; color: var(--crimson); margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-weight: 450; font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; }
.step::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--gold-soft); line-height: 1; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* chips get the boutique look */
.chip { border-color: var(--line); padding: 9px 18px; }
.chip:hover, .chip.is-active { border-color: var(--brand); background: var(--brand-soft); }

/* pharmacy CTA */
.pharmacy-cta { background: var(--midnight); color: #dfe2f2; padding: 80px 0; position: relative; overflow: hidden; }
.pharmacy-cta::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(51,82,177,.55), transparent 65%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.pharmacy-cta .display-2 { color: #fff; }
.pharmacy-cta .display-2 em { color: var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cta-list li { padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; }
.cta-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--gold); background: radial-gradient(circle, var(--gold) 3px, transparent 4px); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; gap: 24px; } }

.account-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.account-cta > div { max-width: 640px; }

/* inner pages: softer cards, serif titles */
.card, .panel, .table, .stat, .svc-item { border-color: var(--line); }
.card h3 a, .pharmacy-card h3 a { font-family: var(--serif); font-weight: 500; }
.search-bar { background: var(--bg-2); }
.stat-num { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.distance { color: var(--crimson); }
.badge-verified { background: #e6f4ec; color: var(--ok); }


/* polish pass: one consistent gutter, search index row, softer account panel */
.wrap, .wrap.section { padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.page-home section.section:not(.wrap) { padding-left: 0; padding-right: 0; }
.search-index { margin-top: 18px; padding-top: 16px; gap: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.search-index p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; }
.search-index a { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4; white-space: nowrap; }
.search-index a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.search-index-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); min-width: 72px; }
.feel .section-head { align-items: flex-end; margin-bottom: 22px; }
.page-home .how { padding-top: 32px; }
.fc-2 { top: 60%; right: -14px; }
.display-3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.display-3 em { font-style: italic; font-weight: 300; color: var(--brand); }
.account-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; box-shadow: var(--shadow); }
.account-cta p { margin: 0; }
@media (max-width: 860px) { .fc-2 { top: 46%; right: 0; } }
@media (max-width: 520px) { .search-index-label { min-width: 100%; } .account-cta { padding: 22px; } }
@media (max-width: 560px) {
  .search-card { padding: 20px 18px 22px; }
  .search-card .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 0; }
  .search-card .tab { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 9px 10px; font-size: .9rem; text-align: center; }
  .search-card .tab.is-active { border-color: var(--crimson); background: #fbf1f2; }
}
/* "Near me" (/#find) must scroll the page, not the inside of the hero */
.hero, .pharmacy-cta { overflow: clip; }
#find { scroll-margin-top: 88px; }
.search-index p + p { margin-top: 6px; }

/* staff insights */
.insights .stat em { display: block; font-style: normal; font-size: .82rem; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 14px 0 32px; }
@media (max-width: 760px) { .insight-grid { grid-template-columns: 1fr; } }
.rank h3 { margin-bottom: 4px; }
.rank-warn h3 { color: var(--crimson); }
.rank-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 40px; gap: 10px; align-items: center; font-size: .92rem; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.rank-warn .rank-bar span { background: var(--crimson); }
.rank-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.week-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; margin-top: 12px; }
.week { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 2px; }
.week-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; background: var(--bg-2); border-radius: 8px; overflow: hidden; }
.seg { display: block; width: 100%; }
.seg-public, .key-public { background: var(--brand); }
.seg-pharmacy, .key-pharmacy { background: var(--gold); }
.week-n { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-label { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; align-items: center; gap: 6px 10px; margin: 10px 0 0; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.crumbs { margin-bottom: 6px; }

/* privacy and cookie notices */
.legal { max-width: 780px; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 1.6rem; margin-bottom: 10px; }
.legal h3 { margin: 18px 0 6px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 0 0 1em; }
.legal .table-wrap { overflow-x: auto; margin-bottom: 1em; }
.legal .table td { vertical-align: top; }
.legal-missing { background: #fff1b8; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
.legal-todo { margin: 12px 0 8px; }
.msg-warn { border-color: #f0d48a; background: #fff8e6; }
