/* ============================================
   Soulé Apps — Ritual Quiz, Glow Tracker, Party landing page
   Shared styles. Loaded in addition to style.css on
   site/apps/*.html and site/party.html only.
   ============================================ */

.app-hero {
  padding: 80px 0 48px;
  text-align: center;
  background: var(--sage-wash);
}

.app-hero .eyebrow { display: block; }

.app-hero p:not(.eyebrow) {
  max-width: 50ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}

.app-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 48px;
  box-shadow: 0 24px 60px -34px rgba(16, 32, 63, 0.22);
}

@media (max-width: 560px) {
  .app-card { padding: 32px 24px; }
  .app-shell { padding: 40px 20px 72px; }
}

/* ---------- Ritual Quiz ---------- */

/* Desktop: quiz card + a live product-preview rail, echoing the .split
   pattern used across the product pages. Single column on mobile/tablet. */
.quiz-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 860px) {
  .quiz-layout { grid-template-columns: 1.15fr 0.85fr; }
}

.quiz-preview {
  position: sticky;
  top: 32px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(16, 32, 63, 0.24);
  aspect-ratio: 4 / 5;
  background: var(--cream);
}

.quiz-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.quiz-preview__caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: var(--warm-white);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-shadow: 0 2px 12px rgba(16, 32, 63, 0.5);
}

.quiz-preview-wrap { position: relative; }

@media (max-width: 859px) {
  .quiz-preview { display: none; }
}

.quiz-step { display: none; }
.quiz-step.is-active { display: block; }

.quiz-step h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5em;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin: 24px 0 36px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-option:hover { border-color: var(--gold); }

.quiz-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.quiz-option.is-selected {
  border-color: var(--gold);
  background: var(--cream);
}

.quiz-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.quiz-progress__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease;
}

.quiz-progress__dot.is-complete,
.quiz-progress__dot.is-active { background: var(--gold); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Ritual ring result */

.ritual-ring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 22px;
  margin: 36px 0;
}

.ritual-ring__step {
  text-align: center;
  position: relative;
}

.ritual-ring__badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 32px -16px rgba(16, 32, 63, 0.35);
}

.ritual-ring__step--dim .ritual-ring__badge {
  border-color: var(--line);
  opacity: 0.55;
}

