@font-face { font-family: "Studio Sans"; src: url("../fonts/OpenSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Studio Sans"; src: url("../fonts/OpenSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Studio Sans"; src: url("../fonts/OpenSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Studio Serif"; src: url("../fonts/LibreBaskerville-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Studio Serif"; src: url("../fonts/LibreBaskerville-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --bg: #e7eef8;
    --elev: rgba(255, 255, 255, .82);
    --ink: #0c2340;
    --muted: #5c7392;
    --line: rgba(18, 58, 112, .14);
    --accent: #1d4e89;
    --accent-ink: #f4f8ff;
    --teal: #2563eb;
    --sidebar: #07182e;
    --side-text: #e8f1ff;
    --side-dim: #9eb4d0;
    --shadow: 0 18px 50px rgba(18, 58, 112, .12);
    --radius: 22px;
    --font: "Studio Sans", "Segoe UI", sans-serif;
    --serif: "Studio Serif", Georgia, serif;
    --danger: #9d2c2c;
    --ok: #1d4e89;
    --glow: rgba(96, 165, 250, .55);
}
html[data-theme="dark"] {
    --bg: #07111f;
    --elev: rgba(14, 32, 58, .82);
    --ink: #e8f1ff;
    --muted: #9eb4d0;
    --line: rgba(190, 214, 255, .14);
    --sidebar: #040c18;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --accent-ink: #f4f8ff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(900px 520px at -10% -20%, rgba(96, 165, 250, .45), transparent 60%),
        radial-gradient(700px 480px at 110% 0%, rgba(29, 78, 137, .35), transparent 55%),
        radial-gradient(500px 400px at 70% 110%, rgba(59, 130, 246, .2), transparent 50%),
        var(--bg);
    min-height: 100vh;
}
body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
    z-index: 0;
    background: radial-gradient(circle, rgba(147, 197, 253, .55), rgba(29, 78, 137, 0) 68%);
    animation: floatLight 16s ease-in-out infinite;
}
body::before { top: -120px; right: -80px; }
body::after { bottom: -160px; left: -100px; animation-delay: -8s; width: 520px; height: 520px; }
@keyframes floatLight {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .0), 0 10px 30px rgba(29, 78, 137, .18); }
    50% { box-shadow: 0 0 32px 2px rgba(96, 165, 250, .35), 0 10px 30px rgba(29, 78, 137, .18); }
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.app-shell, .auth-body, .landing { position: relative; z-index: 1; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 268px; background: linear-gradient(180deg, rgba(10, 28, 52, .96), #07182e 40%, #0a2344); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px; box-shadow: inset -1px 0 0 rgba(147, 197, 253, .12); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 0 8px 18px; }
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--side-dim); }
.brand-mark, .brand-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #3b82f6, #1d4e89); color: white; font-family: var(--serif); font-weight: 700; box-shadow: 0 0 24px rgba(96, 165, 250, .45); animation: pulseGlow 4.5s ease-in-out infinite; }
.brand-logo { object-fit: cover; background: white; padding: 4px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; padding-right: 4px; }
.side-nav a, .side-foot a, .side-foot button { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--side-dim); border-radius: 12px; padding: 10px 12px; border: 0; background: transparent; width: 100%; text-align: left; transition: background .2s ease, color .2s ease; }
.side-nav a svg, .side-foot svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side-nav a.active, .side-nav a:hover, .side-foot a:hover, .side-foot button:hover { background: linear-gradient(90deg, rgba(59, 130, 246, .28), rgba(255,255,255,.04)); color: white; box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.workspace { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 22px 28px 0; }
.topbar h1 { font-family: var(--serif); font-size: 32px; margin: 0; font-weight: 700; letter-spacing: -.03em; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.content { padding: 22px 28px 48px; }
.nav-toggle { display: none; }
.sidebar-backdrop { display: none; }

.btn { border: 0; border-radius: 999px; padding: 10px 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, #163e73, #2f6fed); color: var(--accent-ink); box-shadow: 0 10px 28px rgba(47, 111, 237, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.45); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-teal { background: linear-gradient(135deg, #1d4e89, #3b82f6); color: white; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--elev); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }

.card, .stat, .panel { background: var(--elev); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(16px); }
.stat { position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; top: -40%; left: -30%; width: 60%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: rotate(18deg); animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0% { left: -40%; } 100% { left: 140%; } }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.04em; }
.grid-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.post-card { overflow: hidden; }
.post-card img, .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #d5e3f6; display: block; }
.post-card div { padding: 12px 14px 14px; }
.post-card strong { display: block; }
.muted, small { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-top: 28px; }
.section-head h2 { font-size: 22px; margin: 0; }

.studio { display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { padding: 18px; }
.dropzone { border: 1.5px dashed rgba(29, 78, 137, .35); border-radius: 16px; min-height: 180px; display: grid; place-items: center; text-align: center; padding: 18px; background: rgba(59, 130, 246, .06); cursor: pointer; }
.dropzone.drag { border-color: var(--accent); }
.thumbs { display: flex; gap: 8px; overflow: auto; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; background: transparent; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.thumbs .selected { border-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 10px 12px; outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolbar, .ai-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.preview-wrap { position: sticky; top: 18px; }
.format-switch { display: flex; gap: 8px; margin-bottom: 12px; }
.format-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.phone { background: #0e0e0e; border-radius: 28px; padding: 14px; color: white; }
.phone-top { display: flex; justify-content: space-between; font-size: 12px; opacity: .8; margin-bottom: 8px; }
.stage-viewport { width: 100%; overflow: hidden; background: #111; border-radius: 16px; position: relative; }
.stage { position: relative; transform-origin: top left; }
.stage .layer { position: absolute; overflow: hidden; white-space: pre-line; }
.stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .logo img { object-fit: contain; }
.ig-meta { padding: 10px 4px 2px; font-size: 13px; }
[data-step] { display: none !important; }
[data-step].step-on { display: block !important; }
.step-nav { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.step-nav li { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; background: rgba(255,255,255,.06); cursor: pointer; font-size: 13px; }
.step-nav li.on { background: #1d4e89; color: #fff; }
.brand-preview { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.brand-preview img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.variations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.variations button { padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #111; }
.variations .selected { border-color: var(--accent); }
.var-label { font-size: 12px; padding: 6px; }
.layer-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.layer-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 12px; }

.editor-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 16px; }
.canvas-frame { overflow: auto; background: #d7e4f5; border-radius: 18px; min-height: 70vh; display: grid; place-items: center; padding: 16px; }
html[data-theme="dark"] .canvas-frame { background: #07111f; }
.layer-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.layer-list button { text-align: left; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 8px 10px; }
.layer-list .selected { border-color: var(--accent); }

.modal { position: fixed; inset: 0; background: rgba(18, 14, 10, .46); display: grid; place-items: center; padding: 18px; z-index: 30; }
.modal[hidden] { display: none; }
.modal-card { width: min(560px, 100%); background: var(--elev); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal-head, .modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-actions { justify-content: flex-end; margin-top: 8px; }
.toast { position: fixed; bottom: 18px; right: 18px; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 14px; z-index: 40; max-width: 320px; }
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.alert.success { background: rgba(31,106,91,.12); }
.alert.danger { background: rgba(157,44,44,.12); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; font-size: 12px; background: rgba(31,106,91,.12); }
.badge.failed, .badge.expired, .badge.error { background: rgba(157,44,44,.12); }
.badge.draft, .badge.scheduled { background: rgba(196,81,45,.12); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar .dow, .day { min-height: 110px; background: var(--elev); border-radius: 14px; padding: 8px; border: 1px solid var(--line); }
.calendar .dow { min-height: 0; text-align: center; color: var(--muted); background: transparent; border: 0; }
.day.muted-day { opacity: .45; }
.chip { display: block; font-size: 12px; margin-top: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(37, 99, 235, .12); cursor: grab; text-decoration: none; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { height: 10px; border-radius: 99px; background: rgba(12, 35, 64, .08); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #1d4e89, #60a5fa); }
.account-card { display: flex; gap: 12px; align-items: center; }
.account-card img, .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #ddd; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px 8vw; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -.04em; margin: 0 0 16px; }
.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-story { background: var(--sidebar); color: var(--side-text); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-story h1 { font-family: var(--serif); font-size: 58px; line-height: .95; }
.auth-card { display: grid; align-content: center; padding: 40px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: transparent; text-align: left; cursor: pointer; }
.form-note { color: var(--muted); font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.media-grid article { overflow: hidden; }
.media-grid img, .media-grid video { height: 140px; width: 100%; object-fit: cover; display: block; background: #07182e; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.example-card { overflow: hidden; }
.example-stage { position: relative; height: 240px; background: linear-gradient(155deg, #0c2340, #1d4e89 42%, #e8f1ff 42%); }
.example-stage .ex-copy { position: absolute; display: flex; flex-direction: column; gap: 6px; color: #fff; text-shadow: 0 8px 24px rgba(7, 24, 46, .35); }
.layout-left .ex-copy { left: 16px; top: 36px; width: 46%; }
.layout-right .ex-copy { right: 16px; top: 36px; width: 42%; }
.layout-bottom .ex-copy, .layout-top .ex-copy { left: 16px; right: 16px; width: auto; }
.layout-bottom .ex-copy { bottom: 18px; top: auto; }
.layout-top .ex-copy { top: 18px; }
.ex-title { font-size: 22px; line-height: 1; letter-spacing: -.03em; }
.ex-sub, .ex-price { font-size: 13px; }
.ex-price { font-size: 20px; font-weight: 800; }
.ex-cta { align-self: flex-start; margin-top: 4px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.example-card.selected { outline: 2px solid #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .25); }
.example-drop { cursor: pointer; margin-bottom: 16px; }
.example-drop.drag .example-reference { outline: 2px dashed #7eb6ff; outline-offset: 3px; }
.example-reference { aspect-ratio: 1; border-radius: 18px; background: #07182e; display: flex; align-items: center; justify-content: center; }
.example-empty { text-align: center; color: #dbe7ff; padding: 28px; display: grid; gap: 8px; }
.example-empty strong { font-size: 1.05rem; }
.example-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #07182e; }
.example-pick .example-card { padding: 0; text-align: left; cursor: pointer; width: 100%; }
.example-pick .example-stage { height: 160px; }
.example-meta p { margin: 6px 0 10px; }
.progress span { display: block; height: 100%; background: var(--teal); width: 0; }

@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(3, 1fr); }
    .grid-posts, .variations { grid-template-columns: repeat(2, 1fr); }
    .editor-layout, .studio, .hero, .auth-body { grid-template-columns: 1fr; }
    .preview-wrap { position: static; }
    .auth-story { display: none; }
}
.landing {
    background:
        radial-gradient(720px 420px at 88% -10%, rgba(96, 165, 250, .28), transparent 60%),
        var(--bg);
}
.landing::before,
.landing::after { display: none; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 6vw;
    background: rgba(231, 238, 248, .82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .brand { padding: 0; color: var(--ink); }
.site-header .brand small { color: var(--muted); }
.site-header .brand-mark { animation: none; box-shadow: none; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--ink); }
.site-hero { max-width: 1180px; margin: 0 auto; padding: 72px 6vw 36px; }
.hero-copy .lead { font-size: 18px; color: var(--muted); max-width: 38rem; margin: 0 0 22px; }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--accent); margin: 0 0 12px; font-weight: 700; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 18px 0 0; margin: 0; color: var(--muted); font-size: 13px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.landing .btn { transition: transform 160ms ease-out, filter 160ms ease-out; }
.landing .btn:active { transform: scale(0.98); }
.landing .btn:focus-visible, .site-nav a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.studio-frame { background: #07182e; color: #e8f1ff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 12px; }
.frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(232, 241, 255, .28); }
.frame-bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: #9eb4d0; }
.frame-body { display: grid; grid-template-columns: .85fr 1.15fr; gap: 12px; }
.frame-form { background: rgba(255,255,255,.04); border-radius: 16px; padding: 14px; }
.frame-form p { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9eb4d0; }
.frame-form p + .fake-field, .frame-form .fake-row { margin-bottom: 12px; }
.fake-field { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.fake-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strike { text-decoration: line-through; color: #9eb4d0; }
.fake-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fake-pills b, .fake-pills i { font-style: normal; font-weight: 600; font-size: 12px; border-radius: 999px; padding: 5px 9px; }
.fake-pills b { background: #3b82f6; color: white; }
.fake-pills i { background: rgba(255,255,255,.06); color: #dbe7ff; }
.frame-post { background: #0e0e0e; border-radius: 16px; overflow: hidden; }
.frame-canvas { aspect-ratio: 1; background: linear-gradient(160deg, #12325c 0%, #1d4e89 46%, #d7e6f8 46.2%); position: relative; }
.frame-copy { position: absolute; left: 8%; top: 12%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: white; }
.frame-copy small { letter-spacing: .12em; text-transform: uppercase; font-size: 10px; opacity: .8; }
.frame-copy strong { font-family: var(--serif); font-size: 28px; line-height: .95; letter-spacing: -.03em; }
.frame-copy em { font-style: normal; font-weight: 800; font-size: 20px; }
.frame-copy span { border: 1px solid rgba(255,255,255,.8); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.frame-caption { padding: 10px 12px 12px; font-size: 12px; color: #f4f8ff; }
.frame-caption small { display: block; margin-top: 4px; color: #9eb4d0; }
.band, .site-section { max-width: 1180px; margin: 0 auto; padding: 28px 6vw 8px; }
.section-intro h2, .cta-band h2 { font-family: var(--serif); letter-spacing: -.03em; margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 18px 0 0; }
.steps li, .feature-grid article, .format-grid article { background: var(--elev); border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.steps span { display: block; font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.steps h3, .feature-grid h3 { margin: 0 0 8px; font-size: 18px; }
.steps p, .feature-grid p, .format-grid p, .fine, .cta-band p, .site-footer p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.format-grid strong { display: block; font-family: var(--serif); font-size: 32px; letter-spacing: -.03em; }
.format-grid span { display: block; margin-top: 6px; }
.fine { font-size: 13px; margin-top: 14px; }
.cta-band { max-width: 1180px; margin: 36px auto; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #07182e; color: #e8f1ff; border-radius: 24px; }
.cta-band p { color: #9eb4d0; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 8px 6vw 36px; max-width: 1180px; margin: 0 auto; }
.site-footer nav { display: flex; gap: 16px; align-items: start; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--ink); }
.reel-stage { min-height: 280px; display: grid; place-items: center; background: #111; border-radius: 16px; overflow: hidden; }
.reel-stage video { width: 100%; max-height: 70vh; display: block; background: #000; }
.reel-notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.reel-notes li + li { margin-top: 6px; }

@media (max-width: 1100px) {
    .steps, .feature-grid { grid-template-columns: 1fr; }
    .format-grid { grid-template-columns: 1fr 1fr; }
    .frame-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .site-nav { display: none; }
    .site-header { padding: 12px 16px; }
    .landing .top-actions .btn { display: inline-flex; }
    .site-hero { padding-top: 36px; }
    .cta-band, .site-footer { flex-direction: column; align-items: flex-start; margin-left: 16px; margin-right: 16px; }
    .site-footer { padding-left: 0; padding-right: 0; }
}

@media (max-width: 760px) {
    .sidebar { position: fixed; z-index: 20; transform: translateX(-105%); transition: transform .2s ease; }
    .sidebar.open { transform: none; }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 15; }
    .nav-toggle { display: grid; }
    .stats, .split { grid-template-columns: 1fr 1fr; }
    .content, .topbar { padding-left: 16px; padding-right: 16px; }
    .topbar h1 { font-size: 26px; }
    .top-actions .btn { display: none; }
}
