/* Final visual polish: symmetric eyebrow accents + persistent header */

/* Keep the public header permanently visible and separated from content. */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: 82px !important;
  background: rgba(247,243,235,.94) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24,55,45,.14) !important;
  box-shadow: 0 1px 0 rgba(24,55,45,.03);
}

.site-header.is-scrolled {
  height: 82px !important;
  background: rgba(247,243,235,.94) !important;
  border-bottom-color: rgba(24,55,45,.14) !important;
}

/* Brand must always stay in one line, including narrow phones. */
.site-header .logo {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}
.site-header .logo-mark {
  flex: 0 0 35px !important;
}
.site-header .logo-name {
  display: block !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1 !important;
}

body:not(.flow-open) { padding-top: 82px; }
body.flow-open .site-header .header-actions,
body.flow-open .site-header [data-start-quiz],
body.flow-open .site-header [data-start-upload] { display: none !important; }

/* No text pill over the main hero video. */
.hero-gallery-main .gallery-badge { display: none !important; }

.face-shape-card {
  width: min(calc(100% - 40px), var(--container)) !important;
  max-width: var(--container) !important;
  margin: 48px auto 0 !important;
}

.multi-select-grid .multi-select-choice { padding-right: 54px !important; }
.multi-select-grid .multi-select-choice::after { display: none !important; }
.multi-select-indicator {
  position: absolute; top: 12px; right: 12px; width: 24px; height: 24px;
  border-radius: 50%; border: 1.5px solid rgba(24,55,45,.38);
  background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 3px rgba(255,255,255,.72);
  transition: background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
  pointer-events: none;
}
.multi-select-choice:hover .multi-select-indicator { border-color: var(--green-3); transform: scale(1.04); }
.multi-select-choice.is-selected .multi-select-indicator { background: var(--green); border-color: var(--green); box-shadow: 0 5px 14px rgba(24,55,45,.2); }
.multi-select-choice.is-selected .multi-select-indicator::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800; line-height: 1;
}

.photo-tips-grid .tip-images { align-items: center; }
.photo-tips-grid .tip-img {
  aspect-ratio: 1 / 1 !important; border-radius: 50% !important; overflow: hidden !important;
  border: 4px solid #2f8f5b !important; background: #fff; box-shadow: 0 8px 24px rgba(24,55,45,.12);
}
.photo-tips-grid .tip-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 50% !important; }
.photo-tips-grid .tip-img .tip-badge { right: 8px !important; top: 8px !important; }
.photo-tips-grid > :nth-child(2) .tip-img {
  border: 0 !important;
  box-shadow: none !important;
}

/* Photo tips must always sit above the persistent header. */
.photo-tips-modal {
  z-index: 2200 !important;
  overscroll-behavior: contain;
}
.tips-modal-card {
  position: relative;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tips-modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ivory);
}
.tips-modal-close {
  flex: 0 0 auto;
  position: relative;
  z-index: 6;
}

.centered .eyebrow,
.flow-body .eyebrow,
.flow-panel .eyebrow,
.quiz-shell .eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.centered .eyebrow::before,.flow-body .eyebrow::before,.flow-panel .eyebrow::before,.quiz-shell .eyebrow::before,
.centered .eyebrow::after,.flow-body .eyebrow::after,.flow-panel .eyebrow::after,.quiz-shell .eyebrow::after {
  content: ''; flex: 0 0 30px; width: 30px; height: 1px; background: var(--brass);
}

