* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #111111; --muted: #6b7280; --line: #e5e7eb; --bg: #fafafa;
  --card: #ffffff; --blue: #2563eb; --green: #16a34a; --amber: #d97706;
  --radius: 16px;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--blue); }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.logo span { color: var(--blue); }
.topnav { display: flex; gap: 20px; margin-left: auto; align-items: center; font-size: 14px; }
.topnav a { color: var(--ink); font-weight: 500; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
.btn { display: inline-block; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 15px; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-blue { background: var(--blue); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hero { text-align: center; padding: 48px 0 8px; }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -1.2px; max-width: 640px; margin: 0 auto 12px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }
.badge-pill { display: inline-block; background: #dbeafe; color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }
.price-card { max-width: 620px; margin: 28px auto 0; text-align: left; }
.price-card h2 { font-size: 22px; }
.price-card .sub { color: var(--muted); margin: 4px 0 16px; }
.price { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); }
.was { text-decoration: line-through; color: var(--muted); font-size: 16px; margin-left: 8px; }
.checklist { list-style: none; margin: 18px 0; }
.checklist li { padding: 7px 0 7px 32px; position: relative; font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; background: #dbeafe; color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.req { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.section-title { font-size: 26px; letter-spacing: -0.6px; margin: 44px 0 6px; }
.section-sub { color: var(--muted); margin-bottom: 18px; }
.need-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.need-row:last-child { border-bottom: none; }
.need-ico { width: 36px; height: 36px; border-radius: 10px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.need-row b { display: block; font-size: 15px; }
.need-row p { color: var(--muted); font-size: 14px; }
/* dashboard layout */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; align-items: start; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 76px; }
.sidebar .card { padding: 12px; }
.side-link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.side-link:hover { background: #f3f4f6; }
.side-link.active { background: #111; color: #fff; }
.side-user { padding: 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side-user b { color: var(--ink); display: block; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; }
.stat .l { color: var(--muted); font-size: 13px; }
.status-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.st-draft { background: #f3f4f6; color: #374151; }
.st-rendering { background: #fef3c7; color: #92400e; }
.st-review { background: #dbeafe; color: #1d4ed8; }
.st-posted { background: #dcfce7; color: #166534; }
.reel-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reel-row:last-child { border-bottom: none; }
.reel-row .t { font-weight: 600; }
.reel-row .m { color: var(--muted); font-size: 13px; }
.progress { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: var(--ink); transition: width .5s; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 16px 0 6px; }
.bar-chart .bar { flex: 1; background: var(--ink); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.bar-chart .bar span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .style-grid { grid-template-columns: 1fr; } }
.style-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; }
.style-card.selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.style-card h3 { font-size: 16px; }
.style-card p { color: var(--muted); font-size: 13px; margin: 6px 0; }
.style-card .views { font-size: 12px; font-weight: 700; color: var(--blue); }
.style-card blockquote { font-size: 13px; font-style: italic; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin-top: 10px; }
.ladder-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ladder-row:last-child { border-bottom: none; }
.ladder-row .rank { width: 110px; font-weight: 700; }
.ladder-row .th { color: var(--muted); font-size: 13px; }
.ladder-row .done { color: var(--green); font-weight: 700; }
.ladder-row .cur { background: #111; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.steps { display: flex; gap: 8px; margin: 20px 0; }
.step-dot { flex: 1; height: 6px; border-radius: 999px; background: #e5e7eb; }
.step-dot.on { background: var(--ink); }
.code-box { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: 4px; text-align: center; background: #f3f4f6; border-radius: 12px; padding: 16px; margin: 16px 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 90; overflow-y: auto; }
.modal { background: #fff; border-radius: 20px; max-width: 640px; width: 100%; padding: 28px; }
.modal h2 { font-size: 22px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.score-ring { width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #111; color: #fff; flex-shrink: 0; }
.score-ring .n { font-size: 30px; font-weight: 800; line-height: 1; }
.score-ring .l { font-size: 11px; opacity: .7; }
.toggle { position: relative; width: 46px; height: 26px; background: #d1d5db; border-radius: 999px; border: none; flex-shrink: 0; }
.toggle.on { background: var(--green); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: left .15s; }
.toggle.on::after { left: 23px; }
.script-line { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.script-line:last-child { border-bottom: none; }
.script-line .ts { font-family: ui-monospace, monospace; font-size: 12px; color: var(--blue); font-weight: 700; width: 44px; flex-shrink: 0; padding-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 0; border-bottom: 1px solid var(--line); }
