/* ==========================================================================
   Earth Therapy — homepage
   Loaded on the homepage only (layout/theme.liquid). Everything is scoped to
   .template-index, so no other template can be affected.

   Direction: botanical luxury, modern clinical. Forest and ivory carry the
   page, sage is the quiet third, clay and brass are accents. One continuous
   editorial story: sections change ground colour and height, but not
   structure — no boxes, no card chrome, hairlines instead of shadows.
   ========================================================================== */

/* ==========================================================================
   Premium editorial direction: warm neutrals, theme fonts (Montserrat + Inter).
   Homepage only. The palette tokens are re-pointed here so every rule below
   that reads --et-forest, --et-ivory etc. picks up the new colours.
   ========================================================================== */

.template-index {
  --et-ivory: #f7f5f0;
  --et-sage: #efede7;
  --et-forest: #1e211f;
  --et-charcoal: #1e211f;
  --et-clay: #8b6f5a;
  --et-brass: #8b6f5a;
  --et-sage-accent: #8c9a82;
}

.template-index .et-main,
.template-index .et-announcement,
.template-index .et-header {
  --et-bg-alt: #efede7;
  --et-border: #e5e1d9;
  --et-text-muted: #6e716c;
  --et-hairline: 1px solid #e5e1d9;
}

.template-index .et-announcement {
  --et-announcement-bg: #1e211f;
  background: #1e211f;
}

/* In dark mode the near-black bar melted into the page, so it takes the
   brand blue the rest of the site's announcement bar already uses. */
:root[data-theme='dark'] .template-index .et-announcement {
  --et-announcement-bg: #3e5c6e;
  background: #3e5c6e;
}

/* -------------------------------------------------------------- dark theme */

/* The homepage repoints its own palette above (ivory/sage/forest) rather
   than reading the shared foundation tokens, so it needs its own dark
   variant of that same palette — otherwise the toggle would have no effect
   here at all. Sections built with var(--et-bg)/var(--et-bg-alt)/
   var(--et-text) already follow from this automatically; only the handful
   of sections below with their own literal colours need a direct override.
   The header stays ivory-on-forest in both themes, since that pairing is
   part of the fixed brand mark, not a light-mode default. */
:root[data-theme='dark'] .template-index {
  --et-ivory: #1a1c1f;
  --et-sage: #23262a;
  --et-charcoal: #ececec;
}

:root[data-theme='dark'] .template-index .et-main {
  --et-bg-alt: #24272b;
  --et-surface: #23262a;
  --et-border: #35383d;
  --et-border-strong: #565d66;
  --et-text-muted: #a3a8ae;
  --et-accent-ink: #d9c7a0;
  --et-button-bg: #ececec;
  --et-button-text: #16181c;
  --et-hairline: 1px solid #35383d;
}

:root[data-theme='dark'] .template-index .et-why {
  background: #1e2023;
}

:root[data-theme='dark'] .template-index .et-why__strands {
  color: #f7f5f0;
}

:root[data-theme='dark'] .template-index .et-why__text {
  color: #a3a8ae;
}

:root[data-theme='dark'] .template-index .et-statement {
  background: #16181b;
}

