/* PitchPage studio — "Midnight Editorial": ink navy, cream type, coral accent, serif display. */
:root {
  --bg: #0b1020;
  --bg-2: #0f1528;
  --surface: #121a30;
  --surface-2: #18213b;
  --field: #0d1326;
  --line: #1e2742;
  --line-2: #2b3554;
  --text: #f3eee4;
  --muted: #a8b0c4;
  --faint: #7e88a3;
  --coral: #ff7a59;
  --coral-2: #ff9475;
  --sky: #8fb8ff;
  --mint: #6fd3b0;
  --amber: #ffc46b;
  --danger: #ff6b6b;
  --ring: rgba(255, 122, 89, 0.35);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
h1 em, h2 em, h3 em { color: var(--coral); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 122, 89, 0.3); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 16, 32, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 28px; line-height: 1; }
.logo img { border-radius: 8px; }
.logo em { color: var(--coral); }
.logo.small { font-size: 24px; }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a { position: relative; padding: 8px 14px; color: var(--muted); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--coral); border-radius: 2px; }
.count { background: var(--coral); color: var(--bg); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.ai-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ai-chip.on i { background: var(--mint); box-shadow: 0 0 0 3px rgba(111, 211, 176, 0.18); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .18s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--coral); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: var(--coral-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text); }
.btn-soft { background: rgba(255, 122, 89, 0.12); color: var(--coral-2); border-color: rgba(255, 122, 89, 0.28); }
.btn-soft:hover:not(:disabled) { background: rgba(255, 122, 89, 0.2); }
.btn-danger { background: var(--danger); color: var(--bg); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shared layout ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.view { animation: viewIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero-title { font-size: clamp(54px, 7vw, 104px); line-height: .96; margin: 22px 0 26px; }
.hero-title .w { display: inline-block; animation: wordUp .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d); }
.hero-title em { font-style: italic; }
.hero-title .ul { position: relative; }
.hero-title .ul::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--coral); transform-origin: left; animation: underline 1s 1s both; }
@keyframes wordUp { from { opacity: 0; transform: translateY(55%); } }
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero-form { margin-top: 34px; display: flex; gap: 8px; padding: 7px; max-width: 580px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.hero-form:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px var(--ring); }
.field-icon { display: flex; align-items: center; padding-left: 14px; color: var(--faint); }
.hero-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 4px; font-size: 16px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--coral-2); font-weight: 600; }

.fan { position: relative; height: 500px; }
.fan-card { position: absolute; left: 50%; top: 50%; width: 330px; margin-left: -165px; margin-top: -215px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7); }
.fan-card .frame-scale { height: 390px; }
.fan-label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.fan-label i { width: 8px; height: 8px; border-radius: 50%; }
.fan-0 { animation: fanL 8s ease-in-out infinite; z-index: 1; }
.fan-1 { animation: fanR 8s ease-in-out infinite; z-index: 2; }
.fan-2 { z-index: 3; animation: fanC 8s ease-in-out infinite; }
@keyframes fanL { 0%, 12%, 100% { transform: rotate(0) translateX(0); } 32%, 84% { transform: rotate(-9deg) translateX(-120px) translateY(14px); } }
@keyframes fanR { 0%, 12%, 100% { transform: rotate(0) translateX(0); } 32%, 84% { transform: rotate(8deg) translateX(120px) translateY(14px); } }
@keyframes fanC { 0%, 12%, 100% { transform: translateY(0); } 32%, 84% { transform: translateY(-14px); } }
.tag-swing { position: absolute; z-index: 4; right: 6%; top: 8%; background: var(--coral); color: var(--bg); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; transform-origin: top center; animation: swing 3.2s ease-in-out infinite; box-shadow: 0 14px 30px -10px rgba(255, 122, 89, 0.6); }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(6deg); } }

.frame-scale { position: relative; width: 100%; overflow: hidden; background: #fff; }
.frame-scale iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--muted); }
.marquee-track b { color: var(--coral); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 104px 0 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(40px, 5vw, 68px); margin: 14px 0 16px; }
.section-head h2 em { font-style: italic; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 640px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.step { background: var(--bg-2); padding: 36px; transition: background .25s; }
.step:hover { background: var(--surface); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 60px; line-height: 1; color: var(--coral); }
.step h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 20px 0 8px; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.feature { padding: 34px 0; border-bottom: 1px solid var(--line); transition: transform .3s; }
.feature:hover { transform: translateX(6px); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--coral); background: rgba(255, 122, 89, 0.1); border: 1px solid rgba(255, 122, 89, 0.22); margin-bottom: 20px; }
.feature h3 { font-size: 30px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; max-width: 320px; }

