/* ==========================================================================
   Hairook homepage / waitlist landing — polished design system
   Loaded only on home-template. Targets .home-template where needed
   to avoid touching blog pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sticky site header (announce bar + navbar) — works on all pages
   On homepage this includes the beta announcement; elsewhere only navbar.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  box-shadow: 0 2px 8px var(--shadow);
}

/* Navbar inside the sticky header doesn't need its own sticky */
.site-header .navbar {
  position: relative;
  top: auto;
  box-shadow: none;
  z-index: auto;
}

/* --------------------------------------------------------------------------
   Top announcement bar (sits at top of the sticky header)
   -------------------------------------------------------------------------- */
.announce-bar {
  position: relative;
  background: linear-gradient(90deg, #1a6f6f 0%, #1F7A7A 45%, #2a8e8e 100%);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.announce-bar[hidden] {
  display: none;
}

.announce-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 1.25rem;
  justify-content: center;
  flex-wrap: nowrap;
  min-height: 40px;
}

.announce-bar-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  flex-shrink: 0;
}

.announce-bar-text {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announce-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.announce-bar-cta:hover,
.announce-bar-cta:focus-visible {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.announce-bar-cta svg {
  transition: transform 0.2s ease;
}

.announce-bar-cta:hover svg {
  transform: translateX(2px);
}

.announce-bar-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.announce-bar-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Mobile announce bar — compact single line: badge + short text + CTA */
@media (max-width: 700px) {
  .announce-bar-inner {
    padding: 0.45rem 0.65rem;
    gap: 0.5rem;
    font-size: 0.78rem;
    min-height: 38px;
    justify-content: space-between;
  }
  .announce-bar-badge {
    font-size: 0.625rem;
    padding: 0.15rem 0.45rem;
  }
  .announce-bar-text {
    flex: 1 1 auto;
  }
  .announce-bar-cta {
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
  }
  .announce-bar-cta-label {
    display: none;
  }
  .announce-bar-cta::before {
    content: 'Join';
    font-weight: 700;
  }
}

@media (max-width: 380px) {
  .announce-bar-text {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */
.home-template .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(78, 205, 168, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(31, 122, 122, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.home-template .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 122, 122, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}

.home-template .hero .container {
  position: relative;
  z-index: 1;
}

.home-template .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.home-template .hero-text {
  text-align: left;
  max-width: 36rem;
}

.home-template .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 122, 122, 0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(31, 122, 122, 0.08);
}

.home-template .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--primary-dark);
  /* override the gradient text from main.css */
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  background-clip: unset !important;
  margin: 0 0 1.25rem;
}

.home-template .hero-title em,
.home-template .hero-title .accent {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-template .hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.home-template .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 122, 122, 0.12);
}

.home-template .stat {
  text-align: left;
}

.home-template .stat-number {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.home-template .stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.15rem;
}

/* Phone mockup — smaller, no continuous animation */
.home-template .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-template .phone-mockup {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px rgba(31, 122, 122, 0.18));
}

.home-template .phone-frame {
  background: #111;
  border-radius: 2.25rem;
  padding: 0.4rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 50px rgba(0, 0, 0, 0.18),
    0 0 0 1.5px rgba(0, 0, 0, 0.5);
}

.home-template .phone-notch {
  width: 96px;
  height: 22px;
  background: #111;
  border-radius: 0 0 0.85rem 0.85rem;
}

.home-template .phone-screen {
  background: #fff;
  border-radius: 1.85rem;
  padding: 0.4rem;
  min-height: 440px;
  overflow: hidden;
}

.home-template .product-image-placeholder {
  height: 130px;
  margin-bottom: 0.5rem;
}

.home-template .product-image-icon {
  font-size: 3rem;
}

