/**
 * Stella product homepage — stella-home.css
 *
 * Interior Vintage palette applied as CSS custom properties.
 * Light is the default; dark overrides below.
 * Depends on site-palettes.css for --site-* tokens.
 *
 * Class prefix: sh- (Stella Home)
 */

/* ============================================================
   PALETTE TOKENS — light (default)
   ============================================================ */

body[data-page="home"] {
  /* Fable pass: v13 Interior Vintage paper system. Cream page, paper cards,
     Carmim primary, sage panels; no neon mint, no purple focus. */
  --sh-surface:          #FCF3EA;
  /* Coral toolbar (pre-logo default) with Minty light wordmark:
     cream letters #FCF3EA + gold accent #FBB94B on #EE583F. */
  --sh-header-bg:        #EE583F;
  --sh-header-deep:      #260613;
  --sh-carousel-tag-bg:  #232019;
  --sh-on-header:        #FFFAFA;
  --sh-on-header-muted:  #FFF9E6;
  --sh-header-active:    #FBB94B;
  --sh-on-header-active: #260613;
  --sh-accent:           #333333;
  /* Sage stands in for the old neon mint: rings, cue washes, quiet highlights */
  --sh-accent-bright:    #A4CCC4;
  --sh-glow:             rgba(159, 53, 11, 0.22);
  --sh-hero-headline-shadow: #EE583F;
  --sh-on-surface:       #333333;
  --sh-on-muted:         #6B5F56;
  --sh-on-subtle:        #93857A;
  /* v13 card paper instead of charcoal slabs on the cream page */
  --sh-card-fill:        #FFFAF3;
  --sh-card-border:      rgba(51, 51, 51, 0.16);
  --sh-card-soft:        #D7E8E4;
  --sh-pick-card-fill:   #35312D;
  --sh-on-card:          #333333;
  --sh-on-card-muted:    #6B5F56;
  --sh-on-card-accent:   #9F350B;
  --sh-on-card-meta:     #6B5F56;
  /* Poster scrims stay dark in both themes, so scrim text stays cream */
  --sh-on-scrim:         #FCF3EA;
  --sh-on-scrim-muted:   #E6D8C6;
  /* v13 outline chips: paper fill, thin ink outline, ink label */
  --sh-chip-fill:        #FFFDF8;
  --sh-on-chip:          #333333;
  --sh-chip-border:      rgba(51, 51, 51, 0.45);
  /* v13 speech-bubble recipe: ~10% coral mixed into the paper base */
  --sh-speech-fill:      color-mix(in srgb, #EE583F 10%, #FDF6EE);
  --sh-trust-fill:       #D7E8E4;
  --sh-on-trust:         #333333;
  --sh-on-trust-muted:   #55645F;
  --sh-primary:          #9F350B;
  --sh-on-primary:       #FFF9E6;
  --sh-primary-hover:    #B23F10;
  --sh-primary-pressed:  #862C08;
  --sh-secondary-border: #9F350B;
  --sh-secondary-hover:  rgba(159, 53, 11, 0.08);
  --sh-focus:            #9F350B;
  /* Homepage-scoped hero wash; research maps keep their own gradient */
  --site-hero-gradient:
    radial-gradient(ellipse 70% 55% at 78% 10%, rgba(238, 88, 63, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, #FCF3EA 0%, #F6E8D8 100%);
  --sh-font-geo:         "lavigne-display", "zenon", "Source Serif 4", Georgia, serif;
  --sh-font-ui:          "itc-avant-garde-gothic-pro", "Jost", system-ui, sans-serif;
  --sh-font-body:        "le-monde-livre-std", "Source Serif 4", Georgia, serif;
  --sh-font-input:       "le-monde-livre-std", "Source Serif 4", Georgia, serif;
  --sh-font-display:     "Bebas Neue", Impact, sans-serif;
  --sh-search-fill:      #9F350B;
  --sh-on-search:        #FFF9E6;
  --sh-shadow:           rgba(51, 51, 51, 0.14);
  --sh-border:           rgba(51, 51, 51, 0.16);
  --sh-content-max:      clamp(880px, 92vw, 960px);
  --sh-content-wide:     clamp(960px, 96vw, 1080px);
  --sh-taste-card-max:   clamp(300px, 42vw, 340px);
  --sh-rec-card-max:     clamp(220px, 28vw, 260px);
  --sh-section-gap:      12px;
  --sh-grid-gap:         12px;
}

/* Dark overrides: v13 warm dark paper, not cold obsidian app chrome */
html[data-theme="dark"] body[data-page="home"] {
  --sh-surface:          #2A2724;
  /* v13 dark paper toolbar keeps coral letters and mint hooks
     bright while staying in the Interior Vintage warm-dark family. */
  --sh-header-bg:        #2A2724;
  --sh-header-deep:      #232019;
  --sh-carousel-tag-bg:  #232019;
  --sh-on-header:        #F3E9DD;
  --sh-on-header-muted:  #CBBDAE;
  --sh-header-active:    #FBB94B;
  --sh-on-header-active: #232019;
  --sh-accent:           #F3E9DD;
  --sh-accent-bright:    #A4CCC4;
  --sh-glow:             rgba(0, 0, 0, 0.35);
  --sh-hero-headline-shadow: #EE583F;
  --sh-on-surface:       #F3E9DD;
  --sh-on-muted:         #CBBDAE;
  --sh-on-subtle:        #A3968A;
  --sh-card-fill:        #35312D;
  --sh-card-border:      rgba(243, 233, 221, 0.18);
  --sh-card-soft:        #3D4A47;
  --sh-pick-card-fill:   #232019;
  --sh-on-card:          #F3E9DD;
  --sh-on-card-muted:    #CBBDAE;
  --sh-on-card-accent:   #F08D74;
  --sh-on-card-meta:     #CBBDAE;
  --sh-chip-fill:        #403A34;
  --sh-on-chip:          #F3E9DD;
  --sh-chip-border:      rgba(243, 233, 221, 0.5);
  --sh-speech-fill:      color-mix(in srgb, #EE583F 12%, #3B3631);
  --sh-trust-fill:       #3D4A47;
  --sh-on-trust:         #F3E9DD;
  --sh-on-trust-muted:   rgba(243, 233, 221, 0.72);
  --sh-primary:          #EE583F;
  --sh-on-primary:       #2A1712;
  --sh-primary-hover:    #F26C52;
  --sh-primary-pressed:  #D64830;
  --sh-secondary-border: #EE583F;
  --sh-secondary-hover:  rgba(238, 88, 63, 0.12);
  --sh-focus:            #FBB94B;
  --site-hero-gradient:
    radial-gradient(ellipse 70% 55% at 78% 10%, rgba(238, 88, 63, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #2A2724 0%, #232019 100%);
  --sh-search-fill:      #9F350B;
  --sh-on-search:        #FFF9E6;
  --sh-shadow:           rgba(0, 0, 0, 0.40);
  --sh-border:           rgba(243, 233, 221, 0.18);
}

/* ============================================================
   GLOBAL RESETS for homepage body
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body[data-page="home"] {
  margin: 0;
  background: var(--sh-surface);
  color: var(--sh-on-surface);
  font-family: var(--sh-font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Skip link */
.sh-skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  z-index: 9999;
  background: var(--hs4-action, var(--sh-primary));
  color: var(--hs4-on-action, var(--sh-on-primary));
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--site-radius-point);
  text-decoration: none;
  transition: top 0.1s;
}

.sh-skip-link:focus {
  top: 12px;
}

/* ============================================================
   PRODUCT HEADER
   ============================================================ */

.sh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sh-header-bg);
  color: var(--sh-on-header);
  /* v13-style ink hairline instead of a heavy deep-shade rule */
  border-bottom: 1px solid color-mix(in srgb, var(--sh-on-header) 18%, transparent);
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.sh-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.sh-wordmark img {
  display: block;
  height: 40px;
  width: auto;
}

/* Light: cream/gold wordmark. Dark: coral/mint wordmark (unchanged). */
.sh-wordmark .sh-logo--dark {
  display: none;
}

html[data-theme="dark"] .sh-wordmark .sh-logo--light {
  display: none;
}

html[data-theme="dark"] .sh-wordmark .sh-logo--dark {
  display: block;
}

.sh-wordmark:focus-visible {
  outline: 2px solid var(--sh-header-active);
  outline-offset: 3px;
  border-radius: var(--site-radius-point);
}

.sh-product-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sh-nav-soon {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-on-header-muted);
  border-radius: var(--site-radius-point);
  user-select: none;
  white-space: nowrap;
}

.sh-signup-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 44px;
  border-radius: var(--site-radius-pill);
  background: color-mix(in srgb, var(--sh-on-header) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sh-on-header) 40%, transparent);
  color: var(--sh-on-header);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.sh-signup-btn:hover {
  background: color-mix(in srgb, var(--sh-on-header) 22%, transparent);
  border-color: color-mix(in srgb, var(--sh-on-header) 55%, transparent);
}

.sh-signup-btn:focus-visible {
  outline: 2px solid var(--sh-header-active);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .sh-header {
    grid-template-columns: auto 1fr;
    height: auto;
    padding: 10px 14px 8px;
    gap: 0 10px;
  }

  .sh-product-nav {
    gap: 2px;
  }

  .sh-nav-soon {
    display: none;
  }

  .sh-signup-btn {
    padding: 6px 14px;
    font-size: 12px;
    min-height: 40px;
  }
}

@media (max-width: 900px) and (min-width: 681px) {
  .sh-nav-soon { display: none; }
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */

.sh-main {
  width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.sh-hero {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(40px, 7vw, 80px);
  text-align: center;
  background: var(--site-hero-gradient, var(--sh-surface));
}

.sh-hero-headline {
  margin: 0 auto;
  max-width: 16em;
  font-family: var(--sh-font-geo);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: var(--sh-hero-font-weight, 700);
  line-height: 1.1;
  color: var(--sh-accent);
  /* Crisp coral underprint, print-style; no blur so it never reads neon */
  text-shadow: 0 2px 0 color-mix(in srgb, var(--sh-hero-headline-shadow) 55%, transparent);
}

.sh-hero-headline span {
  display: block;
}

.sh-hero-sub {
  margin: 18px auto 0;
  max-width: 36em;
  font-family: var(--sh-font-ui);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--sh-on-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--site-radius-pill);
  padding: 13px 22px;
  min-height: 48px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--sh-font-ui);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.sh-btn--primary {
  background: var(--hs4-action, var(--sh-primary));
  color: var(--hs4-on-action, var(--sh-on-primary));
  border-color: transparent;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sh-on-primary) 12%, transparent);
}

