/* ================================================================
   MediPrice PWA — Lovable-inspired premium UI
   ================================================================ */

/* ── Variables ── */
:root {
  --pink:       #f0195f;
  --pink-dark:  #c41250;
  --pink-deep:  #8f0838;
  --pink-light: #ffb3cf;
  --pink-pale:  #ffe0ec;
  --bg:         #080309;
  --bg-2:       #110610;
  --bg-3:       #1d0b16;
  --surface:    #fef7f9;
  --white:      #ffffff;
  --text:       #180910;
  --text-2:     #4a2535;
  --text-3:     #8b5e70;
  --border:     rgba(233,30,99,0.18);
  --border-2:   rgba(233,30,99,0.08);
  --sh-sm:      0 2px 8px rgba(233,30,99,0.06);
  --sh:         0 8px 32px rgba(233,30,99,0.11);
  --sh-lg:      0 20px 60px rgba(26,10,14,0.14);
  --sh-xl:      0 32px 80px rgba(26,10,14,0.2);
  --r:          20px;
  --r-sm:       12px;
  --r-pill:     999px;
  --hd:         'Plus Jakarta Sans', sans-serif;
  --bd:         'Plus Jakarta Sans', sans-serif;
  --dur:        0.22s;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:0.01ms!important; transition-duration:0.01ms!important; }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bd);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Section visibility ── */
#hero { display: block; }
#hero:not(.section--active) { display: none; }
#results { display: none; }
#results.section--active { display: block; }
#not-found { display: none; }
#not-found.section--active { display: block; }


/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(8,3,9,0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--dur) var(--ease);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hd);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
}

.app-logo__img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-link--cta {
  margin-left: 0.5rem;
  background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-family: var(--bd);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 10px rgba(240,25,95,0.4);
}
.nav-link--cta:hover { opacity: 0.9; color: #fff; background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%); }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,3,9,0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 82vw);
  height: 100%;
  background: #1a0812;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: slideInRight 0.25s ease;
}
.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  margin-bottom: 1rem;
  line-height: 1;
}
.mobile-nav__link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav__link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-nav__link--cta {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%);
  color: #fff !important;
  text-align: center;
  border-radius: var(--r-pill);
}
.mobile-nav__link--cta:hover { background: linear-gradient(135deg, #f72c6e 0%, var(--pink-dark) 100%); }

@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideInRight { from { transform: translateX(40px); opacity:0 } to { transform: translateX(0); opacity:1 } }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 5rem;
  overflow: hidden;
}

/* Animated mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #08020a 0%, #12061a 30%, #200a1a 60%, #300b20 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,25,95,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,25,95,0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  top: -250px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240,25,95,0.35) 0%, transparent 65%);
  animation-duration: 14s;
}
.hero__orb--2 {
  width: 450px; height: 450px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(196,18,80,0.25) 0%, transparent 60%);
  animation-duration: 10s;
  animation-delay: -4s;
}
.hero__orb--3 {
  width: 350px; height: 350px;
  top: 35%; left: -100px;
  background: radial-gradient(circle, rgba(240,25,95,0.2) 0%, transparent 55%);
  animation-duration: 16s;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  animation: heroIn 0.8s cubic-bezier(0.22,1,0.36,1);
}
@keyframes heroIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(233,30,99,0.18);
  color: var(--pink-light);
  border: 1px solid rgba(233,30,99,0.3);
}
.hero__pill--outline {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}

.hero__title {
  font-family: var(--hd);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.1rem;
}
.hero__title-accent {
  background: linear-gradient(130deg, #ff3c7e 0%, #f0195f 40%, #ff6fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 2.25rem;
  max-width: 46ch;
}

/* ─ Search bar ─ */
.search-form { margin: 0 0 1.25rem; }

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08);
  transition: box-shadow 0.3s, transform 0.2s;
  overflow: hidden;
}
.search-bar:focus-within {
  box-shadow: 0 8px 48px rgba(233,30,99,0.28), 0 0 0 2px rgba(233,30,99,0.35);
  transform: translateY(-2px);
}

.search-bar__icon {
  flex-shrink: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 1.05rem 1rem;
  font-family: var(--bd);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { outline: none; }

.search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 5px;
  padding: 0.85rem 1.5rem;
  font-family: var(--bd);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(240,25,95,0.5);
  white-space: nowrap;
}
.search-submit:hover {
  opacity: 0.9;
  transform: translateX(2px);
  box-shadow: 0 6px 28px rgba(240,25,95,0.6);
}
.search-submit:active { transform: scale(0.97); }

