/* pisite homepage styles — Aurora theme */

:root {
  --home-max: 1200px;
}

body.home {
  font-family: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.home-shell {
  width: min(var(--home-max), calc(100% - 40px));
  margin: 0 auto;
}

.home a { color: inherit; text-decoration: none; }
.home code, .home pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Nav */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.home-nav .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.home-nav .brand-lockup .logo {
  width: 32px;
  height: 32px;
  color: var(--brand);
}
.home-nav .brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.home-nav .brand-lockup .brand-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.home-nav .brand-lockup .brand-text small {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.18em;
}
.home-nav .nav-links {
  display: flex;
  gap: 24px;
}
.home-nav .nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color .15s ease;
}
.home-nav .nav-links a:hover { color: var(--text); }
.home-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-toggle [data-lang] {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-toggle [data-lang].is-active {
  background: var(--gradient);
  color: #0B0E18;
  font-weight: 600;
}

/* Buttons */
.home .solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--gradient);
  color: #07111f;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home .solid-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.home .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.home .ghost-button:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero-section {
  padding: 80px 0 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 auto 20px;
  max-width: 20ch;
  background: linear-gradient(180deg, #ffffff 0%, #bcc4da 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 48px auto 0;
}
.trust-bar article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-align: left;
}
.trust-bar span {
  display: block;
  font-size: 0.78rem;
  color: var(--subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trust-bar strong {
  font-size: 1.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Logos row */
.logos-section { padding: 40px 0; }
.logos-title {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--subtle);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
  opacity: 0.68;
}
.logos-row img { width: 40px; height: 40px; color: var(--muted); }

/* Sections */
.home .section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.value-card .dot {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  margin-bottom: 14px;
  opacity: 0.9;
}
.value-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.value-card p { color: var(--muted); margin: 0; font-size: 0.93rem; }

/* How to */
.howto-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.howto-step {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
}
.howto-step .step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--brand-2);
  letter-spacing: 0.1em;
}
.howto-step h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.howto-step p { color: var(--muted); margin: 0 0 14px; font-size: 0.93rem; }
.howto-step pre {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  overflow-x: auto;
}

/* Models preview table */
.models-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.models-table {
  width: 100%;
  border-collapse: collapse;
}
.models-table th, .models-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.92rem;
}
.models-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.models-table tbody tr + tr td { border-top: 1px solid var(--line); }
.models-table code { color: var(--brand-2); font-size: 0.88rem; }
.view-all {
  display: inline-block;
  margin-top: 18px;
  color: var(--brand-2);
  font-size: 0.9rem;
}

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-card[data-recommended="true"] {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-glow);
}
.plan-recommend {
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 0.72rem;
  background: var(--gradient);
  color: #07111f;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.plan-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.plan-card h3 { margin: 0; font-size: 1.25rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 2rem; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 0.9rem; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.plan-features li::before { content: "· "; color: var(--brand-2); }
.plan-card .solid-button { margin-top: auto; }

.section-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Code block */
.code-section { padding-bottom: 80px; }
.code-block-wrap {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.code-tabs {
  display: inline-flex;
  gap: 4px;
}
.code-tabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 12px;
  font-size: 0.86rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
}
.code-tabs button.is-active {
  color: var(--text);
  background: rgba(108, 92, 231, 0.18);
}
.code-copy {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
.code-body { padding: 18px 22px; }
.code-panel { display: none; }
.code-panel.is-active { display: block; }
.code-panel pre { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #d5dbec; overflow-x: auto; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 20px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::after {
  content: "+";
  color: var(--brand-2);
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { color: var(--muted); margin-top: 10px; font-size: 0.94rem; }

/* Footer */
.home-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .brand-lockup { margin-bottom: 12px; }
.footer-brand p { color: var(--subtle); font-size: 0.85rem; margin: 0; max-width: 28ch; }
.footer-col h4 {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--subtle);
}

/* Slim topbar for app/legal/checkout */
.slim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.72);
}
.slim-topbar .brand-lockup { color: var(--text); }
.slim-topbar .slim-actions { display: flex; align-items: center; gap: 12px; }
.slim-topbar .back-link {
  color: var(--muted);
  font-size: 0.9rem;
}
.slim-topbar .back-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-timeline { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-nav .nav-links { display: none; }
  .trust-bar { grid-template-columns: 1fr; }
  .logos-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 56px 0 40px; }
}

/* ============================================================= */
/* Onboarding stepper card (new hero)                             */
/* ============================================================= */

.onboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-areas:
    "intro card"
    "trust card";
  column-gap: 48px;
  row-gap: 16px;
  align-items: start;
  padding: 48px 0 32px;
  text-align: left;
}
.onboard-intro { grid-area: intro; max-width: 620px; }
.onboard-intro .hero-title { margin-bottom: 12px; }
.onboard-intro .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.onboard-hero .trust-bar,
.onboard-hero .trust-bar-compact { grid-area: trust; }

.journey-card {
  grid-area: card;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(19,24,42,0.92), rgba(11,14,24,0.92));
}
.journey-card h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.journey-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}
.journey-list li {
  position: relative;
  min-height: 68px;
  padding: 14px 16px 14px 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.journey-list li::before {
  counter-increment: journey;
  content: "0" counter(journey);
  position: absolute;
  top: 14px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient);
  color: #07111f;
  font: 700 0.78rem "JetBrains Mono", monospace;
}
.journey-list strong,
.journey-list span {
  display: block;
}
.journey-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.onboard-card {
  grid-area: card;
  background: linear-gradient(180deg, rgba(19,24,42,0.92), rgba(11,14,24,0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.6);
  width: 100%;
  position: relative;
}
.onboard-card::before {
  /* Subtle aurora glow behind the card */
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 32px;
  background: radial-gradient(60% 40% at 80% 0%, rgba(108,92,231,.18), transparent 70%),
              radial-gradient(50% 40% at 0% 100%, rgba(34,211,238,.12), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Stack on tablet/mobile */
@media (max-width: 960px) {
  .onboard-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "card"
      "trust";
    column-gap: 0;
  }
  .onboard-card { max-width: 720px; }
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.02);
}
.step-pill .step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
}
.step-pill.is-active {
  color: var(--text);
  border-color: var(--brand);
  background: rgba(124,92,255,0.08);
}
.step-pill.is-active .step-num {
  background: var(--gradient);
  color: #0B0E18;
}
.step-pill.is-done { color: var(--text); opacity: 0.85; }
.step-pill.is-done .step-num { background: rgba(124,92,255,0.5); color: #0B0E18; }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 12px;
}
.step-line.is-done { background: var(--brand); }

/* Fields */
.onboard-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.field-input {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(124,92,255,0.06);
}
.field-input.is-invalid { border-color: #ff6b6b; }
.field-error {
  color: #ff8b8b;
  font-size: 0.82rem;
  min-height: 0;
}
.submit-error { min-height: 1em; }

/* Amount chips */
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.amount-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.amount-chip:hover { border-color: rgba(124,92,255,0.5); }
.amount-chip.is-active {
  border-color: var(--brand);
  background: rgba(124,92,255,0.12);
  color: var(--text);
  font-weight: 600;
}
.amount-custom {
  max-width: 140px;
  padding: 10px 12px;
}

/* Provider toggle */
.provider-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 4px;
  width: fit-content;
}
.provider-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
}
.provider-btn.is-active {
  background: var(--gradient);
  color: #0B0E18;
  font-weight: 600;
}

.onboard-cta {
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 1rem;
}
.onboard-cta:disabled { opacity: 0.6; cursor: wait; }

