/* H2 Pure Life — Homepage
 * Page-specific styles for the rebuilt index.html.
 * Loaded after base.css / nav.css / footer.css.
 */

:root {
  --hp-teal-tint: #E8F5F3;
  --hp-card-border: #D4E8E5;
}

/* ============================================================
   Shared homepage primitives
   ============================================================ */
.hp-section { padding: clamp(64px, 8vw, 96px) 0; }
.hp-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.hp-section__h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.005em;
}
.hp-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal-readable);
  margin: 0 0 14px;
}

/* Buttons (homepage flavour — distinct from base .btn so the visual is precise) */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color var(--tx) var(--ease),
              border-color var(--tx) var(--ease),
              color var(--tx) var(--ease),
              transform var(--tx) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.hp-btn--teal { background: var(--teal); color: var(--dark); border-color: var(--teal); }
.hp-btn--teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--dark); transform: translateY(-1px); }
.hp-btn--outline-light { background: transparent; color: var(--white); border-color: var(--teal); }
.hp-btn--outline-light:hover { background: rgba(0, 230, 204, 0.10); color: var(--teal); }
.hp-btn--outline { background: transparent; color: var(--teal-readable); border-color: var(--teal); }
.hp-btn--outline:hover { background: var(--hp-teal-tint); color: var(--teal-ink); }

/* ============================================================
   1. HERO
   ============================================================ */
.hp-hero {
  position: relative;
  min-height: 88vh;
  background-image: url('/assets/img/pages/home/hero.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 16vh;
  overflow: hidden;
}
.hp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 31, 31, 0.78) 0%,
    rgba(10, 31, 31, 0.55) 35%,
    rgba(10, 31, 31, 0.15) 60%,
    transparent 75%);
  pointer-events: none;
}
.hp-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  z-index: 1;
}
.hp-hero__inner > * { max-width: 36ch; }
.hp-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  max-width: none;
  text-shadow: 0 1px 14px rgba(10, 31, 31, 0.6);
}
.hp-hero__h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 14px rgba(10, 31, 31, 0.45);
}
/* Narrow the headline alone — wraps earlier, stays in the left column.
   Overrides the shared 36ch from `.hp-hero__inner > *` (equal specificity, later in source). */
.hp-hero__h1 { max-width: 18ch; }
.hp-hero__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.hp-hero__trust {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 0;
}
.hp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .hp-hero {
    min-height: 78vh;
    align-items: flex-end;
    padding: 32px 0 48px;
    background-position: center top;
  }
  .hp-hero__scrim {
    background: linear-gradient(0deg,
      rgba(10, 31, 31, 0.88) 0%,
      rgba(10, 31, 31, 0.55) 50%,
      rgba(10, 31, 31, 0.10) 100%);
  }
  .hp-hero__inner > * { max-width: none; }
  .hp-hero__h1 { font-size: clamp(30px, 7.5vw, 42px); }
  .hp-hero__cta .hp-btn { flex: 1 1 auto; }
}

/* ============================================================
   2. CREDENTIALS STRIP
   ============================================================ */
.hp-credentials {
  background: var(--hp-teal-tint);
  padding: 28px var(--gutter);
}
.hp-credentials__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hp-credentials__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 31, 31, 0.7);
  font-weight: 500;
  line-height: 1.5;
}
.hp-credentials__item:not(:last-child)::after {
  content: "·";
  margin: 0 14px 0 18px;
  color: rgba(10, 31, 31, 0.4);
  font-weight: 400;
  letter-spacing: 0;
}
.hp-credentials__tick {
  width: 10px;
  height: 10px;
  color: var(--teal-deep);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .hp-credentials { padding: 22px 16px; }
  .hp-credentials__item:not(:last-child)::after { margin: 0 8px 0 12px; }
}

/* ============================================================
   3. TESTIMONIALS
   Tiles use the shared .story-* component in base.css
   (poster-facade video grid, also used on Real People).
   ============================================================ */

/* ============================================================
   5. THE RANGE
   ============================================================ */
