/*
 * funnel.css — Shade Diary Web Funnel
 *
 * ANTI-PATTERNS — do not add:
 *   - CSS opacity/display toggles to hide paid content (server renders two distinct HTML branches)
 *   - JS class toggling to reveal .cr-revealed blocks (entitlement is server-side only)
 *   - Any selector that could show .step[data-step="5"] or .step[data-step="6"] via CSS alone
 *   - !important overrides of band colors
 *
 * Scoped namespaces used here:
 *   .funnel-*    — layout shell, progress, navigation
 *   .passport-*  — Hair Passport form sub-screens
 *   .band--*     — damage check band modifier classes (4 variants)
 *   .reason-*    — reason chips
 *   .paywall-*   — paywall card and plan toggle
 *   .cr-*        — Color Read reveal (paid content)
 *   .receipt-*   — Color Receipt (paid content)
 *   .ios-*       — iOS redemption step
 */

/* ─── Design tokens (scoped additions — do not override styles.css tokens) ── */
:root {
  --copper-brand:   #B5642F;
  --success:        #4E7A52;
  --danger:         #9A3526;
  --amber:          #C8842B;
  --canvas:         #F6F1E7;
  --radius-card:    14px;
  --radius-control: 10px;
  --radius-pill:    999px;

  /* Band surface colors */
  --band-success-bg:    #EEF5EE;
  --band-success-border:#4E7A52;
  --band-success-text:  #2E4F31;
  --band-amber-bg:      #FDF4E7;
  --band-amber-border:  #C8842B;
  --band-amber-text:    #6B4010;
  --band-copper-bg:     #FBF0E8;
  --band-copper-border: #B5642F;
  --band-copper-text:   #5A2E10;
  --band-danger-bg:     #FDECEA;
  --band-danger-border: #9A3526;
  --band-danger-text:   #5C1B12;
}

/* ─── Funnel shell ─────────────────────────────────────────────────────────── */

.funnel-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 8%, rgb(200 132 43 / 18%), transparent 26rem),
    linear-gradient(160deg, var(--porcelain, #f8f3ee), #ead9ca 52%, var(--canvas));
  color: var(--ink, #29201c);
  font-family: "Manrope", sans-serif;
}

.funnel-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgb(41 32 28 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(41 32 28 / 4%) 1px, transparent 1px);
  background-size: 44px 44px;
}

.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 16px;
  border-bottom: 1px solid rgb(41 32 28 / 10%);
}

.funnel-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink, #29201c);
  text-transform: uppercase;
}

.funnel-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink, #29201c);
  background: var(--ink, #29201c);
  color: var(--cream, #fff8ef);
  font-size: 0.72rem;
  font-weight: 900;
}

.funnel-step-label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--graphite, #57504c);
  letter-spacing: 0.04em;
}

/* ─── Progress dots ────────────────────────────────────────────────────────── */

.funnel-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(640px, calc(100% - 32px));
  margin: 14px auto 0;
}

.funnel-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgb(41 32 28 / 18%);
  transition: background 280ms ease, width 280ms ease;
}

.funnel-progress-dot[aria-current="step"] {
  width: 22px;
  background: var(--copper-brand);
}

.funnel-progress-dot[data-complete="true"] {
  background: var(--success);
}

/* ─── Step sections ────────────────────────────────────────────────────────── */

.funnel-main {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.funnel-step {
  display: none;
  animation: funnel-rise 360ms ease both;
}

.funnel-step[data-active="true"] {
  display: block;
}

@keyframes funnel-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.funnel-step-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.funnel-kicker {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--copper-brand);
  letter-spacing: 0.05em;
  margin: 0;
}

.funnel-step-head h1,
.funnel-step-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 0.93;
  margin: 0;
}

