/* ——— Hero fold — designed for 390×844 with zero scroll ——— */
.hero-root {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(var(--sa-t) + 14px) 18px calc(var(--sa-b) + 14px);
  position: relative; overflow: hidden;
  max-width: 520px; margin: 0 auto;
}

.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.hero-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
}
.hero-brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  display: grid; place-items: center; color: #1A1400; font-size: 18px; font-weight: 800;
  box-shadow: var(--glow-gold);
  animation: mark-bob 3.4s var(--ease-spring) infinite;
}
@keyframes mark-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }

.hero-pill-group { display: flex; gap: 8px; align-items: center; }
.hero-pill-group .pill.live .dot { background: var(--success); box-shadow: 0 0 8px var(--success); }

/* ——— Headline ——— */
.hero-headline {
  margin-top: 14px;
}
.hero-verb {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
  display: inline-block;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(0,255,209,0.08); border: 1px solid rgba(0,255,209,0.25);
  box-shadow: var(--glow-cyan);
  animation: verb-pulse 2s ease-in-out infinite;
}
@keyframes verb-pulse { 0%,100% { box-shadow: 0 0 16px rgba(0,255,209,0.3); } 50% { box-shadow: 0 0 28px rgba(0,255,209,0.55); } }

.hero-h1 {
  font-family: var(--f-display); font-weight: 800;
  line-height: 0.98; letter-spacing: -0.04em;
  margin-top: 10px;
}
.hero-h1 .line { display: block; }
.hero-h1 .h-amount { font-size: clamp(56px, 17vw, 96px); line-height: 0.9; letter-spacing: -0.05em; }
.hero-h1 .h-body   { font-size: clamp(22px, 6vw, 32px); font-weight: 700; line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; }
.hero-h1 .h-sub    { font-size: clamp(16px, 4.8vw, 24px); font-weight: 600; line-height: 1.1; margin-top: 4px; letter-spacing: -0.015em; }
.hero-h1 .figure { display: inline-block; font-variant-numeric: tabular-nums; }
.hero-h1 #hero-figure { min-width: 4.5ch; text-align: left; }
.hero-h1 #hero-minutes { min-width: 0.9ch; text-align: right; padding-right: 0.1em; }
.hero-sub {
  margin-top: 10px; color: var(--fg-2); font-size: 14px; max-width: 34ch;
  letter-spacing: 0.01em;
}
.hero-sub strong { color: var(--cyan); font-weight: 700; }

/* ——— Generator card ——— */
.gen-card {
  margin-top: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.gen-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(0,255,209,0.5), rgba(255,46,146,0.4), rgba(157,78,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: border-sweep 6s linear infinite;
  background-size: 200% 200%;
}
@keyframes border-sweep { 0% { background-position: 0 0; } 100% { background-position: 200% 200%; } }

.gen-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.gen-label .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite;
}

.gen-input-wrap {
  position: relative; display: flex;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2);
  padding: 14px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.gen-input-wrap:focus-within {
  border-color: var(--glass-border-hi);
  box-shadow: 0 0 0 3px rgba(0,255,209,0.12), var(--glow-cyan);
}
.gen-input {
  flex: 1; background: transparent; border: 0; outline: 0; color: var(--fg);
  font-family: var(--f-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
}
.gen-input::placeholder { color: transparent; }
.gen-ghost {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
  font-family: var(--f-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden;
}
.gen-ghost .caret {
  display: inline-block; width: 2px; height: 18px; vertical-align: -3px;
  background: var(--cyan); margin-left: 2px;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.gen-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.gen-cta {
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--cyan) 0%, #6BFFE0 50%, var(--cyan-2) 100%);
  color: #071813;
  font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: 0.01em;
  border-radius: var(--r-2);
  box-shadow: var(--glow-cyan), 0 8px 0 rgba(0,0,0,0.25) inset;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.gen-cta:active { transform: scale(0.97); }
.gen-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
  transform: translateX(-100%); animation: cta-shine 2.8s infinite;
}
@keyframes cta-shine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(120%); } }
.gen-cta-sub {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.7; margin-top: 4px;
}

/* ——— Ticker ——— */
.hero-ticker {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  overflow: hidden;
}
.hero-ticker .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 10px var(--success); flex-shrink: 0;
  animation: pulse 1.4s infinite;
}
.hero-ticker .ticker-text {
  font-size: 12.5px; color: var(--fg-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hero-ticker .ticker-text b { color: var(--gold); }

/* ——— Stats ——— */
.hero-stats {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.stat {
  padding: 10px 8px; border-radius: var(--r-2);
  background: var(--glass); border: 1px solid var(--glass-border);
  text-align: center;
}
.stat .val {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(18px, 5vw, 22px); line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat.s-cyan .val { color: var(--cyan); }
.stat.s-gold .val { color: var(--gold); }
.stat.s-pink .val { color: var(--pink); }
.stat .lbl {
  display: block; margin-top: 4px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ——— Floating sign-in pill ——— */
.float-auth {
  position: fixed; right: 14px;
  bottom: calc(var(--sa-b) + 14px);
  z-index: 50;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: rgba(10,5,25,0.85); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-pill);
  font-family: var(--f-display); font-weight: 700; font-size: 13px;
  box-shadow: var(--glow-violet);
  animation: float-auth-in .6s var(--ease-spring) .4s both;
}
@keyframes float-auth-in { from { opacity: 0; transform: translateY(30px) scale(0.8); } to { opacity: 1; transform: none; } }
.float-auth .divider { opacity: 0.3; margin: 0 4px; }
.float-auth .price { color: var(--gold); }

/* ——— Free-gen indicator ——— */
.free-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255,216,77,0.1);
  border: 1px solid rgba(255,216,77,0.3);
  border-radius: var(--r-pill);
}

/* ——— Pay-done / Pay-cancel ——— */
.paydone-root {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.paydone-card {
  padding: 36px 28px; text-align: center;
  width: min(400px, 92vw);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.paydone-card h1 { font-size: 40px; letter-spacing: -0.03em; }
.paydone-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(0,255,209,0.18);
  border-top-color: var(--cyan);
  animation: ring-spin 1s linear infinite;
  box-shadow: var(--glow-cyan);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ——— Responsive: on desktop, center a phone-sized column but let background breathe ——— */
@media (min-width: 900px) {
  .hero-root {
    max-width: 460px;
  }
}
