/* 万象 AI · WANXIANG AI HUB
   Editorial paper / ink / signal orange
   ------------------------------------------------------------ */

:root {
  --paper: #f3efe4;
  --paper-soft: #faf7ee;
  --cream: #fffdf6;
  --ink: #171512;
  --ink-2: #353129;
  --muted: #7d7567;
  --line: rgba(23, 21, 18, 0.14);
  --line-strong: rgba(23, 21, 18, 0.28);
  --orange: #ff5a2b;
  --orange-deep: #e8461a;
  --green: #0c9b6e;
  --violet: #6d5dfc;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(23, 21, 18, 0.11);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(255, 90, 43, 0.055), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(109, 93, 252, 0.04), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, blockquote { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
::selection { background: var(--orange); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.page { width: min(100%, var(--max)); margin: 0 auto; padding: 0 var(--gutter); }
.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-note { max-width: 400px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.page-lead { max-width: 620px; margin-top: 22px; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; }
.muted { color: var(--muted); font-size: 13px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; }
h2 em, h1 em { font-style: normal; color: var(--orange); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.7; cursor: wait; transform: none; }
.button-arrow { font-size: 15px; transition: transform 0.25s var(--ease); }
.button:hover .button-arrow { transform: translate(3px, -3px); }
.button-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.button-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button-ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button-ink:hover { background: transparent; color: var(--ink); }
.button-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button-small { min-height: 38px; padding: 0 15px; font-size: 12px; }
.button-block { width: 100%; }
.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-link { font-size: 13px; font-weight: 650; border-bottom: 1px solid transparent; }
.text-link:hover { border-color: var(--ink); }
.arrow-link { display: inline-flex; gap: 8px; margin-top: 26px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.arrow-link span { color: var(--orange); }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 42px;
  height: 74px;
  padding: 0 var(--gutter);
  background: rgba(243, 239, 228, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { background: rgba(243, 239, 228, 0.94); box-shadow: 0 10px 30px rgba(23, 21, 18, 0.06); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 9px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  transform: rotate(-3deg);
}
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 21px; line-height: 1.05; letter-spacing: 0.01em; }
.brand-text small { margin-top: 4px; font-family: var(--sans); font-size: 8px; font-weight: 800; letter-spacing: 0.18em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--orange);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a.is-active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, transform 0.2s;
}
.points-pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.points-glyph { color: var(--orange); font-size: 13px; }
.user-menu { position: relative; }
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
}
.user-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 246px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s var(--ease);
}
.user-pop.is-open { opacity: 1; visibility: visible; transform: none; }
.user-pop-name { font-family: var(--serif); font-size: 20px; }
.user-pop-email { margin: 2px 0 14px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.user-pop a, .user-pop form button {
  display: block;
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.user-pop a:hover, .user-pop form button:hover { color: var(--orange); }
.nav-toggle { display: none; }

/* footer */
.site-footer { margin-top: 40px; background: var(--ink); color: var(--cream); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.5fr));
  gap: 48px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
}
.footer-brand .brand-mark { background: var(--orange); color: var(--ink); }
.footer-brand p { margin-top: 20px; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.12; }
.footer-col h4 { margin-bottom: 16px; font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 253, 246, 0.5); }
.footer-col a { display: block; margin: 7px 0; font-size: 13px; color: rgba(255, 253, 246, 0.82); transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(255, 253, 246, 0.14);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 253, 246, 0.52);
}
.footer-status span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(12, 155, 110, 0.15); }

