/* BoundlessRx site styles. Brand tokens from the brand board. */
:root {
  --midnight: #0B1F3B;
  --teal: #1E7A78;
  --vitality: #7CC576;
  --sand: #F4F1EA;
  --mist: #D7E3E8;
  --ink: #0B1F3B;
  --body: #3D4B5C;
  --muted: #6B7889;
  --rule: #E2E4DE;
  --paper: #FBFAF6;
  --white: #FFFFFF;
  --teal-deep: #155E5C;
  --grad: linear-gradient(90deg, #1E7A78, #7CC576);
  --radius: 18px;
  --shadow: 0 18px 48px rgba(11, 31, 59, .10);
  --head: "Montserrat", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--body); background: var(--paper); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 40ch; }
sup { font-size: .6em; line-height: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.center { text-align: center; }
.center p.lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 600; font-size: 15.5px; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30, 122, 120, .28); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11, 31, 59, .2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--midnight); }
.btn-light:hover { background: var(--sand); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.logo .mark { width: 44px; height: 16px; margin-left: 4px; margin-bottom: 1px; }
.logo .word { font-family: var(--head); font-weight: 600; font-size: 25px; letter-spacing: -.035em; color: var(--midnight); }
.logo .word b { font-weight: 600; color: var(--vitality); }
.logo.on-dark .word { color: #fff; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px; font-size: 14.5px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; min-height: min(780px, 92vh); display: flex; align-items: center; background: var(--sand) url(../img/scene-sunrise.svg) center bottom / cover no-repeat; margin-top: -77px; padding-top: 77px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251, 250, 246, .78) 0%, rgba(251, 250, 246, .35) 45%, rgba(251, 250, 246, 0) 70%); pointer-events: none; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, rgba(251,250,246,0), var(--paper)); z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 180px; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 22px; }
.hero .ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Category tiles */
.tiles { position: relative; z-index: 3; margin-top: -110px; }
.tiles .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border-radius: var(--radius); padding: 26px 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; border: 1px solid rgba(11, 31, 59, .05); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(11, 31, 59, .14); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--teal); }
.tile .cat { font-size: 13px; font-weight: 600; color: var(--teal); letter-spacing: .02em; }
.tile h3 { font-size: 22px; }
.tile p { font-size: 15px; color: var(--muted); }
.tile .more { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.tile .price { color: var(--muted); font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--rule); }
.step .n { font-family: var(--head); font-weight: 600; font-size: 14px; color: #fff; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* Split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.panel { border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 5 / 4; }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--vitality) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--ink); font-weight: 600; }

/* Product visuals (CSS packaging mockups) */
.pack-stage { container-type: size; position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 0 8% 12%; }
.box { position: relative; width: 31%; aspect-ratio: 3 / 4.3; background: #fff; border-radius: 6px; box-shadow: 0 30px 50px rgba(11, 31, 59, .22), inset -10px 0 18px rgba(11, 31, 59, .05); padding: 9% 9%; display: flex; flex-direction: column; overflow: hidden; }
.box .bm { width: 34%; }
.box .bw { font-family: var(--head); font-weight: 600; font-size: 2.6cqw; color: var(--midnight); letter-spacing: -.02em; }
.box .bw b { color: var(--vitality); font-weight: 600; }
.box .bn { font-family: var(--head); font-weight: 600; color: var(--midnight); font-size: 3.3cqw; margin-top: 18%; line-height: 1.1; }
.box .bd { font-size: 2cqw; color: var(--muted); margin-top: 6%; line-height: 1.35; }
.box .wave { position: absolute; left: -10%; right: -10%; bottom: -4%; height: 42%; }
.box.tall { transform: translateY(-6%); }
.vial { position: relative; width: 15%; aspect-ratio: 1 / 2.3; }
.vial .cap { height: 18%; background: linear-gradient(90deg, #9aa3ab, #e7eaec 45%, #9aa3ab); border-radius: 4px 4px 2px 2px; margin: 0 8%; }
.vial .neck { height: 6%; background: rgba(215, 227, 232, .9); margin: 0 22%; }
.vial .body { height: 76%; background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .95) 40%, rgba(215, 227, 232, .8)); border-radius: 6px 6px 12px 12px; box-shadow: 0 20px 30px rgba(11, 31, 59, .18); position: relative; overflow: hidden; }
.vial .lbl { position: absolute; left: 0; right: 0; top: 22%; bottom: 20%; background: #fff; padding: 12% 10%; border-top: 3px solid var(--teal); }
.vial .lbl i { display: block; font-style: normal; font-family: var(--head); font-weight: 600; font-size: clamp(6px, .65vw, 9px); color: var(--midnight); line-height: 1.2; }
.vial .lbl small { display: block; font-size: clamp(5px, .5vw, 7px); color: var(--muted); margin-top: 6%; }
.tube { position: relative; width: 16%; aspect-ratio: 1 / 3.2; }
.tube .cap { height: 14%; background: var(--midnight); border-radius: 3px 3px 0 0; margin: 0 16%; }
.tube .body { height: 86%; background: linear-gradient(90deg, #ececE6, #fff 40%, #e4e6df); clip-path: polygon(0 0, 100% 0, 104% 100%, -4% 100%); border-radius: 2px; position: relative; box-shadow: 0 20px 30px rgba(11, 31, 59, .18); padding: 30% 12%; }
.tube .body i { display: block; font-style: normal; font-family: var(--head); font-weight: 600; font-size: clamp(7px, .75vw, 10px); color: var(--midnight); writing-mode: vertical-rl; transform: rotate(180deg); }

/* Product page */
.p-hero { padding: 56px 0 80px; background: linear-gradient(180deg, var(--paper), var(--sand)); }
.p-hero .split { grid-template-columns: 1fr 1fr; gap: 56px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal); background: rgba(30, 122, 120, .09); border-radius: 999px; padding: 6px 12px; }
.p-hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 16px; }
.p-hero .lead { margin-top: 18px; }
.pricebox { margin-top: 30px; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--rule); max-width: 460px; }
.pricebox .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pricebox .amt { font-family: var(--head); font-weight: 600; font-size: 30px; color: var(--ink); }
.pricebox .amt small { font-size: 15px; color: var(--muted); font-weight: 500; }
.pricebox ul { list-style: none; margin: 16px 0 20px; display: grid; gap: 8px; font-size: 14.5px; }
.pricebox li { display: flex; gap: 10px; }
.pricebox li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.pricebox .btn { width: 100%; justify-content: center; }
.pricebox .note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.facts div { padding: 22px 24px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.facts dd { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 16.5px; margin-top: 4px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--rule); }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 17.5px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--body); font-size: 15.5px; }
.isi { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--teal); border-radius: 12px; padding: 28px 30px; font-size: 14.5px; }
.isi h3 { font-size: 17px; margin-bottom: 12px; }
.isi h4 { font-size: 14.5px; margin: 16px 0 6px; }
.isi ul { padding-left: 18px; display: grid; gap: 6px; }
.isi .boxed { border: 1.5px solid var(--midnight); padding: 14px 16px; border-radius: 8px; margin: 4px 0 8px; }