.home-template .product-name {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.home-template .product-brand {
  font-size: 0.85rem;
}

.home-template .match-score {
  padding: 0.85rem 1.5rem;
  min-width: 86px;
}

.home-template .score-number {
  font-size: 1.65rem;
}

.home-template .score-label {
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   Quiz / waitlist form
   -------------------------------------------------------------------------- */
.waitlist-form,
.quiz-form {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0 0 1.25rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 36px -8px rgba(31, 122, 122, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.quiz-progress {
  margin-bottom: 1.25rem;
}

.quiz-progress-bar {
  height: 6px;
  background: #eef2f5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.quiz-step {
  border: 0;
  margin: 0;
  padding: 0;
  display: none;
}

.quiz-step-active {
  display: block;
  animation: hpFadeUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hpFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-family: 'Outfit', var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding: 0;
}

.quiz-subhint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: -0.25rem 0 1rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #e5e9ec;
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  min-height: 50px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option-wide {
  grid-column: 1 / -1;
  min-height: 46px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--primary);
  background: rgba(31, 122, 122, 0.04);
  outline: none;
}

.quiz-option.selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f4faf9 0%, #e7f4f3 100%);
  box-shadow: 0 0 0 3px rgba(31, 122, 122, 0.12);
}

.quiz-option-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.quiz-back {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0;
  transition: color 0.15s ease;
}

.quiz-back:hover {
  color: var(--primary);
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.waitlist-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e5e9ec;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 122, 122, 0.12);
}

.waitlist-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.waitlist-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.85rem;
  cursor: pointer;
  line-height: 1.5;
}

.waitlist-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.waitlist-fineprint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.6;
}

.waitlist-fineprint a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  font-size: 0.875rem;
  padding: 0.55rem 0.8rem;
  margin: 0.6rem 0 0;
}

/* Success state */
.waitlist-success {
  background: #fff;
  border: 1px solid rgba(78, 205, 168, 0.35);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 0 0 1.25rem;
  box-shadow: 0 12px 32px rgba(78, 205, 168, 0.12);
}

.success-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.success-check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--primary) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(78, 205, 168, 0.35);
}

.success-title {
  font-family: 'Outfit', var(--font-heading);
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.success-subtitle {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.referral-block-inline {
  border-top: 1px solid #eef2f5;
  padding-top: 1.25rem;
}

.referral-label {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.referral-link-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.referral-link {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e5e9ec;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e5e9ec;
  background: #fff;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 40px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(31, 122, 122, 0.04);
}

.referral-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.referral-progress-bar {
  height: 8px;
  background: #eef2f5;
  border-radius: 999px;
  overflow: hidden;
}

.referral-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
  transition: width 0.5s ease;
  border-radius: 999px;
}

/* Mini preview list (inside phone) */
.preview-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.preview-mini-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  padding: 0.3rem 0.45rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef2f5;
}

.preview-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-mini-good .preview-mini-dot { background: var(--tertiary); }
.preview-mini-warn .preview-mini-dot { background: var(--accent); }

.preview-mini-text {
  font-weight: 600;
  color: var(--text-primary);
}

.preview-mini-tag {
  color: var(--text-tertiary);
  margin-left: auto;
  text-align: right;
  font-size: 0.63rem;
}

/* --------------------------------------------------------------------------
   Section title system — uses Hairook deep teal as base color,
   with a small teal accent bar above for visual rhythm
   -------------------------------------------------------------------------- */
.home-template .section-title {
  font-family: 'Outfit', var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--primary-dark);
  text-align: center;
  margin: 0 auto 0.75rem;
  max-width: 44rem;
}

.home-template .section-title-left {
  font-family: 'Outfit', var(--font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--primary-dark);
  text-align: left;
  margin: 0 0 1rem;
  max-width: 28rem;
}

/* Hero title — slightly heavier than sections, still refined */
.home-template .hero-title {
  font-family: 'Outfit', var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.home-template .section-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto 2.25rem;
  max-width: 42rem;
}

.home-template .section-eyebrow {
  display: inline-block;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: var(--primary-light);
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.usp-section,
.beta-section,
.referral-section,
.faq-section,
.read-first {
  text-align: center;
}

.usp-section .section-eyebrow,
.beta-section .section-eyebrow,
.referral-section .section-eyebrow,
.read-first .section-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

/* Eyebrow in a left-aligned block (problem-text) */
.problem-text .section-eyebrow {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Subtle accent — a thin teal gradient bar under section titles */
.home-template .section-title::after,
.home-template .section-title-left::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
  border-radius: 2px;
}

.home-template .section-title-left::after {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   Problem section
   -------------------------------------------------------------------------- */
.problem-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fafbfc;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.problem-text {
  max-width: 32rem;
}

.problem-text p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1.05rem;
}

.problem-text p:last-of-type {
  margin-bottom: 0;
}

.problem-text p strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Problem visual — shelf with SVG bottles + "didn't work" tags */
.problem-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85) 0%, transparent 55%),
    linear-gradient(150deg, #e8f4f4 0%, #f4faf9 55%, #ffffff 100%);
  border-radius: 24px;
  border: 1px solid rgba(31, 122, 122, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 32px -12px rgba(31, 122, 122, 0.18);
  overflow: hidden;
}

.problem-shelf {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 16%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(31, 122, 122, 0.2) 20%, rgba(31, 122, 122, 0.35) 50%, rgba(31, 122, 122, 0.2) 80%, transparent 100%);
  box-shadow: 0 6px 12px -6px rgba(31, 122, 122, 0.25);
}

