/* H2 Pure Life — Hydro Nova 3000 product page
 * Page-specific CSS layered on top of base.css.
 * LIGHT page: white and stone sections, one dark band for the close.
 * Section backgrounds: white = var(--white), stone = var(--cream) (#F5F5F3).
 * Spec table, FAQ accordion and box cards are ported from hydro-nova.css.
 * Range cards and gallery come from base.css.
 */

:root {
  --teal-wash: #EAF7F4;
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.n3-section { padding: clamp(72px, 10vw, 130px) 0; background: var(--white); }
.n3-section--stone { background: var(--cream); }
.n3-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); }
.n3-head h2 { margin-bottom: 0.3em; }
.n3-head__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 640px;
}
.n3-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.n3-link {
  font-weight: 500;
  color: var(--teal-readable);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ==========================================================================
   1. Hero (light)
   ========================================================================== */
.n3-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.n3-hero h1 { margin: 0 0 0.35em; }
.n3-hero__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 40ch;
}
.n3-hero__body { color: var(--ink-soft); max-width: 52ch; margin: 0 0 26px; }
.n3-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 22px;
}
.n3-price__figure {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.n3-price__stock {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal-readable);
}
.n3-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 24px;
}
/* Order button + note (email fallback until card checkout is live) */
.n3-order { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.n3-order__note { margin: 0; max-width: 36ch; font-size: 0.82rem; line-height: 1.5; color: var(--ink-mute); }
.n3-order__note a { color: inherit; border-bottom: 1px solid currentColor; }
.n3-smallprint { font-size: 0.88rem; line-height: 1.6; color: var(--ink-mute); margin: 0; }
.n3-smallprint p { margin: 0 0 4px; }
.n3-smallprint a { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.n3-smallprint a:hover { color: var(--teal-readable); border-color: currentColor; }

/* Out-of-stock scaffold (2026 Shopping rule: grey out, never hide).
   To mark the Nova 3000 out of stock: add class "btn--oos" and
   aria-disabled="true" to BOTH Order buttons, change the hero stock line to
   "Out of stock", and set the JSON-LD availability to
   https://schema.org/OutOfStock (feed must match). */
.btn--oos {
  background: #B8C0BF;
  color: #56605E;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* Four-stat row */
.n3-stats {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.n3-stats li { margin: 0; }
.n3-stats__figure {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 6px;
}
.n3-stats__label { font-size: 0.86rem; color: var(--ink-mute); line-height: 1.45; }

/* ==========================================================================
   3. Two flow settings
   ========================================================================== */
.n3-flow__body { margin-bottom: clamp(36px, 5vw, 56px); }
.n3-flow__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 980px;
  margin: 0 auto;
}
.n3-flow-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 44px);
}
.n3-flow-card--full { background: var(--dark); border-color: var(--teal-deep); color: rgba(255,255,255,0.82); }
.n3-flow-card__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-readable);
  margin: 0 0 10px;
}
.n3-flow-card--full .n3-flow-card__label { color: var(--teal); }
.n3-flow-card__figure {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 16px;
}
.n3-flow-card__figure span { font-size: 0.45em; color: var(--ink-mute); margin-left: 4px; }
.n3-flow-card--full .n3-flow-card__figure { color: var(--white); }
.n3-flow-card--full .n3-flow-card__figure span { color: rgba(255,255,255,0.6); }
.n3-flow-card p:last-child { margin: 0; line-height: 1.65; }

/* ==========================================================================
   4. Continuous operation / 9. Safety — detail grids
   ========================================================================== */
.n3-grid {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.n3-grid li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.n3-grid h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.n3-grid h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal-deep);
  margin-bottom: 16px;
}
.n3-grid p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }

/* ==========================================================================
   5. Who it's for
   ========================================================================== */