/* Loader */
/* Spinner lives inside the button, hidden by default */
.search-submit__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
.search-submit--loading .search-submit__label,
.search-submit--loading .search-submit__icon { display: none; }
.search-submit--loading .search-submit__spinner { display: block; }
.search-submit--loading { opacity: 0.85; cursor: wait; min-width: 56px; justify-content: center; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Quick searches */
.quick-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.quick-searches__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-right: 0.25rem;
}
.quick-tag {
  padding: 0.35rem 0.85rem;
  font-family: var(--bd);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.quick-tag:hover {
  background: rgba(233,30,99,0.2);
  border-color: rgba(233,30,99,0.4);
  color: #fff;
}

.hero__notice {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.hero__notice a {
  color: rgba(248,187,217,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero__notice a:hover { color: #fff; }


/* ══════════════════════════════════════════
   RESULTS
══════════════════════════════════════════ */
.results-section {
  padding: 0;
  background: var(--surface);
  animation: fadeUp 0.5s ease-out;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(12px); }
  to   { opacity:1; transform: translateY(0); }
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-2);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bd);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.back-btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  background: var(--pink-pale);
}

.pharmacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--bd);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(233,30,99,0.3);
}
.pharmacy-btn:hover {
  background: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233,30,99,0.38);
}

.results-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.results-title {
  font-family: var(--hd);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.018em;
}
.results-count {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-dark);
  background: var(--pink-pale);
  border-radius: var(--r-pill);
}

.sep-legend {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-3);
  margin: 0 0 1.75rem;
  font-style: italic;
}

/* Results grid */
.results-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 600px)  { .results-list { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px)  { .results-list { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1200px) { .results-list { grid-template-columns: repeat(4,1fr); } }


/* ── Medicine card ── */
.medicine-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r);
  padding: 1.35rem;
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  animation: cardIn 0.45s cubic-bezier(0.22,1,0.36,1) backwards;
  position: relative;
  overflow: hidden;
}
.medicine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--pink);
  opacity: 0;
  transition: opacity 0.2s;
}
.medicine-card:hover,
.medicine-card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(233,30,99,0.18); border-color: rgba(233,30,99,0.35); outline: none; }
.medicine-card:hover::before,
.medicine-card:focus-visible::before { opacity: 1; }

.medicine-card:nth-child(1){animation-delay:.04s}
.medicine-card:nth-child(2){animation-delay:.08s}
.medicine-card:nth-child(3){animation-delay:.12s}
.medicine-card:nth-child(4){animation-delay:.16s}
.medicine-card:nth-child(5){animation-delay:.20s}
.medicine-card:nth-child(6){animation-delay:.24s}
.medicine-card:nth-child(n+7){animation-delay:.28s}
@keyframes cardIn {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}

.medicine-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.medicine-card__name {
  font-family: var(--hd);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.38;
  letter-spacing: -0.008em;
}
.medicine-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex-shrink: 0;
}
.medicine-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.medicine-card__badge--generic {
  background: var(--pink-pale);
  color: var(--pink-dark);
}
.medicine-card__badge--schedule {
  background: rgba(99,30,233,0.08);
  color: #5b21b6;
}

/* ── Pack / dosage form row ── */
.medicine-card__pack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin: 0.35rem 0 0.65rem;
}
.medicine-card__pack-form {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2, rgba(0,0,0,0.04));
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
  text-transform: capitalize;
}
.medicine-card__pack-size {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2, rgba(0,0,0,0.04));
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
}

.medicine-card__divider {
  height: 1px;
  background: var(--border-2);
  margin: 0 0 0.9rem;
}

.medicine-card__prices {
  margin-bottom: 0.6rem;
}
.medicine-card__sep {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.medicine-card__sep-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}
.medicine-card__disp-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 0.55rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid rgba(233,30,99,0.18);
}
.medicine-card__disp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
}
.medicine-card__disp--min {
  background: rgba(233,30,99,0.05);
}
.medicine-card__disp--max {
  background: rgba(233,30,99,0.1);
}
.medicine-card__disp-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.medicine-card__disp-label svg { flex-shrink: 0; }
.medicine-card__disp-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--pink-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.medicine-card__disp--max .medicine-card__disp-val {
  color: var(--pink);
}
.medicine-card__disp-divider {
  width: 1px;
  background: rgba(233,30,99,0.18);
  flex-shrink: 0;
}

