/* Brand tokens (../css/brand-tokens.css) define the canonical --vtc-* values;
   these aliases keep this stylesheet's existing class names working without
   a full rename. See brand-tokens.css's own comments for what each color is
   actually for — --teal here is the brand's primary BLUE (links, buttons),
   not the "Care" teal accent, which only appears in the logo SVGs themselves. */
:root {
  --navy: #0C1B3A;
  --teal: #1B4FC4;
  --teal-light: #4C8DFF;
  --steel: #EEF3FB;
  --cream: #F7FAFF;
  --gold: #F0B429;
  --ink: #0C1B3A;
  --muted: #5B6B8C;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(12, 27, 58, 0.08);
  --shadow-md: 0 12px 32px rgba(12, 27, 58, 0.14);
  --border-c: #DCE6F5;
  --max: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 30px; border-radius: 999px; font-weight: 700;
  border: none; cursor: pointer; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--teal); }
.btn-outline { background: var(--steel); color: var(--navy); }
.btn-outline:hover { background: var(--teal-light); color: var(--white); }
.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--steel); color: var(--navy); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(247,249,252,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-c);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
nav.main { display: flex; gap: 18px; align-items: center; }
nav.main a { color: var(--ink); font-weight: 700; font-size: .84rem; white-space: nowrap; }
nav.main a:hover { color: var(--teal); }
.header-cta { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.header-cta .btn { padding: 11px 22px; font-size: .88rem; }
.header-login-link { font-weight: 600; font-size: .88rem; color: var(--ink); white-space: nowrap; }
.header-login-link:hover { color: var(--teal); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; flex-shrink: 0; }

/* Logo: the full domain lockup is wide (built for desktop headers per the
   brand guide's own minimum-size rule) — swap to the mark alone below 560px
   so the header never has to squeeze "Sign Up Free" + "Login" + the
   hamburger into whatever's left over. */
.logo-full { display: block; }
.logo-icon-mobile { display: none; }
.nav-login { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-media { position: relative; min-height: 560px; display: flex; align-items: center; background: linear-gradient(120deg, var(--navy) 0%, #143a6b 100%); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; color: white; max-width: 660px; padding: 110px 24px; margin: 0 auto; width: 100%; }
.hero-content .pill { background: rgba(255,255,255,.2); color: white; }
.hero-content h1 { color: white; font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin: 18px 0 20px; letter-spacing: -.03em; line-height: 1.04; }
.hero-content p.lead { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 520px; font-weight: 400; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-content .btn-outline { background: rgba(255,255,255,.94); color: var(--navy); }
.hero-content .btn-outline:hover { background: #fff; }

.trust-bar { background: var(--white); color: var(--muted); padding: 22px 0; font-size: .85rem; border-bottom: 1px solid var(--border-c); }
.trust-bar .wrap { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.trust-bar span { padding: 0 28px; font-weight: 600; color: var(--ink); }
.trust-bar span + span { border-left: 1px solid var(--border-c); }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .pill { margin-bottom: 16px; }
.section-head h1, .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-alt { background: var(--white); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--border-c); transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .price { font-weight: 600; font-size: .86rem; }
.card .price.muted { color: var(--muted); font-weight: 500; font-size: .8rem; }
a.card, a.service-card { display: block; }

/* Services (6-category homepage grid) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 34px 26px; text-align: center; border: 1px solid var(--border-c); box-shadow: var(--shadow); transition: box-shadow .18s ease, transform .18s ease; }
a.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.service-card p { font-size: .87rem; color: var(--muted); }
.disclaimer-note { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: .82rem; color: var(--muted); background: var(--steel); padding: 18px 24px; border-radius: var(--radius-sm); }

.membership-strip { background: var(--steel); border-radius: var(--radius-sm); padding: 16px 26px; text-align: center; font-size: .87rem; color: var(--navy); max-width: 760px; margin: 0 auto 36px; line-height: 1.6; }
.membership-strip a { font-weight: 700; text-decoration: underline; color: var(--navy); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border-c); background: white; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--ink); transition: all .15s ease; }
.filter-chip.active, .filter-chip:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* Pharmacy discount catalog search */
.pharmacy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-c); font-size: .88rem; }
.pharmacy-name { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.pharmacy-cat { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.pharmacy-price { color: var(--teal); font-weight: 700; white-space: nowrap; }
.pharmacy-price small { color: var(--muted); font-weight: 500; font-size: .68rem; }

/* Footer */
footer.site { background: var(--navy); color: rgba(255,255,255,.72); padding: 56px 0 28px; margin-top: 0; }
footer.site a { color: rgba(255,255,255,.72); }
footer.site a:hover { color: white; }
.compliance-box { font-size: .78rem; line-height: 1.65; color: rgba(255,255,255,.55); }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 32px 0 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-nav h4 { color: white; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-nav a { display: block; font-size: .88rem; margin-bottom: 10px; }
@media (max-width: 860px) { .footer-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-nav { grid-template-columns: 1fr; gap: 24px; } }

/* Comparison / plan list */
.program-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.program-list li { background: var(--cream); border: 1px solid var(--border-c); color: var(--ink); font-size: .87rem; padding: 11px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.program-list .pname { flex: 1; }
.program-list .pprice { font-weight: 800; color: var(--teal); text-align: right; white-space: nowrap; }

/* Privacy consent bar */
.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: var(--white); border-top: 1px solid var(--border-c); box-shadow: 0 -8px 24px rgba(11,31,61,.10); padding: 20px 0; }
.consent-bar.hidden { display: none; }
.consent-bar-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.consent-text { flex: 1; min-width: 260px; }
.consent-text strong { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 4px; font-weight: 800; }
.consent-text p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { padding: 12px 24px; font-size: .85rem; }
.consent-actions .btn-outline { background: var(--white); color: var(--navy); border: 1px solid var(--border-c); }
.consent-actions .btn-outline:hover { background: var(--steel); }

/* Login page */
.login-card { max-width: 420px; margin: 0 auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-c); box-shadow: var(--shadow); padding: 40px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-c); font-size: .95rem; font-family: inherit; color: var(--ink); background: var(--cream); }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-row { display: flex; gap: 14px; }
.form-row .form-field { flex: 1; }
.form-error { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fde8e8; color: #8c2a1f; font-size: .87rem; }
.form-error.show { display: block; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.login-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: .85rem; }
.login-note { text-align: center; font-size: .88rem; color: var(--muted); }
.login-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--steel); color: var(--navy); font-size: .87rem; text-align: center; }
.login-status.show { display: block; }

/* Join / membership plan */
.plan-price { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-c); }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.plan-price .period { font-size: .95rem; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: .9rem; color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--teal); font-weight: 800; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .services-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; }
  .mobile-toggle { display: block; }
  nav.main.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 12px 24px 18px; z-index: 49;
    border-bottom: 1px solid var(--border-c); box-shadow: var(--shadow-md);
  }
  nav.main.open a { padding: 10px 0; width: 100%; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .services-grid, .program-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 70px 20px; }
  .trust-bar span { padding: 0 14px; font-size: .8rem; }
  header.site .bar { padding: 14px 16px; gap: 10px; }
  .logo-full { display: none; }
  .logo-icon-mobile { display: block; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 9px 16px; font-size: .82rem; }
  .header-login-link { display: none; }
  .nav-login { display: block; }
  nav.main.open .nav-login { border-top: 1px solid var(--border-c); margin-top: 8px; padding-top: 14px !important; }
  .consent-actions { width: 100%; flex-direction: column; }
  .consent-actions .btn { width: 100%; justify-content: center; }
  .pharmacy-row { gap: 8px; padding: 10px 12px; }
  .pharmacy-cat { display: none; }
}