.n3-who__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.n3-who__col { display: flex; flex-direction: column; }
.n3-who__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  margin: 0 0 28px;
}
.n3-who__media img { width: 100%; height: 100%; object-fit: cover; }
.n3-who h3 { margin: 0 0 14px; }
.n3-who__col > p { color: var(--ink-soft); line-height: 1.7; }
.n3-ticks { list-style: none; margin: 4px 0 24px; padding: 0; }
.n3-ticks li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink);
}
.n3-ticks li:last-child { border-bottom: 0; }
.n3-ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal-deep);
  border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.n3-roi {
  background: var(--cream);
  border-left: 2px solid var(--teal-deep);
  border-radius: 4px var(--radius-lg) var(--radius-lg) 4px;
  padding: 22px 24px;
  margin: 0 0 22px;
}
.n3-roi p { margin: 0; font-size: 0.97rem; line-height: 1.65; color: var(--ink-soft); }
.n3-roi em { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); }
.n3-practice-line { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ==========================================================================
   6. The science
   ========================================================================== */
.n3-science__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.n3-science__copy p { color: var(--ink-soft); line-height: 1.75; }
.n3-science__copy em { color: inherit; }
.n3-cite { font-size: 0.86rem; color: var(--ink-mute); font-style: italic; }
.n3-cite a { color: var(--ink-mute); border-bottom: 1px solid var(--line); }
.n3-cite a:hover { color: var(--teal-readable); }
.n3-science__media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
}
.n3-science__media img { width: 100%; height: 100%; object-fit: cover; }
.n3-points {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  counter-reset: n3-point;
}
.n3-points li {
  counter-increment: n3-point;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.n3-points li::before {
  content: "0" counter(n3-point);
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal-readable);
  margin-bottom: 10px;
}
.n3-points h3 { font-size: 1.3rem; margin: 0 0 8px; }
.n3-points p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }
.n3-callout {
  margin: clamp(40px, 5vw, 56px) 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
}
.n3-callout h3 { font-size: 1.4rem; margin: 0 0 10px; }
.n3-callout p { color: var(--ink-soft); line-height: 1.7; }
.n3-callout p:last-child { margin: 0; }

/* ==========================================================================
   7. How it works
   ========================================================================== */
.n3-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  counter-reset: n3-step;
}
.n3-steps li {
  counter-increment: n3-step;
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.n3-steps li::before {
  content: counter(n3-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--teal-deep);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--teal-readable);
  margin-bottom: 16px;
}
.n3-steps h3 { font-size: 1.25rem; margin: 0 0 8px; }
.n3-steps p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.n3-steps__note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* PEM cell diagram (inline SVG) */
.n3-pem {
  max-width: 920px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 36px);
}
.n3-pem svg { width: 100%; height: auto; }
.n3-pem__svg--tall { display: none; max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   8. Gallery — base.css styles; white band on this page
   ========================================================================== */
.n3-gallery { background: var(--white); }
.n3-gallery .gallery__lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  color: var(--ink-soft);
}

/* ==========================================================================
   9. Safety
   ========================================================================== */
.n3-safety__quality {
  max-width: 820px;
  margin: clamp(36px, 4vw, 48px) auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
}
.n3-safety__note {
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* ==========================================================================
   10. Features
   ========================================================================== */
.n3-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.n3-features li {
  margin: 0;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.n3-features svg {
  width: 30px;
  height: 30px;
  color: var(--teal-readable);
  margin-bottom: 16px;
}
.n3-features h3 { font-size: 1.25rem; margin: 0 0 6px; }
.n3-features p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }

/* ==========================================================================
   11. Full specification (ported from hydro-nova.css)
   ========================================================================== */
.n3-spec__wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px -8px rgba(10, 31, 31, 0.08);
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-readable);
  padding: 26px 28px 8px;
  text-align: left;
  background: var(--white);
  caption-side: top;
  border-bottom: 1px solid var(--line);
}
.spec-table tbody tr { border-bottom: 1px solid var(--line); }
.spec-table tbody tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td {
  padding: 18px 28px;
  text-align: left;
  vertical-align: top;
  font-size: 0.96rem;
  line-height: 1.55;
}
.spec-table th {
  width: 38%;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
}
.spec-table td { color: var(--ink-soft); }
.spec-table__group-head th {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-readable);
  background: var(--white);
  padding: 28px 28px 14px;
  border-top: 2px solid var(--teal-deep);
  width: auto;
}
.spec-table__group-head:first-child th { border-top: 0; }
.spec-callout {
  padding: 22px 28px;
  background: var(--teal-wash);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--teal-ink);
  margin: 0;
}
.spec-callout a { color: var(--teal-readable); font-weight: 500; }