/* ── Scheme reference prices ── */
.medicine-card__schemes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.medicine-card__schemes-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}
.medicine-card__scheme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.medicine-card__scheme-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(233,30,99,0.07);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}
.medicine-card__scheme-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
}

.medicine-card__meta {
  font-size: 0.8rem;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.5rem;
}
.medicine-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.medicine-card__footer {
  margin-top: auto;
  padding-top: 0.875rem;
}
.medicine-card__ingredients-btn {
  width: 100%;
  padding: 0.55rem 1rem;
  font-family: var(--bd);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pink);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.medicine-card__ingredients-btn:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}


/* ══════════════════════════════════════════
   NOT FOUND
══════════════════════════════════════════ */
.not-found {
  display: none;
  min-height: 60vh;
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, #fde8f0 100%);
  align-items: center;
  justify-content: center;
}
.not-found.section--active { display: flex; }

.not-found__inner {
  max-width: 400px;
  margin: 0 auto;
  animation: heroIn 0.5s ease-out;
}
.not-found__icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.75rem;
  color: var(--pink);
  opacity: 0.65;
}
.not-found__icon svg { width: 100%; height: 100%; }
.not-found__title {
  font-family: var(--hd);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.not-found-message {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 1.75rem;
}

/* ─ Shared button ─ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--bd);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(233,30,99,0.3);
}
.btn-primary:hover {
  background: var(--pink-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(233,30,99,0.38);
}


/* ══════════════════════════════════════════
   INGREDIENTS MODAL
══════════════════════════════════════════ */
.ingredients-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 520px) {
  .ingredients-modal { align-items: center; padding: 1.5rem; }
}

.ingredients-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,3,9,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ingredients-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  box-shadow: var(--sh-xl);
  animation: sheetIn 0.32s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 520px) {
  .ingredients-modal__box {
    border-radius: var(--r);
    animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
  }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(8px); } to { opacity:1; transform: scale(1) translateY(0); } }

.ingredients-modal__handle {
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.875rem auto 0;
}
@media (min-width: 520px) { .ingredients-modal__handle { display: none; } }

.ingredients-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-2);
}
.ingredients-modal__title {
  font-family: var(--hd);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.ingredients-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ingredients-modal__close:hover { background: var(--pink-pale); color: var(--pink); }

.ingredients-modal__medname {
  padding: 0.875rem 1.5rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
}

.ingredients-modal__list {
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  max-height: 60vh;
}

.ingredient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-2);
  gap: 0.75rem;
}
.ingredient-row:last-child { border-bottom: none; }
.ingredient-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.ingredient-row__dose {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--pink-pale);
  color: var(--pink-dark);
}
.ingredient-empty {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-3);
}


/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 1.5rem 2rem;
}
.stats-bar__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  text-align: center;
}
.stats-bar__item { display: flex; flex-direction: column; gap: 0.2rem; }
.stats-bar__num {
  font-family: var(--hd);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f72c6e 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats-bar__label {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}
.stats-bar__divider {
  width: 1px;
  height: 40px;
  background: var(--border-2);
  flex-shrink: 0;
}
@media (max-width: 480px) { .stats-bar__divider { display: none; } }

/* ── Supported Schemes section ── */
.schemes-section {
  padding: 4rem 1.5rem 2.5rem;
  background: var(--surface);
  overflow: hidden;
}
.schemes-section__inner {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.schemes-section__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.6rem;
}
.schemes-section__title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.schemes-section__desc {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Centered scheme cards */
.schemes-carousel {
  width: 100%;
}
.schemes-carousel__track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0.5rem 0 1rem;
}
.schemes-carousel__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 1.5rem 3rem;
  min-width: 220px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.schemes-carousel__item:hover {
  box-shadow: 0 6px 24px rgba(233,30,99,0.1);
  transform: translateY(-2px);
}
.schemes-carousel__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.schemes-carousel__name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}


