/* ==========================================
   PHARMCOMPARE — Custom Stylesheet
   ========================================== */

:root {
  --bg: #F6F9F7;
  --surface: #FFFFFF;
  --fg: #0D1B14;
  --fg-muted: #4A5E52;
  --accent: #0F766E;
  --accent-light: #CCFBE5;
  --accent-dark: #0A5C54;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --red-price: #DC2626;
  --green-price: #059669;
  --border: #D4E4DB;
  --shadow: rgba(13, 27, 20, 0.08);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* === NAVIGATION === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta-btn:hover { background: var(--accent-dark); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-price);
  box-shadow: 0 0 0 2px var(--accent-light);
}

/* === SECTION HELPERS === */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15,118,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-label {
  margin-bottom: 20px;
}

.label-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
  padding: 5px 14px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* === SEARCH MOCK === */
.hero-search-mock {
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px var(--shadow), 0 1px 4px var(--shadow);
  overflow: hidden;
  margin-bottom: 48px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.search-icon {
  color: var(--fg-muted);
  flex-shrink: 0;
}

.search-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-placeholder {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
}

.search-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.search-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.results-preview {
  padding: 4px 0;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  transition: background 0.15s;
}

.result-row:hover {
  background: rgba(15, 118, 110, 0.04);
}

.result-best {
  background: rgba(5, 150, 105, 0.06);
  border-left: 3px solid var(--green-price);
}

.result-pharmacy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pharmacy-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-price);
  background: rgba(5, 150, 105, 0.1);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 4px;
}

.pharmacy-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
}

.pharmacy-dist {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.result-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price-label {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--fg-muted);
}

/* === HERO STATS === */
.hero-stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--shadow);
}

.step-card-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-card-accent .step-number { color: rgba(255,255,255,0.4); }
.step-card-accent .step-icon { color: rgba(255,255,255,0.7); }
.step-card-accent .step-title { color: white; }
.step-card-accent .step-desc { color: rgba(255,255,255,0.75); }

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--border);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.step-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === WHY SECTION === */
.why-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 32px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.point-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-point strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.why-point p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === RECEIPT CARD === */
.receipt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 40px var(--shadow);
  overflow: hidden;
  max-width: 380px;
}

.receipt-header {
  background: var(--fg);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-store {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-badge {
  background: var(--green-price);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
}

.receipt-items {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.item-name {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.item-qty {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.7;
}

.item-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.item-price-best { color: var(--green-price); }
.item-price-worse { color: var(--red-price); text-decoration: line-through; opacity: 0.6; }

.receipt-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.receipt-savings {
  background: var(--accent-light);
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--accent-dark);
  text-align: center;
  font-weight: 500;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 0;
  background: var(--fg);
  color: white;
}

.manifesto-content {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 60px;
  align-items: center;
}

.manifesto-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--accent-light);
  letter-spacing: -0.04em;
  line-height: 1;
}

.manifesto-stat-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 320px;
  margin-top: 16px;
}

.manifesto-divider {
  width: 1px;
  height: 120px;
  background: rgba(255,255,255,0.1);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: white;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
}

.manifesto-attr {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* === CLOSING === */
.closing-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 48px;
}

.price-tags {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.tag {
  padding: 24px 36px;
  border-radius: var(--radius-xl);
  text-align: center;
  min-width: 160px;
}

.tag-lose {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.tag-win {
  background: rgba(5, 150, 105, 0.08);
  border: 2px solid var(--green-price);
}

.tag-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tag-lose .tag-name { color: var(--red-price); }
.tag-win .tag-name { color: var(--green-price); }

.tag-price {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tag-lose .tag-price { color: var(--red-price); opacity: 0.7; }
.tag-win .tag-price { color: var(--green-price); }

/* === FOOTER === */
.site-footer {
  padding: 48px 0 40px;
  background: var(--fg);
  color: white;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-light);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  max-width: 480px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 56px 0 72px; }
  .hero-headline { font-size: 2.25rem; }
  .hero-lede { font-size: 1rem; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manifesto-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .manifesto-divider {
    width: 60px;
    height: 1px;
  }

  .hero-stat-row { gap: 24px; }
  .stat-num { font-size: 1.4rem; }

  .price-tags { gap: 16px; }
  .tag { min-width: 130px; padding: 18px 24px; }
  .tag-price { font-size: 2rem; }

  .how-it-works, .why-section, .manifesto, .closing-section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .nav-pill { display: none; }
  .hero-search-mock { max-width: 100%; }
}