.sh-btn--primary:hover {
  background: var(--hs4-action-hover, var(--sh-primary-hover));
  box-shadow: 0 2px 12px var(--sh-glow);
}

.sh-btn--primary:active {
  background: var(--hs4-action-press, var(--sh-primary-pressed));
  transform: translateY(1px);
}

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

.sh-btn--secondary {
  background: transparent;
  color: var(--sh-accent);
  border-color: var(--sh-secondary-border);
}

.sh-btn--secondary:hover {
  background: var(--sh-secondary-hover);
}

.sh-btn--secondary:focus-visible {
  outline: 2px solid var(--sh-focus);
  outline-offset: 3px;
}

.sh-btn--wide {
  width: 100%;
  max-width: 320px;
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */

.sh-section {
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--sh-card-border);
}

.sh-section-title {
  margin: 0 0 10px;
  font-family: var(--sh-font-ui);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--sh-accent);
  line-height: 1.2;
}

.sh-section-body {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sh-on-muted);
  max-width: 42em;
}

/* Constrained reading / card columns — import already uses .sh-import */
.sh-content {
  width: 100%;
  max-width: var(--sh-content-max);
  margin-inline: auto;
}

.sh-content--wide {
  max-width: var(--sh-content-wide);
}

/* ============================================================
   IMPORT SOURCES
   ============================================================ */

