/* Solocut site. Dark only, system fonts, no build step. */
:root {
  --bg: #07070a;
  --bg-2: #0e0e13;
  --panel: #13131a;
  --panel-2: #1a1a23;
  --line: #262632;
  --line-2: #34343f;
  --text: #ececf1;
  --muted: #9a9aab;
  --faint: #6b6b7b;
  --rec: #ff4a3d;
  --rec-soft: rgba(255, 74, 61, .14);
  --pass: #4ade80;
  --warn: #fbbf24;
  --accent: #7c8cff;
  --radius: 14px;
  --wrap: 1160px;
  --sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(7, 7, 10, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 820px) { .site-nav { display: none; } }
@media (max-width: 480px) { .btn-label-hide { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn-sm { font-size: 13px; padding: 7px 11px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 13px 20px; border-radius: 12px; }
.btn-primary { background: var(--rec); color: #fff; }
.btn-primary:hover { background: #ff6357; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel); }
.lang-switch { color: var(--muted); font-size: 13px; text-decoration: none; padding: 7px 8px; }
.lang-switch:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 680px; background: radial-gradient(closest-side, rgba(255, 74, 61, .16), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(124, 140, 255, .12), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.hero-copy { max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px 4px 8px; margin: 0 0 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px var(--rec-soft); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--rec); }
h1, h2, h3 { word-break: auto-phrase; }
:lang(ja) h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.02em; }
:lang(ja) h2 { letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #c9c9d4; margin: 0 0 28px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { color: var(--faint); font-size: 13px; margin: 16px 0 0; }

/* App mock */
.mock { border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.mock-bar span { margin-left: 10px; color: var(--faint); font: 12px var(--mono); }
.mock-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.15fr); min-height: 420px; }
.mock-preview { padding: 18px; display: grid; place-items: center; border-right: 1px solid var(--line); background: #0a0a0e; }
.phone { position: relative; width: 168px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(170deg, #2b2f45, #15151d 70%); border: 1px solid var(--line-2); }
.phone .person { position: absolute; left: 50%; top: 20%; width: 78%; transform: translateX(-50%); }
.phone .safe { position: absolute; inset: 11% 16% 23% 7%; border: 1px dashed rgba(74, 222, 128, .45); border-radius: 4px; }
.phone .cap { position: absolute; left: 8%; right: 8%; top: 68%; z-index: 1; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.3; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.phone .cap b { color: #ffe14d; }
.phone .cap span { transition: color .2s; }
.phone .cap span.on { color: #ffe14d; }
.phone .mosaic { position: absolute; left: 10%; top: 13%; width: 46%; height: 7%; border-radius: 3px; background: repeating-conic-gradient(#555 0 25%, #7a7a86 0 50%) 0 0 / 8px 8px; opacity: .9; }
.phone .tag { position: absolute; left: 10%; top: 6.5%; font: 9px var(--mono); color: var(--warn); }
.mock-tl { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-head { display: flex; justify-content: space-between; color: var(--faint); font: 11px var(--mono); }
.tl-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; font: 11px var(--mono); color: var(--muted); }
.tl-track { position: relative; height: 26px; border-radius: 6px; background: var(--panel); overflow: hidden; }
.seg { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: #3b4a8a; transition: opacity .4s, background .4s; }
.seg.cam { background: #2f6e5a; }
.seg.cap { background: #6b5a20; }
.seg.cut { background: repeating-linear-gradient(135deg, rgba(255, 74, 61, .55) 0 5px, rgba(255, 74, 61, .18) 5px 10px); }
.seg.gone { opacity: 0; }
.wave { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(154, 154, 171, .45) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(transparent 20%, #000 20% 80%, transparent 80%); mask: linear-gradient(transparent 20%, #000 20% 80%, transparent 80%); }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rec); left: 30%; animation: play 9s linear infinite; }
@keyframes play { from { left: 2%; } to { left: 98%; } }
.checks { margin-top: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.chk { position: relative; aspect-ratio: 9 / 16; border-radius: 6px; background: linear-gradient(170deg, #2a2d40, #16161e); border: 1px solid var(--line); overflow: hidden; }
.chk::after { content: attr(data-s); position: absolute; left: 4px; bottom: 4px; font: 600 9px var(--mono); padding: 1px 4px; border-radius: 4px; background: rgba(74, 222, 128, .18); color: var(--pass); }
.chk.warn::after { background: rgba(251, 191, 36, .18); color: var(--warn); }
.chk::before { content: ""; position: absolute; left: 50%; top: 30%; width: 44%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #4a5272; box-shadow: 0 34px 0 10px #3a4160; }
.chk .fn { position: absolute; top: 4px; left: 4px; font: 9px var(--mono); color: var(--faint); }
.mock-term { padding: 14px 16px; font: 12.5px/1.7 var(--mono); color: #d6d6e0; background: #09090c; min-width: 0; overflow: hidden; }
.term-tabs { display: flex; gap: 6px; margin: -4px 0 10px; }
.term-tabs span { font: 11px var(--mono); padding: 3px 9px; border-radius: 6px; color: var(--faint); border: 1px solid var(--line); }
.term-tabs span.on { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.term-lines div { white-space: pre-wrap; word-break: break-word; min-height: 1.7em; }
.t-p { color: var(--rec); }
.t-ok { color: var(--pass); }
.t-w { color: var(--warn); }
.t-d { color: var(--faint); }
.caret { display: inline-block; width: 7px; height: 14px; background: #d6d6e0; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@media (max-width: 980px) {
  .mock-body { grid-template-columns: 180px minmax(0, 1fr); }
  .mock-term { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .mock-tl { border-right: 0; }
  .phone { width: 140px; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-preview { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Works with */
.works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.works-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: 14px; }
.works-row strong { color: var(--faint); font-weight: 500; margin-right: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { color: var(--rec); font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 750; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: #c3c3ce; font-size: 18px; margin: 0; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.flow li { counter-increment: s; position: relative; padding: 22px 22px 22px 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.flow li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 22px; font: 600 14px var(--mono); color: var(--rec); }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split.rev > :first-child { order: 0; } }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: #cfcfd8; }
.bullets .icon { color: var(--pass); margin-top: 3px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; min-width: 0; }
.code { margin: 0; font: 13px/1.65 var(--mono); color: #d4d4de; overflow-x: auto; white-space: pre; }
.code .k { color: #8fa2ff; }
.code .s { color: #f5b971; }
.code .c { color: var(--faint); }

/* Tracks visual */
.tracks { display: grid; gap: 10px; }
.trk { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; font: 12px var(--mono); color: var(--muted); }
.trk .bar { height: 34px; border-radius: 8px; background: var(--panel-2); position: relative; overflow: hidden; }
.trk .bar i { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; }
.trk .wavebar { position: absolute; inset: 4px; background: repeating-linear-gradient(90deg, rgba(154, 154, 171, .5) 0 2px, transparent 2px 4px); -webkit-mask: radial-gradient(ellipse 60% 50% at 30% 50%, #000, transparent), radial-gradient(ellipse 40% 50% at 75% 50%, #000, transparent); mask: radial-gradient(ellipse 60% 50% at 30% 50%, #000, transparent), radial-gradient(ellipse 40% 50% at 75% 50%, #000, transparent); }
.sync-note { margin-top: 14px; display: flex; gap: 10px; align-items: center; font: 12px var(--mono); color: var(--pass); }

/* Frame grid */
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.frame { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.frame .img { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #2a2e46, #121219); position: relative; }
.frame .img::after { content: ""; position: absolute; left: 38%; top: 22%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #47506f; }
.frame .meta { padding: 8px 10px; font: 11px/1.5 var(--mono); color: var(--muted); }
.frame .meta b { display: block; font-weight: 600; }
.frame.ok b { color: var(--pass); }
.frame.ng b { color: var(--rec); }
.frame.ask b { color: var(--warn); }
.frame.ng .img { outline: 2px solid var(--rec); outline-offset: -2px; }
@media (max-width: 700px) { .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Grid of features */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.feat .icon { width: 22px; height: 22px; color: var(--rec); margin-bottom: 12px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }

/* Libraries */
.libs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lib { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.lib b { display: block; font-size: 15px; }
.lib span { color: var(--faint); font-size: 13px; }
.lib em { font-style: normal; font: 11px var(--mono); color: var(--warn); }
@media (max-width: 900px) { .libs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feedback visual */
.fb { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #262a40, #101016); aspect-ratio: 16 / 10; }
.fb svg.pen { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb .pen path { fill: none; stroke: var(--rec); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 4s ease-in-out infinite; }
@keyframes draw { 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.fb .fbcap { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); font-weight: 800; font-size: clamp(14px, 2vw, 20px); text-shadow: 0 2px 0 #000; white-space: nowrap; }
.fb .bubble { position: absolute; left: 5%; top: 7%; max-width: 60%; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #e2e2ea; }
.fb .bubble .icon { display: inline; vertical-align: -3px; color: var(--rec); width: 15px; height: 15px; margin-right: 4px; }
.fb .tc { position: absolute; right: 4%; top: 7%; font: 12px var(--mono); color: var(--muted); background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 6px; }

/* CTA + FAQ */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); background: radial-gradient(closest-side at 50% 0%, rgba(255, 74, 61, .12), transparent 70%); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); margin: 0 0 28px; }
.cta .hero-actions { justify-content: center; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Download page */
.dl-hero { padding: 72px 0 24px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.dl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-card h3 { font-size: 20px; }
.dl-card p { margin: 0; color: var(--muted); font-size: 14px; }
.dl-card .btn { margin-top: auto; justify-content: center; }
.dl-card .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.dl-card.is-you { border-color: rgba(255, 74, 61, .55); box-shadow: 0 0 0 1px rgba(255, 74, 61, .25); }
.notice { border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); border-radius: 12px; padding: 14px 18px; color: #f2deb0; font-size: 15px; }
.sums { font: 12px var(--mono); color: var(--faint); word-break: break-all; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Inline code in copy */
p code, li code { font: .9em var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Benchmark card */
.bench-url { margin: 0 0 14px; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; background: var(--bg-2); }
.bench { margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.bench div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: var(--panel); }
.bench dt { color: var(--faint); font-size: 13px; }
.bench dd { margin: 0; font: 12.5px/1.6 var(--mono); color: #d6d6e0; }
.bench-apply { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; color: var(--pass); font-size: 14px; font-weight: 600; }
@media (max-width: 480px) { .bench div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.btn-icon-only { padding: 7px 9px; }
.brand-mark { border-radius: 7px; }

/* ===== Demo: five animated scenes ===== */
.demo-sec { padding: 8px 0 72px; }
.demo-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; justify-content: center; font: 600 14px var(--sans); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 8px; cursor: pointer; }
.dt:hover { color: var(--text); }
.dt[aria-selected="true"] { color: var(--text); border-color: var(--line-2); background: var(--panel-2); }
.dt-n { font: 600 11px var(--mono); color: var(--rec); }
.dt-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rec); }
.dt[aria-selected="true"] .dt-bar { animation: dtbar var(--dur, 7s) linear forwards; }
.demo-paused .dt-bar { animation: none !important; width: 0; }
@keyframes dtbar { to { width: 100%; } }
@media (max-width: 640px) { .dt { font-size: 12px; padding: 9px 4px; flex-direction: column; gap: 2px; } }
.demo-stage { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 16px; background: radial-gradient(closest-side at 50% 40%, #16161f, #0a0a0e); overflow: hidden; }
@media (max-width: 640px) { .demo-stage { aspect-ratio: 4 / 5; } }
.demo-caption { text-align: center; font-size: 17px; color: #d8d8e2; margin: 16px 0 4px; min-height: 1.6em; }
.demo-note { text-align: center; font-size: 12px; color: var(--faint); margin: 0; }
.sc { position: absolute; inset: 0; padding: 4.5%; opacity: 0; visibility: hidden; transition: opacity .4s; }
.sc.on { opacity: 1; visibility: visible; }
.pp { fill: #5d6687; }
.pp path { fill: #454d6b; }

/* 1 record */
.sc-record { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.rec-top { display: flex; align-items: center; gap: 10px; font: 600 15px var(--mono); color: #ffd2cf; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 5px var(--rec-soft); animation: blink 1.2s infinite; }
.rec-tiles { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; min-height: 0; }
.tile { position: relative; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #262a40, #121219); overflow: hidden; }
.tile span { position: absolute; left: 8px; bottom: 6px; font: 11px var(--mono); color: var(--muted); }
.t-cam .pp { position: absolute; left: 50%; bottom: 0; width: 70%; transform: translateX(-50%); }
.t-cam.b .pp { width: 95%; }
.t-screen { padding: 12% 8% 8%; display: flex; flex-direction: column; gap: 9%; background: #0d0f16; }
.t-screen .codebar { position: absolute; top: 0; left: 0; right: 0; height: 9%; background: #1a1d29; }
.t-screen i { display: block; height: 7%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #8fa2ff 0 30%, #3a4060 30%); }
.sc-record.on .t-screen i { animation: typeln 1.6s steps(12) both; }
.sc-record.on .t-screen i:nth-of-type(2) { animation-delay: .6s; } .sc-record.on .t-screen i:nth-of-type(3) { animation-delay: 1.2s; }
.sc-record.on .t-screen i:nth-of-type(4) { animation-delay: 1.8s; } .sc-record.on .t-screen i:nth-of-type(5) { animation-delay: 2.4s; }
@keyframes typeln { from { width: 0; } }
.rec-tracks { display: grid; gap: 7px; }
.rt { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: center; font: 11px var(--mono); color: var(--muted); }
.rt-bar { height: 16px; border-radius: 5px; background: var(--panel); overflow: hidden; }
.rt-bar i { display: block; height: 100%; width: 100%; border-radius: 5px; }
.rt-bar .c0 { background: #3b4a8a; } .rt-bar .c1 { background: #2f6e5a; } .rt-bar .c2 { background: #5a3f7d; }
.rt-bar .wv { background: repeating-linear-gradient(90deg, rgba(154, 154, 171, .6) 0 2px, transparent 2px 5px); }
.sc-record.on .rt-bar i { animation: grow 6.5s linear both; }
@keyframes grow { from { width: 0; } }

/* 2 prompt */
.sc-prompt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 640px) { .sc-prompt { grid-template-columns: minmax(0, 1fr); align-content: center; } }
.term { border: 1px solid var(--line-2); border-radius: 12px; background: #08080b; padding: 14px 16px; font: 15px/1.8 var(--mono); }
.term .tl { white-space: nowrap; overflow: hidden; }
.term .tl.t-d { opacity: 0; }
.sc-prompt.on .term .tl.t-d { animation: fadein .3s 2.2s both; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--panel); }
.st-ic { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.steps li { color: #e6e6ee; border-color: rgba(74, 222, 128, .35); }
.steps li .st-ic { border-color: var(--pass); background: var(--pass); }
.sc-prompt.on .steps li { animation: stepon .35s calc(2.6s + var(--i) * .3s) both; }
.sc-prompt.on .steps li .st-ic { animation: stepic .35s calc(2.6s + var(--i) * .3s) both; }
@keyframes stepon { from { color: var(--muted); border-color: var(--line); } }
@keyframes stepic { from { border-color: var(--line-2); background: transparent; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* 3 check */
.sc-check .fgrid { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .sc-check .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); } }
.fr { position: relative; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.fr-img { position: relative; flex: 1; background: linear-gradient(160deg, #262a40, #121219); }
.fr-img .pp { position: absolute; left: 50%; bottom: 0; height: 88%; transform: translateX(-50%); }
.fr-mask { position: absolute; left: 10%; top: 12%; width: 50%; height: 14%; border-radius: 3px; background: repeating-conic-gradient(#555 0 25%, #7a7a86 0 50%) 0 0 / 8px 8px; }
.fr b { font: 600 11px var(--mono); color: var(--muted); padding: 6px 8px; }
.fr em { position: absolute; top: 6px; right: 6px; font: 700 12px var(--mono); font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.fr.ok em { background: rgba(74, 222, 128, .18); color: var(--pass); }
.fr.ask em { background: rgba(251, 191, 36, .2); color: var(--warn); }
.fr.ask { border-color: rgba(251, 191, 36, .55); }
.fr.mask em { background: rgba(255, 74, 61, .2); color: var(--rec); }
.fr.mask { border-color: rgba(255, 74, 61, .55); }
.sc-check.on .fr em { animation: pop .3s calc(.5s + var(--i) * .55s) both; }
.sc-check.on .fr-mask { animation: fadein .3s 3.3s both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.25); } }
.scanline { position: absolute; top: 4.5%; bottom: 4.5%; width: 3px; left: 4.5%; background: linear-gradient(transparent, var(--rec), transparent); opacity: 0; box-shadow: 0 0 18px var(--rec); }
.sc-check.on .scanline { animation: scan 4.6s .4s ease-in-out both; }
@keyframes scan { 0% { left: 4.5%; opacity: 1; } 95% { opacity: 1; } 100% { left: 95%; opacity: 0; } }

/* 4 feedback */
.sc-feedback { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 640px) { .sc-feedback { grid-template-columns: minmax(0, 1fr); align-content: center; } }
.fb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #262a40, #121219); overflow: hidden; }
.fb-video .pp { position: absolute; left: 50%; bottom: 0; height: 85%; transform: translateX(-50%); }
.fb-cap { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); white-space: nowrap; font-weight: 800; font-size: clamp(12px, 1.8vw, 20px); text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.fb-pen { position: absolute; inset: 0; width: 100%; height: 100%; }
.fb-pen path { fill: none; stroke: var(--rec); stroke-width: 4; stroke-linecap: round; }
.sc-feedback.on .fb-pen path { stroke-dasharray: 440; animation: draw2 1.4s .5s ease-in-out both; }
@keyframes draw2 { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 0; } }
.fb-say { position: absolute; left: 4%; top: 7%; max-width: 70%; font-size: clamp(11px, 1.4vw, 14px); background: rgba(0, 0, 0, .65); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; }
.sc-feedback.on .fb-say { animation: fadein .4s 1.6s both; }
.fb-tc { position: absolute; right: 4%; top: 7%; font: 12px var(--mono); color: var(--muted); background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 6px; }
.fb-card { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); padding: 16px; display: grid; gap: 6px; font-size: 14px; }
.fb-card b { font: 600 13px var(--mono); color: var(--accent); }
.fb-card em { font-style: normal; font: 600 13px var(--mono); color: var(--pass); }
.sc-feedback.on .fb-card { animation: slidein .5s 2.6s both; }
@keyframes slidein { from { opacity: 0; transform: translateX(-30px); } }

/* 5 publish */
.sc-publish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
@media (max-width: 640px) { .sc-publish { grid-template-columns: minmax(0, 1fr); align-content: center; } }
.pub-video { display: grid; gap: 10px; justify-items: start; }
.pv-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 70% 40%, #ff4a3d55, transparent 60%), linear-gradient(160deg, #2a2e46, #121219); }
.pv-thumb .pp { position: absolute; right: 6%; bottom: 0; height: 90%; }
.pv-thumb b { position: absolute; left: 6%; top: 14%; width: 52%; font-size: clamp(14px, 2.2vw, 26px); line-height: 1.2; font-weight: 900; text-shadow: 0 3px 0 #000; }
.pub-ok { font-size: 13px; color: var(--pass); }
.sc-publish.on .pub-ok { animation: fadein .3s .5s both; }
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pubs li { display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(74, 222, 128, .35); background: var(--panel); border-radius: 10px; padding: 9px 14px; font-weight: 600; }
.pubs li em { font-style: normal; color: var(--pass); }
.sc-publish.on .pubs li { animation: stepon .35s calc(1s + var(--i) * .5s) both; }
.sc-publish.on .pubs li em { animation: pop .3s calc(1s + var(--i) * .5s) both; }
.pv-thumb b, .fb-cap, .demo-caption { word-break: auto-phrase; }