/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-section {
  background: linear-gradient(160deg, #08020a 0%, #15061c 35%, #200a18 65%, #2a0d1a 100%);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,25,95,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,25,95,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.how-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  padding: 2rem;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.step-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.step-card__num {
  font-family: var(--hd);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(240,25,95,0.4);
  margin-bottom: 0.875rem;
  letter-spacing: -0.04em;
}
.step-card__icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,25,95,0.22);
  border: 1px solid rgba(240,25,95,0.3);
  border-radius: 14px;
  color: var(--pink-light);
  margin-bottom: 1.1rem;
}
.step-card h3 {
  font-family: var(--hd);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0;
}


/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.about-section {
  padding: 6rem 2rem;
  background: var(--surface);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 1fr 2fr; align-items: start; }
}
.about-text { max-width: 340px; }
.about-desc {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border-radius: var(--r);
  padding: 1.5rem;
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh);
}

.feature-card__icon-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-pale);
  color: var(--pink);
  border-radius: 14px;
}
.feature-card__icon { width: 24px; height: 24px; }

.feature-card__body { flex: 1; }
.feature-card__body h3 {
  font-family: var(--hd);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.008em;
}
.feature-card__body p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}


/* ══════════════════════════════════════════
   SHARED section labels
══════════════════════════════════════════ */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.6rem;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--pink);
  border-radius: 1px;
}
.how-section .section-kicker { color: rgba(255,179,207,0.9); }
.how-section .section-kicker::before { background: rgba(255,179,207,0.9); }

.section-title {
  font-family: var(--hd);
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 1rem;
}
.how-section .section-title { color: #fff; }


/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  padding: 6rem 2rem;
  background: var(--white);
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}
.contact-desc {
  font-size: 0.98rem;
  color: var(--text-2);
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}

/* Form card */
.contact-form-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 2rem;
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 520px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--bd);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-pale);
  color: var(--pink);
  border-radius: var(--r-sm);
}
.contact-info__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}
.contact-info__value {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  display: block;
}
.contact-info__value:hover { color: var(--pink); text-decoration: underline; }

.contact-info__privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s;
}
.contact-info__privacy-link:hover { color: var(--pink); }


/* ══════════════════════════════════════════
   INSTALL / GET THE APP
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   HERO INSTALL CHIP
══════════════════════════════════════════ */
.hero__install-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.6rem 0.45rem 0.55rem;
  width: fit-content;
  backdrop-filter: blur(8px);
  animation: heroIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.5s backwards;
}
.hero__install-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}
.hero__install-chip span {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.hero__install-chip-btn {
  padding: 0.28rem 0.75rem;
  background: var(--pink);
  color: #fff;
  font-family: var(--hd);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hero__install-chip-btn:hover { background: var(--pink-dark); }
.hero__install-chip-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.1rem;
  transition: color 0.2s;
  flex-shrink: 0;
}
.hero__install-chip-close:hover { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════
   INSTALL SECTION (mid-page, after stats)
══════════════════════════════════════════ */
.install-section {
  background: linear-gradient(120deg, #1c0514 0%, #330a22 40%, #1c0514 100%);
  padding: 0;
  border-top: 1px solid rgba(240,25,95,0.25);
  border-bottom: 1px solid rgba(240,25,95,0.15);
  overflow: hidden;
  position: relative;
}
/* decorative glow blobs */
.install-section::before,
.install-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.install-section::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,25,95,0.18) 0%, transparent 70%);
  top: -200px; left: -150px;
}
.install-section::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,25,95,0.12) 0%, transparent 70%);
  bottom: -150px; right: -100px;
}
.install-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.install-section__body { }
.install-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-light);
  background: rgba(240,25,95,0.15);
  border: 1px solid rgba(240,25,95,0.3);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  margin: 0 0 1rem;
}
.install-section__kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
  display: block;
}
.install-section__title {
  font-family: var(--hd);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.install-section__desc {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 48ch;
  line-height: 1.65;
}
.install-section__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex-shrink: 0;
}
.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, #ff3878 0%, var(--pink) 100%);
  color: #fff;
  font-family: var(--hd);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(240,25,95,0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.install-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(240,25,95,0.55); }
.install-btn:active { transform: translateY(0); }