.sh-import {
  max-width: var(--sh-content-max);
  margin: 0 auto;
}

.sh-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 540px) {
  .sh-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .sh-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 12px;
  }
}

.sh-source-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--site-radius-point);
  background: var(--sh-chip-fill);
  border: 1px solid var(--sh-chip-border);
  min-width: 0;
}

.sh-source-icon-tile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--site-radius-point);
  background: #FFFDF8;
  border: 1px solid color-mix(in srgb, var(--sh-import-brand, var(--sh-on-surface)) 24%, transparent);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--sh-import-brand, transparent) 42%, transparent);
}

.sh-source-icon-tile--dark {
  background: #1a1a1a;
  border-color: color-mix(in srgb, var(--sh-import-brand) 38%, #1a1a1a);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--sh-import-brand) 55%, transparent);
}

.sh-import-icon-mask {
  width: 18px;
  height: 18px;
  display: block;
  background-color: var(--sh-import-brand, var(--sh-on-surface));
  -webkit-mask-image: var(--sh-import-mask);
  mask-image: var(--sh-import-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.sh-import-icon-fallback {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sh-on-muted);
}

.sh-source-chip-name {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--sh-on-chip);
  line-height: 1.2;
}

.sh-source-chip-note {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--sh-on-subtle);
  line-height: 1.2;
}