/* ==========================================================================
   12. What's in the box (ported from hydro-nova.css; white cards on stone)
   ========================================================================== */
.n3-box__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 7 cards: 4 + 3 */
  gap: clamp(20px, 2.4vw, 32px);
}
.box-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.box-item__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--teal-readable);
  margin: 0 0 12px;
  font-weight: 400;
}
.box-item__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.box-item__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   13. The range — cards from base.css
   ========================================================================== */
.n3-range__note {
  max-width: 760px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   14. FAQ (ported from hydro-nova.css)
   ========================================================================== */
.n3-faq__list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  transition: color var(--tx) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-readable); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--teal-readable);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__body {
  padding: 0 48px 26px 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}
.faq-item__body p { margin: 0 0 1em; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   15. Close (the one dark band)
   ========================================================================== */
.n3-close {
  position: relative;
  background: var(--dark);
  color: rgba(255,255,255,0.84);
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
  overflow: hidden;
}
.n3-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 110%, rgba(0, 230, 204, 0.14), transparent 70%);
  pointer-events: none;
}
.n3-close .container { position: relative; max-width: 820px; }
.n3-close h2 { color: var(--white); }
.n3-close h2 em { color: var(--teal); }
.n3-close__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto 30px;
}
.n3-close .n3-price { justify-content: center; }
.n3-close .n3-price__figure { color: var(--white); }
.n3-close .n3-price__stock { color: var(--teal); }
.n3-close .n3-ctas { justify-content: center; margin: 0 0 22px; }
.n3-close .n3-ctas { align-items: flex-start; }
.n3-close .n3-order { align-items: center; text-align: center; }
.n3-close .n3-order__note { color: rgba(255, 255, 255, 0.65); }
.n3-close__small { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin: 0; }
.n3-close__small a { color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.3); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .n3-steps { grid-template-columns: repeat(2, 1fr); }
  .n3-box__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .n3-hero__grid { grid-template-columns: 1fr; }
  .n3-hero__grid .product-hero__media { order: -1; }
  .n3-hero .product-hero__media { aspect-ratio: 4 / 5; max-width: 440px; }   /* keep the whole machine in frame (base switches to 4:3) */
  .n3-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .n3-who__grid,
  .n3-science__grid { grid-template-columns: 1fr; }
  .n3-science__media { aspect-ratio: 16 / 9; }
  .n3-grid,
  .n3-points,
  .n3-features,
  .n3-box__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 8px 22px; }
  .spec-table th { padding-top: 18px; background: var(--white); border: 0; }
  .spec-table td { padding-bottom: 18px; }
  .spec-table__group-head th { padding: 26px 22px 10px; }
}
@media (max-width: 640px) {
  .n3-flow__grid,
  .n3-grid,
  .n3-points,
  .n3-steps,
  .n3-features,
  .n3-box__grid { grid-template-columns: 1fr; }
  .n3-pem__svg--wide { display: none; }
  .n3-pem__svg--tall { display: block; }
  .n3-ctas { flex-direction: column; align-items: stretch; }
  .n3-ctas .btn { white-space: normal; text-align: center; }
  .n3-order { align-items: stretch; }
  .n3-order__note { max-width: none; }
  .n3-close .n3-ctas { align-items: stretch; }
}