.funnel-step-head p {
  color: var(--graphite, #57504c);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

/* ─── Form fields — passport inputs ─────────────────────────────────────────── */

.passport-sub {
  display: none;
}

.passport-sub[data-active="true"] {
  display: block;
  animation: funnel-rise 320ms ease both;
}

.passport-fields {
  display: grid;
  gap: 18px;
}

.passport-field {
  display: grid;
  gap: 6px;
}

.passport-field label {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink, #29201c);
}

.passport-field label abbr {
  color: var(--danger);
  text-decoration: none;
  margin-left: 2px;
}

.passport-field input[type="text"],
.passport-field input[type="url"],
.passport-field select,
.passport-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgb(41 32 28 / 22%);
  border-radius: var(--radius-control);
  background: rgb(255 248 239 / 88%);
  color: var(--ink, #29201c);
  font: inherit;
  font-size: 0.96rem;
  padding: 0 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  appearance: none;
}

.passport-field textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.passport-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2357504c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.passport-field input:focus,
.passport-field select:focus,
.passport-field textarea:focus {
  outline: none;
  border-color: var(--copper-brand);
  box-shadow: 0 0 0 3px rgb(181 100 47 / 14%);
}

.passport-field input[aria-invalid="true"],
.passport-field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(154 53 38 / 12%);
}

.passport-field-hint {
  font-size: 0.78rem;
  color: var(--graphite, #57504c);
  line-height: 1.4;
  margin: 0;
}

.passport-field-error {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 900;
  margin: 0;
  display: none;
}

.passport-field-error[data-visible="true"] {
  display: block;
}

/* Radio / chip group for passport options */

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.option-chip {
  position: relative;
}

.option-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-chip label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgb(41 32 28 / 20%);
  border-radius: var(--radius-pill);
  background: rgb(255 248 239 / 80%);
  color: var(--ink, #29201c);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  text-transform: none;
  letter-spacing: 0;
  user-select: none;
}

.option-chip input:checked + label {
  border-color: var(--copper-brand);
  background: var(--copper-brand);
  color: var(--cream, #fff8ef);
}

.option-chip input:focus-visible + label {
  outline: 3px solid rgb(181 100 47 / 40%);
  outline-offset: 2px;
}

/* Level slider */

.level-slider-wrap {
  display: grid;
  gap: 8px;
}

.level-slider {
  width: 100%;
  accent-color: var(--copper-brand);
  cursor: pointer;
}

.level-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--graphite, #57504c);
}

.level-value-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  background: var(--copper-brand);
  color: var(--cream, #fff8ef);
  font-size: 1.1rem;
  font-weight: 900;
  font-family: "Cormorant Garamond", serif;
}

/* Sub-screen progress bar */

.passport-sub-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.passport-sub-progress span {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgb(41 32 28 / 12%);
  transition: background 280ms ease;
}

.passport-sub-progress span[data-done="true"] {
  background: var(--copper-brand);
}

/* Trend capture — optional URL + text */

.trend-field-wrap {
  display: grid;
  gap: 18px;
}

.trend-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite, #57504c);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-or-divider::before,
.trend-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(41 32 28 / 14%);
}

/* ─── Navigation buttons ────────────────────────────────────────────────────── */

.funnel-nav {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.funnel-btn-primary {
  flex: 1;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-control);
  background: var(--copper-brand);
  color: var(--cream, #fff8ef);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0 20px;
  transition: background 160ms ease, opacity 160ms ease;
}

.funnel-btn-primary:hover {
  background: #9e5428;
}

.funnel-btn-primary:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.funnel-btn-back {
  min-height: 52px;
  min-width: 52px;
  border: 1px solid rgb(41 32 28 / 18%);
  border-radius: var(--radius-control);
  background: rgb(255 248 239 / 72%);
  color: var(--graphite, #57504c);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 16px;
  transition: background 160ms ease;
}

.funnel-btn-back:hover {
  background: rgb(255 248 239 / 100%);
}

.funnel-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgb(41 32 28 / 18%);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink, #29201c);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 18px;
  text-decoration: none;
  transition: background 160ms ease;
}

.funnel-btn-secondary:hover {
  background: rgb(41 32 28 / 6%);
}

/* Loading spinner */

.funnel-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgb(255 248 239 / 36%);
  border-top-color: var(--cream, #fff8ef);
  border-radius: 50%;
  animation: funnel-spin 600ms linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes funnel-spin {
  to { transform: rotate(360deg); }
}

.funnel-error-msg {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--band-danger-bg);
  border: 1px solid var(--band-danger-border);
  color: var(--band-danger-text);
  font-size: 0.86rem;
  font-weight: 800;
  display: none;
}

.funnel-error-msg[data-visible="true"] {
  display: block;
}

/* ─── Band result card — step 3 ─────────────────────────────────────────────── */

.band-card {
  border: 2px solid var(--line, rgb(41 32 28 / 16%));
  border-radius: var(--radius-card);
  padding: 24px;
  background: rgb(255 248 239 / 86%);
  box-shadow: 0 8px 40px rgb(41 32 28 / 10%);
  display: grid;
  gap: 18px;
}

/* Band modifier classes — soft-go */
.band--soft-go {
  border-color: var(--band-success-border);
  background: var(--band-success-bg);
}

.band--soft-go .band-name {
  color: var(--band-success-text);
}

.band--soft-go .band-badge {
  background: var(--success);
  color: #fff;
}

/* Band modifier — strand-test-first */
.band--strand-test-first {
  border-color: var(--band-amber-border);
  background: var(--band-amber-bg);
}

.band--strand-test-first .band-name {
  color: var(--band-amber-text);
}

.band--strand-test-first .band-badge {
  background: var(--amber);
  color: #fff;
}

/* Band modifier — pause-and-soften */
.band--pause-and-soften {
  border-color: var(--band-copper-border);
  background: var(--band-copper-bg);
}

.band--pause-and-soften .band-name {
  color: var(--band-copper-text);
}

.band--pause-and-soften .band-badge {
  background: var(--copper-brand);
  color: #fff;
}

/* Band modifier — salon-zone */
.band--salon-zone {
  border-color: var(--band-danger-border);
  background: var(--band-danger-bg);
}

.band--salon-zone .band-name {
  color: var(--band-danger-text);
}

.band--salon-zone .band-badge {
  background: var(--danger);
  color: #fff;
}

/* Band card internals */

.band-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.band-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.band-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 0.94;
  margin: 0;
}

.band-free-summary {
  font-size: 0.96rem;
  color: var(--graphite, #57504c);
  line-height: 1.55;
  margin: 0;
}

/* Reason chips */

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgb(41 32 28 / 16%);
  border-radius: var(--radius-pill);
  background: rgb(255 248 239 / 80%);
  color: var(--ink, #29201c);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.reason-chip--free {
  border-color: var(--copper-brand);
  background: rgb(181 100 47 / 8%);
}

.reason-chip-teaser {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--graphite, #57504c);
  font-style: italic;
  margin: 0;
}

/* Safety stops */

.safety-stops {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-stop {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink, #29201c);
  line-height: 1.4;
}

.safety-stop::before {
  content: "!";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  margin-top: 1px;
}

.band-divider {
  height: 1px;
  background: rgb(41 32 28 / 10%);
  margin: 0;
  border: none;
}

.band-teaser-label {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--graphite, #57504c);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.band-more-reasons {
  font-size: 0.86rem;
  color: var(--graphite, #57504c);
  margin: 4px 0 0;
}

/* ─── Paywall card — step 4 ──────────────────────────────────────────────────── */

.paywall-card {
  border: 1px solid var(--line, rgb(41 32 28 / 16%));
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 12px 60px rgb(41 32 28 / 16%);
}

.paywall-band-echo {
  padding: 16px 24px;
  background: var(--ink, #29201c);
  color: var(--cream, #fff8ef);
  display: flex;
  align-items: center;
  gap: 12px;
}

.paywall-band-echo-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.paywall-band-echo-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  line-height: 1;
}

.paywall-body {
  background:
    radial-gradient(circle at 88% 8%, rgb(181 100 47 / 18%), transparent 16rem),
    linear-gradient(160deg, rgb(255 248 239 / 92%), var(--canvas));
  padding: 28px 24px 0;
  display: grid;
  gap: 20px;
}

.paywall-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 0.96;
  margin: 0;
}

.paywall-unlock-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paywall-unlock-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink, #29201c);
  line-height: 1.45;
}

.paywall-unlock-item::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Plan toggle */

.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-option {
  position: relative;
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-option label {
  display: grid;
  gap: 4px;
  border: 2px solid rgb(41 32 28 / 16%);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  cursor: pointer;
  background: rgb(255 248 239 / 70%);
  transition: border-color 160ms ease, background 160ms ease;
}

.plan-option input:checked + label {
  border-color: var(--copper-brand);
  background: rgb(181 100 47 / 6%);
}

.plan-option input:focus-visible + label {
  outline: 3px solid rgb(181 100 47 / 40%);
  outline-offset: 2px;
  border-radius: var(--radius-card);
}

.plan-badge {
  display: inline-flex;
  align-self: start;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--success);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.plan-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink, #29201c);
}

.plan-cadence {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--graphite, #57504c);
  text-transform: uppercase;
}

.plan-unit {
  font-size: 0.8rem;
  color: var(--graphite, #57504c);
  font-weight: 700;
}

/* Point-of-sale disclosure — STATIC HTML, never hidden by CSS */

.pos-disclosure {
  border-left: 3px solid var(--copper-brand);
  background: rgb(255 248 239 / 70%);
  padding: 14px 16px;
  color: var(--graphite, #57504c);
  font-size: 0.78rem;
  line-height: 1.55;
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
}

.pos-disclosure strong {
  color: var(--ink, #29201c);
}

.pos-disclosure a {
  color: var(--copper-brand);
  font-weight: 900;
}

.paywall-actions {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-top: 1px solid rgb(41 32 28 / 8%);
}

/* RevenueCat inline checkout container */
#rc-checkout-container {
  min-height: 0;
  border-radius: var(--radius-control);
  overflow: hidden;
  transition: min-height 300ms ease;
}

#rc-checkout-container:not(:empty) {
  min-height: 200px;
}

.paywall-restore-link {
  text-align: center;
  font-size: 0.78rem;
  color: var(--graphite, #57504c);
}

.paywall-restore-link a {
  color: var(--copper-brand);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paywall-coming-soon {
  text-align: center;
  padding: 16px;
  background: rgb(41 32 28 / 4%);
  border-radius: var(--radius-control);
  font-size: 0.86rem;
  color: var(--graphite, #57504c);
  font-weight: 800;
}

/* ─── Color Read reveal — step 5 (PAID, server-rendered) ────────────────────── */

.cr-card {
  border: 1px solid var(--line, rgb(41 32 28 / 16%));
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 90% 6%, rgb(181 100 47 / 22%), transparent 18rem),
    linear-gradient(160deg, #302721, #1f1916);
  color: var(--cream, #fff8ef);
  overflow: hidden;
  box-shadow: 0 12px 60px rgb(41 32 28 / 28%);
}

.cr-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgb(255 248 239 / 12%);
  display: grid;
  gap: 6px;
}

.cr-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 248 239 / 60%);
}

.cr-band-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.92;
  margin: 0;
}

.cr-body {
  padding: 22px 24px;
  display: grid;
  gap: 22px;
}

.cr-section-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(255 248 239 / 55%);
  margin: 0 0 8px;
}

.cr-reasons {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgb(255 248 239 / 90%);
}

.cr-reason::before {
  content: counter(cr-count);
  counter-increment: cr-count;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgb(255 248 239 / 24%);
  font-size: 0.68rem;
  font-weight: 900;
  color: rgb(255 248 239 / 70%);
  margin-top: 2px;
}

.cr-reasons {
  counter-reset: cr-count;
}

.cr-maintenance {
  border: 1px solid rgb(255 248 239 / 14%);
  border-radius: var(--radius-control);
  padding: 14px 16px;
  background: rgb(255 248 239 / 6%);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgb(255 248 239 / 85%);
}

/* ─── Color Receipt — step 6 ────────────────────────────────────────────────── */

.receipt-card {
  border: 1px solid var(--line, rgb(41 32 28 / 16%));
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgb(255 248 239 / 10%), rgb(255 248 239 / 3%)),
    #35151d;
  color: var(--cream, #fff8ef);
  overflow: hidden;
  box-shadow: 0 12px 60px rgb(53 21 29 / 36%);
}

.receipt-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgb(255 248 239 / 10%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
}

.receipt-date {
  font-size: 0.74rem;
  font-weight: 900;
  color: rgb(255 248 239 / 50%);
  text-transform: uppercase;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgb(255 248 239 / 10%);
}

.receipt-field {
  display: grid;
  gap: 4px;
  background: #35151d;
  padding: 16px;
}

.receipt-field-label {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(255 248 239 / 50%);
  margin: 0;
}

.receipt-field-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0;
  color: var(--cream, #fff8ef);
}

.receipt-field--wide {
  grid-column: 1 / -1;
}

.receipt-day3-note {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(255 248 239 / 10%);
  padding: 14px 16px;
  background: #35151d;
  font-size: 0.84rem;
  color: rgb(255 248 239 / 72%);
  line-height: 1.55;
}

.receipt-day3-note strong {
  color: #f4cf9d;
}

/* Photo slots */

.photo-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
  background: #35151d;
  border-top: 1px solid rgb(255 248 239 / 10%);
}

.photo-slot {
  aspect-ratio: 1;
  border: 1px dashed rgb(255 248 239 / 24%);
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgb(255 248 239 / 40%);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.photo-slot:hover {
  border-color: rgb(255 248 239 / 50%);
  background: rgb(255 248 239 / 4%);
}

.photo-slot svg {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}

/* ─── iOS redemption step ───────────────────────────────────────────────────── */

.ios-card {
  border: 1px solid var(--line, rgb(41 32 28 / 16%));
  border-radius: var(--radius-card);
  background: rgb(255 248 239 / 88%);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
  text-align: center;
  box-shadow: 0 8px 40px rgb(41 32 28 / 10%);
}

.ios-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ink, #29201c);
  margin: 0 auto;
}

.ios-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 0.96;
  margin: 0;
}

.ios-subtext {
  color: var(--graphite, #57504c);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.ios-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: var(--radius-control);
  background: var(--ink, #29201c);
  color: var(--cream, #fff8ef);
  font: inherit;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.ios-btn-primary:hover {
  opacity: 0.86;
}

.ios-btn-primary[hidden] {
  display: none;
}

.ios-email-form {
  display: grid;
  gap: 10px;
}

.ios-email-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.ios-email-field label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--graphite, #57504c);
}

.ios-email-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgb(41 32 28 / 22%);
  border-radius: var(--radius-control);
  background: rgb(255 248 239 / 88%);
  color: var(--ink, #29201c);
  font: inherit;
  padding: 0 14px;
}

.ios-email-field input:focus {
  outline: none;
  border-color: var(--copper-brand);
  box-shadow: 0 0 0 3px rgb(181 100 47 / 14%);
}

.ios-success-msg {
  font-size: 0.86rem;
  color: var(--success);
  font-weight: 900;
  display: none;
}

.ios-success-msg[data-visible="true"] {
  display: block;
}

/* ─── Responsive adjustments ────────────────────────────────────────────────── */

@media (max-width: 540px) {
  .plan-toggle {
    grid-template-columns: 1fr;
  }

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

  .receipt-field--wide {
    grid-column: 1;
  }

  .photo-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .band-name {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .paywall-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .funnel-step,
  .passport-sub,
  .funnel-spinner {
    animation: none;
    transition: none;
  }
}