.sh-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--sh-on-subtle);
}

/* ============================================================
   RECOMMENDATION CARDS
   ============================================================ */

.sh-rec-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: var(--site-radius-point);
  background: var(--sh-card-fill);
  border: 1px solid var(--sh-card-border);
  /* v13 shadow system: round, soft, warm; never a glow */
  box-shadow:
    0 1px 2px var(--sh-shadow),
    0 6px 18px color-mix(in srgb, var(--sh-shadow) 80%, transparent);
  max-width: var(--sh-rec-card-max);
}

.sh-media-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.sh-media-meta img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

.sh-media-meta-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sh-on-card-meta);
}

.sh-rec-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--sh-on-card);
  line-height: 1.25;
}

.sh-rec-reason {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  font-style: italic;
  color: var(--sh-on-card-accent);
  flex: 0 0 auto;
}

.sh-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--site-radius-pill);
  background: var(--sh-chip-fill);
  color: var(--sh-on-chip);
  border: 1px solid var(--sh-chip-border);
}

/* ============================================================
   TASTE IDENTITY CARD
   ============================================================ */

.sh-taste-showcase {
  display: flex;
  justify-content: flex-start;
}

.sh-taste-card {
  position: relative;
  width: 100%;
  max-width: var(--sh-taste-card-max);
  border-radius: var(--site-radius-point);
  background: var(--sh-card-soft);
  border: 2px solid var(--sh-card-border);
  overflow: hidden;
}

.sh-taste-slide {
  flex: 0 0 var(--sh-taste-slide-w, 54%);
  min-width: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0.58;
}

.sh-taste-slide.is-active {
  opacity: 1;
}

.sh-taste-slide.is-active .sh-taste-slide-card {
  transform: scale(1.03);
  box-shadow:
    0 6px 16px var(--sh-shadow),
    0 0 0 1px var(--sh-card-border);
}

.sh-taste-slide-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--site-radius-point);
  overflow: hidden;
  border: 1px solid var(--sh-card-border);
  box-shadow: 0 4px 12px var(--sh-shadow);
  background: var(--sh-pick-card-fill);
  transform: scale(0.94);
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease;
}