.bottle {
  position: absolute;
  width: 17%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.15));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Two rows of bottles on the shelf */
.bottle-1 { left: 8%;  bottom: 18%; transform: rotate(-3deg); }
.bottle-2 { left: 28%; bottom: 18%; transform: rotate(2deg); width: 15%; }
.bottle-3 { left: 46%; bottom: 18%; transform: rotate(-2deg); }
.bottle-4 { left: 65%; bottom: 18%; transform: rotate(4deg); width: 16%; }
.bottle-5 { left: 84%; bottom: 18%; transform: rotate(-4deg); width: 14%; }

.problem-visual:hover .bottle-1 { transform: rotate(-3deg) translateY(-5px); }
.problem-visual:hover .bottle-2 { transform: rotate(2deg)  translateY(-5px); }
.problem-visual:hover .bottle-3 { transform: rotate(-2deg) translateY(-5px); }
.problem-visual:hover .bottle-4 { transform: rotate(4deg)  translateY(-5px); }
.problem-visual:hover .bottle-5 { transform: rotate(-4deg) translateY(-5px); }

.bottle-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(232, 132, 124, 0.4);
  color: #9a3b34;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
  z-index: 2;
}

.bottle-tag-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

/* Tags sit in the upper third of the box, well above the bottles
   (which start at bottom 18% and rise to ~60%). */
.bottle-tag-x { top:  8%; left:  8%; transform: rotate(-4deg); }
.bottle-tag-y { top: 12%; left: 50%; transform: translateX(-50%) rotate(2deg); }
.bottle-tag-z { top:  8%; right: 8%; transform: rotate(4deg); }

/* --------------------------------------------------------------------------
   USP section
   -------------------------------------------------------------------------- */
.usp-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fff;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.usp-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.usp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.12);
  border-color: rgba(31, 122, 122, 0.2);
}

.usp-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(31, 122, 122, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.usp-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.usp-card h3 {
  font-family: 'Outfit', var(--font-heading);
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}

.usp-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  font-size: 0.9375rem;
  flex: 1;
  max-width: 24rem;
}

/* --------------------------------------------------------------------------
   Read-first (blog teaser)
   -------------------------------------------------------------------------- */
section.read-first {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

section.read-first .posts-footer {
  text-align: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Beta section
   -------------------------------------------------------------------------- */
.beta-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(78, 205, 168, 0.1) 0%, transparent 70%),
    #f7fbfb;
}

.beta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 2rem;
}

.beta-card {
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 16px rgba(31, 122, 122, 0.05);
  text-align: left;
}

.beta-card h3 {
  font-family: 'Outfit', var(--font-heading);
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-align: left;
}

.beta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.beta-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.beta-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 0 4px rgba(78, 205, 168, 0.18);
}

.beta-list li strong {
  color: var(--text-primary);
}

.beta-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.beta-fineprint {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 1rem 0 0;
}

.beta-fineprint a {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Referral tiers
   -------------------------------------------------------------------------- */
.referral-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fff;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 1.5rem;
  align-items: stretch;
}

.tier-card {
  text-align: center;
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 2rem 1.25rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.12);
}

.tier-highlighted {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
  box-shadow: 0 16px 40px -12px rgba(31, 122, 122, 0.18);
}

