  :root{
    --red:#CE0000;
    --red-dark:#9E0000;
    --amber:#FFA608;
    --amber-light:#FFF1D6;
    --navy:#020A27;
    --navy-soft:#101A44;
    --gray:#7D7D7D;
    --gray-light:#F4F2ED;
    --paper:#FFFDF9;
    --white:#FFFFFF;
    --green:#1E8A3C;
    --green-light:#E4F5E9;
    --line:#E7E2D6;
    --font-display:'Baloo 2', system-ui, sans-serif;
    --font-body:'Inter', system-ui, sans-serif;
    --font-mono:'JetBrains Mono', monospace;
    --radius-lg:28px;
    --radius-md:18px;
    --radius-sm:12px;
    --shadow-card: 0 10px 30px -12px rgba(2,10,39,0.18);
    --shadow-pop: 0 18px 44px -14px rgba(206,0,0,0.35);
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; overflow-x:hidden;}
  body{
    font-family:var(--font-body);
    background:var(--paper);
    color:var(--navy);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  img,svg{display:block;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer; border:none; background:none;}
  ::selection{background:var(--amber); color:var(--navy);}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  }

  :focus-visible{outline:3px solid var(--amber); outline-offset:2px; border-radius:6px;}

  .wrap{max-width:1160px; margin:0 auto; padding:0 28px;}

  /* ---------- background texture ---------- */
  .bg-swoosh{
    position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;
  }
  .bg-swoosh svg{position:absolute; top:0; left:0; width:100%; height:100%;}

  /* ---------- Nav ---------- */
  header.site{
    position:sticky; top:0; z-index:100;
    background:rgba(255,253,249,0.86);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav-row{
    display:flex; align-items:center; justify-content:space-between;
    height:76px;
  }
  .brand{display:flex; align-items:center; gap:10px;}
  .brand-mark{width:42px; height:42px; flex-shrink:0;}
  .brand-word{font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--navy); letter-spacing:-0.5px; display:flex; align-items:flex-start; gap:5px;}
  .brand-word .red{color:var(--red);}
  .brand-tag{
    font-family:var(--font-mono); font-size:9px; font-weight:500; color:var(--white);
    background:var(--navy); padding:2px 7px; border-radius:999px; letter-spacing:0.06em;
    text-transform:uppercase; line-height:1.4; margin-top:1px; flex-shrink:0;
  }
  nav.links{display:flex; align-items:center; gap:30px;}
  nav.links a{font-size:14.5px; font-weight:600; color:var(--navy-soft); transition:color .15s;}
  nav.links a:hover{color:var(--red);}
  .nav-actions{display:flex; align-items:center; gap:10px;}
  #menuBtn{display:none;}
  .icon-btn{
    position:relative; width:44px; height:44px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    background:var(--gray-light); transition:background .15s, transform .15s;
  }
  .icon-btn:hover{background:var(--amber-light); transform:translateY(-1px);}
  .icon-btn svg{width:20px; height:20px;}
  .cart-count{
    position:absolute; top:-5px; right:-5px; min-width:19px; height:19px; padding:0 4px;
    background:var(--red); color:var(--white); border-radius:999px;
    font-size:10.5px; font-weight:800; display:flex; align-items:center; justify-content:center;
    border:2px solid var(--paper);
  }
  .btn{
    font-family:var(--font-display); font-weight:700; font-size:14.5px;
    padding:11px 22px; border-radius:999px; transition:transform .15s, box-shadow .15s, background .15s;
    display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
  }
  .btn-primary{background:var(--red); color:var(--white); box-shadow:0 8px 20px -8px rgba(206,0,0,0.55);}
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 12px 26px -8px rgba(206,0,0,0.6);}
  .btn-amber{background:var(--amber); color:var(--navy);}
  .btn-amber:hover{transform:translateY(-2px);}
  .btn-navy{background:var(--navy); color:var(--white);}
  .btn-navy:hover{transform:translateY(-2px);}
  .btn-ghost{background:transparent; color:var(--navy); border:2px solid var(--line);}
  .btn-ghost:hover{border-color:var(--navy);}
  .btn-sm{padding:8px 16px; font-size:13px;}
  .btn:disabled{opacity:0.5; cursor:not-allowed; transform:none !important;}

  /* ---------- Hero ---------- */
  .hero{position:relative; padding:76px 0 40px; overflow:hidden;}
  .hero-grid{
    position:relative; z-index:1;
    display:grid; grid-template-columns:1fr; gap:0; align-items:center;
    max-width:720px; margin:0 auto; text-align:center;
  }
  .hero-grid > *{min-width:0;}
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-family:var(--font-mono); font-size:11.5px; font-weight:500; letter-spacing:0.07em; text-transform:uppercase;
    color:var(--red-dark); background:var(--amber-light); padding:7px 14px 7px 10px; border-radius:999px;
    margin-bottom:22px; border:1px solid #FFE3A8;
  }
  .eyebrow .dot{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px var(--green-light);}
  h1.hero-title{
    font-family:var(--font-display); font-weight:800; letter-spacing:-1.5px;
    font-size:clamp(42px, 7.5vw, 68px); line-height:0.98; color:var(--navy);
  }
  h1.hero-title .stroke{
    color:var(--red);
    -webkit-text-stroke: 0px;
  }
  h1.hero-title .underline-amber{
    position:relative; display:inline-block; white-space:nowrap;
  }
  h1.hero-title .underline-amber svg{position:absolute; left:0; bottom:-6px; width:100%; height:16px;}
  .hero-sub{
    font-size:14.5px; line-height:1.6; color:var(--gray); max-width:520px; margin:18px auto 20px;
  }
  .hero .eyebrow{margin-bottom:22px;}
  .hero-ctas{display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:nowrap; margin-bottom:22px;}
  .hero-ctas .btn{flex:0 1 auto;}
  .hero-proof{
    display:flex; gap:16px; flex-wrap:nowrap; justify-content:flex-start; justify-content:safe center;
    overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
    cursor:grab; user-select:none;
  }
  .hero-proof.dragging{cursor:grabbing; scroll-behavior:auto;}
  .hero-proof::-webkit-scrollbar{display:none;}
  .proof-item{
    display:flex; align-items:center; gap:7px; flex-shrink:0;
    background:var(--green-light); border:1px solid #CFEAD9; padding:7px 13px; border-radius:999px;
  }
  .proof-item svg{width:14px; height:14px; color:var(--green); flex-shrink:0;}
  .proof-item span{font-size:12px; font-weight:700; color:#1E5C31; white-space:nowrap;}

  /* ---------- Hero featured drugs ---------- */
  .hero-featured{margin:22px auto 6px; max-width:620px;}
  .hero-featured-label{
    display:block; font-family:var(--font-mono); font-size:10.5px; font-weight:600;
    letter-spacing:0.09em; text-transform:uppercase; color:var(--gray); margin-bottom:10px; text-align:center;
  }
  .hero-featured-row{
    display:flex; gap:12px; overflow-x:auto; justify-content:flex-start; justify-content:safe center;
    scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch; scrollbar-width:none;
    padding:2px 4px 8px; cursor:grab; user-select:none;
  }
  .hero-featured-row.dragging{cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto;}
  .hero-featured-row::-webkit-scrollbar{display:none;}
  .feat-chip{
    flex-shrink:0; scroll-snap-align:start; width:104px;
    display:flex; flex-direction:column; align-items:center; text-align:center;
    background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
    padding:10px 10px 12px; box-shadow:0 6px 18px -10px rgba(2,10,39,0.16);
    transition:transform .18s, box-shadow .18s;
  }
  .feat-chip:hover{transform:translateY(-3px); box-shadow:var(--shadow-card);}
  .feat-photo{
    width:100%; aspect-ratio:1/1; border-radius:12px; overflow:hidden;
    margin-bottom:9px; flex-shrink:0;
  }
  .feat-photo img{width:100%; height:100%; object-fit:contain; display:block; pointer-events:none;}
  .feat-name{font-family:var(--font-display); font-weight:700; font-size:11.5px; color:var(--navy); line-height:1.25;}
  .feat-price{font-family:var(--font-mono); font-size:10px; font-weight:600; color:var(--gray); margin-top:3px;}
  .fc-1 .feat-photo{background:#FDEBEB;}
  .fc-2 .feat-photo{background:var(--amber-light);}
  .fc-3 .feat-photo{background:var(--green-light);}
  .fc-4 .feat-photo{background:#E7EAF4;}

  .hero-art{position:relative; display:flex; align-items:center; justify-content:center;}
  .capsule-stage{
    position:relative; width:100%; max-width:420px; aspect-ratio:1/1.05;
    background:linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
    border-radius:36px; box-shadow:var(--shadow-pop);
    display:flex; align-items:center; justify-content:center; overflow:hidden;
  }
  .capsule-stage::before{
    content:''; position:absolute; width:340px; height:340px; border-radius:50%;
    background:radial-gradient(circle, rgba(255,166,8,0.35) 0%, transparent 70%);
    top:-80px; right:-80px;
  }
  .float-card{
    position:absolute; background:var(--white); border-radius:16px; padding:12px 14px;
    box-shadow:0 14px 30px -10px rgba(0,0,0,0.35); display:flex; align-items:center; gap:10px;
    animation:bob 4.5s ease-in-out infinite;
  }
  .float-card.card-1{top:14%; left:-8%; animation-delay:0s;}
  .float-card.card-2{bottom:12%; right:-10%; animation-delay:1.2s;}
  .float-card .icon-wrap{width:32px; height:32px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .float-card.card-1 .icon-wrap{background:var(--green-light);}
  .float-card.card-1 .icon-wrap svg{color:var(--green); width:18px; height:18px;}
  .float-card.card-2 .icon-wrap{background:var(--amber-light);}
  .float-card.card-2 .icon-wrap svg{color:var(--amber); width:18px; height:18px;}
  .float-card .fc-title{font-size:11.5px; font-weight:700; color:var(--navy);}
  .float-card .fc-sub{font-size:10px; color:var(--gray);}
  @keyframes bob{0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);}}

  .pill-hero{width:150px; height:150px; position:relative; z-index:1;}

  /* ---------- Marquee strip ---------- */
  .marquee{
    background:var(--navy); overflow:hidden; padding:13px 0; border-top:2px solid var(--red); border-bottom:2px solid var(--red);
  }
  .marquee-track{display:flex; gap:44px; white-space:nowrap; animation:scroll-left 26s linear infinite; width:max-content;}
  .marquee-track span{font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--white); opacity:0.85; display:flex; align-items:center; gap:44px;}
  .marquee-track span::after{content:'●'; color:var(--amber); font-size:8px;}
  @keyframes scroll-left{from{transform:translateX(0);} to{transform:translateX(-50%);}}

  /* ---------- How it works ---------- */
  .section{padding:88px 0;}
  .section-head{max-width:600px; margin-bottom:52px;}
  .section-kicker{
    font-family:var(--font-mono); font-size:11.5px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--red); margin-bottom:12px; display:block;
  }
  h2.section-title{font-family:var(--font-display); font-weight:800; font-size:clamp(28px,3.4vw,40px); letter-spacing:-1px; color:var(--navy);}
  .section-desc{font-size:16px; color:var(--gray); margin-top:14px; line-height:1.6;}

  .steps{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .step-card{
    background:var(--white); border:1.5px solid var(--line); border-radius:var(--radius-md);
    padding:30px 26px; position:relative; transition:transform .2s, box-shadow .2s, border-color .2s;
  }
  .step-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-card); border-color:transparent;}
  .step-num{
    font-family:var(--font-display); font-weight:800; font-size:15px; color:var(--white);
    background:var(--navy); width:36px; height:36px; border-radius:11px;
    display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  }
  .step-card:nth-child(2) .step-num{background:var(--red);}
  .step-card:nth-child(3) .step-num{background:var(--amber); color:var(--navy);}
  .step-title{font-family:var(--font-display); font-weight:700; font-size:19px; margin-bottom:8px; color:var(--navy);}
  .step-desc{font-size:14.5px; line-height:1.6; color:var(--gray);}

  /* ---------- App / Symptom checker ---------- */
  .app-section{background:var(--navy); position:relative; overflow:hidden;}
  .app-section .section-kicker{color:var(--amber);}
  .app-section h2.section-title{color:var(--white);}
  .app-section .section-desc{color:#B7BEDA;}

  .app-shell{
    background:var(--paper); border-radius:32px; box-shadow:0 30px 70px -20px rgba(0,0,0,0.5);
    overflow:hidden; border:1px solid rgba(255,255,255,0.08);
  }
  .app-top{
    background:linear-gradient(115deg, var(--red) 0%, #E23A0E 100%);
    padding:26px 30px 34px; border-radius:32px 32px 0 0; position:relative;
  }
  .app-top-row{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
  .app-top-title{font-family:var(--font-display); font-weight:800; font-size:18px; color:var(--white);}
  .app-top-actions{display:flex; gap:10px;}
  .pill-btn-mini{
    width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,0.18);
    display:flex; align-items:center; justify-content:center; position:relative; transition:background .15s;
  }
  .pill-btn-mini:hover{background:rgba(255,255,255,0.3);}
  .pill-btn-mini svg{width:18px; height:18px; color:var(--white);}
  .app-greeting{color:var(--white); font-size:22px; font-weight:800; font-family:var(--font-display); margin-bottom:16px;}
  .search-pill{
    background:var(--white); border-radius:999px; padding:6px 6px 6px 20px;
    display:flex; align-items:center; gap:10px; box-shadow:0 10px 24px -10px rgba(0,0,0,0.35);
  }
  .search-pill input{
    border:none; outline:none; flex:1; font-size:15px; font-family:var(--font-body); font-weight:500; color:var(--navy); background:transparent;
  }
  .search-pill input::placeholder{color:#B3AFA6;}
  .search-pill button{
    background:var(--navy); color:var(--white); border-radius:999px; padding:11px 20px;
    font-family:var(--font-display); font-weight:700; font-size:14px; display:flex; align-items:center; gap:6px;
    transition:background .15s;
  }
  .search-pill button:hover{background:var(--red-dark);}

  .app-body{padding:26px 30px 34px;}
  .chip-row{display:flex; flex-wrap:wrap; gap:9px; margin:18px 0 6px;}
  .chip{
    background:var(--amber-light); color:#8A5A06; border:1px solid #FFE3A8; font-weight:600; font-size:13px;
    padding:8px 16px; border-radius:999px; transition:background .15s, transform .15s;
  }
  .chip:hover{background:var(--amber); color:var(--navy); transform:translateY(-1px);}
  .results-label{font-size:12.5px; font-weight:700; color:var(--gray); text-transform:uppercase; letter-spacing:0.05em; margin:22px 0 12px;}

  .redflag-box{
    background:#FDEBEB; border:1.5px solid #F4B9B9; border-radius:var(--radius-sm);
    padding:20px 22px; display:flex; gap:14px; align-items:flex-start;
  }
  .redflag-box svg{width:24px; height:24px; color:var(--red); flex-shrink:0; margin-top:2px;}
  .redflag-box p{font-size:14.5px; line-height:1.6; color:#7A1F1F; font-weight:500;}

  .empty-note{font-size:14.5px; color:var(--gray); background:var(--gray-light); border-radius:var(--radius-sm); padding:18px 20px;}

  .safety-banner{
    display:flex; gap:12px; align-items:center; background:var(--green-light); border:1.5px solid #BFE3CB;
    border-radius:var(--radius-sm); padding:14px 18px; margin-bottom:18px;
  }
  .safety-banner svg{width:20px; height:20px; color:var(--green); flex-shrink:0;}
  .safety-banner p{font-size:13px; color:#1E5C31; font-weight:600; line-height:1.5;}

  .guidance-group{margin-bottom:24px;}
  .guidance-text{font-size:14px; color:var(--navy-soft); font-weight:600; margin-bottom:12px;}
  .drug-card{
    display:flex; align-items:center; gap:16px; background:var(--white); border:1.5px solid var(--line);
    border-radius:var(--radius-sm); padding:16px 18px; margin-bottom:10px; transition:border-color .15s, transform .15s;
  }
  .drug-card:hover{border-color:var(--amber); transform:translateX(2px);}
  .drug-icon{
    width:44px; height:44px; border-radius:13px; background:var(--amber-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .drug-icon svg{width:22px; height:22px; color:var(--amber);}
  .drug-info{flex:1; min-width:0;}
  .drug-name{font-weight:700; font-size:14.5px; color:var(--navy); display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
  .rx-badge{
    font-size:10px; font-weight:700; color:var(--red); background:#FDEBEB; padding:2px 8px; border-radius:999px; text-transform:uppercase; letter-spacing:0.03em;
  }
  .drug-desc{font-size:12.5px; color:var(--gray); margin-top:2px;}
  .drug-price{font-family:var(--font-display); font-weight:800; font-size:15px; color:var(--navy); white-space:nowrap;}
  .add-btn{
    width:38px; height:38px; border-radius:12px; background:var(--navy); color:var(--white); flex-shrink:0;
    display:flex; align-items:center; justify-content:center; transition:background .15s, transform .15s;
  }
  .add-btn:hover{background:var(--red); transform:scale(1.06);}
  .add-btn.added{background:var(--green);}

  .loading-dots{display:flex; gap:6px; align-items:center; padding:20px 4px; color:var(--gray); font-size:13.5px; font-weight:600;}
  .loading-dots .dot{width:7px; height:7px; border-radius:50%; background:var(--red); animation:pulse-dot 1s infinite ease-in-out;}
  .loading-dots .dot:nth-child(2){animation-delay:.15s;} .loading-dots .dot:nth-child(3){animation-delay:.3s;}
  @keyframes pulse-dot{0%,80%,100%{opacity:0.25; transform:scale(0.8);} 40%{opacity:1; transform:scale(1);}}

  /* ---------- Categories ---------- */
  .cat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
  .cat-card{
    border-radius:var(--radius-md); padding:26px 22px; position:relative; overflow:hidden; min-height:150px;
    display:flex; flex-direction:column; justify-content:space-between; transition:transform .2s, box-shadow .2s;
  }
  .cat-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-card);}
  .cat-card svg{width:26px; height:26px;}
  .cat-card .cat-name{font-family:var(--font-display); font-weight:700; font-size:16.5px; margin-top:14px;}
  .cat-card .cat-count{font-size:12px; opacity:0.75; font-weight:600; margin-top:2px;}
  .cat-1{background:#FDEBEB; color:var(--red-dark);}
  .cat-2{background:var(--amber-light); color:#8A5A06;}
  .cat-3{background:var(--green-light); color:#1E5C31;}
  .cat-4{background:var(--navy); color:var(--white);}

  /* ---------- Safety / trust ---------- */
  .trust-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;}
  .trust-card{
    background:var(--white); border:1.5px solid var(--line); border-radius:var(--radius-md); padding:28px;
    display:flex; gap:16px; margin-bottom:14px;
  }
  .trust-card .ti{width:46px; height:46px; border-radius:13px; background:var(--amber-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .trust-card .ti svg{width:23px; height:23px; color:var(--amber);}
  .trust-card h3{font-family:var(--font-display); font-weight:700; font-size:16px; margin-bottom:5px; color:var(--navy);}
  .trust-card p{font-size:13.5px; color:var(--gray); line-height:1.55;}

  .emergency-card{
    background:var(--navy); border-radius:var(--radius-lg); padding:40px; color:var(--white); position:relative; overflow:hidden;
  }
  .emergency-card::before{content:''; position:absolute; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle, rgba(206,0,0,0.4), transparent 70%); top:-100px; right:-100px;}
  .emergency-card h3{font-family:var(--font-display); font-weight:800; font-size:24px; margin-bottom:12px; position:relative;}
  .emergency-card p{font-size:14.5px; color:#B7BEDA; line-height:1.65; margin-bottom:22px; position:relative;}
  .emergency-list{list-style:none; position:relative;}
  .emergency-list li{display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid rgba(255,255,255,0.12); font-size:14px;}
  .emergency-list li:first-child{border-top:none;}
  .emergency-list span:first-child{color:#B7BEDA;}
  .emergency-list span:last-child{font-weight:700; color:var(--amber);}

  /* ---------- CTA ---------- */
  .cta-section{
    background:linear-gradient(120deg, var(--red) 0%, #A80A0A 100%); border-radius:var(--radius-lg);
    padding:64px 50px; text-align:center; position:relative; overflow:hidden; margin:0 28px;
  }
  .cta-section::before, .cta-section::after{
    content:''; position:absolute; border-radius:50%; background:rgba(255,166,8,0.25);
  }
  .cta-section::before{width:220px; height:220px; top:-90px; left:-60px;}
  .cta-section::after{width:180px; height:180px; bottom:-80px; right:-40px;}
  .cta-section h2{font-family:var(--font-display); font-weight:800; font-size:clamp(26px,3.6vw,38px); color:var(--white); position:relative; letter-spacing:-1px;}
  .cta-section p{color:#FFE0DC; font-size:15.5px; margin:14px 0 28px; position:relative;}
  .cta-section .btn{position:relative;}

  /* ---------- Footer ---------- */
  footer.site{background:var(--navy); color:#8892B8; padding:60px 0 30px; margin-top:88px;}
  .footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.1);}
  .footer-brand .brand-word{color:var(--white);}
  .footer-brand p{font-size:13.5px; color:#8892B8; margin-top:14px; line-height:1.6; max-width:280px;}
  .footer-col h4{font-family:var(--font-display); font-size:13px; color:var(--white); margin-bottom:14px; letter-spacing:0.02em;}
  .footer-col a{display:block; font-size:13.5px; color:#8892B8; margin-bottom:10px; transition:color .15s;}
  .footer-col a:hover{color:var(--amber);}
  .footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:12.5px; flex-wrap:wrap; gap:10px;}

  /* ---------- Cart drawer ---------- */
  .overlay{position:fixed; inset:0; background:rgba(2,10,39,0.55); z-index:200; opacity:0; pointer-events:none; transition:opacity .25s;}
  .overlay.open{opacity:1; pointer-events:auto;}
  .drawer{
    position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw; background:var(--paper); z-index:201;
    transform:translateX(100%); transition:transform .3s cubic-bezier(.2,.9,.25,1); display:flex; flex-direction:column;
    box-shadow:-20px 0 50px rgba(0,0,0,0.25);
  }
  .drawer.open{transform:translateX(0);}
  .drawer-head{padding:26px 26px 20px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center;}
  .drawer-head h3{font-family:var(--font-display); font-weight:800; font-size:20px;}
  .drawer-close{width:36px; height:36px; border-radius:11px; background:var(--gray-light); display:flex; align-items:center; justify-content:center;}
  .drawer-close svg{width:16px; height:16px;}
  .drawer-body{flex:1; overflow-y:auto; padding:20px 26px;}
  .cart-item{display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line);}
  .cart-item .ci-icon{width:46px; height:46px; border-radius:13px; background:var(--amber-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .cart-item .ci-icon svg{width:22px; height:22px; color:var(--amber);}
  .ci-info{flex:1;}
  .ci-name{font-weight:700; font-size:14px;}
  .ci-price{font-size:12.5px; color:var(--gray); margin-top:2px;}
  .ci-qty{display:flex; align-items:center; gap:10px; margin-top:8px;}
  .qty-btn{width:24px; height:24px; border-radius:8px; background:var(--gray-light); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px;}
  .qty-btn:hover{background:var(--amber-light);}
  .ci-remove{font-size:12px; color:var(--red); font-weight:700; margin-left:auto;}
  .drawer-empty{text-align:center; padding:60px 20px; color:var(--gray);}
  .drawer-empty svg{width:52px; height:52px; margin:0 auto 16px; color:var(--line);}
  .drawer-footer{padding:22px 26px 28px; border-top:1px solid var(--line);}
  .sum-row{display:flex; justify-content:space-between; font-size:13.5px; color:var(--gray); margin-bottom:8px;}
  .sum-row.total{font-size:17px; font-weight:800; color:var(--navy); margin-top:12px; padding-top:12px; border-top:1px dashed var(--line);}
  .drawer-footer .btn{width:100%; justify-content:center; margin-top:16px;}

  /* ---------- Modal (login / checkout / order) ---------- */
  .modal{
    position:fixed; top:50%; left:50%; transform:translate(-50%,-46%); width:420px; max-width:92vw;
    background:var(--white); border-radius:26px; z-index:301; opacity:0; pointer-events:none;
    transition:opacity .25s, transform .25s; box-shadow:0 30px 70px -20px rgba(0,0,0,0.4); max-height:88vh; overflow-y:auto;
  }
  .modal.open{opacity:1; pointer-events:auto; transform:translate(-50%,-50%);}
  .modal-head{padding:28px 28px 6px; display:flex; justify-content:space-between; align-items:flex-start;}
  .modal-head h3{font-family:var(--font-display); font-weight:800; font-size:21px;}
  .modal-head p{font-size:13px; color:var(--gray); margin-top:5px;}
  .modal-close{width:34px; height:34px; border-radius:10px; background:var(--gray-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .modal-close svg{width:15px; height:15px;}
  .modal-body{padding:20px 28px 28px;}
  .field{margin-bottom:16px;}
  .field label{font-size:12.5px; font-weight:700; color:var(--navy-soft); margin-bottom:7px; display:block;}
  .field input, .field textarea, .field select{
    width:100%; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; font-size:14.5px; font-family:inherit;
    outline:none; transition:border-color .15s; background:var(--paper);
  }
  .field input:focus, .field textarea:focus, .field select:focus{border-color:var(--amber);}
  .field-hint{font-size:11.5px; color:var(--gray); margin-top:6px;}
  .modal .btn{width:100%; justify-content:center;}
  .otp-boxes{display:flex; gap:9px; margin-bottom:6px;}
  .otp-boxes input{
    width:100%; text-align:center; font-size:20px; font-weight:800; padding:12px 0; font-family:var(--font-display);
  }
  .dev-code-note{
    background:var(--amber-light); border:1px dashed #E0A736; border-radius:12px; padding:12px 14px; font-size:12.5px;
    color:#8A5A06; margin-bottom:16px; font-weight:600;
  }
  .dev-code-note b{font-family:var(--font-mono); font-size:15px; letter-spacing:2px;}
  .modal-alt{text-align:center; font-size:13px; color:var(--gray); margin-top:16px;}
  .modal-alt button{color:var(--red); font-weight:700;}

  /* order tracking stepper */
  .tracker{margin:22px 0;}
  .tstep{display:flex; gap:14px; position:relative; padding-bottom:26px;}
  .tstep:last-child{padding-bottom:0;}
  .tstep::before{
    content:''; position:absolute; left:14px; top:30px; bottom:0; width:2px; background:var(--line);
  }
  .tstep:last-child::before{display:none;}
  .tstep.done::before{background:var(--green);}
  .t-dot{width:30px; height:30px; border-radius:50%; background:var(--gray-light); display:flex; align-items:center; justify-content:center; flex-shrink:0; z-index:1;}
  .tstep.done .t-dot{background:var(--green); color:var(--white);}
  .tstep.active .t-dot{background:var(--amber); color:var(--navy); box-shadow:0 0 0 5px var(--amber-light);}
  .t-dot svg{width:14px; height:14px;}
  .t-title{font-weight:700; font-size:14px; color:var(--navy);}
  .t-sub{font-size:12px; color:var(--gray); margin-top:2px;}
  .tstep:not(.done):not(.active) .t-title{color:var(--gray);}

  .toast{
    position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(120%); z-index:400;
    background:var(--navy); color:var(--white); padding:14px 22px; border-radius:999px; font-size:14px; font-weight:600;
    display:flex; align-items:center; gap:10px; transition:transform .3s cubic-bezier(.2,.9,.25,1); box-shadow:0 14px 30px rgba(0,0,0,0.3);
  }
  .toast.show{transform:translateX(-50%) translateY(0);}
  .toast svg{width:17px; height:17px; color:var(--green);}

  /* ---------- responsive ---------- */
  @media(max-width:920px){
    .wrap{padding:0 20px;}
    nav.links{
      display:flex; flex-direction:column; align-items:flex-start; gap:2px;
      position:absolute; top:100%; left:0; right:0; background:var(--paper);
      border-bottom:1px solid var(--line); box-shadow:0 16px 30px -18px rgba(2,10,39,0.3);
      padding:10px 20px 16px; max-height:0; overflow:hidden; opacity:0;
      transition:max-height .25s ease, opacity .2s ease, padding .25s ease;
    }
    nav.links.open{max-height:280px; opacity:1; padding:14px 20px 20px;}
    nav.links a{width:100%; padding:12px 4px; border-bottom:1px solid var(--line); font-size:15.5px;}
    nav.links a:last-child{border-bottom:none;}
    #menuBtn{display:flex;}
    .nav-cta-desktop{display:none;}
    .brand-word{font-size:19px;}
    .hero{padding:56px 0 32px;}
    .section{padding:60px 0;}
    .steps{grid-template-columns:1fr;}
    .trust-grid{grid-template-columns:1fr; gap:26px;}
    .cat-grid{grid-template-columns:1fr 1fr;}
    .footer-grid{grid-template-columns:1fr 1fr; gap:30px;}
    .app-body, .app-top{padding-left:20px; padding-right:20px;}
    .cta-section{margin:0 20px;}
  }
  @media(max-width:640px){
    .nav-row{height:64px;}
    .brand-mark{width:36px; height:36px;}
    .brand-word{font-size:17px;}
    .brand-tag{font-size:8px; padding:2px 6px; margin-top:2px;}
    .icon-btn{width:40px; height:40px; border-radius:12px;}
    .hero{padding:48px 0 28px;}
    .hero-sub{font-size:13.5px; margin:14px auto 16px;}
    .hero .eyebrow{margin-bottom:18px;}
    .hero-ctas{gap:8px; margin-bottom:18px;}
    .hero-ctas .btn{flex:1 1 0; justify-content:center; padding:11px 8px; font-size:12.5px; gap:0; min-width:0;}
    .hero-proof{justify-content:flex-start; gap:8px; padding:2px 20px; margin:0 -20px;}
    .hero-featured{margin:18px auto 4px;}
    .hero-featured-row{justify-content:flex-start; padding:2px 20px 8px; margin:0 -20px;}
    .search-pill{flex-wrap:wrap; padding:10px 10px 10px 16px; border-radius:22px;}
    .search-pill input{flex-basis:100%; order:1; padding:6px 0;}
    .search-pill button{order:2; width:100%; justify-content:center; padding:12px 20px;}
    .app-top-row{flex-wrap:wrap; gap:12px;}
    .app-greeting{font-size:19px;}
    .drug-card{flex-wrap:wrap;}
    .drug-price{margin-left:60px;}
    .marquee-track span{font-size:12.5px; gap:28px;}
    .marquee-track{gap:28px;}
  }
  @media(max-width:560px){
    .wrap{padding:0 16px;}
    .hero-proof{padding:2px 16px; margin:0 -16px;}
    .hero-featured-row{padding:2px 16px 8px; margin:0 -16px;}
    .cat-grid{grid-template-columns:1fr;}
    .cat-card{min-height:auto;}
    .footer-grid{grid-template-columns:1fr; gap:26px;}
    .footer-bottom{flex-direction:column; align-items:flex-start;}
    .drawer{width:100%;}
    .cta-section{padding:40px 22px; margin:0 16px;}
    .modal{width:100%; max-width:100vw; left:0; right:0; transform:translate(0,100%);
      top:auto; bottom:0; border-radius:24px 24px 0 0; max-height:85vh;
      padding-bottom:env(safe-area-inset-bottom, 0px);}
    .modal.open{transform:translate(0,0);}
    .otp-boxes{gap:7px;}
    .modal-head, .modal-body{padding-left:20px; padding-right:20px;}
    .emergency-card, .cta-section{padding-left:26px; padding-right:26px;}
    .toast{
      left:0; right:0; bottom:0; transform:translateY(120%);
      width:100%; max-width:100%; border-radius:16px 16px 0 0; justify-content:center;
      padding:16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
      box-shadow:0 -8px 24px -6px rgba(0,0,0,0.3);
    }
    .toast.show{transform:translateY(0);}
  }
  @media(max-width:400px){
    h1.hero-title{font-size:36px;}
    .btn{padding:10px 18px; font-size:13.5px;}
    .hero-ctas{gap:6px;}
    .hero-ctas .btn{padding:9px 4px; font-size:10.5px; letter-spacing:-0.2px;}
    .hero-ctas a.btn-primary{flex:1.12 1 0;}
    .hero-ctas a.btn-ghost{flex:1 1 0;}
    .step-card, .trust-card{padding:22px 18px;}
    .app-top{padding:22px 16px 28px;}
    .app-body{padding:20px 16px 28px;}
    .nav-row{height:60px;}
    .nav-actions{gap:6px;}
    .icon-btn{width:36px; height:36px; border-radius:10px;}
    .icon-btn svg{width:17px; height:17px;}
    .brand-mark{width:32px; height:32px;}
    .brand-word{font-size:15.5px;}
    .brand-tag{font-size:7px; padding:1px 5px;}
    .cart-count{min-width:16px; height:16px; font-size:9px;}
  }