.sh-taste-slide-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
}

.sh-taste-slide-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sh-taste-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 28%,
    color-mix(in srgb, var(--sh-header-deep) 35%, transparent) 58%,
    color-mix(in srgb, var(--sh-header-deep) 92%, transparent) 100%
  );
  pointer-events: none;
}

.sh-taste-slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 7px 8px;
  z-index: 1;
}

.sh-taste-slide-medium {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sh-on-scrim-muted);
  text-shadow: 0 1px 4px color-mix(in srgb, var(--sh-header-deep) 55%, transparent);
}

@keyframes sh-taste-marquee-pingpong {
  0%, 14% { transform: translateX(0); }
  42%, 58% { transform: translateX(var(--marquee-distance, 0)); }
  86%, 100% { transform: translateX(0); }
}

.sh-taste-slide-title {
  margin: 0;
  font-family: var(--sh-font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  /* on-scrim: this title sits on a dark poster scrim and must
     stay cream in both themes */
  color: var(--sh-on-scrim);
  text-shadow:
    0 1px 2px color-mix(in srgb, var(--sh-header-deep) 80%, transparent),
    0 2px 12px color-mix(in srgb, var(--sh-header-deep) 70%, transparent);
}

.sh-taste-slide-tag {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 6px;
  border-radius: var(--site-radius-point);
  flex-shrink: 0;
  background: color-mix(in srgb, var(--sh-carousel-tag-bg) 88%, transparent);
  color: var(--sh-on-scrim);
  border: 1px solid color-mix(in srgb, var(--sh-on-scrim) 28%, transparent);
  box-shadow: 0 1px 6px color-mix(in srgb, var(--sh-header-deep) 55%, transparent);
  backdrop-filter: blur(2px);
}

/* Spoken-voice quote carries the v13 coral speech-bubble fill */
.sh-taste-quote {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--site-radius-point);
  background: var(--sh-speech-fill);
  border: 1px solid color-mix(in srgb, var(--sh-on-surface) 30%, transparent);
}

/* ============================================================
   TRUST SECTION
   ============================================================ */

.sh-trust {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 64px);
  background: var(--sh-trust-fill);
  color: var(--sh-on-trust);
}

.sh-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.sh-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sh-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--sh-on-trust);
  opacity: 0.92;
}

.sh-trust-icon svg,
.sh-trust-icon .sti-icon-mask {
  width: 100%;
  height: 100%;
  display: block;
}

.sh-trust-copy {
  min-width: 0;
}

.sh-trust-label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}

.sh-trust-detail {
  display: block;
  font-size: 13px;
  color: var(--sh-on-trust-muted);
  line-height: 1.45;
}

/* ============================================================
   FINAL CTA (the class names keep the old waitlist word)
   ============================================================ */

.sh-waitlist {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
  background: var(--sh-card-soft);
  border-top: 1px solid var(--sh-card-border);
}

.sh-waitlist-title {
  margin: 0 0 12px;
  font-family: var(--sh-font-ui);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 400;
  color: var(--sh-accent);
}

.sh-waitlist-body {
  margin: 0 auto 24px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sh-on-muted);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.sh-footer {
  padding: 20px clamp(20px, 5vw, 64px);
  background: var(--sh-header-bg);
  color: var(--sh-on-header-muted);
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid color-mix(in srgb, var(--sh-on-header) 18%, transparent);
}

.sh-footer p {
  max-width: var(--sh-content-wide);
  margin: 0 auto;
}

.sh-footer a {
  color: var(--sh-on-header);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sh-on-header) 38%, transparent);
  text-underline-offset: 2px;
}

.sh-footer a:hover {
  text-decoration-color: var(--sh-on-header);
}

.sh-footer a:focus-visible {
  outline: 2px solid var(--sh-on-header);
  outline-offset: 2px;
  border-radius: var(--site-radius-point);
}

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */

