:root {
  --ink: #1a1d24;
  --muted: #6b7280;
  --line: #e8e9ed;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --teal: #0f9d76;
  --pink: #e0457b;
  --brand: #111827;
  --radius: 12px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--soft); padding: 2px 6px; border-radius: 5px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand b { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.brand.small { font-size: 14px; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-header nav a:not(.btn):hover { color: var(--pink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #c9ccd2; }
.btn.block { width: 100%; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--pink); background: #fdeef4; padding: 6px 12px; border-radius: 20px; margin-bottom: 22px; }
.hero h1 { font-size: 48px; margin: 0 0 20px; }
.hero h1 span { color: var(--muted); }
.lead { font-size: 17px; color: #4b5563; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); }
.error-box { margin-top: 18px; padding: 12px 14px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 9px; font-size: 13px; }

/* Hero art */
.hero-art { position: relative; height: 420px; display: grid; place-items: center; }
.phone { width: 230px; height: 400px; border: 8px solid #1f2937; border-radius: 38px; background: #000; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #1f2937; border-radius: 0 0 14px 14px; }
.phone-screen { padding: 28px 12px 12px; height: 100%; background: linear-gradient(160deg,#f3f4f6,#e5e7eb); border-radius: 30px; }
.video-placeholder { height: 280px; border-radius: 16px; background: #111827; display: grid; place-items: center; }
.video-placeholder span { color: #fff; font-size: 30px; opacity: .8; }
.phone-ui-line { height: 10px; background: #d1d5db; border-radius: 5px; margin-top: 14px; }
.phone-ui-line.short { width: 60%; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.1); font-size: 13px; }
.float-card small { display: block; color: var(--muted); font-size: 11px; }
.card-draft { top: 70px; left: 0; }
.card-publish { bottom: 70px; right: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.teal { background: var(--teal); }
.dot.pink { background: var(--pink); }
.dot.gray { background: #cbd5e1; }

/* Sections */
.section-title { font-size: 28px; text-align: center; margin-bottom: 40px; }
.features { padding: 70px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.feature .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.how { padding: 70px 24px 100px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--brand); padding-top: 18px; }
.steps li::before { content: "0" counter(step); display: block; color: var(--pink); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { padding: 36px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner p { margin: 8px 0 0; font-size: 13px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--pink); }

/* Dashboard */
.app-main { padding-top: 40px; padding-bottom: 80px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 28px; margin: 0 0 6px; }
.page-head p { margin: 0; }
.dashboard-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 22px; }
.card h2 { font-size: 16px; margin: 0 0 14px; }
.publish-card { border-top: 3px solid var(--pink); }
.chip { background: var(--soft); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.info-block { font-size: 14px; margin-bottom: 14px; }
.avatar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar-row img, .avatar-ph { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--soft); display: grid; place-items: center; font-weight: 700; }
.scope-list { display: flex; flex-wrap: wrap; gap: 6px; }
.scope-title { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tag { font-size: 11px; background: #eef6f3; color: #0f6e56; padding: 4px 9px; border-radius: 6px; font-family: ui-monospace, monospace; }
.tag.sm { font-size: 10px; }
.account-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.output { background: #111827; color: #a7f3d0; padding: 14px; border-radius: 9px; font-size: 12px; font-family: ui-monospace, monospace; overflow: auto; max-height: 320px; margin-top: 14px; white-space: pre-wrap; word-break: break-all; }
.error-text { color: #b91c1c; font-size: 13px; }
.status-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.status-row { display: flex; gap: 8px; }
.status-row input { flex: 1; }

/* Forms */
form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
form input[type=text], form input[type=file], form select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
form input:focus, form select:focus { outline: 2px solid #fdeef4; border-color: var(--pink); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 100px; }
.legal h1 { font-size: 32px; margin-bottom: 6px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin-top: 30px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { color: #374151; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: #185FA5; }
.ph { background: #fff3cd; color: #7a5b00; padding: 0 3px; border-radius: 2px; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin-top: 40px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 36px; }
  .grid-3, .steps, .dashboard-grid { grid-template-columns: 1fr; }
  .site-header nav a:not(.btn):not(.chip) { display: none; }
}