:root[data-theme='dark'] .template-index .et-statement__fact {
  background: linear-gradient(165deg, color-mix(in srgb, var(--fc2) 22%, #23262a) 0%, #23262a 55%);
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .template-index .et-statement__line {
  background: linear-gradient(100deg, #f2f2f2 15%, #c9ab8f 45%, #9db296 75%, #f2f2f2 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme='dark'] .template-index .et-statement__heading {
  filter: drop-shadow(1px 1px 0 #3a3630) drop-shadow(2px 2px 0 #443f38) drop-shadow(3px 3px 0 #4e4841)
    drop-shadow(4px 4px 0 #59524a) drop-shadow(0 26px 26px rgb(0 0 0 / 0.4));
}

:root[data-theme='dark'] .template-index .et-statement__btn {
  background: #f2f2f2;
  color: #16181b;
  box-shadow: 0 5px 0 #000, 0 22px 30px -14px rgb(0 0 0 / 0.6);
}

/* Only the plain, tone-coloured fronts need re-darkened text here — a
   photo front already sets its own white text over the image's dark
   overlay, in both themes, and must not be overridden back to near-black. */
:root[data-theme='dark'] .template-index .et-ingr__face--front:not(.et-ingr__face--photo) {
  color: #17181a;
}

:root[data-theme='dark'] .template-index .et-ingr__motif {
  background: rgb(23 24 26 / 0.12);
  color: rgb(23 24 26 / 0.75);
}

:root[data-theme='dark'] .template-index .et-statement__eyebrow,
:root[data-theme='dark'] .template-index .et-statement__text,
:root[data-theme='dark'] .template-index .et-statement__fact-text {
  color: #a3a8ae;
}

:root[data-theme='dark'] .template-index .et-statement__eyebrow::before {
  background: linear-gradient(#ececec, transparent);
}

:root[data-theme='dark'] .template-index .et-statement__fact-title {
  color: color-mix(in srgb, var(--fc1) 65%, #ececec);
}

/* Underlined text link with a moving arrow, used across the new sections. */
.template-index .et-link-line {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-sm);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: var(--et-fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.template-index .et-link-line::after {
  content: '\2192';
  transition: transform var(--et-dur) var(--et-ease);
}

.template-index .et-link-line:hover::after {
  transform: translateX(4px);
}

.template-index .et-link-line:focus-visible {
  outline: 2px solid var(--et-text);
  outline-offset: 4px;
}

/* Header: shrinks and frosts once the page has scrolled. */
.template-index .et-header {
  transition: background var(--et-dur-slow) var(--et-ease), box-shadow var(--et-dur-slow) var(--et-ease);
}

.template-index .et-header.is-stuck {
  background: rgb(247 245 240 / 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e5e1d9;
  box-shadow: 0 1px 12px rgb(30 33 31 / 0.05);
}

/* Bestsellers: calmer heading. */
.template-index .et-featured .et-section__title-group h2 {
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* -------------------------------------------------------------- palette */

.template-index .et-main,
.template-index .et-announcement,
.template-index .et-header {
  --et-bg: var(--et-ivory);
  --et-bg-alt: color-mix(in srgb, var(--et-ivory) 78%, var(--et-sage));
  --et-surface: #fff;
  --et-text: var(--et-charcoal);
  --et-text-rgb: 27, 33, 30;
  --et-text-muted: color-mix(in srgb, var(--et-charcoal) 70%, var(--et-ivory));
  --et-border: rgba(27, 33, 30, 0.12);
  --et-border-strong: color-mix(in srgb, var(--et-charcoal) 50%, var(--et-ivory));
  --et-accent: var(--et-sage);
  --et-accent-ink: var(--et-forest);
  --et-accent-soft: color-mix(in srgb, var(--et-sage) 55%, var(--et-ivory));
  --et-button-bg: var(--et-forest);
  --et-button-text: var(--et-ivory);
  --et-hairline: 1px solid rgba(27, 33, 30, 0.14);
}

.template-index .et-main {
  background: var(--et-ivory);
  color: var(--et-charcoal);
}

/* The bars above the story take its colours, so the page reads as one. */
.template-index .et-announcement {
  --et-announcement-bg: var(--et-forest);
  background: var(--et-forest);
  /* Fixed light ink: the bar stays dark in both themes, while --et-ivory
     flips to near-black in dark mode and made the text disappear. */
  color: #f7f5f0;
}

.template-index .et-header {
  background: var(--et-ivory);
}

.template-index .et-header.is-stuck {
  background: color-mix(in srgb, var(--et-ivory) 92%, transparent);
}

.template-index .et-footer {
  margin-top: 0;
}

.template-index .et-btn--primary:hover {
  --_bg: var(--et-charcoal);
  --_bd: var(--et-charcoal);
}

.template-index .et-btn--outline {
  --_bd: color-mix(in srgb, var(--et-charcoal) 40%, transparent);
}

/* ------------------------------------------------------ section rhythm */

.template-index .et-main .et-section {
  padding-block: clamp(var(--et-space-2xl), 1.5rem + 4.5vw, var(--et-space-4xl));
}

.template-index .et-main .et-section--tight {
  padding-block: clamp(var(--et-space-2xl), 1.5rem + 4vw, var(--et-space-3xl));
}

.template-index .et-main .et-container {
  max-width: var(--et-max-width);
}

/* Section headings: a rule-led eyebrow and a light, large title. */
.template-index .et-main .et-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--et-space-sm);
  color: var(--et-text-muted);
  letter-spacing: var(--et-ls-nav);
}

.template-index .et-main .et-eyebrow::before {
  content: '';
  width: var(--et-space-lg);
  height: 1px;
  background: currentColor;
}

.template-index .et-main .et-section__header {
  align-items: flex-end;
  margin-bottom: clamp(var(--et-space-xl), 1rem + 3vw, var(--et-space-3xl));
}

.template-index .et-main .et-section__title-group h2,
.template-index .et-main .et-feature__heading,
.template-index .et-main .et-ph__heading,
.template-index .et-main .et-faq__heading {
  margin-top: var(--et-space-sm);
  max-width: 18ch;
  font-size: var(--et-h2);
  font-weight: 400;
  line-height: var(--et-lh-tight);
  letter-spacing: -0.02em;
}

.template-index .et-main .et-section__description {
  max-width: 44ch;
  font-size: var(--et-fs-lg);
}

.template-index .et-main .et-section__header--center {
  align-items: flex-start;
  text-align: left;
}

.template-index .et-main .et-section__header--center .et-section__title-group {
  margin-inline: 0;
}

.template-index .et-main .et-link-cta {
  font-size: var(--et-fs-xs);
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
}

/* Mobile: tighter rhythm, smaller display type, never compressed desktop. */
@media (max-width: 749px) {
  .template-index .et-main .et-section {
    padding-block: var(--et-space-2xl);
  }

  .template-index .et-main .et-section__title-group h2,
  .template-index .et-main .et-feature__heading,
  .template-index .et-main .et-ph__heading,
  .template-index .et-main .et-faq__heading {
    font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.4rem);
  }

  .template-index .et-main .et-section__description {
    font-size: var(--et-fs-md);
  }
}

/* --------------------------------------------------- product shelves */

/* The carousel layout becomes a controlled shelf: four cards visible on
   wide screens, the next one always peeking so it reads as scrollable. */
.template-index .et-featured .et-scroller {
  grid-auto-columns: 72%;
  gap: var(--et-space-md);
  padding-bottom: 0;
}

@media (min-width: 750px) {
  .template-index .et-featured .et-scroller {
    grid-auto-columns: calc((100% - 2 * var(--et-grid-gap)) / 3.25);
    gap: var(--et-grid-gap);
  }
}

@media (min-width: 990px) {
  .template-index .et-featured .et-scroller {
    grid-auto-columns: calc((100% - 3 * var(--et-grid-gap)) / 4.25);
  }
}

.template-index .et-featured__footer {
  margin-top: var(--et-space-xl);
}

/* Featured range on sage, full-bleed behind the grid. */
.template-index [id$='__featured-hydra'] {
  background: var(--et-sage);
  --et-bg: var(--et-sage);
  --et-bg-alt: color-mix(in srgb, var(--et-sage) 72%, var(--et-ivory));
}

/* ----------------------------------------------------------- concerns */

/* Problem, then solution: an editorial index rather than tiles. Copy is the
   merchant's own; the images and video on each block stay available for
   other templates but are not needed here. */
.template-index .et-concerns .et-container {
  display: grid;
  gap: var(--et-space-2xl);
  align-items: start;
}

@media (min-width: 990px) {
  .template-index .et-concerns .et-container {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--et-space-4xl);
  }

  .template-index .et-concerns .et-section__header {
    position: sticky;
    top: calc(var(--et-header-offset) + var(--et-space-2xl));
    margin-bottom: 0;
  }
}

.template-index .et-concerns__grid {
  display: block;
  counter-reset: concern;
  border-top: var(--et-hairline);
}

.template-index .et-concern {
  counter-increment: concern;
  border-bottom: var(--et-hairline);
}

.template-index .et-concern__media {
  display: none;
}

.template-index .et-concern__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--et-space-sm) var(--et-space-lg);
  align-items: baseline;
  padding-block: var(--et-space-lg);
  transition: padding var(--et-dur) var(--et-ease);
}

.template-index .et-concern__link::before {
  content: counter(concern, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-xs);
  letter-spacing: var(--et-ls-nav);
  color: var(--et-text-muted);
  font-variant-numeric: tabular-nums;
}

.template-index .et-concern__body {
  display: contents;
}

.template-index .et-concern__title {
  grid-column: 2;
  font-family: var(--et-font-heading);
  font-size: var(--et-h2);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: var(--et-lh-tight);
}

.template-index .et-concern__text {
  grid-column: 2;
  color: var(--et-text-muted);
}

.template-index .et-concern__count {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: var(--et-fs-2xs);
  letter-spacing: var(--et-ls-nav);
  text-transform: uppercase;
  color: var(--et-text-muted);
}

@media (hover: hover) {
  .template-index .et-concern__link:hover {
    padding-inline: var(--et-space-md);
    background: var(--et-accent-soft);
  }
}

.template-index .et-concern__link:focus-visible {
  outline: 2px solid var(--et-accent-ink);
  outline-offset: -2px;
}

@media (max-width: 749px) {
  .template-index .et-concern__link {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-index .et-concern__link::before,
  .template-index .et-concern__count {
    display: none;
  }

  .template-index .et-concern__title,
  .template-index .et-concern__text {
    grid-column: 1;
  }

  .template-index .et-concern__title {
    font-size: var(--et-h3);
  }
}

/* ------------------------------------------------- dark story sections */

/* pH science and the brand story sit on forest. Text, tick marks and
   controls are recoloured here rather than in the sections themselves. */
.template-index [id$='__ph-science'],
.template-index [id$='__sustainability'] {
  --et-text: var(--et-ivory);
  --et-text-rgb: 247, 243, 236;
  --et-text-muted: color-mix(in srgb, var(--et-ivory) 78%, var(--et-forest));
  --et-border: rgba(247, 243, 236, 0.22);
  --et-accent-ink: var(--et-brass);
  --et-button-bg: var(--et-ivory);
  --et-button-text: var(--et-forest);
  --et-bg-alt: color-mix(in srgb, var(--et-forest) 82%, var(--et-ivory));
  background: var(--et-forest);
  color: var(--et-ivory);
}

.template-index [id$='__ph-science'] .et-btn--primary:hover,
.template-index [id$='__sustainability'] .et-btn--primary:hover {
  --_bg: var(--et-sage);
  --_bd: var(--et-sage);
}

.template-index [id$='__ph-science'] .et-ph__scale {
  background: transparent;
  border: var(--et-hairline);
  border-radius: 0;
}

.template-index [id$='__ph-science'] .et-ph__band {
  border-color: var(--et-ivory);
  box-shadow: 0 0 0 3px var(--et-forest);
}

.template-index [id$='__ph-science'] .et-ph__track {
  border-radius: 0;
}

.template-index [id$='__ph-science'] .et-ph__callout strong {
  color: var(--et-brass);
  font-weight: 300;
  font-size: var(--et-h2);
}

.template-index [id$='__sustainability'] .et-badge,
.template-index [id$='__ph-science'] .et-badge {
  background: transparent;
  border: 1px solid var(--et-border);
  color: var(--et-ivory);
}

/* --------------------------------------------------- ingredient story */

/* No photograph is required: with none set the copy takes a wide,
   centred measure and the ingredient names run as a quiet index. */
.template-index .et-feature__grid:not(:has(.et-feature__media)) {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 990px) {
  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__text {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: var(--et-space-4xl);
    align-items: start;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__text > .et-eyebrow,
  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__heading {
    grid-column: 1;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__tags,
  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__list,
  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__cta {
    grid-column: 2;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__heading {
    grid-row: 2;
    align-self: start;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__tags,
  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__list {
    grid-row: 3;
  }

  .template-index .et-feature__grid:not(:has(.et-feature__media)) .et-feature__cta {
    grid-row: 4;
    justify-self: start;
  }
}

.template-index .et-feature__media img {
  border-radius: 0;
}

.template-index .et-feature__body {
  font-size: var(--et-fs-lg);
}

.template-index .et-feature__tags ul {
  gap: 0;
  border-top: var(--et-hairline);
}

.template-index .et-feature__tags li {
  width: 100%;
  border-bottom: var(--et-hairline);
}

.template-index .et-feature__tags .et-badge {
  display: block;
  padding: var(--et-space-sm) 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--et-font-heading);
  font-size: var(--et-fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.template-index .et-feature__list li {
  padding-block: var(--et-space-xs);
  border-bottom: var(--et-hairline);
}

/* ----------------------------------------------------------- routine */

.template-index .et-routine {
  --et-bg: var(--et-sage);
  --et-bg-alt: color-mix(in srgb, var(--et-sage) 72%, var(--et-ivory));
}

.template-index .et-routine__step {
  gap: var(--et-space-lg);
}

.template-index .et-routine__step::after {
  display: none;
}

.template-index .et-routine__num {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--et-forest);
  font-size: var(--et-h1);
  font-weight: 300;
  line-height: 1;
}

.template-index .et-routine__head {
  align-items: baseline;
  gap: var(--et-space-md);
  padding-bottom: var(--et-space-md);
  border-bottom: var(--et-hairline);
}

.template-index .et-routine__label {
  font-size: var(--et-h4);
  font-weight: 500;
}

.template-index .et-routine__text {
  font-size: var(--et-fs-sm);
}

/* Steps climb: each starts a little lower, so the sequence reads as a path. */
@media (min-width: 990px) {
  .template-index .et-routine__step:nth-child(2) {
    margin-top: var(--et-space-2xl);
  }

  .template-index .et-routine__step:nth-child(3) {
    margin-top: var(--et-space-3xl);
  }
}

.template-index .et-routine__footer {
  justify-content: flex-start;
}

/* -------------------------------------------------------------- trust */

.template-index .et-usp {
  border-block: var(--et-hairline);
}

.template-index .et-usp--filled {
  background: transparent;
}

.template-index .et-usp__list {
  gap: var(--et-space-xl) var(--et-space-lg);
}

.template-index .et-usp__item {
  flex-direction: column;
  gap: var(--et-space-sm);
}

.template-index .et-usp__icon {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--et-brass);
}

.template-index .et-usp__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
}

.template-index .et-usp__title {
  font-size: var(--et-fs-md);
  font-weight: 500;
}

/* ---------------------------------------------------------------- FAQ */

.template-index .et-faq__list {
  border-top: var(--et-hairline);
}

.template-index .et-accordion {
  border-bottom: var(--et-hairline);
}

.template-index .et-accordion__summary {
  padding-block: var(--et-space-lg);
  font-size: var(--et-fs-lg);
  font-weight: 400;
}

/* --------------------------------------------------------- newsletter */

.template-index .et-signup {
  background: var(--et-sage);
  --et-bg: var(--et-sage);
}

.template-index .et-signup__title {
  max-width: 14ch;
  margin-top: var(--et-space-sm);
  font-size: var(--et-h1);
  font-weight: 300;
  line-height: var(--et-lh-display);
  letter-spacing: -0.03em;
}

.template-index .et-signup .et-input {
  background: #fff;
  border-color: transparent;
}

/* ------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  .template-index .et-concern__link,
  .template-index .et-showcase__arrow {
    transition: none;
  }
}

/* Hero: eyebrow and secondary button take the hero's own text colour. */
.template-index .et-hero .et-eyebrow {
  color: var(--et-hero-fg);
}

.template-index .et-hero .et-btn--outline {
  --_fg: var(--et-hero-fg);
  --_bd: color-mix(in srgb, var(--et-hero-fg) 55%, transparent);
}

.template-index .et-hero .et-btn--outline:hover {
  --_bg: var(--et-hero-fg);
  --_bd: var(--et-hero-fg);
  --_fg: var(--et-hero-bg);
}

/* Concerns take the page's own ground, not each range's tint. */
.template-index .et-concern {
  background: transparent;
  border-radius: 0;
}

.template-index .et-concern__link,
.template-index .et-concern__title {
  color: var(--et-text);
  border-radius: 0;
}

.template-index .et-concern__title {
  font-weight: 300;
}

/* Shelves start at the content edge, then scroll. */
.template-index .et-featured .et-scroller {
  scroll-padding-inline: var(--et-gutter);
}

.template-index .et-concern__link {
  background: transparent;
}

@media (hover: hover) {
  .template-index .et-concern__link:hover {
    background: color-mix(in srgb, var(--et-sage) 55%, var(--et-ivory));
  }
}

/* Calmer, firmer type and tighter shelves: less air, more product. */
.template-index .et-signup__title {
  font-size: var(--et-h2);
  font-weight: 400;
}

.template-index .et-main .et-section__header {
  margin-bottom: clamp(var(--et-space-lg), 1rem + 2vw, var(--et-space-2xl));
}

.template-index .et-routine__num {
  font-size: var(--et-h2);
  font-weight: 400;
}

@media (min-width: 990px) {
  .template-index .et-routine__step:nth-child(2),
  .template-index .et-routine__step:nth-child(3) {
    margin-top: 0;
  }
}

/* ------------------------------------------- professional refinements */

/* pH science: the scale sits in a framed panel, centred against the copy. */
.template-index [id$='__ph-science'] .et-ph__scale {
  padding: var(--et-space-2xl);
  background: color-mix(in srgb, var(--et-ivory) 4%, transparent);
}

.template-index [id$='__ph-science'] .et-ph__track {
  height: 14px;
}

.template-index [id$='__ph-science'] .et-ph__ticks,
.template-index [id$='__ph-science'] .et-ph__labels {
  margin-top: var(--et-space-md);
}

.template-index [id$='__ph-science'] .et-ph__callout {
  margin-top: var(--et-space-xl);
  padding-top: var(--et-space-xl);
}

.template-index [id$='__ph-science'] .et-ph__points {
  gap: 0;
  border-top: var(--et-hairline);
}

.template-index [id$='__ph-science'] .et-ph__points li {
  padding-block: var(--et-space-sm);
  border-bottom: var(--et-hairline);
}

/* Ingredients: the index runs in two columns so the section is not a
   single long, mostly empty list. */
@media (min-width: 750px) {
  .template-index .et-feature__tags ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--et-space-xl);
  }
}

.template-index .et-feature__tags li {
  width: auto;
}

/* Trust row: four equal, centred columns divided by hairlines. */
.template-index .et-usp {
  padding-block: var(--et-space-2xl);
}

.template-index .et-usp__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--et-space-xl) 0;
}

@media (min-width: 990px) {
  .template-index .et-usp__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.template-index .et-usp__item {
  align-items: center;
  padding-inline: var(--et-space-md);
  text-align: center;
}

@media (min-width: 990px) {
  .template-index .et-usp__item + .et-usp__item {
    border-left: var(--et-hairline);
  }
}

.template-index .et-usp__item > * {
  text-align: center;
}

/* Brand story: bullet points become a 2 x 2 grid. */
@media (min-width: 750px) {
  .template-index [id$='__sustainability'] .et-feature__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--et-space-xl);
  }
}

.template-index [id$='__sustainability'] .et-feature__text {
  align-self: center;
}

/* Reviews sit on sage so they read as a distinct band. */
.template-index [id$='__reviews'] {
  background: var(--et-sage);
}

.template-index [id$='__reviews'] .et-reviews__card {
  background: var(--et-ivory);
  border-color: transparent;
}

/* ------------------------------------------------ trust band: dark, icons in rings */

.template-index .et-usp,
.template-index .et-usp--filled {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--et-space-2xl), 1.5rem + 3vw, 4.5rem);
  border-block: 0;
  background: #1e211f;
  color: #f7f5f0;
}

.template-index .et-usp::before {
  content: '';
  position: absolute;
  inset: -40% 20% auto auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(140 154 130 / 0.22), transparent 65%);
  pointer-events: none;
}

