/*
 * Shell uses --app-height:
 *   browser  → 100dvh (default in tokens.css)
 *   iOS PWA  → 100vh  (set by head bootstrap — NOT 100dvh, NOT 100vh+safe-area)
 * Do not inflate height with env(safe-area-inset-*). Clearance lives inside
 * top/bottom chrome (onboardSheet padding, bottomNav offset).
 */
.shell {
  min-height: var(--app-height, 100dvh);
  height: var(--app-height, 100dvh);
  display: flex;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.phone {
  width: min(100%, 430px);
  height: 100%;
  max-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 18px
           calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

.contentFlush {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px
           calc(env(safe-area-inset-bottom, 0px) + 28px);
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

/* ── Splash: sonic boot ───────────────────────────────────────────
   Cold-start brand moment before onboarding or home. ───────────── */
.splashScreen {
  z-index: 5;
  background:
    radial-gradient(120% 80% at 50% 38%, rgba(232, 161, 83, 0.14), transparent 55%),
    radial-gradient(90% 60% at 50% 100%, rgba(185, 120, 46, 0.12), transparent 50%),
    var(--bg);
}

.splash {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: calc(env(safe-area-inset-top, 0px) + 32px) 24px
           calc(env(safe-area-inset-bottom, 0px) + 48px);
  text-align: center;
}

.splashGlow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 45%, rgba(232, 161, 83, 0.28) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.85;
}

.splashMark {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.splashLogo {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.86);
}

.splashRing {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1.75px solid rgba(232, 161, 83, 0.7);
  box-shadow:
    0 0 0 1px rgba(232, 161, 83, 0.12),
    0 0 18px rgba(232, 161, 83, 0.28);
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
}

.splashRing[data-ring="1"] {
  border-color: rgba(232, 161, 83, 0.48);
}

.splashRing[data-ring="2"] {
  border-color: rgba(232, 161, 83, 0.3);
}

.splashWordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
}

.splashStatus {
  margin: 0;
  min-height: 1.35em;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
}

/* ── Onboarding: cinematic shell ─────────────────────────────────
   Full-bleed media/sheet composition using the app's shared
   ink+amber dark tokens. ──────────────────────────────────────── */
.onboardShell {
  background: var(--bg);
}

.onboardStage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.onboardTop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 0;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
}

.wbar {
  width: 5px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 241, 230, 0.3);
  transform-origin: center;
  transition: height 320ms var(--ease-spring), background 260ms ease, box-shadow 260ms ease;
}

.wbarActive {
  height: 17px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 161, 83, 0.65);
}

.wbarDone {
  height: 11px;
  background: rgba(247, 241, 230, 0.62);
}

.skipBtn {
  appearance: none;
  border: 0;
  background: rgba(20, 17, 13, 0.4);
  backdrop-filter: blur(6px);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  transition: opacity 160ms ease, background 160ms ease;
}

.skipBtn:active {
  opacity: 0.7;
}

.onboardBody {
  position: absolute;
  inset: 0;
}

.onboardPanel {
  position: absolute;
  inset: 0;
}

.onboardMedia {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #241d14, var(--bg) 70%);
}

.onboardPanel--band .onboardMedia {
  top: 0;
  bottom: auto;
  height: calc(34% + env(safe-area-inset-top, 0px));
  border-radius: 0 0 28px 28px;
}

.onboardMediaImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform-origin: center center;
  filter: saturate(1.04) contrast(1.02);
}

.onboardScrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0) 30%, rgba(20, 17, 13, 0.55) 78%, var(--bg) 100%);
  pointer-events: none;
}

.onboardPanel--band .onboardScrim {
  background: linear-gradient(180deg, rgba(20, 17, 13, 0.05) 0%, rgba(20, 17, 13, 0.85) 100%);
}

.onboardSweep {
  position: absolute;
  inset: -10% -60% -10% -60%;
  background: linear-gradient(
    100deg,
    transparent 42%,
    rgba(247, 241, 230, 0.32) 49%,
    rgba(232, 161, 83, 0.5) 52%,
    transparent 60%
  );
  transform: translateX(-60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.statusBubble {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.55);
  border: 1px solid rgba(247, 241, 230, 0.14);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.statusBubble::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 161, 83, 0.85);
}

