/* /creer · the onboarding on its own page: nothing but the form, large and calm. */
.creer-page { background: var(--cream); }
.creer-page #snow { display: none; }
.creer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; padding: 14px 16px; }
.creer-header .logo-mark { width: 40px; height: 40px; }
.creer-header .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.creer-secure { font-size: .85rem; font-weight: 800; color: var(--muted); }
.creer-main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.creer-page .funnel { border-radius: 20px; box-shadow: 0 10px 30px rgba(42, 30, 26, .08); scroll-margin-top: 12px; }
.creer-page .funnel-head { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 16px 20px 14px; }
.creer-page .funnel-title, .creer-page .funnel-sub { display: none; }
.creer-page .progress { background: var(--line); }
.creer-page .progress span { background: var(--red); }
.creer-page .steps-labels { color: var(--muted); opacity: 1; }
.creer-page .steps-labels li.active { color: var(--red); }
.creer-page form { padding: 22px 20px 24px; }
.creer-trust { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-weight: 700; color: var(--ink); text-align: center; }
.creer-help { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }
.creer-help a { color: var(--red); }

/* Landing block that sends to /creer */
.go-create h2 { margin-bottom: 18px; }
.go-steps { list-style: none; padding: 0; margin: 0 auto 24px; display: grid; gap: 12px; max-width: 460px; text-align: left; }
.go-steps li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1.05rem; }
.go-steps li span { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; }

@media (max-width: 480px) {
  .creer-main { padding: 0 10px 40px; }
  .creer-page form { padding: 18px 16px 22px; }
  .creer-secure { display: none; }
}

.other-field { margin-top: -6px; }
.creer-page .styles { grid-template-columns: 1fr 1fr; }
.creer-page .style-card { flex-direction: row; align-items: center; gap: 8px; padding: 12px; min-height: 56px; }
.creer-page .style-card strong { font-size: .98rem; }

.phonetic { margin: -8px 0 16px; }
.phonetic summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 700; padding: 4px 0; }
.phonetic input { margin-top: 8px; }

/* ---------- Always-visible action: the step's main button sticks to the bottom of the screen ---------- */
.creer-page .step-cta {
  position: sticky; bottom: 0; z-index: 5;
  margin: 8px -20px -24px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 22%);
  border-radius: 0 0 20px 20px;
}
.creer-page .step-cta .error:empty { display: none; }
.creer-page .step-cta .micro { margin-top: 8px; }
.creer-page .step-cta .total { border-top: 0; padding-top: 0; margin-bottom: 8px; }
.creer-page .questions .step-cta { margin-top: 4px; }
.creer-page .step.active { animation: stepin .3s ease; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .creer-page .step-cta { margin: 8px -16px -22px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .creer-page .chips { gap: 8px; }
  .creer-page .chip { min-height: 44px; padding: 9px 14px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .creer-page .step.active { animation: none; } }
/* sticky needs no clipping ancestor */
.creer-page .funnel { overflow: visible; }
.creer-page .funnel-head { border-radius: 20px 20px 0 0; }
.creer-page .step-cta .step-nav { grid-template-columns: 56px 1fr; gap: 10px; margin-top: 0; }
.creer-page .step-cta .step-nav .btn-ghost { padding: 0; min-width: 56px; background: #fff; }
.creer-page .step-cta .btn { white-space: nowrap; }
.creer-page .step-cta .micro { font-size: .82rem; margin-top: 6px; }
@media (max-width: 380px) { .creer-page .step-cta .btn { font-size: 1rem; padding-left: 14px; padding-right: 14px; } }

/* ---------- Offer step: clear prices + visual examples ---------- */
.launch-line { background: #FFF3DC; border: 2px solid var(--gold); border-radius: 14px; padding: 12px 14px; font-size: .95rem; line-height: 1.45; margin: 0 0 14px; }
.creer-page .pack { grid-template-columns: 24px 1fr; }
.pack-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pack-top strong { margin: 0; font-size: 1.12rem; }
.creer-page .pack-price { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.pack-price .was { color: var(--muted); font-size: .78rem; font-weight: 700; text-decoration: none; order: 2; margin-top: 2px; }
.pack-price .was:empty { display: none; }
.creer-page .pack-price b { font-size: 1.4rem; color: var(--red); }
.pack-thumbs { display: flex; gap: 8px; margin: 2px 0 10px; }
.thumb { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(42, 30, 26, .15); cursor: zoom-in; flex: 0 0 auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-style: normal; font-weight: 800; font-size: .72rem; padding: 14px 6px 5px; }
.ex-link { color: var(--red); font-weight: 800; text-decoration: underline; margin-left: 4px; white-space: nowrap; cursor: pointer; }
.ex-modal { border: 0; border-radius: 20px; padding: 18px; width: min(420px, calc(100vw - 24px)); max-height: 90vh; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ex-modal::backdrop { background: rgba(20, 14, 12, .6); }
.ex-close { position: absolute; top: 8px; right: 10px; border: 0; background: var(--cream); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.ex-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 4px 44px 12px 0; }
.ex-body img, .ex-body video { width: 100%; border-radius: 12px; display: block; max-height: 62vh; object-fit: contain; background: #000; }
.ex-body img.ex-cover { max-width: 240px; margin: 0 auto 12px; background: none; }
.ex-body audio { width: 100%; }
.ex-note { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }

/* Style cards: name + short hint, no emoji */
.creer-page .style-card { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: start; }
.creer-page .style-card small { display: block; font-size: .78rem; line-height: 1.25; }
.creer-page .quill { color: var(--red); }

/* Arabic universe */
body.rtl.creer-page { font-family: "Tajawal", var(--font-body); }
body.rtl.creer-page legend, body.rtl.creer-page .funnel-title, body.rtl.creer-page .song-title { font-family: "Amiri", var(--font-head); }
body.rtl .lyrics-reveal, body.rtl #lyrics { font-size: 1.1rem; line-height: 1.9; }

/* Payment step: the CTA is followed by reassurance + legal text, so no sticky overlap there. */
.creer-page .step-cta:has(#btnPay) { margin-bottom: 0; border-radius: 0; background: #fff; box-shadow: 0 -10px 18px -12px rgba(42, 30, 26, .25); }
.creer-page .pay-reassure { margin: 14px 0 6px; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--ink); justify-items: center; text-align: center; }
.creer-page .pay-reassure li::before { content: "✓ "; color: var(--green); }
.creer-page .legal-consent { font-size: .8rem; line-height: 1.45; margin: 8px 0 14px; }
.creer-page .pack-price .was { order: 2; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #F6EBDD; color: #7A5A3A; font-size: .74rem; font-weight: 800; }