.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hcard { border-radius: 22px; padding: 30px; border: 1px solid var(--line-2); background: var(--bg-2); }
.hcard h3 { font-size: 30px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hcard .tag { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.hcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hcard li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.hcard li b { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--faint); white-space: nowrap; }
.hcard.bad .tag { background: rgba(255, 107, 107, 0.14); color: var(--danger); }
.hcard.bad li { background: rgba(255, 107, 107, 0.06); color: #ffc2c2; }
.hcard.bad li s { text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.hcard.good { border-color: rgba(111, 211, 176, 0.3); }
.hcard.good .tag { background: rgba(111, 211, 176, 0.14); color: var(--mint); }
.hcard.good li { background: rgba(111, 211, 176, 0.06); color: #d2f5e9; }
.hcard.good li::before { content: '✓'; color: var(--mint); font-weight: 700; }

.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tpl-card { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); transition: transform .3s, border-color .3s; }
.tpl-card:hover { transform: translateY(-6px); border-color: var(--coral); }
.tpl-card .frame-scale { aspect-ratio: 4 / 3.2; border-bottom: 1px solid var(--line); }
.tpl-card .body { padding: 22px; }
.tpl-card h3 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.tpl-card h3 i { width: 10px; height: 10px; border-radius: 50%; }
.tpl-card p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.tpl-card .for { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }

.faq { max-width: 860px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--serif); font-size: 28px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 24px; color: var(--coral); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 24px; max-width: 720px; font-size: 16px; }

.cta-band { margin: 112px 0 96px; padding: 72px 32px; text-align: center; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); }
.cta-band h2 { font-size: clamp(44px, 6vw, 84px); margin: 16px auto 32px; max-width: 900px; }
.cta-band h2 em { font-style: italic; }

/* ---------- studio ---------- */
.page-head { padding: 48px 0 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(40px, 5vw, 60px); margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 10px; }
.studio { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 24px; padding-bottom: 72px; align-items: start; }
.panel { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-title .num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--coral); color: var(--coral); font-family: var(--serif); font-style: italic; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.panel-title h3 { font-size: 26px; }
.panel-title .hint { margin-left: auto; font-size: 12px; color: var(--faint); }
.tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button.active { background: var(--text); color: var(--bg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field label small { font-weight: 500; color: var(--faint); margin-left: 4px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); background: var(--field); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input::placeholder, .textarea::placeholder { color: #5f6985; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px var(--ring); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; }
.product-card { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 16px; animation: viewIn .4s; }
.product-card .thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--field); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; color: var(--coral); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h4 { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0; line-height: 1.35; }
.product-card .chips, .editor-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.chip.ok { color: var(--mint); border-color: rgba(111, 211, 176, 0.35); }
details.more { border-top: 1px dashed var(--line-2); padding-top: 14px; }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; color: var(--coral); font-size: 16px; }
details.more[open] summary::before { content: '−'; }
details.more[open] summary { margin-bottom: 14px; }
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl-opt { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--field); text-align: left; transition: border-color .2s, transform .2s; }
.tpl-opt:hover { transform: translateY(-2px); }
.tpl-opt.active { border-color: var(--coral); box-shadow: 0 0 0 3px var(--ring); }
.tpl-opt .sw { height: 50px; border-radius: 9px; margin-bottom: 8px; position: relative; overflow: hidden; }
.tpl-opt .sw::after { content: ''; position: absolute; left: 10px; right: 30%; top: 12px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .85); box-shadow: 0 12px 0 -1px rgba(255, 255, 255, .5); }
.tpl-opt b { font-family: var(--serif); font-weight: 400; font-size: 18px; display: block; }
.tpl-opt span { font-size: 11px; color: var(--faint); }
.color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--text); }
.color-row input[type='color'] { width: 34px; height: 30px; border: 1px solid var(--line-2); border-radius: 9px; background: none; padding: 2px; cursor: pointer; }
.gen-bar { position: sticky; bottom: 16px; margin-top: 16px; }
.gen-bar .btn { width: 100%; }
.gen-bar .btn:disabled { opacity: 1; filter: saturate(.6) brightness(.8); cursor: progress; }

