/* H2 Pure Life — Hydro Gen detail page
 * Page-specific CSS layered on top of base.css.
 * Self-contained: does not depend on a shared machine-detail.css.
 */

/* Light cream-stone background hint */
:root {
  --hg-cream: #FBFAF6;
  --hg-teal-wash: rgba(0, 230, 204, 0.04);
}

/* Shared section subhead — italic Cormorant, ink-soft, matches Nova page convention */
.hg-specs__sub,
.hg-ladder__sub,
.hg-box__sub,
.hg-spec-table__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 18px auto 0;
}

/* ------------------------------------------------------------------ */
/* 2. Hero — split layout. Breadcrumb (.product-crumbs) and tinted     */
/* background (.product-hero) come from the shared rules in base.css.  */
/* ------------------------------------------------------------------ */
.hg-hero {
  /* shared bg/padding handled by .product-hero on the same element */
}
.hg-hero__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hg-hero__text { max-width: 560px; }
.hg-hero__h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 400;
}
.hg-hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 52ch;
}
.hg-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hg-hero__price-amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.hg-hero__price-pay {
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.hg-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}
/* .hg-hero__media — visual styling (aspect-ratio, border-radius, shadow,
   object-fit) comes from the shared .product-hero__media / .product-hero__img
   classes in base.css. This page-specific rule only carries the mobile
   layout choice (image first, above the text column). */
@media (max-width: 900px) {
  .hg-hero__inner { grid-template-columns: 1fr; }
  /* Break grid min-content propagation. Without min-width: 0 the grid items
     expand to satisfy the buy-block button's white-space: nowrap, forcing
     the 1fr track wider than the viewport and clipping inside .product-hero. */
  .hg-hero__text,
  .hg-hero__media { min-width: 0; }
  .hg-hero__media { order: -1; }
}
@media (max-width: 560px) {
  .hg-hero__ctas .btn { white-space: normal; line-height: 1.3; }
}

/* ------------------------------------------------------------------ */
/* 4. Four headline specs                                             */
/* ------------------------------------------------------------------ */
.hg-specs-grid { background: var(--white); }
.hg-specs__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.hg-specs__head h2 em { color: var(--teal-readable); }
.hg-specs__panel {
  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);
}
.hg-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hg-spec {
  padding: clamp(28px, 3.6vw, 44px) clamp(16px, 2vw, 28px);
  text-align: center;
  border-right: 1px solid var(--line);
}
.hg-spec:last-child { border-right: 0; }
.hg-spec__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.hg-spec__num em { color: var(--teal-readable); font-style: italic; }
.hg-spec__pct {
  font-size: 0.55em;
  color: var(--teal-readable);
  margin-left: 2px;
}
.hg-spec__label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 800px) {
  .hg-specs { grid-template-columns: 1fr 1fr; }
  .hg-spec { border-right: 0; border-bottom: 1px solid var(--line); }
  .hg-spec:nth-child(odd) { border-right: 1px solid var(--line); }
  .hg-spec:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .hg-specs { grid-template-columns: 1fr; }
  .hg-spec { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .hg-spec:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ */
/* 5. Range ladder                                                     */
/* ------------------------------------------------------------------ */
.hg-ladder .section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.hg-ladder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.hg-rung {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease), border-color var(--tx) var(--ease);
}
a.hg-rung:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(10, 31, 31, 0.25);
  border-color: var(--teal-deep);
}
.hg-rung--current {
  border-left: 4px solid var(--teal);
  background: var(--white);
  box-shadow: 0 20px 40px -28px rgba(10, 31, 31, 0.18);
}
.hg-rung--feature { border-color: var(--teal-deep); }
.hg-rung__indicator {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-readable);
  font-weight: 500;
  margin: 0 0 12px;
}
.hg-rung__badge {
  position: absolute;
  top: -14px;
  left: 26px;
  font-size: 0.72rem;
}
.hg-rung__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 12px;
}
.hg-rung__name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}
.hg-rung__flow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal-readable);
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.hg-rung__pitch {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 22px;
  flex: 1 1 auto;
}
.hg-rung__price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 16px;
}
.hg-rung__cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal-readable);
  letter-spacing: 0.02em;
}
.hg-rung__cta--current { color: var(--ink-mute); font-style: italic; }
@media (max-width: 800px) {
  .hg-ladder__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 6. What's in the box                                               */
/* ------------------------------------------------------------------ */
.hg-box .section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.hg-box__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hg-box__item {
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.hg-box__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--teal-readable);
  margin: 0 0 12px;
  font-weight: 400;
}
.hg-box__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.hg-box__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .hg-box__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hg-box__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 7. Full spec table                                                 */
/* ------------------------------------------------------------------ */
.hg-spec-table .section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.hg-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
.hg-table tbody { border-bottom: 1px solid var(--line); }
.hg-table tbody:last-child { border-bottom: 0; }
.hg-table th[colspan="2"] {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: left;
  padding: 22px 28px 14px;
  color: var(--ink);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
}
.hg-table th[scope="row"] {
  width: 32%;
  text-align: left;
  vertical-align: top;
  padding: 16px 28px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
}
.hg-table td {
  padding: 16px 28px;
  vertical-align: top;
  color: var(--ink-soft);
  line-height: 1.55;
}
.hg-table tbody tr:not(:first-child) th[scope="row"],
.hg-table tbody tr:not(:first-child) td {
  border-top: 1px solid var(--line);
}
.hg-spec-table__note {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 22px 28px;
  background: var(--hg-teal-wash);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--teal-ink);
  line-height: 1.6;
  text-align: left;
  font-style: normal;
}
.hg-spec-table__note strong { font-weight: 700; color: var(--ink); }
.hg-spec-table__note a { color: var(--teal-readable); text-decoration: underline; }