.sh-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--sh-surface);
  border-top: 1px solid var(--sh-card-border);
  box-shadow: 0 -4px 12px color-mix(in srgb, var(--sh-on-surface) 8%, transparent);
}

/* stella-home.js adds .is-shown while neither the hero button nor the closing
   section is on screen, so the same action never shows twice. */
@media (max-width: 600px) {
  .sh-sticky-cta.is-shown {
    display: flex;
    justify-content: center;
  }

  .sh-sticky-cta .sh-btn {
    width: 100%;
    max-width: 400px;
  }
}

/* Signed in (stella-home-auth.js): nothing left to sign up for. */
html[data-stella-signed-in="1"] .sh-sticky-cta,
html[data-stella-signed-in="1"] .sh-waitlist {
  display: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sh-taste-slide { opacity: 1; }
}

/* ============================================================
   NARROW VIEWPORT (320px min)
   ============================================================ */

@media (max-width: 360px) {

  .sh-btn {
    width: 100%;
  }
}

/* ============================================================
   HIGH DPR (Retina) — density compensation
   Set by inline script: html[data-dpr-tier="high"] when DPR >= 2
   ============================================================ */

html[data-dpr-tier="high"] body[data-page="home"] {
  --sh-content-max:      clamp(920px, 94vw, 1040px);
  --sh-content-wide:     clamp(1000px, 96vw, 1160px);
  --sh-taste-card-max:   clamp(320px, 44vw, 380px);
  --sh-rec-card-max:     clamp(248px, 30vw, 300px);
  --sh-section-gap:      16px;
  --sh-grid-gap:         16px;
  font-size: 16px;
}

html[data-dpr-tier="high"] body[data-page="home"] .sh-section {
  padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5.5vw, 72px);
}

html[data-dpr-tier="high"] body[data-page="home"] .sh-source-grid {
  gap: var(--sh-grid-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 540px) {
  html[data-dpr-tier="high"] body[data-page="home"] .sh-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (min-width: 900px) {
  html[data-dpr-tier="high"] body[data-page="home"] .sh-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  }
}

html[data-dpr-tier="high"] body[data-page="home"] .sh-rec-card {
  padding: 16px;
}

html[data-dpr-tier="high"] body[data-page="home"] .sh-trust-grid {
  gap: 20px;
}

/* ============================================================
   WIDE DESKTOP (DPR 1 @ 1920px+) — same comfortable tokens as Retina
   Minty viewport: 2560×1305 @ DPR 1 stays data-dpr-tier="standard"
   ============================================================ */

@media (min-width: 1920px) {
  html[data-dpr-tier="standard"] body[data-page="home"] {
    --sh-content-max:      clamp(920px, 94vw, 1040px);
    --sh-content-wide:     clamp(1000px, 96vw, 1160px);
    --sh-taste-card-max:   clamp(320px, 44vw, 380px);
    --sh-rec-card-max:     clamp(248px, 30vw, 300px);
    --sh-section-gap:      16px;
    --sh-grid-gap:         16px;
    font-size: 16px;
  }

  html[data-dpr-tier="standard"] body[data-page="home"] .sh-section {
    padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5.5vw, 72px);
  }

  html[data-dpr-tier="standard"] body[data-page="home"] .sh-source-grid {
    gap: var(--sh-grid-gap);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (min-width: 540px) {
    html[data-dpr-tier="standard"] body[data-page="home"] .sh-source-grid {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
  }

  @media (min-width: 900px) {
    html[data-dpr-tier="standard"] body[data-page="home"] .sh-source-grid {
      grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    }
  }

  html[data-dpr-tier="standard"] body[data-page="home"] .sh-rec-card {
    padding: 16px;
  }

  html[data-dpr-tier="standard"] body[data-page="home"] .sh-trust-grid {
    gap: 20px;
  }
}