.hp-range__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  overflow: visible;
}
.hp-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  border-radius: 8px;
  background: var(--dark);
  text-decoration: none;
  color: var(--white);
  isolation: isolate;
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease);
}
.hp-pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -16px rgba(10, 31, 31, 0.45);
  color: var(--white);
}
.hp-pcard__img {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-2);
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
  z-index: -2;
}
.hp-pcard:hover .hp-pcard__img { transform: scale(1.04); }
.hp-pcard__scrim {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    rgba(10, 31, 31, 0.75) 100%);
  z-index: -1;
}
.hp-pcard__body {
  margin-top: auto;
  padding: 28px;
}
.hp-pcard__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 14px;
}
.hp-pcard__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 8px;
}
.hp-pcard__tag {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}
.hp-pcard__price {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}
.hp-pcard__klarna {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 4px 0 18px;
}
.hp-pcard__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  transition: letter-spacing var(--tx) var(--ease), color var(--tx) var(--ease);
}
.hp-pcard:hover .hp-pcard__cta { letter-spacing: 0.22em; color: var(--teal); }
.hp-pcard--feature {
  min-height: 660px;
  margin-top: -40px;
}
.hp-pcard__pill {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  z-index: 3;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hp-range__grid { grid-template-columns: 1fr; gap: 32px; }
  .hp-pcard { min-height: 520px; }
  .hp-pcard--feature { min-height: 560px; margin-top: 0; }
  .hp-pcard__pill { top: -14px; }
}

/* Included-with-every-machine bar */
.hp-included {
  list-style: none;
  margin: 56px 0 0;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  background: var(--white);
}
.hp-included li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.hp-included li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-deep);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .hp-included {
    flex-direction: column;
    gap: 12px;
    padding: 22px 16px;
    align-items: flex-start;
  }
}

/* ============================================================
   6. STAT BANNER
   ============================================================ */
.hp-stats {
  background: var(--dark);
  padding: 60px 0;
  color: var(--white);
}
.hp-stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hp-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}
.hp-stat:last-child { border-right: 0; }
.hp-stat__num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 14px;
}
.hp-stat__label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .hp-stats { padding: 40px 0; }
  .hp-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .hp-stat { border-right: 0; padding: 0 8px; }
  .hp-stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.10); }
  .hp-stat__num { font-size: 40px; }
}

/* ============================================================
   7. EIGHT FIELDS — research grid (ported from previous homepage)
   ============================================================ */
.hp-research { background: var(--white); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.research-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: var(--dark);
  isolation: isolate;
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease);
}
.research-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--bg, linear-gradient(135deg, var(--dark-2), var(--dark-3)));
  z-index: -2;
  transition: transform 600ms var(--ease);
}
.research-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,31,0.05) 0%, rgba(10,31,31,0.35) 50%, rgba(10,31,31,0.85) 100%);
  z-index: -1;
}
.research-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  color: var(--white);
}
.research-tile:hover::before { transform: scale(1.06); }
.research-tile h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--white);
}
.research-tile p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.research-tile__arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9rem;
}
.research-cta {
  text-align: center;
  margin-top: clamp(32px, 4vw, 48px);
}
@media (max-width: 1080px) {
  .research-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .research-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .research-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   8. FOUNDER
   ============================================================ */
.hp-founder { background: var(--white); text-align: center; }
.hp-founder__eyebrow { display: block; }
.hp-founder__portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
}
.hp-founder__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  color: var(--dark);
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
.hp-founder__attr {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 24px 0 0;
}
.hp-founder__cta { margin: 32px 0 0; }
.hp-textlink {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--tx) var(--ease);
}
.hp-textlink:hover { color: var(--dark); border-bottom-color: var(--dark); }

/* ============================================================
   9. FINAL INVITATION
   ============================================================ */
.hp-invite {
  position: relative;
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  background-image:
    linear-gradient(rgba(10, 31, 31, 0.72), rgba(10, 31, 31, 0.5)),
    url('/assets/img/pages/home/teal-bubbles.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}
.hp-invite__inner { max-width: 720px; margin: 0 auto; }
.hp-invite__h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 20px;
}
.hp-invite__sub {
  font-family: var(--font-sans);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}
.hp-invite__cta { margin: 0; }