.onboardBand {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 5px;
  /* Clear status bar + .onboardTop chrome (16px + ~18px waveform) */
  padding: calc(env(safe-area-inset-top, 0px) + 44px) 12px 12px;
}

.onboardBandItem {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(247, 241, 230, 0.1);
}

.onboardBandItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.onboardBandItem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 17, 13, 0.78) 100%);
}

.onboardBandItem span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  right: 8px;
  z-index: 1;
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.onboardSheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: 60%;
  overflow-y: auto;
  /* Background paints to screen edge; CTA/disclaimer clear home indicator */
  padding: 22px 20px calc(constant(safe-area-inset-bottom) + 22px);
  padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 22px);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(30, 23, 16, 0.92), var(--bg-elevated) 40%);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
  color: var(--ink);
}

.onboardPanel--band .onboardSheet {
  top: calc(34% + env(safe-area-inset-top, 0px));
  bottom: 0;
  max-height: none;
  border-radius: 24px 24px 0 0;
  margin-top: -18px;
}

.brandMark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.onboardTestimonial {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 36%;
  z-index: 1;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(246, 239, 227, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  color: var(--bg);
}

.onboardTestimonial .stars {
  margin-bottom: 8px;
  display: inline-flex;
  gap: 2px;
}

.onboardTestimonial .stars span {
  display: inline-block;
  transform: scale(0);
}

.onboardTestimonial .quote {
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.onboardTestimonial .quoteMeta {
  margin-top: 10px;
}

.sectionLabel {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.sectionLabel--brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
}

.brand,
.headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

.brand {
  font-size: clamp(2.05rem, 8.5vw, 2.6rem);
}

.headline {
  font-size: clamp(1.65rem, 6vw, 2rem);
  margin-bottom: 14px;
}

.lead {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 32ch;
  font-weight: 400;
}

.featureList {
  margin: 18px 0 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.featureRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.featureRow:last-child {
  border-bottom: 0;
}

.featureIcon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(232, 161, 83, 0.16);
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ctaRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.ctaRow > .btnPrimary,
.ctaRow > .btnSoft,
.shareRow .btnGhost {
  white-space: normal;
  line-height: 1.25;
  text-wrap: balance;
}

.shareRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.shareRow .btnGhost {
  width: 100%;
  min-width: 0;
  padding: 13px 10px;
  font-size: 0.92rem;
  overflow: visible;
}

.btnShare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btnShare > span,
.btnShare > .btnShareIcon,
.btnShare > .btnShareBadge {
  position: relative;
  z-index: 1;
}

.btnShareIcon {
  flex: 0 0 auto;
  width: 1.2em;
  height: 1.2em;
  display: block;
}

.btnShareBadge {
  flex: 0 0 auto;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btnShareBadge--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 0 1.5px rgba(37, 211, 102, 0.35);
}

.btnShareBadge .btnShareIcon {
  width: 0.95em;
  height: 0.95em;
}

.btnShareIcon--whatsapp {
  color: inherit;
}

.shareToast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(32, 19, 4, 0.92);
  color: var(--cream, #f7f1e6);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.shareToast[hidden] {
  display: none;
}

.btnPrimary,
.btnGhost,
.btnSoft,
.btnText {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 160ms var(--ease-spring), box-shadow 160ms ease, opacity 160ms ease;
}

.btnPrimary {
  background: linear-gradient(180deg, #f2b876 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #201304;
  box-shadow: 0 14px 32px rgba(232, 161, 83, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btnPrimary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: ctaSheen 4.5s ease-in-out infinite;
}

@keyframes ctaSheen {
  0% {
    transform: translateX(-120%);
  }
  18% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btnPrimary::after {
    animation: none;
    display: none;
  }
}

.btnGhost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btnSoft {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btnText {
  background: transparent;
  color: var(--ink-faint);
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btnPrimary:disabled,
.btnGhost:disabled,
.btnSoft:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btnPrimary:active,
.btnGhost:active,
.btnSoft:active {
  transform: scale(0.981) translateY(1px);
}

.disclaimer {
  margin: 12px 0 0;
  font-size: 0.74rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

/* ── Paywall ───────────────────────────────────────────────────── */
.offerPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  color: #201304;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(232, 161, 83, 0.3);
}

.planList {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

#offer-plan .planCardSelected {
  pointer-events: none;
  cursor: default;
}

.planCard,
.planCardSelected {
  position: relative;
  width: 100%;
  text-align: left;
  appearance: none;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease, transform 160ms var(--ease-spring), box-shadow 220ms ease;
}

.planCardSelected {
  border: 1.5px solid var(--accent);
  background: rgba(232, 161, 83, 0.1);
  box-shadow: 0 0 0 4px rgba(232, 161, 83, 0.14), 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.planCard:active,
.planCardSelected:active {
  transform: scale(0.99);
}

.radio {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-faint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.radioOn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #201304;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.planLabel {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.planMeta {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.planPrice {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.planBadge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--accent);
  color: #201304;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ── App screens ──────────────────────────────────────────────── */
.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.topTitle {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.creditsPill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  border: 1px solid rgba(232, 161, 83, 0.35);
  border-radius: 999px;
  padding: 6px 11px 6px 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  font-family: inherit;
}

.creditsPill .creditCoin {
  width: 18px;
  height: 18px;
}

.creditsPillNum {
  color: #fff7e8;
  letter-spacing: -0.02em;
  line-height: 1;
}

.creditsPill.creditBadge--fallback::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(160deg, #f2b876 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.sectionTitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.seeAllBtn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Home featured */
.homeHero,
.studioHero {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  cursor: pointer;
  background:
    linear-gradient(180deg, transparent 35%, rgba(20, 17, 13, 0.78) 100%),
    linear-gradient(145deg, #4a3620 0%, var(--accent-deep) 48%, #201304 100%);
  box-shadow: var(--shadow);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px !important;
  margin-bottom: 8px;
}

.studioHero {
  min-height: 320px;
}

.homeHero.hasCover,
.studioHero.hasCover {
  background: var(--bg-muted);
}

.heroCoverImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.heroScrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(20, 20, 20, 0.78) 100%);
  pointer-events: none;
}

.homeHero:active,
.studioHero:active {
  transform: scale(0.985);
}

.heroBadge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
}

.creditBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.48);
  border: 1px solid rgba(232, 161, 83, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  pointer-events: none;
}

.creditBadge::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(160deg, #f2b876 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
  display: none;
  flex: 0 0 auto;
}

.creditBadge.creditBadge--fallback::before {
  display: block;
}

.creditCoin {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.creditBadgeNum {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff7e8;
  line-height: 1;
}

.homeHero .creditBadge,
.studioHero .creditBadge {
  top: 14px;
  right: 14px;
}

.posterCard .creditBadge {
  top: 10px;
  right: 10px;
}

.heroTitleRow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heroTitle {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.heroMeta {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.35;
  max-width: 28ch;
}

.heroCta {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--paper);
  color: var(--bg);
  pointer-events: none;
  white-space: nowrap;
}

.teaserRow {
  --teaser-card: min(280px, 72%);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 4px;
  margin: 0 -18px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.teaserRow::-webkit-scrollbar {
  display: none;
}

.teaserRow > .posterCard {
  flex: 0 0 var(--teaser-card);
  width: var(--teaser-card);
  scroll-snap-align: start;
}

.posterGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.posterCard {
  appearance: none;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-muted);
  min-height: 210px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.posterCard:active {
  transform: scale(0.985);
}

.posterArt {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(20, 17, 13, 0.78) 100%),
    linear-gradient(160deg, #3a2a18, var(--accent-deep) 55%, #201304);
}

.posterArtAlt {
  background:
    linear-gradient(180deg, transparent 40%, rgba(20, 17, 13, 0.78) 100%),
    linear-gradient(160deg, #2c2a1c, #4f5c3f 50%, #1a1f14);
}

.posterArtVideo {
  background:
    linear-gradient(180deg, transparent 40%, rgba(20, 17, 13, 0.82) 100%),
    linear-gradient(160deg, #3a2a18, var(--accent) 45%, #14110d);
}

.posterCoverImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
}

.posterScrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 20, 20, 0.8) 100%);
  pointer-events: none;
}

.posterBody {
  position: relative;
  z-index: 1;
  padding: 12px;
  color: #ffffff;
}

.posterChip {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.posterTitle {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cardList {
  display: grid;
  gap: 12px;
}

.productCard {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms ease;
}

.productCard:active {
  transform: scale(0.985);
}

.productIcon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.productTitle {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.productMeta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cost {
  margin-top: 12px;
  display: inline-flex;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

.backBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.fieldHint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.fileGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fileGrid .field {
  margin: 0;
  min-width: 0;
}

.fileBox {
  border: 1.5px dashed rgba(232, 161, 83, 0.4);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 18px;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: block;
}

.fileGrid .fileBox {
  min-height: 140px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
}

.fileBox input {
  display: none;
}

.fileLabel {
  display: block;
}

.filePreview {
  display: block;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 8px auto 0;
  background: var(--bg-elevated);
}

.filePreview[hidden] {
  display: none;
}

.fileBox.hasPreview {
  padding: 12px;
}

.fileBox.hasPreview .filePreview {
  margin-top: 6px;
}

.fileGrid .fileBox.hasPreview {
  justify-content: center;
}

.fileName {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 100%;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fileBox.hasPreview .fileName {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.generating {
  min-height: 60dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px 0;
}

.pulse {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: radial-gradient(circle at 35% 30%, #ffe3ae, var(--accent) 42%, var(--accent-deep) 100%);
  box-shadow: 0 0 40px rgba(232, 161, 83, 0.35);
}

.resultMedia {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow);
  background: var(--bg-muted);
  min-height: 280px;
  object-fit: cover;
}

.profileCard {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.profileBuyBtn {
  width: 100%;
  margin-top: 16px;
}

.profileIdentity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profileAvatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-muted);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profileName {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.profileMeta {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.profileMetaSep {
  color: var(--ink-faint);
}

.btnGoogle {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--paper);
  color: #201304;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-spring);
}

.btnGoogle:active {
  transform: scale(0.985);
}

.btnGoogle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btnGoogleIcon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #4285f4;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.googleBtnHost {
  display: flex;
  justify-content: center;
}

.googleBtnHost:not(.hidden):empty {
  display: none;
}

.profileLibrary {
  margin-top: 22px;
}

.profileJobs {
  display: grid;
  gap: 8px;
}

.profileJob {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.profileJobThumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-muted);
}

.profileJobThumbFallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.profileJobTitle {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.profileJobMeta {
  margin: 3px 0 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.profileJobStatus {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.profileSettings {
  margin-top: 0;
}

.listBlock {
  display: grid;
  gap: 8px;
}

.listItem--static {
  cursor: default;
}

.listItem--static:active {
  transform: none;
}

.listItem--danger {
  color: var(--danger);
  border-color: rgba(224, 104, 90, 0.28);
  background: rgba(224, 104, 90, 0.08);
}

.listItem--danger span:last-child {
  color: rgba(224, 104, 90, 0.7);
}

.profileActions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

a.listItem {
  text-decoration: none;
}

.listItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  width: 100%;
  color: inherit;
  font-family: inherit;
  text-align: left;
  transition: transform 160ms var(--ease-spring), background 160ms ease;
}

.listItem:active {
  transform: scale(0.985);
}

.listItem--soft {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}

.listItem span:last-child {
  color: var(--ink-faint);
  font-weight: 500;
}

.listItemLead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  min-height: 22px;
}

.listItemLeadLabel {
  display: block;
  line-height: 1;
}

.socialIcon {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 22px;
}

.socialIcon--instagram {
  overflow: visible;
}

.langRow {
  gap: 12px;
}

.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.langBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.langBtn.isActive {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.langBtn:active {
  transform: scale(0.96);
}

.bottomNav {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(340px, calc(100% - 40px));
  bottom: calc(10px + constant(safe-area-inset-bottom));
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: rgba(30, 23, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 28px rgba(0, 0, 0, 0.32);
  z-index: 50;
  padding: 4px;
  pointer-events: auto;
}

.navIndicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 22px;
  background: rgba(232, 161, 83, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.navItem,
.navItemActive {
  appearance: none;
  border: 0;
  background: transparent;
  height: 100%;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 200ms ease, transform 140ms var(--ease-spring);
}

.navItem:active,
.navItemActive:active {
  transform: scale(0.88);
}

.navItem {
  color: var(--ink-faint);
}

.navItemActive {
  color: var(--accent);
}

.navIcon {
  display: grid;
  place-items: center;
  line-height: 1;
  transition: filter 200ms ease;
}

.navIcon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.navItemActive .navIcon {
  filter: none;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  background: var(--bg);
  z-index: 1;
}

.screen:not(.hidden) {
  opacity: 1;
}

.hidden {
  display: none !important;
}
