/* ==========================================================================
   NAD+ The One — shared stylesheet
   Design tokens mirror the source build (Tailwind v4 oklch palette).
   ========================================================================== */

:root {
  --background: oklch(96.2% 0.014 106);
  --foreground: oklch(28% 0.038 168);
  --card: oklch(98.5% 0.008 106);
  --primary: oklch(34% 0.052 170);
  --primary-foreground: oklch(97% 0.012 106);
  --secondary: oklch(91.5% 0.018 122);
  --muted: oklch(93% 0.012 106);
  --muted-foreground: oklch(52% 0.02 160);
  --accent: oklch(88% 0.028 128);
  --border: oklch(87% 0.014 120);
  --radius: 0.25rem;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; letter-spacing: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- Type primitives ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

h1.display { font-size: clamp(2.75rem, 7vw, 6rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; }
h3.display { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.lede { font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); max-width: 42rem; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.8125rem; }
.tiny { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.section--tint { background: color-mix(in oklab, var(--secondary) 40%, transparent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: color-mix(in oklab, var(--primary) 88%, #000); }

.btn--outline { border: 1px solid var(--foreground); color: var(--foreground); }
.btn--outline:hover { background: var(--foreground); color: var(--primary-foreground); }

.btn--block { width: 100%; padding-block: 1.1rem; }
.btn--sm { padding: 0.65rem 1.4rem; font-size: 0.6875rem; }

.link-underline { border-bottom: 1px solid color-mix(in oklab, var(--foreground) 35%, transparent); padding-bottom: 2px; transition: border-color 0.2s ease; }
.link-underline:hover { border-color: var(--foreground); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 20px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.cta-label--sm { display: none; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--foreground); }

.nav-toggle { display: none; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--foreground); position: relative; transition: background 0.2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--foreground); transition: transform 0.25s ease; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header__logo img { height: 17px; }
  .cta-label--lg { display: none; }
  .cta-label--sm { display: inline; }
  .site-header__cta { padding: 0.6rem 1.15rem; font-size: 0.625rem; }
  .site-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--background);
    border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a { width: 100%; padding-block: 0.95rem; border-bottom: 1px solid color-mix(in oklab, var(--border) 45%, transparent); }
}

/* ---------- Hero (home) ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--background) 8%, color-mix(in oklab, var(--background) 72%, transparent) 42%, transparent 68%);
}
.hero__inner { min-height: min(84vh, 720px); display: flex; align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero__copy { max-width: 34rem; }
.hero__copy p.lede { margin-top: 1.75rem; max-width: 27rem; }
.hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero__rating { display: flex; align-items: center; gap: 0.75rem; margin-top: 2.5rem; }

/* Mobile: stack the banner — product shot on top, copy below on solid ground.
   No wash over the image, so the pack reads at full contrast. */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { position: static; z-index: auto; }
  .hero__media::after { content: none; }
  .hero__media picture { height: auto; }
  .hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
  .hero__inner { min-height: 0; display: block; padding-block: 2rem 2.75rem; }
  .hero__copy { max-width: none; }
  .hero__copy p.lede { margin-top: 1.25rem; max-width: none; font-size: 1rem; }
  .hero__actions { margin-top: 1.75rem; gap: 1rem; }
  .hero__actions .btn { width: 100%; }
  .hero__rating { margin-top: 1.75rem; }
}

/* ---------- Stars ---------- */

.stars { display: inline-flex; gap: 3px; color: var(--primary); }
.stars svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------- Section heading block ---------- */

.section-head { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; align-items: start; }
}
.section-head h2 { max-width: 32rem; }

/* ---------- Pillars ---------- */

.pillars { display: grid; gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 2.25rem 0; }
@media (min-width: 800px) {
  .pillar { padding: 2.5rem; border-left: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
  .pillar:first-child { padding-left: 0; border-left: 0; }
}
.pillar + .pillar { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
@media (min-width: 800px) { .pillar + .pillar { border-top: 0; } }
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.7; }

/* ---------- Image duo ---------- */

.duo { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item { background: var(--card); border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); border-radius: var(--radius); overflow: hidden; }
.duo__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo__caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ---------- Pricing ---------- */

.tiers { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 800px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.tier__price { font-family: var(--font-display); font-size: 2.75rem; font-weight: 300; line-height: 1.1; margin-top: 0.85rem; }
.tier__unit { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.35rem; }
.tier__note { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ---------- Testimonials / cards ---------- */

.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.cards { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.card h3 { font-size: 1rem; font-weight: 400; }
.card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.75; flex: 1; }
.card__by { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-foreground); padding-top: 0.85rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; } }
.site-footer img { height: 20px; width: auto; }
.site-footer p { font-size: 0.875rem; color: var(--muted-foreground); max-width: 20rem; margin-top: 1.25rem; }
.site-footer h4 { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1.1rem; font-weight: 400; }
.site-footer li + li { margin-top: 0.65rem; }
.site-footer li a, .site-footer li span { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s ease; }
.site-footer li a:hover { color: var(--foreground); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.socials a {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 999px;
  color: var(--muted-foreground);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.socials a:hover { color: var(--foreground); border-color: var(--foreground); }
.socials svg { width: 13px; height: 13px; fill: currentColor; }

.site-footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Product page
   ========================================================================== */

.breadcrumb { padding-block: 1.5rem; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); }

.product-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* Gallery */
.gallery__main {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.gallery__thumbs button {
  flex: 0 0 auto;
  width: 5rem; height: 5rem;
  padding: 0;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--foreground); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) { .gallery { position: sticky; top: 96px; } }

/* Product detail column */
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.product__title { margin-bottom: 1rem; }
.product__intro { font-size: 0.9375rem; line-height: 1.8; color: var(--muted-foreground); }

.supply { margin-top: 2.25rem; display: grid; gap: 0.75rem; }
.supply__option {
  display: grid;
  grid-template-columns: 1.15rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.supply__option:hover { border-color: color-mix(in oklab, var(--foreground) 45%, transparent); }
.supply__option[aria-checked="true"] { border-color: var(--foreground); background: color-mix(in oklab, var(--secondary) 35%, var(--card)); }
.supply__dot { width: 1.15rem; height: 1.15rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--foreground) 45%, transparent); display: grid; place-items: center; }
.supply__option[aria-checked="true"] .supply__dot::after { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--foreground); }
.supply__label { font-size: 0.9375rem; }
.supply__sub { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.2rem; }
.supply__price { text-align: right; font-size: 1rem; }
.supply__each { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.2rem; }

.buybar { margin-top: 2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.buybar__total { font-family: var(--font-display); font-size: 2.25rem; font-weight: 300; }
.product-grid .btn--block { margin-top: 1.25rem; }
.product__ship { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }

/* Spec table */
.specs { margin-top: 2.5rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.specs div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid color-mix(in oklab, var(--border) 45%, transparent); font-size: 0.875rem; }
.specs dt { color: var(--muted-foreground); }

/* Accordion */
.accordion { margin-top: 2.5rem; }
.accordion__item { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.accordion__item:first-child { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
}
.accordion__icon { font-size: 1rem; line-height: 1; color: var(--muted-foreground); }
.accordion__panel { display: none; padding-bottom: 1.5rem; font-size: 0.875rem; line-height: 1.8; color: var(--muted-foreground); max-width: 34rem; }
.accordion__panel.is-open { display: block; }

/* Ritual */
.ritual { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .ritual { grid-template-columns: 1fr 1fr; } }
.ritual img { width: 100%; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); aspect-ratio: 4 / 3; object-fit: cover; }

/* Review summary */
.review-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1.5rem 2.5rem; }

/* ==========================================================================
   Science page
   ========================================================================== */

.science-hero { padding-block: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.science-hero h1 { margin-block: 1.5rem 2rem; max-width: 20ch; }

.stack { display: grid; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.stack__row { display: grid; gap: 0.75rem 3rem; padding-block: 2.25rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
@media (min-width: 900px) { .stack__row { grid-template-columns: 18rem minmax(0, 1fr); } }
.stack__row h3 { font-size: 1.25rem; font-weight: 400; font-family: var(--font-display); }
.stack__row p { font-size: 0.9375rem; line-height: 1.8; color: var(--muted-foreground); max-width: 44rem; }

.grid-2 { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.cta-band { text-align: center; padding-block: clamp(4rem, 8vw, 6rem); }
.cta-band h2 { margin-bottom: 2rem; }