/* ---------- preview ---------- */
.preview { position: sticky; top: 88px; }
.preview-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.devices { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.devices button { border: 0; background: transparent; width: 34px; height: 28px; border-radius: 999px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.devices button.active { background: var(--text); color: var(--bg); }
.preview-bar .spacer { flex: 1; }
.stage { height: calc(100vh - 200px); min-height: 520px; background: var(--field); display: flex; justify-content: center; overflow: hidden; position: relative; }
.stage iframe { border: 0; background: #fff; width: 100%; height: 100%; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.stage.tablet iframe { width: 820px; max-width: 100%; }
.stage.mobile iframe { width: 390px; max-width: 100%; }
.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; gap: 14px; color: var(--muted); }
.empty .art { width: 110px; height: 110px; border-radius: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--coral); }
.loading { position: absolute; inset: 0; background: rgba(11, 16, 32, 0.82); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 2; }
.loader { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--coral); animation: spin .9s linear infinite; }
.loading .msg { font-family: var(--serif); font-size: 28px; }
.loading ol { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--faint); display: grid; gap: 7px; }
.loading li { display: flex; gap: 10px; align-items: center; opacity: .5; transition: opacity .3s; }
.loading li.on { opacity: 1; color: var(--text); }
.loading li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.loading li.on::before { background: var(--coral); }
.notice { font-size: 13px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 196, 107, 0.08); border: 1px solid rgba(255, 196, 107, 0.35); color: #ffe2b0; margin-bottom: 16px; }
.notice.err { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.4); color: #ffcaca; }

/* ---------- editor ---------- */
.list-edit { display: grid; gap: 8px; }
.list-edit .item { display: flex; gap: 6px; }
.list-edit .item .input { flex: 1; }
.list-edit .x { width: 40px; flex: none; border: 1px solid var(--line-2); background: var(--field); border-radius: 12px; cursor: pointer; color: var(--faint); }
.list-edit .x:hover { color: var(--danger); border-color: var(--danger); }
.saved-dot { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.saved-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.saved-dot.dirty i { background: var(--amber); }

/* ---------- library ---------- */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 96px; }
.page-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.page-card:hover { transform: translateY(-5px); border-color: var(--coral); }
.page-card .frame-scale { aspect-ratio: 16 / 11; border-bottom: 1px solid var(--line); display: block; }
.page-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.page-card h3 { font-size: 28px; }
.page-card .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.page-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.page-card .actions .btn { flex: 1; }
.search { max-width: 320px; border-radius: 999px; }
.blank { text-align: center; padding: 96px 20px 140px; }
.blank h2 { font-size: 48px; margin: 22px 0 10px; }
.blank p { color: var(--muted); margin-bottom: 26px; }
.blank .empty { position: static; }

/* ---------- toast + modal ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 100; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: toastIn .35s cubic-bezier(.2, .7, .2, 1); max-width: 360px; }
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
.modal { position: fixed; inset: 0; background: rgba(5, 8, 18, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow); animation: viewIn .3s; }
.modal-card h3 { font-size: 32px; margin-bottom: 10px; }
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 52px 32px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: var(--coral-2); }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 32px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .fan { height: 460px; }
  .studio { grid-template-columns: 1fr; }
  .preview { position: static; }
  .stage { height: 70vh; }
}
@media (max-width: 860px) {
  .steps, .features, .tpl-grid, .honest, .footer-grid { grid-template-columns: 1fr; }
  .topbar-in { flex-wrap: wrap; row-gap: 8px; padding: 12px 20px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; }
  .ai-chip span, .hide-sm { display: none; }
  .hero-form { flex-direction: column; border-radius: 22px; }
  .hero-form .field-icon { display: none; }
  .fan-card { width: 260px; margin-left: -130px; }
  .fan-card .frame-scale { height: 300px; }
  .row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .tpl-pick, .row { grid-template-columns: 1fr; }
  .fan { height: 400px; }
  .fan-0, .fan-1 { animation: none; }
  .tag-swing { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