@media (max-width: 700px) {
  .hg-table { min-width: 0; }
  .hg-table th[scope="row"], .hg-table td {
    display: block;
    width: 100%;
    padding: 8px 22px;
  }
  .hg-table th[scope="row"] { padding-top: 18px; color: var(--ink-mute); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .hg-table td { padding-bottom: 18px; }
  .hg-table tbody tr:not(:first-child) th[scope="row"] { border-top: 1px solid var(--line); }
  .hg-table tbody tr:not(:first-child) td { border-top: 0; }
  .hg-table th[colspan="2"] { padding: 18px 22px 12px; }
}

/* ------------------------------------------------------------------ */
/* 8. Editorial                                                        */
/* ------------------------------------------------------------------ */
.hg-editorial {
  background: var(--hg-cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hg-editorial .container-narrow { text-align: left; }
.hg-editorial__h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 32px;
  line-height: 1.1;
}
.hg-editorial__body p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 1.1em;
}
.hg-editorial__sig {
  font-family: var(--font-sans);
  font-size: 0.9rem !important;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 28px !important;
}

/* ------------------------------------------------------------------ */
/* 9. FAQ accordion                                                    */
/* ------------------------------------------------------------------ */
.hg-faq .section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.hg-faq__list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hg-faq__item {
  border-bottom: 1px solid var(--line);
}
.hg-faq__item:last-child { border-bottom: 0; }
.hg-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: var(--ink);
  transition: background-color var(--tx) var(--ease);
}
.hg-faq__item summary::-webkit-details-marker { display: none; }
.hg-faq__item summary:hover { background: var(--cream); }
.hg-faq__item summary:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: -2px; }
.hg-faq__q {
  font-size: 1rem;
  line-height: 1.4;
}
.hg-faq__chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform var(--tx) var(--ease), border-color var(--tx) var(--ease);
  margin-bottom: 4px;
}
.hg-faq__item[open] {
  background: var(--cream);
  border-left: 3px solid var(--teal);
}
.hg-faq__item[open] > summary { background: transparent; }
.hg-faq__item[open] .hg-faq__chevron {
  transform: rotate(-135deg);
  border-color: var(--teal-readable);
  margin-bottom: -2px;
}
.hg-faq__a {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.hg-faq__a a { color: var(--teal-readable); text-decoration: underline; }
.hg-faq__a a:hover { color: var(--teal-deep); }

@media (max-width: 560px) {
  .hg-faq__item summary { padding: 18px 20px; gap: 16px; }
  .hg-faq__a { padding: 0 20px 22px; }
}

/* ------------------------------------------------------------------ */
/* 10. Invitation                                                     */
/* ------------------------------------------------------------------ */
.hg-invite {
  background: var(--cream);
  padding: clamp(72px, 11vw, 140px) 0;
  text-align: center;
}
.hg-invite__inner { max-width: 760px; }
.hg-invite h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0 0 22px;
}
.hg-invite__sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-soft);
  margin: 0 0 32px;
  line-height: 1.6;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.hg-invite__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
