/* NeutriLux storefront */
:root {
  --bg: #f3f4f6;
  --bg-alt: #e6e8ec;
  --panel: #ffffff;
  --ink: #0f1115;
  --ink-2: #2a2e36;
  --muted: #61697a;
  --line: #d4d7dd;
  --dark: #0f1115;
  --dark-line: #2b2f37;
  --dark-muted: #a3a9b5;
  --accent: #f2b632;
  --ok: #1f7a4d;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font: 500 15px/1 var(--body);
  text-decoration: none; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #2a2e36; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--bg); }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--bg-alt); border-color: var(--line); color: var(--muted); cursor: default; }
.link { text-underline-offset: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(243,244,246,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.wordmark { font: 600 29px/1 var(--body); letter-spacing: -0.01em; color: #1d2a6b; padding-top: 10px; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .sun { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); width: 16px; height: 12px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 220px 1fr 260px; gap: 32px; align-items: center; margin-top: 40px; }
.stats { display: grid; gap: 0; }
.stat { border-top: 1.5px solid var(--ink); padding: 14px 0 22px; }
.stat b { display: block; font: 500 32px/1.1 var(--display); }
.stat span { font-size: 14px; color: var(--muted); }
.hero-img { background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 5/4; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; }
.hero-copy p { font-size: 17px; color: var(--ink-2); margin-bottom: 24px; }
.hero-copy .btns { display: grid; gap: 12px; justify-items: start; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2, .section h2 { font-size: clamp(34px, 5vw, 52px); }
.section-head p { margin-top: 14px; max-width: 560px; color: var(--muted); font-size: 17px; }

/* Product cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.section:not(.alt) .card { background: var(--panel); }
.card .media { overflow: hidden; background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 20px; }
.card .media img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font: 500 19px/1.3 var(--body); }
.card .blurb { color: var(--muted); font-size: 15px; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font-size: 18px; }
.price small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.card .btn { margin-top: 14px; align-self: start; }
.card.small .media { aspect-ratio: 1/1; }
.card.small h3 { font-size: 16px; }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.badge.soon::before { background: #9aa1ad; }
.badge.soon { color: var(--muted); }

/* Spec section */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spec-grid > div > p { color: var(--dark-muted); font-size: 17px; margin: 18px 0 28px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--dark-line); vertical-align: top; }
.compare thead th { border-top: 0; color: #fff; font-weight: 500; font-family: var(--display); font-size: 18px; }
.compare tbody th { color: var(--dark-muted); font-weight: 400; width: 34%; }
.spec-img { background: #fff; padding: 20px; }
.spec-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Feature split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.split .img { overflow: hidden; background: #fff; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; padding: 24px; }
.split .img img { width: 100%; height: 100%; object-fit: contain; }
.split p.lead { color: var(--muted); font-size: 17px; margin: 18px 0 32px; }
.features { display: grid; gap: 0; margin-bottom: 32px; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature b { font-weight: 500; font-size: 17px; }
.feature span { color: var(--muted); font-size: 15px; }

/* About strip */
.about-strip { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.about-strip p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 24px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 28px 0 80px; align-items: start; }
.gallery .main { overflow: hidden; background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 28px; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { width: 88px; height: 88px; background: #fff; border: 1.5px solid transparent; padding: 6px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { position: sticky; top: 100px; }
.buybox .brandline { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.buybox h1 { font-size: clamp(30px, 3.4vw, 40px); }
.buybox .price { font-size: 26px; margin: 18px 0 6px; }
.buybox .ship { margin: 6px 0 24px; }
.buybox .intro { color: var(--ink-2); margin: 24px 0; }
.buybox .fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.assure { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.assure li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.assure li span { color: var(--muted); text-align: right; }
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.specs th { width: 36%; font-weight: 400; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Text pages */
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.contact-card { background: var(--panel); padding: 28px; }
.contact-card h2 { font-size: 20px; margin-bottom: 12px; }
.contact-card p { color: var(--ink-2); }

.todo { background: #fff3c4; color: #7a5600; padding: 1px 6px; font-size: .92em; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 72px 0 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font: 500 14px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); margin: 0 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: #e6e8ec; font-size: 15px; }
.foot-grid a:hover { text-decoration: underline; }
.foot-brand p { color: var(--dark-muted); font-size: 15px; margin-top: 16px; max-width: 320px; }
.foot-brand .wordmark { color: #fff; }
.foot-brand img { height: 36px; filter: brightness(0) invert(1); }
.foot-contact { margin-top: 18px; font-size: 15px; color: #e6e8ec; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--dark-line); margin-top: 56px; padding-top: 24px; font-size: 14px; color: var(--dark-muted); }

/* Placeholder image (until real photos are added) */
.ph { width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9aa1ad; font-size: 13px; text-align: center; }
.ph svg { width: 42%; max-width: 180px; height: auto; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; order: 2; }
  .hero-img { order: 1; }
  .hero-copy { order: 3; }
  .spec-grid, .split, .about-strip, .pdp { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .split .img { aspect-ratio: 4/3; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; margin-left: auto; }
  .header-right { display: none; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .feature { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Blend near-white photo backgrounds into the white image boxes */
.card .media img, .hero-img img, .split .img img, .gallery .main img, .spec-img img, .thumbs img { mix-blend-mode: multiply; }