.tier-highlighted::before {
  content: 'Popular';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.tier-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tier-count {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.tier-reward {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.35rem 0;
  letter-spacing: -0.02em;
}

.tier-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.referral-cta-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.referral-cta-note a {
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Download / coming-soon stores
   (sits inside .download which already has gradient bg from main.css)
   -------------------------------------------------------------------------- */
.home-template .download .section-title,
.home-template .download .download-subtitle {
  color: #fff;
}

.home-template .download .section-title {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.home-template .download .section-title::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.home-template .download .download-subtitle {
  color: rgba(255, 255, 255, 0.95);
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  text-align: center;
}

.coming-soon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.store-coming-soon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  min-width: 240px;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  color: #fff;
}

.store-coming-soon:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.store-coming-soon .store-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.store-coming-soon .download-text {
  text-align: left;
}

.store-coming-soon .download-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 0.1rem;
}

.store-coming-soon .download-platform {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.badge-soon {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.notify-cta {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   FAQ accordion (details/summary)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fafbfc;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 14px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(31, 122, 122, 0.25);
}

.faq-item[open] {
  border-color: rgba(31, 122, 122, 0.3);
  box-shadow: 0 8px 24px -8px rgba(31, 122, 122, 0.12);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: 'Outfit', var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  transition: transform 0.25s ease, background 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F7A7A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item p a {
  color: var(--primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Exit modal & toast
   -------------------------------------------------------------------------- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-modal[hidden] {
  display: none !important;
}

.exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.exit-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: hpModalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hpModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.exit-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: none;
  background: #f3f5f7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.exit-modal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.exit-modal-title {
  font-family: 'Outfit', var(--font-heading);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.exit-modal-subtitle {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.exit-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.exit-modal-form .waitlist-input {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
}

.exit-modal-form .btn {
  width: 100%;
  justify-content: center;
}

.exit-modal-fineprint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin: 0.75rem 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2100;
  background: #111;
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  max-width: min(92vw, 420px);
}

.toast[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Tablet (≤ 900px) — collapse to single column, keep text first
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .home-template .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Text first, then form, then phone at the bottom */
  .home-template .hero-text {
    order: 1;
  }
  .home-template .hero-image {
    order: 2;
  }

  .home-template .phone-mockup {
    max-width: 220px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-visual {
    max-width: 360px;
  }

  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   Mobile (≤ 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .home-template .hero {
    padding: 1.5rem 0 2.5rem;
  }

  .home-template .hero-content {
    gap: 1.75rem;
  }

  .home-template .hero-text {
    text-align: left;
    max-width: 100%;
  }

  .home-template .hero-title {
    font-size: clamp(1.7rem, 7.5vw, 2.1rem);
    line-height: 1.1;
  }

  .home-template .hero-subtitle {
    font-size: 0.975rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .home-template .hero-eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.6875rem;
    padding: 0.35rem 0.7rem;
  }

  /* Phone shrunk and sits below content on mobile */
  .home-template .phone-mockup {
    max-width: 180px;
  }

  .home-template .phone-screen {
    min-height: 360px;
  }

  .home-template .product-image-placeholder {
    height: 90px;
  }

  .home-template .product-image-icon {
    font-size: 2.25rem;
  }

  .home-template .product-name {
    font-size: 0.92rem;
  }

  .home-template .product-brand {
    font-size: 0.75rem;
  }

  .home-template .match-score {
    padding: 0.65rem 1.1rem;
  }

  .home-template .score-number {
    font-size: 1.3rem;
  }

  .home-template .hero-stats {
    gap: 0.85rem 1.5rem;
    justify-content: flex-start;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
  }

  .home-template .stat-number {
    font-size: 1.2rem;
  }

  .home-template .stat-label {
    font-size: 0.72rem;
  }

  /* Quiz/form on mobile */
  .waitlist-form,
  .quiz-form {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quiz-option {
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist-submit,
  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .referral-link-wrap {
    flex-direction: column;
  }

  .beta-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .coming-soon-row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-coming-soon {
    min-width: 0;
    width: 100%;
  }

  /* Tighter problem visual on mobile */
  .problem-visual {
    max-width: 300px;
  }

  .bottle-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.55rem;
  }

  /* Section spacing */
  .problem-section,
  .usp-section,
  .beta-section,
  .referral-section,
  .faq-section,
  .read-first {
    padding: 2rem 0;
  }

  .home-template .section-title {
    font-size: 1.4rem;
  }

  .home-template .section-title-left {
    font-size: 1.35rem;
  }

  .home-template .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* USP cards full-width comfortable */
  .usp-card,
  .beta-card,
  .tier-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-step-active,
  .exit-modal-content {
    animation: none;
  }
  .bottle,
  .announce-bar-cta:hover svg {
    transition: none;
    transform: none !important;
  }
}