/* home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(100%, var(--max));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) var(--gutter) clamp(44px, 6vw, 82px);
}
.hero h1 { font-size: clamp(54px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 br { display: block; }
.hero-lead { max-width: 540px; margin-top: 30px; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 46px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
}
.avatar-stack span:nth-child(1) { background: #ffd9c9; margin-left: 0; }
.avatar-stack span:nth-child(2) { background: #dcd7ff; }
.avatar-stack span:nth-child(3) { background: #c6ecdc; }
.avatar-stack span:nth-child(4) { background: var(--ink); color: var(--cream); }
.hero-proof p { font-size: 12px; line-height: 1.5; color: var(--muted); }
.hero-proof strong { color: var(--ink); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.12;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(255, 253, 246, 0.94), rgba(233, 226, 210, 0.82)),
    var(--paper-soft);
  box-shadow: var(--shadow);
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 21, 18, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 21, 18, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  border: 1px solid rgba(23, 21, 18, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-one { width: 62%; aspect-ratio: 1; }
.orbit-two { width: 88%; aspect-ratio: 1; border-style: dashed; opacity: 0.55; }
.art-core {
  position: absolute;
  left: 50%;
  top: 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 39%;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 30px 60px rgba(23, 21, 18, 0.28);
}
.core-mark { font-family: var(--serif); font-size: clamp(48px, 6vw, 82px); line-height: 1; color: var(--orange); }
.art-core small { margin-top: 10px; font-size: 7px; font-weight: 800; letter-spacing: 0.2em; text-align: center; line-height: 1.6; color: rgba(255, 253, 246, 0.66); }
.art-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(23, 21, 18, 0.12);
  backdrop-filter: blur(8px);
}
.art-chip-1 { left: 5%; top: 13%; transform: rotate(-3deg); }
.art-chip-2 { right: 5%; top: 31%; transform: rotate(2.5deg); }
.art-chip-3 { left: 9%; bottom: 18%; transform: rotate(-1.5deg); }
.chip-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.art-chip small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.art-chip strong { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.chip-arrow { margin-left: 6px; font-size: 11px; color: var(--muted); }
.art-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.art-caption { position: absolute; right: 18px; bottom: 28px; font-size: 8px; letter-spacing: 0.2em; color: var(--muted); writing-mode: vertical-rl; }

/* apps */
.apps-section { padding-top: clamp(72px, 9vw, 112px); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.app-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.app-card-top { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.app-index { color: var(--ink); font-weight: 800; }
.app-category { padding: 3px 8px; background: var(--paper); border-radius: 999px; }
.app-open { margin-left: auto; color: var(--ink); }
.app-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 176px;
  margin: 20px 0 22px;
  overflow: hidden;
  padding: 16px;
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-soft));
  border-radius: 12px;
}
.visual-word {
  position: absolute;
  left: 14px;
  top: 8px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 34%, transparent);
  letter-spacing: -0.06em;
}
.waveform { display: flex; align-items: flex-end; gap: 5px; width: 100%; height: 70%; }
.waveform i { flex: 1; height: 28%; background: var(--accent); border-radius: 999px; opacity: 0.8; }
.waveform i:nth-child(3n) { height: 70%; }
.waveform i:nth-child(4n) { height: 45%; }
.waveform i:nth-child(5n) { height: 88%; }
.film-frames { display: flex; gap: 8px; width: 100%; height: 100%; align-items: flex-end; }
.film-frames span { flex: 1; height: 74%; background: var(--accent); border-radius: 6px; opacity: 0.75; transform: skewY(-2deg); }
.film-frames span:nth-child(2) { height: 92%; opacity: 0.9; }
.film-frames span:nth-child(3) { height: 62%; opacity: 0.55; }
.mini-chart { width: 100%; height: 100%; margin-top: 30px; }
.mini-chart path { fill: none; stroke: var(--accent); stroke-width: 2.4; }
.mini-chart .chart-fill { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: none; }
.app-card-body { flex: 1; }
.app-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-title-row h3 { font-size: 32px; line-height: 1.05; }
.app-title-row h3 small { display: block; margin-top: 5px; font-family: var(--sans); font-size: 8px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 4px 8px; background: rgba(12, 155, 110, 0.1); border-radius: 999px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; }
.status-dot::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.app-tagline { margin-top: 16px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); }
.app-desc { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.app-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.app-features li { padding: 5px 9px; background: var(--paper); border-radius: 999px; font-size: 10px; color: var(--ink-2); }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.app-metrics { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 9px; letter-spacing: 0.04em; }
.app-cta { font-size: 11px; font-weight: 700; white-space: nowrap; }
.app-cta i { color: var(--accent); font-style: normal; transition: transform 0.25s; }
.app-card:hover .app-cta i { transform: translateX(3px); }
.app-card-join {
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.app-card-join .eyebrow { color: var(--cream); }
.app-card-join .eyebrow span { background: var(--orange); color: var(--ink); }
.app-card-join h3 { font-size: 36px; line-height: 1.08; }
.app-card-join h3 em { color: var(--orange); }
.app-card-join p { margin-top: 16px; color: rgba(255, 253, 246, 0.65); font-size: 13px; }
.app-card-join .button-ghost { align-self: flex-start; border-color: rgba(255, 253, 246, 0.3); color: var(--cream); }
.app-card-join .button-ghost:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* how */
.how-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.how-intro { position: sticky; top: 110px; }
.how-intro p { margin-top: 20px; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { display: flex; flex-direction: column; min-height: 360px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.step-num { font-family: var(--serif); font-size: 12px; color: var(--orange); letter-spacing: 0.12em; }
.step h3 { margin-top: 26px; font-size: 25px; line-height: 1.2; }
.step p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.72; }
.step-visual { margin-top: auto; padding-top: 24px; }
.step-visual-account { display: flex; align-items: center; gap: 9px; padding: 12px; background: var(--paper); border-radius: 9px; }
.fake-avatar { display: grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--cream); border-radius: 50%; font-family: var(--serif); font-size: 12px; }
.step-visual-account div { display: flex; flex-direction: column; gap: 4px; }
.step-visual-account i { display: block; width: 46px; height: 5px; background: var(--line-strong); border-radius: 999px; }
.step-visual-account i:last-child { width: 30px; }
.step-visual-account b { margin-left: auto; color: var(--green); font-size: 9px; font-weight: 700; }
.step-visual-wallet { padding: 14px; background: var(--ink); color: var(--cream); border-radius: 9px; }
.step-visual-wallet small { display: block; color: rgba(255, 253, 246, 0.55); font-size: 9px; letter-spacing: 0.08em; }
.step-visual-wallet strong { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.step-visual-wallet span { display: inline-block; margin-top: 4px; padding: 3px 7px; background: rgba(255, 90, 43, 0.18); color: var(--orange); border-radius: 999px; font-size: 8px; }
.step-visual-api { padding: 13px; background: #10130f; color: #dce8d5; border-radius: 9px; font-size: 10px; }
.step-visual-api code { display: block; color: var(--cream); }
.step-visual-api .code-ok { display: block; margin-top: 8px; color: #7fd8a5; }

/* pricing preview */
.pricing-preview { padding-top: 20px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card.is-featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.price-badge { position: absolute; top: 14px; right: 14px; padding: 4px 9px; background: var(--orange); color: var(--ink); border-radius: 999px; font-size: 9px; font-weight: 750; }
.price-name { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price-card.is-featured .price-name { color: rgba(255, 253, 246, 0.55); }
.price-amount { display: flex; align-items: baseline; gap: 3px; margin-top: 18px; font-family: var(--serif); font-size: clamp(42px, 4vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.price-amount small { font-size: 18px; color: var(--muted); }
.price-card.is-featured .price-amount small { color: rgba(255, 253, 246, 0.55); }
.price-points { margin-top: 8px; font-size: 13px; }
.price-points strong { font-size: 20px; }
.price-points em { display: block; margin-top: 3px; color: var(--orange); font-size: 10px; font-style: normal; }
.price-unit { margin-top: 4px; color: var(--muted); font-size: 10px; }
.price-list { margin: 18px 0 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-card.is-featured .price-list { border-color: rgba(255, 253, 246, 0.16); }
.price-list li { position: relative; margin: 6px 0; padding-left: 14px; font-size: 11px; color: var(--ink-2); }
.price-card.is-featured .price-list li { color: rgba(255, 253, 246, 0.75); }
.price-list li::before { content: "·"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.price-card .button { margin-top: auto; }
.price-grid-compact .price-card { min-height: 330px; }
.pricing-footnote { margin-top: 20px; color: var(--muted); font-size: 11px; }
.pricing-footnote strong { color: var(--ink); }

/* custom amount recharge */
.custom-recharge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  padding: 24px;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.custom-recharge-copy { flex: 1 1 280px; }
.custom-recharge-copy .muted, .custom-preview { font-size: 11px; line-height: 1.6; }
.custom-recharge-form { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.custom-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.custom-amount small { font-size: 16px; color: var(--muted); }
.custom-amount input {
  width: 150px;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 22px;
  outline: none;
}
.custom-amount:focus-within { border-color: var(--ink); background: var(--cream); box-shadow: 0 0 0 3px rgba(23, 21, 18, 0.06); }
.custom-preview { white-space: nowrap; }
.custom-preview strong { color: var(--ink); font-size: 14px; }
.quick-custom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.quick-custom .custom-amount input { width: 180px; font-size: 18px; }
.quick-custom .custom-preview { margin: 0; }
@media (max-width: 720px) {
  .custom-recharge-form, .quick-custom { flex-direction: column; align-items: stretch; }
  .custom-amount input { width: 100%; }
}

/* quote */
.quote-section {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 50px;
  align-items: end;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: clamp(38px, 5vw, 70px);
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  background: var(--orange);
  border-radius: 24px;
}
.quote-mark { grid-column: 1 / -1; font-family: var(--serif); font-size: 80px; line-height: 0.5; color: var(--ink); opacity: 0.45; }
blockquote p { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -0.03em; }
blockquote footer { margin-top: 24px; font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: 0.04em; }
blockquote footer span { margin: 0 8px; opacity: 0.5; }
.quote-side p:first-child { margin-bottom: 14px; }
.quote-side .eyebrow { margin-bottom: 16px; }
.quote-side > p { font-size: 13px; line-height: 1.7; }
.quote-side .button { margin-top: 22px; }

/* page hero / pricing */
.page-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; padding: clamp(60px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.pricing-hero h1 { font-size: clamp(48px, 6.2vw, 86px); line-height: 0.99; }
.wallet-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.wallet-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 90, 43, 0.42), transparent 65%);
}
.wallet-card-top { display: flex; justify-content: space-between; align-items: center; }
.wallet-label { font-size: 9px; font-weight: 800; letter-spacing: 0.16em; color: rgba(255, 253, 246, 0.55); }
.wallet-chip { display: grid; place-items: center; width: 42px; height: 42px; border: 1px dashed rgba(255, 253, 246, 0.28); border-radius: 10px; color: var(--orange); font-size: 18px; }
.wallet-balance { display: flex; align-items: baseline; gap: 10px; margin-top: 44px; font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.wallet-balance small { font-family: var(--sans); font-size: 11px; color: rgba(255, 253, 246, 0.55); }
.wallet-owner { margin-top: 8px; color: rgba(255, 253, 246, 0.62); font-size: 12px; }
.wallet-bottom { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 253, 246, 0.16); font-size: 10px; color: rgba(255, 253, 246, 0.6); }

.pay-note { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 20px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.pay-note-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; background: #1677ff; color: #fff; border-radius: 10px; font-family: var(--serif); font-size: 18px; }
.pay-note strong { font-size: 13px; }
.pay-note p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.pay-note a { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; }
.pay-note a span { color: var(--orange); }

.faq-section { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-list details { border-top: 1px solid var(--line-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: 20px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--orange); font-family: var(--sans); font-size: 20px; transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 660px; padding: 0 24px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* auth */
.auth-page { width: min(100%, 1180px); margin: 0 auto; padding: clamp(30px, 5vw, 64px) var(--gutter); }
.auth-panel { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 620px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 64px); background: var(--ink); color: var(--cream); }
.auth-copy .eyebrow { color: rgba(255, 253, 246, 0.65); }
.auth-copy .eyebrow span { background: var(--orange); color: var(--ink); }
.auth-copy h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; }
.auth-copy > p { max-width: 380px; margin-top: 24px; color: rgba(255, 253, 246, 0.68); font-size: 14px; line-height: 1.75; }
.auth-points { display: flex; align-items: center; gap: 13px; margin-top: 40px; padding: 14px; border: 1px solid rgba(255, 253, 246, 0.16); border-radius: 12px; }
.auth-points .points-glyph { display: grid; place-items: center; width: 34px; height: 34px; background: rgba(255, 90, 43, 0.16); border-radius: 9px; font-size: 16px; }
.auth-points strong { display: block; font-size: 12px; }
.auth-points small { color: rgba(255, 253, 246, 0.55); font-size: 10px; }
.auth-benefits { margin-top: 36px; display: grid; gap: 16px; }
.auth-benefits > div { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 253, 246, 0.14); }
.auth-benefits span { font-family: var(--serif); font-size: 11px; color: var(--orange); }
.auth-benefits strong { display: block; font-size: 12px; }
.auth-benefits small { color: rgba(255, 253, 246, 0.55); font-size: 10px; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 54px); }
.auth-card h2 { font-size: 36px; }
.auth-sub { margin-top: 6px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.auth-sub a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.auth-legal { margin-top: 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.auth-panel-reverse .auth-copy { order: 2; }
.demo-login { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-login > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-login small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.alert { margin-bottom: 18px; padding: 11px 14px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.alert-error { background: rgba(255, 90, 43, 0.11); border: 1px solid rgba(255, 90, 43, 0.25); color: #a62d0a; }
.alert-ok { background: rgba(12, 155, 110, 0.09); border: 1px solid rgba(12, 155, 110, 0.2); color: #08694b; }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 10px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--cream); box-shadow: 0 0 0 3px rgba(23, 21, 18, 0.06); }
.field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field:has(input[type="range"]) { justify-content: flex-start; }
input[type="range"] { padding: 0; min-height: 32px; accent-color: var(--orange); }
.field-wide { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { color: var(--muted); font-size: 10px; line-height: 1.6; }

/* dashboard */
.dashboard-page { padding-top: clamp(46px, 6vw, 80px); }
.dash-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: end; }
.dash-head h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; }
.dash-head .page-lead { margin-top: 18px; }
.dash-balance { padding: 26px; background: var(--ink); color: var(--cream); border-radius: 18px; }
.dash-balance p { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.dash-balance p small { font-family: var(--sans); font-size: 10px; color: rgba(255, 253, 246, 0.55); }
.dash-balance-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 253, 246, 0.14); font-size: 10px; color: rgba(255, 253, 246, 0.62); }
.quick-recharge { margin-top: 38px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.quick-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.quick-head h2 { font-size: 22px; }
.quick-head > a, .quick-head > span { font-size: 11px; color: var(--muted); }
.quick-head > a span { color: var(--orange); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-pack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 10px; text-align: left; transition: 0.25s var(--ease); }
.quick-pack:hover { border-color: var(--ink); transform: translateY(-2px); }
.quick-pack span { font-size: 10px; color: var(--muted); }
.quick-pack strong { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.quick-pack small { font-size: 10px; color: var(--ink-2); }
.dash-section { margin-top: 44px; }
.dash-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dash-app { display: flex; align-items: center; gap: 13px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; transition: 0.25s var(--ease); }
.dash-app:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 21, 18, 0.06); }
.dash-app-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; background: color-mix(in srgb, var(--accent, var(--orange)) 14%, var(--paper)); color: var(--accent, var(--ink)); border-radius: 10px; font-family: var(--serif); font-size: 16px; }
.dash-app-copy h3 { font-size: 18px; line-height: 1.2; }
.dash-app-copy h3 small { font-family: var(--sans); font-size: 8px; color: var(--muted); letter-spacing: 0.06em; font-weight: 500; }
.dash-app-copy p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dash-app-arrow { margin-left: auto; font-size: 11px; color: var(--muted); }
.dash-app-add { border-style: dashed; background: transparent; }
.dash-app-add .dash-app-icon { background: var(--paper); }
.dash-columns { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; margin-top: 44px; }
.ledger-list, .order-list { display: grid; gap: 2px; }
.ledger-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; background: var(--paper); border-radius: 50%; font-size: 12px; }
.ledger-icon.is-plus { color: var(--green); }
.ledger-icon.is-minus { color: var(--orange); }
.ledger-main { min-width: 0; }
.ledger-main p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.ledger-main small { color: var(--muted); font-size: 9px; }
.ledger-amount { margin-left: auto; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger-amount.is-plus { color: var(--green); }
.ledger-amount.is-minus { color: var(--orange); }
.ledger-amount small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; }
.empty-state { padding: 26px; background: var(--paper-soft); border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 24px; }
.empty-state p { margin-top: 6px; font-size: 11px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.order-row > div:first-child { min-width: 0; }
.order-row p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.order-row small { color: var(--muted); font-size: 8px; }
.order-right { margin-left: auto; text-align: right; }
.order-right strong { display: block; font-family: var(--serif); font-size: 16px; }
.status { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: 0.04em; }
.status-created, .status-pending { background: rgba(255, 90, 43, 0.12); color: #a62d0a; }
.status-paid { background: rgba(12, 155, 110, 0.1); color: #08694b; }
.status-closed, .status-refunded, .status-failed { background: rgba(23, 21, 18, 0.08); color: var(--muted); }
.order-query { display: block; margin-top: 4px; color: var(--orange); font-size: 8px; text-decoration: underline; text-underline-offset: 2px; }
.security-note { display: flex; align-items: center; gap: 15px; margin: 44px 0 20px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.security-icon { font-size: 20px; color: var(--orange); }
.security-note strong { font-size: 11px; }
.security-note p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.security-note a { margin-left: auto; font-size: 10px; font-weight: 700; white-space: nowrap; }

/* app detail */
.app-page { padding-top: clamp(30px, 4vw, 50px); }
.app-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; min-height: 620px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 11px; }
.back-link:hover { color: var(--ink); }
.app-hero h1 { font-size: clamp(58px, 8vw, 112px); line-height: 0.92; letter-spacing: -0.05em; }
.app-hero h1 em { color: var(--accent); }
.app-hero-tagline { margin-top: 18px; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; }
.app-hero-desc { max-width: 480px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.app-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.app-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.app-hero-meta span { padding: 5px 9px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; color: var(--ink-2); }
.app-hero-panel {
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.panel-top { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 12px; font-size: 8px; letter-spacing: 0.14em; color: var(--muted); }
.panel-art { position: relative; display: grid; place-items: center; height: 360px; overflow: hidden; background: color-mix(in srgb, var(--accent) 13%, var(--paper-soft)); border-radius: 12px; }
.panel-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(23,21,18,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,21,18,.06) 1px, transparent 1px); background-size: 40px 40px; }
.panel-time { position: absolute; right: 14px; bottom: 12px; padding: 3px 7px; background: rgba(23, 21, 18, 0.78); color: var(--cream); border-radius: 4px; font-family: var(--mono); font-size: 8px; }
.big-wave { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; width: 76%; height: 120px; }
.big-wave i { flex: 1; height: 30%; background: var(--accent); border-radius: 999px; opacity: 0.65; }
.big-wave i:nth-child(2n) { height: 68%; }
.big-wave i:nth-child(3n) { height: 92%; }
.big-wave i:nth-child(5n) { height: 48%; }
.frame-stack { position: relative; z-index: 1; width: 62%; aspect-ratio: 1.4; }
.frame-stack span { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 7px; opacity: 0.7; }
.frame-stack span:nth-child(2) { transform: translate(14px, -14px) rotate(2deg); opacity: 0.5; }
.frame-stack span:nth-child(3) { transform: translate(28px, -28px) rotate(4deg); opacity: 0.32; }
.panel-art-quant svg { position: relative; z-index: 1; width: 86%; }
.panel-art-quant svg path { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.panel-art-quant .chart-fill { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: none; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
.panel-stats div { padding: 8px 10px; background: var(--paper-soft); border-radius: 8px; }
.panel-stats small { display: block; color: var(--muted); font-size: 8px; }
.panel-stats strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }

.studio-section { padding-top: 20px; }
.studio-heading { max-width: 720px; margin-bottom: 30px; }
.studio-heading h2 { font-size: clamp(34px, 4.4vw, 54px); }
.studio-note { max-width: 620px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.studio-note a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.studio-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 14px; align-items: stretch; }
.studio-controls { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.studio-controls .field textarea { background: var(--paper-soft); }
.studio-cost { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.studio-cost strong { color: var(--ink); font-size: 14px; }
.studio-cost small { margin-left: auto; color: var(--green); }
.studio-output { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 20px; overflow: hidden; background: var(--ink); color: var(--cream); border-radius: 16px; }
.output-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 253, 246, 0.14); font-size: 8px; letter-spacing: 0.14em; color: rgba(255, 253, 246, 0.55); }
.output-dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 90, 43, 0.12); }
.output-wave { display: flex; align-items: center; gap: 3px; height: 80px; margin: 20px 0; opacity: 0.32; }
.output-wave i { flex: 1; height: 20%; background: var(--cream); border-radius: 999px; }
.output-wave i:nth-child(3n) { height: 70%; }
.output-wave i:nth-child(4n) { height: 40%; }
.output-wave i:nth-child(7n) { height: 90%; }
.output-wave.is-playing { opacity: 0.7; animation: wavePulse 1.4s ease-in-out infinite alternate; }
@keyframes wavePulse { from { transform: scaleY(0.92); } to { transform: scaleY(1.08); } }
.output-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 1; text-align: center; color: rgba(255, 253, 246, 0.45); }
.placeholder-icon { font-size: 32px; color: var(--orange); }
.output-placeholder p { font-size: 11px; line-height: 1.7; }
.output-result { flex: 1; }
.output-line { margin: 12px 0 22px; font-family: var(--serif); font-size: clamp(20px, 2.3vw, 30px); line-height: 1.45; }
.audio-mock { display: flex; align-items: center; gap: 12px; }
.audio-mock button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; background: var(--orange); color: var(--ink); border: 0; border-radius: 50%; font-size: 12px; }
.audio-track { height: 4px; flex: 1; background: rgba(255, 253, 246, 0.18); border-radius: 999px; }
.audio-track span { display: block; width: 18%; height: 100%; background: var(--orange); border-radius: 999px; }
.audio-track span.is-playing { animation: track 8s linear infinite; }
@keyframes track { to { width: 100%; } }
.audio-mock small { font-family: var(--mono); font-size: 8px; color: rgba(255, 253, 246, 0.55); }
.output-tags { display: flex; gap: 5px; margin-top: 20px; }
.output-tags span { padding: 3px 8px; border: 1px solid rgba(255, 253, 246, 0.18); border-radius: 999px; font-size: 8px; color: rgba(255, 253, 246, 0.65); }
.storyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; align-content: center; }
.story-frame { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; padding: 11px; background: rgba(255, 253, 246, 0.055); border: 1px solid rgba(255, 253, 246, 0.13); border-radius: 9px; }
.story-frame > span { font-family: var(--mono); font-size: 9px; color: var(--orange); }
.story-frame strong { margin-top: auto; font-family: var(--serif); font-size: 16px; }
.story-frame p { margin-top: 4px; color: rgba(255, 253, 246, 0.55); font-size: 9px; line-height: 1.55; }
.story-frame.is-ready { animation: frameIn 0.5s var(--ease) both; }
@keyframes frameIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quant-placeholder { flex: 1; }
.quant-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0; }
.quant-metrics div { padding: 8px; background: rgba(255, 253, 246, 0.05); border-radius: 7px; }
.quant-metrics small { display: block; color: rgba(255, 253, 246, 0.5); font-size: 8px; }
.quant-metrics strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 18px; }
.quant-chart { width: 100%; height: 170px; }
.quant-chart .grid-line { fill: none; stroke: rgba(255, 253, 246, 0.11); stroke-width: 1; }
.quant-chart .quant-line { fill: none; stroke: var(--accent); stroke-width: 2.4; transition: d 0.7s var(--ease); }
.quant-chart .chart-fill { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.quant-caption { color: rgba(255, 253, 246, 0.4); font-size: 8px; }
.studio-output > .output-placeholder:not([hidden]) ~ .quant-placeholder { display: none; }
.studio-generic { padding: 40px; background: var(--cream); border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; color: var(--muted); font-size: 12px; }

.app-detail-section { padding-top: 20px; }
.app-detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); padding-top: 40px; border-top: 1px solid var(--line-strong); }
.app-detail-grid h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
.app-detail-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.feature-list { margin-top: 22px; }
.feature-list li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.feature-list span { font-family: var(--serif); font-size: 11px; color: var(--orange); }
.feature-list strong { font-size: 13px; }
.account-strip { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.account-strip > div { display: flex; align-items: center; gap: 12px; }
.account-strip .points-glyph { display: grid; place-items: center; width: 32px; height: 32px; background: var(--paper); border-radius: 9px; font-size: 15px; }
.account-strip strong { display: block; font-size: 11px; }
.account-strip small { color: var(--muted); font-size: 10px; }
.account-strip > .button { margin-left: auto; }

/* payment */
.pay-page { padding-top: clamp(44px, 6vw, 76px); }
.pay-card { width: min(100%, 660px); margin: 0 auto; padding: clamp(26px, 4vw, 44px); background: var(--cream); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.pay-status { text-align: center; }
.pay-status-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; font-size: 26px; }
.pay-status-paid .pay-status-icon { background: rgba(12, 155, 110, 0.12); color: var(--green); }
.pay-status-pending .pay-status-icon { background: rgba(255, 90, 43, 0.12); color: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
.pay-status-closed .pay-status-icon,
.pay-status-refunded .pay-status-icon { background: rgba(23, 21, 18, 0.08); color: var(--muted); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.pay-status .eyebrow { justify-content: center; }
.pay-status h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; }
.pay-status > p:last-child { max-width: 460px; margin: 12px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.pay-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.pay-detail div { padding: 12px 14px; background: var(--paper-soft); }
.pay-detail span { display: block; color: var(--muted); font-size: 9px; }
.pay-detail strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pay-detail div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pay-method { display: flex; align-items: center; gap: 13px; padding: 14px 15px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 12px; }
.pay-method-logo { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; background: #1677ff; color: #fff; font-family: var(--serif); font-size: 21px; }
.pay-method-copy { flex: 1; }
.pay-method-copy strong { display: block; font-size: 13px; }
.pay-method-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.pay-method-badge { padding: 5px 8px; border: 1px solid rgba(12, 155, 110, 0.3); border-radius: 999px; color: var(--green); font-size: 8px; letter-spacing: 0.06em; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
.pay-help { margin-top: 18px; color: var(--muted); font-size: 9px; line-height: 1.6; text-align: center; }
.pay-polling { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 20px 0; padding: 14px; background: var(--paper-soft); border-radius: 10px; }
.pay-polling p { font-size: 11px; text-align: left; }
.pay-polling small { color: var(--muted); }
.spinner { width: 20px; height: 20px; flex: 0 0 auto; border: 2px solid var(--line-strong); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
.mock-card { border-style: dashed; }
.mock-lead { max-width: 480px; margin: 12px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.mock-amount { margin: 26px 0; padding: 22px; background: var(--ink); color: var(--cream); border-radius: 12px; text-align: center; }
.mock-amount small { display: block; color: rgba(255, 253, 246, 0.55); font-size: 9px; letter-spacing: 0.1em; }
.mock-amount strong { font-family: var(--serif); font-size: 42px; }
.alipay-form { display: none; }

/* docs */
.docs-page.page { padding-top: clamp(16px, 2vw, 24px); }
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}
.docs-hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.docs-meta span { padding: 6px 10px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; color: var(--muted); }
.docs-meta code { color: var(--ink); }
.docs-start { padding: 22px 22px 20px; background: var(--ink); color: var(--cream); border-radius: 16px; box-shadow: 0 18px 46px rgba(23, 21, 18, 0.12); }
.docs-start .eyebrow { margin-bottom: 12px; color: rgba(255, 253, 246, 0.62); }
.docs-start .eyebrow span { background: var(--orange); color: var(--ink); }
.docs-start h2 { font-size: 26px; color: var(--cream); }
.docs-start ol { display: grid; gap: 0; margin-top: 16px; }
.docs-start li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 253, 246, 0.14); font-size: 11px; line-height: 1.55; }
.docs-start li span { width: 20px; flex: 0 0 auto; color: var(--orange); font-family: var(--mono); font-size: 9px; }
.docs-start li strong { font-weight: 650; color: var(--cream); }
.docs-start li small { display: block; color: rgba(255, 253, 246, 0.55); }
.docs-start a { display: inline-flex; margin-top: 16px; color: var(--orange); font-size: 11px; font-weight: 700; border-bottom: 1px solid rgba(255, 90, 43, 0.45); }
.docs-start-note { margin-top: 14px; color: rgba(255, 253, 246, 0.45); font-size: 9px; line-height: 1.6; }
.docs-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}
.docs-glance div { padding: 18px 18px 16px; border-right: 1px solid var(--line); }
.docs-glance div:last-child { border-right: 0; }
.docs-glance span { display: block; color: var(--muted); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.docs-glance strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 18px; }
.docs-glance small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.docs-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); padding-top: 32px; }
.docs-nav { position: sticky; top: 92px; align-self: start; }
.docs-nav p { margin-bottom: 12px; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.docs-nav a { display: block; padding: 5px 0; color: var(--muted); font-size: 11px; transition: color 0.2s, padding-left 0.2s; }
.docs-nav a:hover { color: var(--ink); padding-left: 5px; }
.docs-body { min-width: 0; max-width: 900px; }
.docs-body section { padding: 0 0 clamp(46px, 6vw, 74px); }
.docs-body h2 { font-size: clamp(30px, 3.4vw, 43px); line-height: 1.12; }
.docs-body > section > p { max-width: 700px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.docs-list { margin-top: 20px; }
.docs-list li { position: relative; padding: 8px 0 8px 18px; color: var(--ink-2); font-size: 12px; line-height: 1.7; border-bottom: 1px solid var(--line); }
.docs-list li::before { content: "·"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.arch-diagram { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 8px; align-items: center; margin-top: 24px; }
.arch-box { padding: 16px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.arch-box-accent { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.arch-box span { display: block; font-size: 7px; letter-spacing: 0.14em; color: var(--muted); }
.arch-box-accent span { color: rgba(255, 253, 246, 0.5); }
.arch-box strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 16px; }
.arch-box small { display: block; color: var(--muted); font-size: 8px; }
.arch-box-accent small { color: rgba(255, 253, 246, 0.55); }
.arch-arrow { color: var(--orange); font-size: 14px; }
.flow-list { display: grid; gap: 0; margin-top: 22px; }
.flow-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.flow-list li span { font-family: var(--serif); font-size: 11px; color: var(--orange); }
.flow-list strong { display: block; font-size: 13px; }
.flow-list p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.flow-list code { padding: 1px 4px; background: var(--cream); border-radius: 3px; font-size: 10px; }
.code-block { margin-top: 22px; overflow: hidden; background: #121410; border: 1px solid #121410; border-radius: 12px; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid rgba(255, 253, 246, 0.12); background: #181b15; color: rgba(255, 253, 246, 0.55); font-size: 8px; letter-spacing: 0.1em; }
.code-head button { padding: 3px 8px; background: transparent; border: 1px solid rgba(255, 253, 246, 0.2); border-radius: 4px; color: rgba(255, 253, 246, 0.7); font-size: 8px; }
.code-head button:hover { border-color: var(--orange); color: var(--orange); }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 10px; line-height: 1.75; color: #d7e0cf; }
.code-block code { font-family: var(--mono); }
.callout { margin-top: 18px; padding: 14px 16px; background: rgba(12, 155, 110, 0.07); border-left: 2px solid var(--green); border-radius: 0 8px 8px 0; }
.callout-warn { background: rgba(255, 90, 43, 0.07); border-left-color: var(--orange); }
.callout strong { font-size: 11px; }
.callout p { margin-top: 3px; color: var(--ink-2); font-size: 11px; line-height: 1.65; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.docs-table, .admin-table { width: 100%; border-collapse: collapse; background: var(--cream); }
.docs-table th, .docs-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 10px; }
.docs-table th { background: var(--paper); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table code { font-size: 9px; }
.docs-table td strong { display: block; font-size: 11px; }
.docs-foot { margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.start-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.start-card { padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.start-card > span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-bottom: 14px; background: var(--ink); color: var(--cream); border-radius: 50%; font-family: var(--mono); font-size: 9px; }
.start-card h3 { font-size: 18px; }
.start-card p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.start-card code { padding: 1px 4px; background: var(--paper); border-radius: 3px; font-size: 9px; }
.docs-matrix { margin-top: 20px; }
.docs-matrix td:first-child { font-weight: 650; }

/* admin */
.admin-page.page { padding-top: clamp(16px, 2vw, 24px); }
.admin-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding-bottom: 24px; }
.admin-hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.admin-ops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 18px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.admin-op { position: relative; display: block; padding: 15px 16px; border-right: 1px solid var(--line); transition: background 0.2s; }
.admin-op:last-child { border-right: 0; }
.admin-op:hover { background: var(--cream); }
.admin-op span { display: block; color: var(--muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.admin-op strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.admin-op small { display: block; color: var(--muted); font-size: 9px; }
.admin-op-warn strong { color: var(--orange-deep); }
.admin-op::after { content: "↗"; position: absolute; top: 12px; right: 14px; color: var(--muted); font-size: 10px; }
.stat-card { padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; }
.stat-card span { display: block; color: var(--muted); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--muted); font-size: 7px; letter-spacing: 0.12em; }
.stat-card .stat-mode { font-size: 20px; }
.admin-alert { margin: 0 0 16px; }
.secret-box { display: grid; grid-template-columns: 1fr minmax(0, 1.1fr) auto; gap: 24px; align-items: center; padding: 20px; background: var(--orange); border-radius: 14px; }
.secret-box .eyebrow { margin-bottom: 4px; }
.secret-box h2 { font-size: 22px; }
.secret-box p { margin-top: 4px; font-size: 10px; line-height: 1.6; }
.secret-box code { padding: 10px 12px; overflow-wrap: anywhere; background: rgba(23, 21, 18, 0.14); border-radius: 7px; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; margin-top: 22px; align-items: start; }
.admin-panel { padding: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.admin-panel-wide { margin-top: 16px; }
.admin-panel-create { position: sticky; top: 100px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head .eyebrow { margin-bottom: 2px; }
.panel-head .eyebrow span { background: var(--orange); color: var(--ink); }
.panel-head h2 { font-size: 22px; }
.admin-app-list { display: grid; gap: 8px; }
.admin-app { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 9px; }
.admin-app summary { display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; list-style: none; }
.admin-app summary::-webkit-details-marker { display: none; }
.admin-app-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; background: color-mix(in srgb, var(--accent) 16%, var(--cream)); color: var(--accent); border-radius: 7px; font-family: var(--serif); font-size: 13px; }
.admin-app-title { min-width: 0; }
.admin-app-title strong { display: block; font-size: 12px; }
.admin-app-title strong small { font-size: 8px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; }
.admin-app-title > span { display: block; color: var(--muted); font-size: 8px; }
.admin-app-title code { font-size: 8px; }
.admin-app summary .status { margin-left: auto; flex: 0 0 auto; }
.admin-chevron { color: var(--muted); font-size: 12px; }
.admin-app[open] .admin-chevron { transform: rotate(180deg); }
.admin-app-body { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.admin-form { padding-top: 12px; }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea { min-height: 36px; padding: 7px 9px; background: var(--cream); font-size: 11px; }
.admin-form .field > span { font-size: 8px; }
.admin-form .field textarea { min-height: 64px; }
.rotate-form { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.rotate-form strong { display: block; font-size: 10px; }
.rotate-form span { display: block; color: var(--muted); font-size: 9px; }
.admin-table th, .admin-table td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 9px; }
.admin-table th { background: var(--paper-soft); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.admin-table td strong { display: block; font-size: 10px; }
.admin-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .table-empty { padding: 26px; text-align: center; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.table-actions form button { padding: 3px 7px; background: transparent; border: 1px solid var(--line); border-radius: 4px; font-size: 8px; }
.table-actions form button:hover { border-color: var(--ink); }
.table-actions .muted { padding: 3px 0; }

/* error */
.error-page { display: grid; place-items: center; min-height: 70vh; padding: 40px var(--gutter); }
.error-card { width: min(100%, 620px); padding: clamp(30px, 6vw, 64px); background: var(--cream); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.error-card h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.02; }
.error-card > p { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { max-width: 620px; width: 100%; margin: 10px auto 0; min-height: 0; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card-join { grid-column: 1 / -1; min-height: 250px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .how-section, .faq-section, .page-hero, .dash-head, .app-hero, .admin-hero, .app-detail-grid { grid-template-columns: 1fr; }
  .how-intro, .faq-intro { position: static; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quote-section { grid-template-columns: 1fr; }
  .dash-columns { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-output { min-height: 360px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel-create { position: static; }
  .docs-hero { grid-template-columns: 1fr; align-items: start; }
  .docs-start { max-width: 620px; }
  .docs-glance { grid-template-columns: repeat(2, 1fr); }
  .docs-glance div { border-bottom: 1px solid var(--line); }
  .docs-glance div:nth-child(2n) { border-right: 0; }
  .docs-glance div:nth-child(n + 3) { border-bottom: 0; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .docs-nav p { width: 100%; }
  .secret-box { grid-template-columns: 1fr; }
  .secret-box .button { justify-self: start; }
}

@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0 8px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: 0.25s var(--ease); }
  .nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header-actions { margin-left: 10px; }
  .header-actions .text-link { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .quote-section { width: calc(100% - 2 * var(--gutter)); }
  .auth-panel { grid-template-columns: 1fr; }
  .auth-copy { order: 2 !important; min-height: 320px; }
  .auth-card { order: 1; }
  .start-grid { grid-template-columns: 1fr; }
  .admin-ops { grid-template-columns: repeat(2, 1fr); }
  .admin-op:nth-child(2n) { border-right: 0; }
  .admin-op:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .quick-grid, .dash-apps { grid-template-columns: repeat(2, 1fr); }
  .storyboard { grid-template-columns: 1fr; }
  .story-frame { min-height: 120px; }
  .quant-metrics { grid-template-columns: repeat(2, 1fr); }
  .arch-diagram { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); justify-self: center; }
  .pay-detail { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { gap: 12px; height: 66px; }
  .brand-text small { display: none; }
  .header-actions .button-small { display: none; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .hero-lead { font-size: 15px; }
  .hero-proof { margin-top: 30px; }
  .hero-art { min-height: 400px; }
  .art-chip-1 { top: 8%; }
  .art-chip-2 { top: 26%; }
  .art-chip-3 { bottom: 13%; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  h2 { font-size: 36px; }
  .app-grid, .price-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .app-visual { height: 150px; }
  .quote-section { padding: 30px 22px; border-radius: 18px; }
  blockquote p { font-size: 32px; }
  .quote-mark { font-size: 54px; }
  .wallet-card { min-height: 290px; }
  .wallet-balance { margin-top: 34px; }
  .pay-note { flex-wrap: wrap; }
  .pay-note a { margin-left: 58px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .dash-apps { grid-template-columns: 1fr; }
  .field-row, .form-grid, .pay-detail { grid-template-columns: 1fr; }
  .app-hero h1 { font-size: 58px; }
  .panel-art { height: 280px; }
  .panel-stats { grid-template-columns: 1fr 1fr; }
  .studio-controls, .studio-output, .pay-card { padding: 16px; }
  .output-wave { height: 54px; }
  .quant-metrics { grid-template-columns: 1fr 1fr; }
  .account-strip { flex-wrap: wrap; }
  .account-strip > .button { margin-left: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-ops { grid-template-columns: 1fr; }
  .admin-op { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-op:last-child { border-bottom: 0; }
  .secret-box { padding: 16px; }
  .docs-start { padding: 18px; }
  .docs-meta span { font-size: 8px; }
  .docs-glance div { padding: 14px 12px; }
  .docs-glance strong { font-size: 16px; }
  .code-block pre { font-size: 9px; }
}

/* account buckets, referral and admin users */
.bucket-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
  gap: 0;
  margin: 26px 0 34px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.bucket-cell, .bucket-rule { padding: 20px 22px; border-right: 1px solid var(--line); }
.bucket-cell:last-of-type { border-right: 0; }
.bucket-cell span, .bucket-rule span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bucket-cell strong { display: block; margin: 7px 0 4px; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1; }
.bucket-cell small, .bucket-rule p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.bucket-rule { border-right: 0; background: var(--ink); color: var(--cream); }
.bucket-rule span { color: rgba(250, 247, 238, .55); }
.bucket-rule p { margin: 12px 0 0; color: var(--cream); font-size: 14px; line-height: 1.7; }

.referral-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  margin: 0 0 34px;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.referral-card h2 { margin: 12px 0 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; }
.referral-card p { color: var(--ink-2); line-height: 1.75; }
.referral-card strong { color: var(--orange-deep); font-weight: 600; }
.referral-copy label, .account-referral label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.referral-copy small, .account-referral small { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.copy-row, .code-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input, .code-row input { flex: 1; min-width: 0; }
.copy-row .button, .code-row .button { flex: 0 0 auto; white-space: nowrap; }
.code-row input { font-family: var(--mono); font-size: 18px; letter-spacing: .22em; }
.code-status { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; }
.code-status.is-ok { color: var(--green); }
.code-status.is-error { color: #a62d0a; }
.is-readonly { background: rgba(23, 21, 18, .04) !important; color: var(--muted) !important; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.account-card { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line); background: var(--paper-soft); }
.account-card h2 { margin: 12px 0 10px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; }
.account-card > p { color: var(--ink-2); line-height: 1.7; }
.account-facts { margin: 20px 0 0; }
.account-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.account-facts dt { color: var(--muted); font-size: 12px; }
.account-facts dd { margin: 0; text-align: right; font-size: 13px; word-break: break-all; }
.verify-badge { display: inline-block; margin-left: 4px; padding: 2px 6px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; }
.verify-badge.is-ok { border-color: rgba(12, 155, 110, .35); color: var(--green); }

.mini-table { margin-top: 14px; }
.mini-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-row strong { display: block; font-size: 13px; font-weight: 500; }
.mini-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.admin-tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 12px 18px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; }
.admin-tabs a.is-active { border-bottom-color: var(--orange); color: var(--ink); }
.admin-search { display: flex; gap: 8px; }
.admin-search input { width: min(300px, 45vw); }
.table-link { color: var(--orange-deep); font-size: 12px; white-space: nowrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .bucket-strip { grid-template-columns: 1fr 1fr; }
  .bucket-cell:nth-of-type(2) { border-right: 0; }
  .bucket-cell:nth-of-type(3), .bucket-rule { border-top: 1px solid var(--line); }
  .referral-card, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bucket-strip { grid-template-columns: 1fr; }
  .bucket-cell, .bucket-cell:nth-of-type(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .bucket-rule { border-top: 0; }
  .copy-row, .code-row, .admin-search { flex-direction: column; }
  .admin-search input { width: 100%; }
  .account-facts > div { flex-direction: column; gap: 4px; }
  .account-facts dd { text-align: left; }
}

/* ============================================================
   2026-11-25 — Admin readability, app form, public-home receipt
   ============================================================ */

.step-visual-receipt { display: grid; gap: 0; padding: 18px 20px 14px; align-content: center; }
.receipt-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: 12px; }
.receipt-row strong { color: #fff; font-weight: 500; }
.receipt-mark { padding-top: 10px; color: var(--orange); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

main.admin-page { max-width: 1240px; }
.admin-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: 10px 0 8px; }
.admin-hero h1 { margin: 12px 0 14px; font-size: clamp(46px, 5.6vw, 72px); line-height: .98; letter-spacing: -.055em; font-weight: 400; }
.admin-hero .page-lead { max-width: 38ch; margin: 0; font-size: 16px; line-height: 1.8; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { min-height: 122px; padding: 16px 18px 14px; border: 1px solid var(--line); background: var(--paper-soft); display: flex; flex-direction: column; justify-content: space-between; }
.stat-card > span { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.stat-card > strong { margin-top: 6px; font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.stat-card > small { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.stat-mode { font-family: var(--sans) !important; font-size: 26px !important; }

.admin-tabs { margin: 6px 0 18px; }
.admin-tabs a { padding: 11px 16px; font-size: 14px; }
.admin-alert { margin: 0 0 18px; }
.admin-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 22px; border: 1px solid var(--line); background: var(--line); }
.admin-op { display: flex; flex-direction: column; min-height: 126px; padding: 18px; background: var(--paper-soft); }
.admin-op span { color: var(--ink-2); font-size: 13px; }
.admin-op strong { margin: 8px 0 10px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.admin-op small { margin-top: auto; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-op-warn strong { color: var(--orange-deep); }

.admin-panel { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); background: var(--paper-soft); }
.admin-panel-wide { margin: 0 0 22px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-head h2 { margin: 5px 0 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.03em; }
.panel-head .button-small { padding: 10px 14px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-align: left; white-space: nowrap; text-transform: uppercase; }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; line-height: 1.6; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong { display: block; font-size: 13px; font-weight: 500; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-table td code { font-family: var(--mono); font-size: 11.5px; }
.admin-table .status { font-size: 9px; }
.admin-app-mark { display: inline-grid; width: 26px; height: 26px; margin-right: 8px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 14px; }
.admin-table td:first-child strong, .admin-table td:first-child small { display: inline-block; }
.admin-table td:first-child small { display: block; }
.table-empty { padding: 30px 12px !important; color: var(--muted); text-align: center; }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.table-actions form { display: inline; }
.table-actions button { padding: 0; border: 0; background: none; color: var(--orange-deep); font-size: 11.5px; cursor: pointer; }
.table-actions button:hover { text-decoration: underline; }
.table-link { font-size: 12px; }

.admin-subpage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.admin-subpage-head h1 { margin: 10px 0 8px; font-size: clamp(36px, 4.2vw, 56px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.admin-subpage-head .page-lead { margin: 0; font-size: 15px; }
.admin-form-page { margin: 0 0 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); background: var(--paper-soft); }
.admin-form { margin-top: 6px; }
.admin-form .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.admin-form .field span { margin-bottom: 6px; font-size: 12px; }
.admin-form .field input, .admin-form .field select, .admin-form .field textarea { font-size: 14px; }
.admin-form .field small { margin-top: 4px; font-size: 11px; }
.admin-form-divider { margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-inline-status { margin-top: 16px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-danger-zone { border-color: rgba(166,45,10,.28); }
.admin-danger-copy { max-width: 70ch; margin: 0 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.75; }

/* Admin + developer docs readability: replace 8–11px body copy with 12–15px. */
.docs-body > section > p, .docs-body > section > p + p { font-size: 15px; line-height: 1.9; }
.docs-body .docs-list li, .docs-body ul li { font-size: 14px; line-height: 1.8; }
.docs-body .docs-flow p, .docs-body .docs-note { font-size: 13px; line-height: 1.75; }
.docs-body h3 { font-size: 20px; }
.docs-body .docs-kicker, .docs-body .docs-table th { font-size: 10px; }
.docs-body .docs-table td { font-size: 13px; }
.docs-body .docs-table code, .docs-body .code-block pre { font-size: 12px; line-height: 1.75; }
.docs-body .code-block .code-head { font-size: 10px; }
.docs-nav a { font-size: 13px; }
.docs-nav h4 { font-size: 10px; }
.docs-hero .docs-lead { font-size: 17px; line-height: 1.8; }
.docs-hero .docs-meta span { font-size: 10px; }
.docs-glance strong { font-size: 14px; }
.docs-glance span { font-size: 11px; }
.docs-footnote { font-size: 12px; }

@media (max-width: 980px) {
  .admin-hero { grid-template-columns: 1fr; gap: 22px; }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .admin-ops { grid-template-columns: 1fr 1fr; }
  .admin-form .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-ops { grid-template-columns: 1fr; }
  .admin-subpage-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .panel-head { flex-direction: column; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2), .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
}
