:root {
  --navy: #071c3d;
  --navy-2: #0a3268;
  --blue: #1478ff;
  --cyan: #61dcff;
  --green: #20c96b;
  --ink: #10233f;
  --muted: #718197;
  --line: #dce7f2;
  --soft: #f2f7fc;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: #e8f0f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.app-shell {
  position: relative;
  width: min(100%, 520px);
  height: 100dvh;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 50px rgba(10, 43, 82, .15);
}

.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 18px 0;
  color: #fff;
  background: var(--navy);
}
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo strong { font-size: 19px; letter-spacing: -.55px; }
.logo strong span { color: var(--cyan); }
.logo-mark { position: relative; width: 24px; height: 24px; }
.logo-mark i { position: absolute; width: 7px; height: 7px; border: 2px solid var(--cyan); border-radius: 50%; }
.logo-mark i:nth-child(1) { left: 0; top: 9px; }
.logo-mark i:nth-child(2) { right: 0; top: 0; }
.logo-mark i:nth-child(3) { right: 0; bottom: 0; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; left: 6px; top: 9px; width: 13px; height: 2px; background: var(--cyan); transform: rotate(-35deg); transform-origin: left; }
.logo-mark::after { top: 15px; transform: rotate(35deg); }
.menu-button { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; }
.menu-button span { width: 18px; height: 2px; border-radius: 2px; background: #fff; }

.home-screen {
  height: calc(100dvh - 62px);
  display: grid;
  grid-template-rows: auto minmax(0, 3fr) minmax(0, 2fr) auto;
  gap: clamp(9px, 1.55vh, 13px);
  padding: clamp(12px, 1.9vh, 17px) 17px max(10px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0, #fff 34%);
}

.hero { position: relative; overflow: hidden; padding: clamp(13px, 2vh, 18px) 17px 0; border-radius: 17px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(45,160,255,.3), transparent 35%), linear-gradient(135deg, #071a36, #0a346a); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(112,195,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(112,195,255,.14) 1px, transparent 1px); background-size: 34px 34px; }
.hero-glow { position: absolute; width: 130px; height: 130px; right: -55px; top: -45px; border: 1px solid rgba(96,216,255,.25); border-radius: 50%; box-shadow: 0 0 45px rgba(34,139,255,.18); }
.hero > *:not(.hero-glow) { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: #77dcff; font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.eyebrow span { width: 18px; height: 2px; background: currentColor; }
h1 { max-width: 410px; margin: 0; font-size: clamp(30px, 8.7vw, 42px); line-height: 1.02; letter-spacing: -1.5px; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-copy { margin: 7px 0 clamp(9px, 1.4vh, 12px); color: rgba(225,241,255,.74); font-size: 12px; font-weight: 650; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -17px; padding: 8px 6px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(2,18,40,.25); text-align: center; }
.trust-row span { border-right: 1px solid rgba(255,255,255,.1); }
.trust-row span:last-child { border: 0; }
.trust-row b, .trust-row small { display: block; }
.trust-row b { color: #fff; font-size: 11px; }
.trust-row small { color: rgba(219,238,255,.58); font-size: 8px; }

.products { min-height: 0; display: flex; flex-direction: column; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 9px; }
.section-head p { margin: 0 0 2px; color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: clamp(21px, 5.8vw, 27px); line-height: 1.1; letter-spacing: -.7px; }
.catalog-button { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid #a8cdf8; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: 0 6px 15px rgba(20,120,255,.2); font-size: 10px; font-weight: 850; cursor: pointer; }
.catalog-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-grid { min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 7px; }
.product-card { position: relative; min-height: 0; display: flex; align-items: center; gap: 4px; padding: 4px 7px 4px 0; overflow: hidden; border: 1px solid #d7e6f4; border-radius: 12px; background: linear-gradient(145deg, #fff, #f8fbff); box-shadow: 0 5px 15px rgba(17,61,108,.05); }
.product-card::after { content: ""; position: absolute; width: 48px; height: 48px; right: -30px; top: -28px; border: 1px solid #dcecff; border-radius: 50%; }
.vial-visual { position: relative; flex: 0 0 44%; height: 100%; min-height: 74px; align-self: stretch; transform: scale(1.12); transform-origin: center bottom; }
.vial-visual img { width: 100%; height: 100%; display: block; object-fit: contain; mix-blend-mode: multiply; }
.vial-visual > span { position: absolute; left: 16%; top: 45%; width: 68%; color: #101722; font-size: clamp(7px, 2vw, 9px); font-weight: 950; line-height: 1; text-align: center; letter-spacing: -.2px; }
.vial-visual > span small { display: block; margin-top: 3px; color: #242b34; font-size: 4.5px; font-weight: 850; letter-spacing: .3px; }
.product-info { position: relative; z-index: 1; min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.product-info strong, .product-info small, .product-info b { display: block; }
.product-info strong { max-width: 100%; overflow: hidden; color: var(--navy); font-size: clamp(11px, 3.2vw, 14px); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.product-info small { margin-top: 4px; color: #708399; font-size: clamp(7px, 2vw, 9px); line-height: 1.25; white-space: nowrap; }
.product-info b { margin-top: 9px; padding: 5px 8px; border-radius: 7px; color: #fff; background: var(--blue); box-shadow: 0 4px 10px rgba(20,120,255,.2); font-size: clamp(11px, 2.8vw, 13px); line-height: 1; }

.conversion-area { text-align: center; }
.coa-promo { min-height: 0; height: 100%; display: grid; grid-template-columns: 46% 1fr; align-items: stretch; gap: 14px; padding: 10px; overflow: hidden; border: 1px solid #cfe2f5; border-radius: 15px; background: linear-gradient(125deg, #edf6ff, #fff); box-shadow: 0 8px 22px rgba(16,61,108,.09); text-align: left; }
.coa-preview { position: relative; height: 100%; min-height: 0; overflow: hidden; border: 1px solid #d7e0ea; border-radius: 9px; background: #fff; box-shadow: 0 5px 13px rgba(12,43,78,.14); }
.coa-preview img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: top center; }
.coa-preview span { position: absolute; left: 7px; bottom: 7px; padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .5px; }
.coa-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.coa-copy > small { display: block; color: var(--blue); font-size: clamp(8px, 2.1vw, 10px); font-weight: 900; letter-spacing: 1px; }
.coa-copy > strong { display: block; margin: 4px 0 5px; color: var(--navy); font-size: clamp(19px, 5.4vw, 27px); line-height: 1.02; }
.coa-copy > p { margin: 0 0 10px; color: #6d8096; font-size: clamp(8px, 2.2vw, 11px); line-height: 1.35; }
.purity-callout { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: 10px; color: #087a45; background: #e3f8ed; box-shadow: inset 0 0 0 1px rgba(15,151,84,.08); }
.purity-callout b { font-size: clamp(24px, 7vw, 36px); line-height: .9; letter-spacing: -1.2px; }
.purity-callout span { font-size: clamp(10px, 2.7vw, 13px); font-weight: 900; text-transform: uppercase; }
.whatsapp-button { min-height: clamp(68px, 9vh, 76px); display: grid; grid-template-columns: 31px 1fr 22px; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 17px; color: #fff; background: var(--green); box-shadow: 0 11px 28px rgba(24,157,86,.3); text-align: left; }
.whatsapp-button svg { width: 31px; height: 31px; fill: currentColor; }
.whatsapp-button span { font-size: clamp(15px, 4.2vw, 18px); font-weight: 900; line-height: 1.08; }
.whatsapp-button small { display: block; margin-bottom: 3px; color: rgba(255,255,255,.76); font-size: 8px; letter-spacing: .8px; }
.whatsapp-button > b { font-size: 22px; }
.conversion-area > p { margin: 5px 0 0; color: #8797a9; font-size: 7.5px; }

.menu-backdrop { position: absolute; z-index: 50; inset: 0; background: rgba(2,14,31,.58); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.menu-backdrop.visible { opacity: 1; }
.side-menu { position: absolute; z-index: 60; inset: 0 0 0 auto; width: min(88%, 390px); display: flex; flex-direction: column; color: var(--ink); background: #fff; box-shadow: -18px 0 45px rgba(0,18,45,.23); transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
.side-menu.open { transform: translateX(0); visibility: visible; }
.drawer-head { flex: 0 0 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #fff; background: var(--navy); }
.drawer-head small, .drawer-head strong { display: block; }
.drawer-head small { color: #68d9ff; font-size: 8px; font-weight: 900; letter-spacing: 1.4px; }
.drawer-head strong { font-size: 16px; }
.close-button { width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(255,255,255,.06); font-size: 26px; font-weight: 300; line-height: 1; cursor: pointer; }
.drawer-content { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; overscroll-behavior: contain; }
.drawer-card { display: flex; gap: 11px; padding: 15px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0a2b5b, #08619a); }
.drawer-icon { position: relative; flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #68d8ff; background: rgba(255,255,255,.1); }
.drawer-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawer-card small, .shipping-row small { color: #6ddcff; font-size: 8px; font-weight: 900; letter-spacing: 1.1px; }
.drawer-card h3, .shipping-row h3 { margin: 2px 0 3px; font-size: 15px; }
.drawer-card p, .shipping-row p { margin: 0; color: rgba(225,240,255,.65); font-size: 10px; line-height: 1.5; }
.drawer-section { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.drawer-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-title span { color: var(--navy); font-size: 14px; font-weight: 850; }
.drawer-title small { color: #92a1b1; font-size: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 6px 9px; border: 1px solid #d5e7fa; border-radius: 7px; color: var(--blue); background: #f4f9ff; font-size: 9px; font-weight: 800; }
.shipping-row { display: flex; gap: 11px; }
.drawer-icon.blue { color: var(--blue); background: #eaf4ff; }
.shipping-row h3 { color: var(--navy); }
.shipping-row p { color: var(--muted); }
.faq-section { padding-bottom: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 1px; border: 0; color: var(--navy); background: transparent; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }
.faq-item button i { position: relative; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #edf5fd; }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 1px; background: var(--blue); transition: transform .2s; }
.faq-item button i::after { transform: rotate(90deg); }
.faq-item.open button i::after { transform: rotate(0); }
.answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s; }
.answer p { min-height: 0; overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.faq-item.open .answer { grid-template-rows: 1fr; }
.faq-item.open .answer p { padding: 0 30px 10px 1px; }
.drawer-cta { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 13px; border-radius: 11px; color: #fff; background: var(--green); font-size: 13px; font-weight: 850; }
.drawer-cta span { font-size: 16px; }
.drawer-disclaimer { margin: 10px 0 2px; color: #9aa6b5; font-size: 8px; text-align: center; }

.catalog-backdrop { position: absolute; z-index: 80; inset: 0; background: rgba(2,14,31,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s; }
.catalog-backdrop.visible { opacity: 1; }
.catalog-modal { position: absolute; z-index: 90; inset: 10px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 18px; background: #fff; box-shadow: 0 24px 65px rgba(0,17,42,.32); opacity: 0; visibility: hidden; transform: translateY(15px) scale(.98); transition: opacity .22s, transform .22s, visibility .22s; }
.catalog-modal.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.catalog-head { flex: 0 0 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #fff; background: linear-gradient(120deg, var(--navy), #0a4d85); }
.catalog-head small { display: block; color: #70dcff; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.catalog-head h2 { margin: 2px 0 0; font-size: 19px; line-height: 1; }
.catalog-close { width: 35px; height: 35px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; color: #fff; background: rgba(255,255,255,.07); font-size: 25px; font-weight: 300; line-height: 1; cursor: pointer; }
.catalog-columns, .catalog-row { display: grid; grid-template-columns: minmax(108px, 1.3fr) minmax(86px, 1fr) 38px; gap: 7px; align-items: center; }
.catalog-columns { flex: 0 0 34px; padding: 0 12px; border-bottom: 1px solid var(--line); color: #73859a; background: #f5f8fc; font-size: 10px; font-weight: 850; }
.catalog-columns span:last-child { text-align: right; }
.catalog-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bcd7f3 transparent; }
.catalog-row { min-height: 52px; padding: 8px 0; border-bottom: 1px solid #e5edf5; }
.catalog-row.featured { margin: 0 -6px; padding-inline: 6px; background: linear-gradient(90deg, #eef7ff, transparent); }
.catalog-row > span:first-child { min-width: 0; }
.catalog-row b, .catalog-row small { display: block; }
.catalog-row b { color: var(--navy); font-size: 13px; }
.catalog-row small { overflow: hidden; margin-top: 2px; color: #657a91; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-row > span:nth-child(2) { color: #586d84; font-size: 10px; line-height: 1.35; }
.catalog-row > strong { color: var(--blue); font-size: 13px; text-align: right; }
.catalog-footer { flex: 0 0 auto; padding: 9px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.catalog-footer p { margin: 0 0 7px; color: #8b99a9; font-size: 8px; line-height: 1.35; text-align: center; }
.catalog-footer a { min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; color: #fff; background: var(--green); font-size: 12px; font-weight: 850; }
.catalog-footer a span { font-size: 15px; }

@media (max-height: 700px) {
  .topbar { height: 56px; }
  .home-screen { height: calc(100dvh - 56px); gap: 8px; padding-top: 10px; padding-bottom: 7px; }
  .hero { padding-top: 12px; border-radius: 15px; }
  .eyebrow { margin-bottom: 4px; }
  h1 { font-size: clamp(27px, 8vw, 35px); }
  .hero-copy { margin: 6px 0 8px; }
  .trust-row { padding: 7px 5px; }
  .section-head { margin-bottom: 6px; }
  .products { min-height: 0; }
  .product-grid { gap: 5px; }
  .catalog-button { min-height: 34px; padding: 6px 9px; font-size: 9px; }
  .product-card { gap: 3px; padding: 2px 5px 2px 0; border-radius: 10px; }
  .vial-visual { flex-basis: 44%; height: 100%; min-height: 58px; transform: scale(1.07); }
  .product-info b { margin-top: 5px; padding: 4px 7px; }
  .home-screen { grid-template-rows: auto minmax(0, 3fr) minmax(0, 2fr) auto; }
  .coa-promo { min-height: 0; grid-template-columns: 42% 1fr; gap: 9px; padding: 6px; }
  .coa-preview { height: 100%; }
  .coa-copy > small { font-size: 7px; }
  .coa-copy > strong { margin-bottom: 4px; font-size: 16px; }
  .coa-copy > p { margin-bottom: 5px; font-size: 7px; }
  .purity-callout { padding: 5px 7px; }
  .purity-callout b { font-size: 24px; }
  .purity-callout span { font-size: 8px; }
  .whatsapp-button { min-height: 60px; }
  .drawer-head { flex-basis: 56px; }
}

@media (max-width: 350px) {
  .home-screen { padding-left: 12px; padding-right: 12px; }
  .hero { padding-left: 13px; padding-right: 13px; }
  .trust-row { margin-left: -13px; margin-right: -13px; }
  .product-card { gap: 3px; }
  .vial-visual { flex-basis: 42%; }
  .product-info small { font-size: 6.5px; }
}

@media (min-width: 600px) {
  .app-shell { border-radius: 20px; }
  body { padding: 18px 0; }
  .app-shell { height: calc(100dvh - 36px); min-height: 0; }
  .home-screen { height: calc(100dvh - 98px); }
}

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