/* Bands */
.band-dark { background: var(--midnight) url(../img/scene-dawn-dark.svg) center bottom / cover no-repeat; color: #C9D6E2; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-sand { background: var(--sand); }
.band-mist { background: var(--mist); }
.cta-band { padding: 110px 0; text-align: center; }
.cta-band .lead { color: #C9D6E2; margin: 18px auto 30px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust > div { display: flex; gap: 14px; align-items: flex-start; }
.trust svg { flex: none; color: var(--teal); }
.trust b { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.trust span { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--midnight); color: #9FB0C2; padding: 72px 0 40px; font-size: 14px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .tagline { margin-top: 16px; max-width: 30ch; }
.site-footer .legal { padding-top: 28px; display: grid; gap: 10px; font-size: 12.5px; line-height: 1.6; color: #8193A7; }
.site-footer .legal p:first-child { color: #C9D6E2; }

/* Intake */
.intake { max-width: 680px; margin: 0 auto; padding: 48px 0 96px; }
.progress { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .35s; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 10px 0 34px; }
.q { display: none; }
.q.on { display: block; animation: up .35s ease; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q h2 { font-size: clamp(26px, 3vw, 34px); }
.q .sub { margin-top: 10px; color: var(--muted); }
.opts { display: grid; gap: 12px; margin-top: 28px; }
.opt { display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; border: 1.5px solid var(--rule); border-radius: 14px; padding: 18px 20px; transition: border-color .15s, box-shadow .15s; width: 100%; color: var(--ink); }
.opt:hover { border-color: rgba(30, 122, 120, .5); }
.opt.sel { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30, 122, 120, .12); }
.opt b { display: block; font-weight: 600; }
.opt span { font-size: 14px; color: var(--muted); }
.opt .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; color: var(--teal); flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.fields .full { grid-column: 1 / -1; }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
label.f input, label.f select { font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink); outline: none; width: 100%; }
label.f input:focus, label.f select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30, 122, 120, .12); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; margin-top: 14px; }
.chk input { width: 20px; height: 20px; accent-color: var(--teal); margin-top: 2px; flex: none; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 12px; }
.err { color: #B3261E; font-size: 14px; margin-top: 14px; min-height: 20px; }
.result { background: #fff; border-radius: var(--radius); border: 1px solid var(--rule); padding: 30px; margin-top: 26px; }
.result.warn { border-left: 4px solid #C98A1B; }
.result.ok { border-left: 4px solid var(--vitality); }
.demo-note { font-size: 12.5px; color: var(--muted); background: var(--sand); border-radius: 10px; padding: 10px 14px; margin-bottom: 28px; }

/* Article (learn) */
.article { max-width: 740px; margin: 0 auto; }
.article h2 { font-size: 28px; margin: 48px 0 14px; }
.article p { margin-top: 14px; }
.article ul { margin: 14px 0 0 20px; display: grid; gap: 8px; }

/* Reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 24px; border-bottom: 1px solid var(--rule); transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .menu-btn { display: inline-flex; }
  .tiles .grid, .cols3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .p-hero .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > :first-child { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .trust { grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { min-height: 640px; background-position: 70% bottom; }
  .hero::after { background: linear-gradient(180deg, rgba(251, 250, 246, .85) 0%, rgba(251, 250, 246, .5) 55%, rgba(251, 250, 246, 0) 80%); }
  .steps, .trust, .fields { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .btn { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* Checkout + order */
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.co-h { font-size: 17px; margin-top: 34px; }
.co-sum { position: sticky; top: 100px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.co-item { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.co-thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--mist) url(../img/scene-mist.svg) center / cover; display: grid; place-items: center; flex: none; }
.co-thumb img { width: 38px; }
.co-lines { display: grid; gap: 10px; margin-top: 16px; font-size: 14.5px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines dt { color: var(--muted); }
.co-lines dd { color: var(--ink); font-weight: 500; }
.co-lines .tot { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 4px; font-weight: 600; }
.co-lines .tot dt, .co-lines .tot dd { color: var(--ink); font-weight: 600; font-size: 16px; }
.charge-note { margin-top: 14px; background: rgba(124, 197, 118, .14); border: 1px solid rgba(124, 197, 118, .5); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; color: var(--ink); }
.timeline { list-style: none; margin-top: 36px; border-left: 2px solid var(--mist); padding-left: 28px; display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--mist); }
.timeline li.done::before { background: var(--vitality); border-color: var(--vitality); }
.timeline li.now::before { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(30, 122, 120, .15); }
.timeline b { display: block; color: var(--ink); font-weight: 600; }
.timeline span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } }
@media (max-width: 600px) { .q .opts[style*="repeat(3"] { grid-template-columns: 1fr !important; } }
.opt:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30, 122, 120, .12); }