.template-index .et-usp .et-container {
  position: relative;
}

.template-index .et-usp__item {
  gap: var(--et-space-md);
}

@media (min-width: 990px) {
  .template-index .et-usp__item + .et-usp__item {
    border-left: 1px solid rgb(247 243 236 / 0.14);
  }
}

.template-index .et-usp__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgb(247 243 236 / 0.3);
  border-radius: 50%;
  background: rgb(247 243 236 / 0.05);
  color: #d9c7a0;
  transition: background var(--et-dur) var(--et-ease), color var(--et-dur) var(--et-ease),
    transform var(--et-dur-slow) var(--et-ease), border-color var(--et-dur) var(--et-ease);
}

.template-index .et-usp__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
}

@media (hover: hover) {
  .template-index .et-usp__item:hover .et-usp__icon {
    background: #d9c7a0;
    border-color: #d9c7a0;
    color: #1e211f;
    transform: translateY(-4px);
  }
}

.template-index .et-usp__title {
  color: #f7f5f0;
  font-size: var(--et-fs-md);
  font-weight: 500;
}

.template-index .et-usp__text {
  color: rgb(247 243 236 / 0.68);
}

/* ================================================================
   Three-dimensional finish for the whole homepage.
   Depth is built from CSS 3D transforms and layered light: sections
   swing into place, cards sit above the page on soft layered shadows,
   and buttons press like real keys. assets/home-3d.js adds pointer
   tilt on hover-capable screens. Nothing here changes any content.
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* Sections and cards arrive from behind, tipping forward into place. */
  .template-index .et-reveal {
    transform: perspective(1200px) translate3d(0, 48px, -90px) rotateX(12deg);
    transform-origin: 50% 100%;
    transition: opacity 0.9s var(--et-ease), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .template-index .et-reveal.is-revealed {
    transform: none;
  }
}