.onboard-fineprint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0 0;
}
.onboard-existing {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.onboard-existing a { color: var(--brand); text-decoration: underline; }

/* QR pane */
.step-pane { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.step-2 { align-items: center; text-align: center; }
.qr-box {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  display: inline-flex;
  box-shadow: 0 12px 36px -20px rgba(0,0,0,0.5);
}
.qr-canvas { display: block; width: 240px; height: 240px; }
.qr-hint { color: var(--text); font-size: 1rem; margin: 0; }
.qr-waiting {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(124,92,255,0.6);
  animation: pulseDot 1.4s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(124,92,255,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(124,92,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,92,255,0); }
}
.qr-actions { display: flex; gap: 14px; justify-content: center; }
.onboard-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}
.onboard-link:hover { color: var(--text); }

.step-error { text-align: center; align-items: center; }
.onboard-error-msg { color: #ff8b8b; margin: 0; }

.step-claimed { text-align: center; align-items: center; }
.onboard-claimed-msg { color: var(--muted); margin: 0 0 12px; }

/* Step 3: paid */
.paid-banner {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(64, 200, 140, 0.12);
  border: 1px solid rgba(64, 200, 140, 0.3);
  color: #a6edc8;
  font-weight: 500;
  align-self: flex-start;
}
.paid-check {
  display: inline-flex;
  width: 22px; height: 22px; border-radius: 50%;
  background: #40c88c;
  color: #0B0E18;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.key-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; gap: 10px;
}
.key-label { font-size: 0.86rem; color: var(--muted); }
.key-reveal {
  padding: 12px 14px;
  background: #0B0E18;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  overflow-x: auto;
}
.key-value { color: var(--text); }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.key-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}
.key-btn:hover { border-color: var(--brand); }
.key-warning { color: var(--muted); font-size: 0.8rem; margin: 0; }

.key-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.kv-row {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 0.88rem;
}
.kv-k { color: var(--muted); min-width: 110px; }
.kv-v { color: var(--text); word-break: break-all; }

/* Playground */
.playground {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 6px;
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,0.02);
}
.playground-title { margin: 0; font-size: 1rem; }
.playground-input {
  appearance: none;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
  min-height: 60px;
}
.playground-input:focus { outline: none; border-color: var(--brand); }
.playground-actions { display: flex; gap: 8px; }
.playground-send, .playground-stop { padding: 8px 18px; font-size: 0.88rem; }
.playground-bubble {
  min-height: 40px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(124,92,255,0.06);
  border: 1px solid rgba(124,92,255,0.2);
  color: var(--text);
  white-space: pre-wrap;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Code tabs mini */
.code-tabs-mini {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.code-tabs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--line);
  padding: 4px 8px;
}
.code-tabs-bar { display: flex; gap: 2px; }
.mini-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 0.84rem;
  cursor: pointer;
  border-radius: 6px;
  font-family: inherit;
}
.mini-tab.is-active { background: rgba(124,92,255,0.12); color: var(--text); }
.mini-copy { font-size: 0.8rem; padding: 6px 12px; }
.mini-panel {
  display: none;
  padding: 14px;
  margin: 0;
  font-size: 0.84rem;
  overflow-x: auto;
  background: #0B0E18;
}
.mini-panel.is-active { display: block; }

.onboard-console-link { margin: 8px 0 0; font-size: 0.88rem; text-align: right; }
.onboard-console-link a { color: var(--brand); text-decoration: underline; }

/* Below-fold divider + demotion */
.learn-more-divider {
  text-align: center;
  margin: 64px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
}
.learn-more-divider::before,
.learn-more-divider::after {
  content: "";
  position: absolute;
  top: 50%; width: 28%;
  height: 1px;
  background: var(--line);
}
.learn-more-divider::before { left: 8%; }
.learn-more-divider::after { right: 8%; }

.below-fold { opacity: 0.96; }
.below-fold .section-head h2 { font-size: 1.5rem; }

.trust-bar-compact {
  margin-top: 8px;
  padding: 14px 18px;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 32px;
}

@media (max-width: 560px) {
  .onboard-card { padding: 20px; }
  .stepper { flex-wrap: wrap; }
  .step-line { min-width: 0; }
  .amount-chip { padding: 9px 12px; }
  .onboard-cta { align-self: stretch; text-align: center; }
  .kv-k { min-width: 80px; }
}

/* ---------- Hero bullets (below subtitle) ---------- */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted, #9AA8BF);
  line-height: 1.5;
  max-width: 560px;
}
.hero-bullets li {
  letter-spacing: 0;
}

/* ---------- Trust chip row under CTA ---------- */
.onboard-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted, #9AA8BF);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.18);
  white-space: nowrap;
}
.trust-chip::before {
  content: "✓";
  color: var(--brand-2, #22D3EE);
  font-weight: 600;
  font-size: 11px;
}

/* ---------- Step 2: QR amount head + countdown + security row ---------- */
.qr-amount-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  font-family: "Inter", system-ui, sans-serif;
}
.qr-amount-label {
  font-size: 13px;
  color: var(--muted, #9AA8BF);
}
.qr-amount-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #F5F7FB);
  background: linear-gradient(135deg, #6C5CE7 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qr-amount-method {
  font-size: 13px;
  color: var(--muted, #9AA8BF);
}
.qr-countdown {
  font-variant-numeric: tabular-nums;
  color: var(--muted, #9AA8BF);
  font-size: 12px;
}
.qr-waiting-dot {
  color: var(--subtle, #6B7892);
  padding: 0 4px;
}
.qr-security {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.qr-sec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--subtle, #6B7892);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.qr-sec-chip::before {
  content: "🔒";
  font-size: 10px;
}