.install-ios {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  max-width: 260px;
}
.install-ios__label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.8); margin: 0 0 0.4rem; }
.install-ios__steps { margin: 0; padding-left: 1.1rem; color: rgba(255,255,255,0.6); font-size: 0.83rem; line-height: 1.9; }
.install-ios__steps strong { color: #fff; }
.install-ios__icon { display: inline-block; transform: rotate(180deg); margin: 0 2px; }

/* Phone mockup decoration */
.install-section__phones {
  flex-shrink: 0;
  position: relative;
}
.install-section__phone-mock {
  width: 90px;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a0d1e 0%, #3d1028 100%);
  border: 2px solid rgba(240,25,95,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(240,25,95,0.1);
  position: relative;
  overflow: hidden;
}
.install-section__phone-mock::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}
.install-section__phone-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.5rem;
}
.install-section__phone-screen img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(240,25,95,0.4);
}
.install-section__phone-screen span {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .install-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .install-section__phones { display: none; }
  .install-section__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .install-section__inner { padding: 2.5rem 1.25rem; }
  .hero__install-chip span { display: none; }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.app-footer {
  background: #110208;
  color: #fff;
  padding: 4.5rem 2rem 0;
  border-top: 2px solid rgba(240,25,95,0.35);
}
.app-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 760px) {
  .app-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .app-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .app-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

.app-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--hd);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}
.app-footer__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 0 1.4rem;
}
.app-footer__tagline-link {
  color: var(--pink-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.app-footer__tagline-link:hover { color: #fff; }

.app-footer__social {
  display: flex;
  gap: 0.65rem;
}
.app-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid rgba(255,255,255,0.12);
}
.app-footer__social-link:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); }

.app-footer__col-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink-light);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(240,25,95,0.25);
}
.app-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.app-footer__link {
  display: block;
  font-size: 0.97rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.5;
}
.app-footer__link:hover { color: #fff; padding-left: 4px; }

.app-footer__install-hint {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.app-footer__install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.3rem;
  background: rgba(240,25,95,0.2);
  border: 1px solid rgba(240,25,95,0.5);
  color: var(--pink-light);
  font-family: var(--hd);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.app-footer__install-btn:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

.app-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.6rem 0 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-align: center;
  line-height: 1.7;
}
.app-footer__bottom-link {
  color: var(--pink-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.app-footer__bottom-link:hover { color: #fff; }


/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233,30,99,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  z-index: 100;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--pink-dark); }


/* ══════════════════════════════════════════
   PAGE CONTENT (Privacy)
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-3) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(233,30,99,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,30,99,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,187,217,0.8);
  margin: 0 0 0.75rem;
}
.page-hero__title {
  font-family: var(--hd);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.75rem;
}
.page-hero__meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.page-content {
  padding: 3rem 2rem 5rem;
  background: var(--surface);
}
.page-content__inner {
  max-width: 720px;
  margin: 0 auto;
}
.page-content__section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-2);
}
.page-content__section:last-of-type { border-bottom: none; }
.page-content__section h2 {
  font-family: var(--hd);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.page-content__section p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.page-content__section p:last-child { margin-bottom: 0; }
.page-content__section a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.page-content__section a:hover { color: var(--pink-dark); }
.page-content__footer {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--pink-pale);
  border-radius: var(--r);
  font-size: 0.92rem;
  color: var(--pink-dark);
}
.page-content__footer p { margin: 0; line-height: 1.55; }


/* ══════════════════════════════════════════
   RESPONSIVE UTILITIES
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .about-inner { grid-template-columns: 1fr; }
  .about-text { max-width: none; }
  .hero { min-height: 80vh; padding: 4rem 1.25rem 4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Medicine cards — comfortable on small screens */
  .medicine-card { padding: 1rem; }
  .medicine-card__name { font-size: 0.9rem; }
  .medicine-card__sep { font-size: 1.5rem; }
  .results-list { gap: 0.75rem; }

  /* Stats bar wraps nicely */
  .stats-bar__inner { flex-wrap: wrap; gap: 0.75rem 2rem; }
  .stats-bar__divider { display: none; }

  /* Steps grid single column */
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .results-container { padding: 2rem 1.25rem 3rem; }
  .about-section, .how-section, .contact-section { padding: 4rem 1.25rem; }
  .app-footer { padding: 2.5rem 1.25rem 0; }
  .stats-bar { padding: 1.25rem; }

  /* Search bar — full width on tiny screens */
  .search-bar { border-radius: 14px; }
  .search-submit { border-radius: 10px; padding: 0.65rem 1rem; }
  .search-submit__label { display: none; }

  /* Results topbar stacks */
  .results-topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

.container { max-width: 1200px; margin: 0 auto; }