/* Raised cards: a lit top edge, a soft contact shadow and a deep, blurred one. */
.template-index .et-card__media,
.template-index .et-showcase__media,
.template-index .et-coled__media {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 2px 4px rgb(30 33 31 / 0.06),
    0 26px 40px -22px rgb(30 33 31 / 0.32);
}

.template-index .et-reviews__card {
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.9) inset,
    0 2px 4px rgb(30 33 31 / 0.05),
    0 26px 44px -22px rgb(30 33 31 / 0.28);
}

.template-index .et-card,
.template-index .et-showcase__tile,
.template-index .et-coled__panel,
.template-index .et-reviews__card,
.template-index .et-journal__item,
.template-index .et-usp__item {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Buttons that press. */
.template-index .et-btn--primary,
.template-index .et-cta,
.template-index .et-ehero__btn--solid,
.template-index .et-fcta__btn {
  box-shadow: 0 4px 0 rgb(0 0 0 / 0.55), 0 18px 26px -12px rgb(30 33 31 / 0.45);
  transition: transform var(--et-dur) var(--et-ease), box-shadow var(--et-dur) var(--et-ease),
    background var(--et-dur) var(--et-ease), color var(--et-dur) var(--et-ease);
}

.template-index .et-btn--primary:hover,
.template-index .et-fcta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgb(0 0 0 / 0.55), 0 26px 32px -12px rgb(30 33 31 / 0.45);
}

.template-index .et-btn--primary:active,
.template-index .et-fcta__btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.55), 0 6px 10px -6px rgb(30 33 31 / 0.4);
}

/* Section headings carry a little extrusion so type feels physical. */
.template-index .et-section__title-group h2,
.template-index .et-why__heading,
.template-index .et-coled__heading,
.template-index .et-ingr__heading,
.template-index .et-igrid__heading {
  text-shadow: 1px 1px 0 rgb(30 33 31 / 0.08), 2px 3px 0 rgb(139 111 90 / 0.14), 0 18px 28px rgb(30 33 31 / 0.1);
}

/* The dark statement band: lit rows that lift on hover. */
.template-index .et-believe__row {
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .template-index .et-believe__row:hover {
    transform: translate3d(0, 0, 30px);
  }
}

/* Trust icons read as small polished discs. */
.template-index .et-usp__icon {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 14px 22px -10px rgb(0 0 0 / 0.55);
}