.ritual-ring__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ritual-ring__number {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.ritual-ring__name {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.3;
}

.ritual-ring__tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.quiz-result__intro {
  text-align: center;
  margin-bottom: 8px;
}

.quiz-result__scent {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 28px;
}

.quiz-result__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.quiz-result__actions .btn--primary {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.quiz-result__secondary-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-cart-confirm {
  display: none;
  text-align: center;
  font-size: 0.85rem;
  color: var(--sage-deep);
  margin-top: 4px;
}

.quiz-cart-confirm.is-visible { display: block; }

/* ---------- Glow Tracker ---------- */

.tracker-today {
  text-align: center;
  margin-bottom: 36px;
}

.tracker-today__date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.tracker-section-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 4px;
}

.tracker-checklist {
  display: grid;
  gap: 10px;
  margin: 20px 0 32px;
}

.tracker-checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tracker-checklist label:hover { border-color: var(--gold); }

.tracker-checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.tracker-checklist__thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tracker-feeling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.tracker-feeling {
  padding: 15px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tracker-feeling:hover { border-color: var(--gold); }

.tracker-feeling.is-selected {
  border-color: var(--gold);
  background: var(--cream);
  color: var(--navy);
}

.tracker-success-message {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: var(--sage-deep);
  background: var(--cream);
  border-radius: 4px;
  padding: 12px 18px;
  margin: 4px 0 0;
}

.tracker-success-message.is-visible { display: block; }

.tracker-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  margin: 28px 0;
}

.tracker-streak__flame { font-size: 1.4rem; }

.tracker-trend {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 100px;
  margin: 28px 0 12px;
  padding: 0 4px;
}

.tracker-trend__bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tracker-trend__fill {
  width: 100%;
  max-width: 32px;
  border-radius: 4px 4px 0 0;
  background: var(--line);
  transition: height 0.3s ease;
}

.tracker-trend__fill.is-complete { background: var(--gold); }
.tracker-trend__fill.is-partial { background: var(--gold-light); }

.tracker-trend__label {
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-timeline {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.tracker-timeline__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.tracker-timeline__row:last-child { border-bottom: none; }

.tracker-timeline__check {
  width: 20px;
  text-align: center;
  color: var(--gold);
}

.tracker-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 36px auto;
  border: none;
}

/* ---------- Party landing page ---------- */

/* Split hero: heading sits over the open marble/linen space at upper-right,
   body copy + CTA stay lower-left. Two soft radial pools (not one shared
   directional gradient) darken just behind each text zone and fade out
   before the product/basket detail, rather than washing the whole photo. */
.hero-cinematic--party .hero-cinematic__overlay {
  background:
    radial-gradient(46% 62% at 84% 28%, rgba(24, 19, 14, 0.42) 0%, rgba(24, 19, 14, 0.18) 55%, rgba(24, 19, 14, 0) 78%),
    radial-gradient(58% 68% at 18% 84%, rgba(24, 19, 14, 0.66) 0%, rgba(24, 19, 14, 0.34) 52%, rgba(24, 19, 14, 0) 80%);
}

.hero-cinematic--party .hero-cinematic__content-wrap {
  /* Deliberately not a positioned ancestor — the two children below need to
     anchor their position:absolute against the full-height .hero-cinematic
     box (already position:relative), not against this wrap, which has no
     real height of its own once its children leave normal flow. */
  width: 100%;
}

.hero-cinematic--party .hero-cinematic__content {
  text-align: left;
  max-width: 620px;
  margin: 0;
}

.hero-cinematic--party .hero-cinematic__content--party-heading {
  margin-bottom: 28px;
}

.hero-cinematic--party .hero-cinematic__content--party-body .btn-row {
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .hero-cinematic--party .hero-cinematic__content {
    max-width: 100%;
    padding-right: 12px;
  }
}

/* Above mobile, split into two independently-placed blocks. Below it, both
   stay in normal flow (stacked, left-aligned) like every other interior
   hero — the split depends on this exact photo crop, which recrops at
   narrower widths, so it isn't safe to force below 701px. */
@media (min-width: 701px) {
  .hero-cinematic--party .hero-cinematic__content--party-heading {
    position: absolute;
    top: 16%;
    left: 54%;
    max-width: 42%;
    margin-bottom: 0;
  }

  .hero-cinematic--party .hero-cinematic__content--party-body {
    position: absolute;
    left: 6%;
    bottom: 9%;
    max-width: 440px;
  }
}

.party-social-proof {
  background: var(--navy);
  color: var(--warm-white);
  text-align: center;
  padding: 24px 28px;
  border-radius: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto;
}

.party-incentive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0 0;
}

.party-incentive-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.party-incentive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(16, 32, 63, 0.3);
}

.party-incentive-card__icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--gold);
}

.party-steps {
  counter-reset: party-step;
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.party-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.party-step__number {
  counter-increment: party-step;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.party-app-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin: 40px 0 0;
}

.party-app-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 30px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.party-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(16, 32, 63, 0.3);
}

.party-app-card__image {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--gold);
}

.party-app-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.party-faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.party-faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
}

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

.party-faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.party-faq details[open] summary::after { content: "−"; }

.party-faq p {
  margin-top: 14px;
}

.party-placeholder-note {
  background: var(--blush-soft);
  border-left: 3px solid var(--gold);
  padding: 16px 22px;
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 20px 0;
}

.party-gift-image {
  width: 100%;
  height: auto;
  display: block;
}

.party-hosting-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 640px;
  margin: 32px auto 0;
}

.party-hosting-option {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.party-hosting-option:hover { border-color: var(--gold); transform: translateY(-2px); }

.party-hosting-option.is-selected {
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: 0 20px 40px -28px rgba(16, 32, 63, 0.3);
}

.party-hosting-option__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.party-hosting-option h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.party-hosting-option p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.party-hosting-detail {
  max-width: 56ch;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.party-hosting-cta-note {
  margin: 16px auto 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.party-hosting-cta-note a {
  color: var(--gold);
  font-weight: 500;
}