@media (max-width: 760px) {
  .site-header,.site-header.is-scrolled { height: 76px !important; }
  body:not(.flow-open) { padding-top: 76px; }

  .site-header .header-inner { gap: 10px !important; }
  .site-header .logo { gap: 9px !important; }
  .site-header .logo-mark { flex-basis: 34px !important; width: 34px !important; height: 34px !important; }
  .site-header .logo-name {
    font-size: clamp(14px, 4.45vw, 19px) !important;
    letter-spacing: -.045em !important;
  }

  .photo-tips-modal {
    align-items: stretch !important;
    padding: 0 !important;
  }
  .tips-modal-card {
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 0 18px calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    background: var(--ivory) !important;
  }
  .tips-modal-head {
    min-height: 82px;
    margin: 0 -18px 20px;
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
    border-bottom: 1px solid var(--border);
    display: flex !important;
    align-items: center !important;
    background: rgba(247,243,235,.97) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .tips-modal-head h3 { font-size: 32px !important; }
  .tips-modal-close {
    width: 48px !important;
    height: 48px !important;
    display: grid !important;
    place-items: center !important;
    background: var(--pearl) !important;
    box-shadow: 0 6px 18px rgba(24,40,32,.08);
  }
  .tips-modal-card .photo-tips-grid {
    padding-bottom: 12px;
  }

  .hero-copy { text-align: center !important; }
  .hero-copy .eyebrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .hero-copy .eyebrow::before,
  .hero-copy .eyebrow::after {
    content: '' !important;
    display: block !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 1px !important;
    background: var(--brass) !important;
  }
  .hero-title {
    width: 100% !important;
    max-width: none !important;
    font-size: clamp(54px, 13.5vw, 68px) !important;
    line-height: .86 !important;
    letter-spacing: -.056em !important;
  }
  .hero-title em {
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(36px, 9.7vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: -.058em !important;
    margin-top: 8px !important;
  }
  .hero-lead {
    max-width: 100% !important;
    margin: 24px auto 0 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    letter-spacing: -.01em !important;
    text-wrap: balance;
  }

  .face-shape-card { width: min(calc(100% - 24px), var(--container)) !important; margin-top: 32px !important; }
  .multi-select-grid .multi-select-choice { padding-right: 48px !important; }
  .multi-select-indicator { width: 22px; height: 22px; top: 10px; right: 10px; }
  .photo-tips-grid .tip-img { border-width: 3px !important; }
  .photo-tips-grid > :nth-child(2) .tip-img { border: 0 !important; }
  .centered .eyebrow::before,.flow-body .eyebrow::before,.flow-panel .eyebrow::before,.quiz-shell .eyebrow::before,
  .centered .eyebrow::after,.flow-body .eyebrow::after,.flow-panel .eyebrow::after,.quiz-shell .eyebrow::after { flex-basis: 22px; width: 22px; }

  #how-it-works .steps-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  #how-it-works .step-card { width: 100% !important; min-width: 0 !important; min-height: 0 !important; padding: 22px 20px !important; border-radius: 22px !important; }
  #how-it-works .step-card > div:first-child { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 16px !important; margin-bottom: 16px !important; }
  #how-it-works .step-card h3 { font-size: 22px !important; line-height: 1.15 !important; margin-bottom: 8px !important; }
  #how-it-works .step-card p { font-size: 15px !important; line-height: 1.55 !important; margin: 0 !important; }

  .consultation-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .consultation-visual { min-height: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 16px !important; }
  .consultation-photo { width: min(100%, 430px) !important; height: auto !important; aspect-ratio: 4 / 5 !important; object-fit: cover !important; margin: 0 auto !important; }
  .profile-card { position: relative !important; right: auto !important; bottom: auto !important; width: min(100%, 430px) !important; margin: -48px auto 0 !important; padding: 20px 18px !important; border-radius: 22px !important; text-align: center !important; }
  .profile-card h3 { margin: 0 0 12px !important; font-size: 28px !important; line-height: 1.05 !important; text-align: center !important; }
  .profile-row { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; align-items: center !important; gap: 12px !important; padding: 12px 4px !important; font-size: 14px !important; line-height: 1.35 !important; text-align: center !important; }
  .profile-row > * { min-width: 0 !important; text-align: center !important; overflow-wrap: anywhere; }
  .profile-row span:first-child { justify-self: stretch !important; }
  .profile-row strong,.profile-row b,.profile-row span:last-child { justify-self: stretch !important; }

  .faq-section { padding-bottom: 34px !important; }
  .cta-section { padding-top: 20px !important; }
  .faq-section + .cta-section { margin-top: 0 !important; }
}

@media (max-width: 420px) {
  .site-header .logo { gap: 7px !important; }
  .site-header .logo-mark { flex-basis: 31px !important; width: 31px !important; height: 31px !important; }
  .site-header .logo-name { font-size: clamp(13px, 4.2vw, 17px) !important; }

  .hero-copy .eyebrow { gap: 12px !important; }
  .hero-copy .eyebrow::before,
  .hero-copy .eyebrow::after { flex-basis: 24px !important; width: 24px !important; }
  .hero-title {
    font-size: clamp(51px, 14vw, 59px) !important;
    letter-spacing: -.06em !important;
  }
  .hero-title em {
    font-size: clamp(34px, 9.55vw, 40px) !important;
    letter-spacing: -.062em !important;
  }
  .hero-lead { font-size: 14px !important; line-height: 1.5 !important; }
  .profile-card { width: calc(100% - 16px) !important; padding: 18px 14px !important; }
  .profile-card h3 { font-size: 26px !important; }
  .profile-row { grid-template-columns: 44% 56% !important; gap: 8px !important; font-size: 13px !important; }
  .faq-section { padding-bottom: 26px !important; }
  .cta-section { padding-top: 14px !important; }
}

@media (max-width: 350px) {
  .site-header .logo-name { font-size: 12.5px !important; }
  .site-header .logo-mark { flex-basis: 29px !important; width: 29px !important; height: 29px !important; }
}
