/* Rea Video — preview shell. Dark "film lab" palette, mobile-first. */
:root {
  --bg: #0a0c10;
  --bg-alt: #0e1116;
  --panel: #131820;
  --panel-2: #171d27;
  --line: rgba(232, 240, 236, 0.10);
  --line-strong: rgba(232, 240, 236, 0.20);
  --text: #f0f4f1;
  --muted: #97a2ad;
  --accent: #c9ff4a;
  --accent-ink: #10160a;
  --violet: #8b9cff;
  --amber: #ffc46b;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --wrap: 1180px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  padding-bottom: 68px;
  background-image: radial-gradient(900px 500px at 82% -8%, rgba(139, 156, 255, 0.10), transparent 70%),
    radial-gradient(700px 480px at 4% 8%, rgba(201, 255, 74, 0.07), transparent 72%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.03em; font-weight: 650; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: inline-block; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 11px 18px; min-height: 44px;
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(201, 255, 74, 0.20); }
.btn-ghost { background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.btn-xs { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(10, 12, 16, 0.86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.brand-name span { color: var(--accent); }
.brand-mark { width: 24px; height: 20px; display: inline-flex; align-items: flex-end; gap: 3px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px; }
.brand-mark i { display: block; width: 4px; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 9px; }
.desktop-nav { display: none; gap: 26px; margin-left: auto; margin-right: auto; }
.nav-link { font-size: 13.5px; color: var(--muted); transition: color .15s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; }
.lang-switch:hover { color: var(--text); border-color: var(--line-strong); }
.desktop-only { display: none; }

/* Hero */
.hero { display: grid; gap: 44px; padding-top: 54px; padding-bottom: 88px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.status-pill i, .status-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(36px, 9vw, 62px); margin: 22px 0 18px; letter-spacing: -0.055em; }
.hero h1 .accent { background: linear-gradient(100deg, var(--accent), #e8ff9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 540px; line-height: 1.7; }
.url-form { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 7px; margin-top: 28px; }
.url-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 255, 74, .10); }
.input-icon { color: var(--accent); font-size: 13px; padding-left: 10px; }
.url-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 13.5px; padding: 8px 4px; }
.url-input::placeholder { color: #6c7783; }
.hero-secondary-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.hero-secondary-row .small { max-width: 330px; line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--mono); font-size: 26px; color: var(--accent); }
.hero-stats span { font-size: 11.5px; color: var(--muted); }

/* Hero comparison video */
.hero > * { min-width: 0; }
.compare-card { min-width: 0; margin: 0; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.compare-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.compare-top .eyebrow { font-size: 10px; }
.compare-media { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #06090d; }
.compare-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-toggle { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(6, 9, 13, .55); color: #fff; font-size: 9px; letter-spacing: .5px; backdrop-filter: blur(6px); }
.video-toggle:hover { border-color: var(--accent); color: var(--accent); }
.compare-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin: 14px 0 0; }
.compare-legend strong { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.compare-legend span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.compare-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; color: #727d88; line-height: 1.5; }

/* Reference library — full-bleed auto-scrolling marquee */
.case-marquee { position: relative; overflow: hidden; padding: 4px 0 8px; }
.case-marquee::before, .case-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; max-width: 96px; z-index: 3; pointer-events: none; }
.case-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-alt) 18%, rgba(14, 17, 22, 0)); }
.case-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-alt) 18%, rgba(14, 17, 22, 0)); }
.case-track { display: flex; align-items: flex-start; gap: 14px; width: max-content; will-change: transform; }
.case-card { flex: 0 0 auto; width: clamp(150px, 20vw, 400px); }
.case-media { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b0f14; }
.case-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(transparent, rgba(6, 9, 13, .88)); pointer-events: none; }
.case-tag { position: absolute; left: 9px; top: 9px; z-index: 2; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; background: rgba(8, 11, 15, .66); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(4px); }
.case-overlay { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; }
.case-overlay h3 { font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.case-meta { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: rgba(240, 244, 241, .62); }
.case-desc { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.case-marquee.is-static { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.case-marquee.is-static::-webkit-scrollbar { display: none; }
.case-marquee.is-static .case-track { transform: none !important; padding-inline: 20px; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.case-foot p { max-width: 620px; }

/* Deliverables band */
.del-band { margin-top: 34px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255, 255, 255, .02); padding: 22px; }
.del-grid { display: grid; gap: 18px; margin-top: 16px; }
.del-no { font-family: var(--mono); font-size: 11px; color: var(--violet); }
.del-grid h3 { font-size: 16px; margin: 6px 0 6px; }
.del-grid p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Sample band media */
.sample-band-media { position: relative; margin: 22px 0 0; height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b0f14; }
.sample-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sample-band-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(transparent, rgba(10, 12, 16, .94)); pointer-events: none; }
.sample-band-media figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: 10px; letter-spacing: .06em; }

/* Report preview card */
.preview-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.preview-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.preview-top, .preview-rows, .preview-actions, .film-strip { position: relative; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px 7px; white-space: nowrap; }
.chip-sample { color: var(--amber); border-color: rgba(255, 196, 107, .35); }
.chip-code { color: var(--violet); border-color: rgba(139, 156, 255, .35); }
.chip-ai { color: var(--accent); border-color: rgba(201, 255, 74, .35); }
.chip-film { color: #ffb0a3; border-color: rgba(255, 176, 163, .35); }
.film-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 18px; }
.strip-cell { height: 44px; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); }
.strip-a { background: linear-gradient(135deg, #2b3d55, #101720); }
.strip-b { background: linear-gradient(135deg, #3b2d55, #17141f); }
.strip-c { background: linear-gradient(135deg, #254238, #101a16); }
.strip-d { background: linear-gradient(135deg, #4a3a2a, #1a1510); }
.strip-e { background: linear-gradient(135deg, #2c3a4a, #0f151d); }
.strip-f { background: linear-gradient(135deg, #3a2c3e, #17111a); }
.strip-g { background: linear-gradient(135deg, #22413f, #101917); }
.strip-h { background: linear-gradient(135deg, #41312f, #1a1211); }
.preview-rows { display: grid; gap: 10px; }
.preview-row { display: flex; gap: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.shot-thumb { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.12); }
.thumb-code { background: linear-gradient(140deg, #33406b, #171c2c); }
.thumb-ai { background: linear-gradient(140deg, #3d5930, #161f12); }
.thumb-film { background: linear-gradient(140deg, #6b4638, #1c1410); }
.preview-row-body { min-width: 0; flex: 1; }
.preview-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-row-head strong { font-size: 12.5px; }
.preview-row-body .mono { display: block; margin: 3px 0 5px; font-size: 10.5px; }
.preview-row-body p { font-size: 11px; color: var(--muted); line-height: 1.45; }
.preview-actions { display: flex; gap: 8px; margin-top: 16px; }

/* Sections */
.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 6vw, 38px); margin: 12px 0 12px; }
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.feature-grid { display: grid; gap: 12px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .18s ease, transform .18s ease; }
.feature-card:hover { border-color: rgba(201,255,74,.4); transform: translateY(-2px); }
.feature-no { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.feature-card h3 { font-size: 18px; margin: 14px 0 9px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.steps { display: grid; gap: 14px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-no { font-family: var(--mono); font-size: 28px; color: var(--accent); }
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; }
.step-arrow { display: none; }
.sample-band { background: linear-gradient(130deg, #151c26, #10141b); border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px; overflow: hidden; }
.sample-band-copy .mono { font-size: 10.5px; word-break: break-all; }
.sample-band-copy h3 { font-size: 22px; margin: 14px 0 10px; }
.sample-band-copy p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-bottom: 20px; }
.sample-band-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 24px; }
.sample-band-strip .strip-cell { height: 58px; }
.use-grid { display: grid; gap: 12px; }
.use-card { border-left: 2px solid var(--line-strong); padding: 4px 0 4px 18px; }
.use-no { font-family: var(--mono); font-size: 11px; color: var(--violet); }
.use-card h3 { font-size: 17px; margin: 8px 0 6px; }
.use-card p { font-size: 13.5px; color: var(--muted); }
.cta-section { border-top: 1px solid var(--line); background: radial-gradient(600px 300px at 50% 0%, rgba(201,255,74,.09), transparent 75%), var(--bg-alt); }
.cta-inner { padding: 72px 0; text-align: center; }
.cta-inner h2 { font-size: clamp(26px, 6vw, 40px); margin: 14px auto 12px; max-width: 680px; }
.cta-inner p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 14.5px; }
.cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Page heads & panels */
.page-head { padding: 48px 0 30px; }
.page-head h1 { font-size: clamp(28px, 7vw, 44px); margin: 12px 0 12px; }
.page-head p { color: var(--muted); max-width: 660px; font-size: 15px; line-height: 1.7; }
.page-head .lead { font-size: 17px; color: var(--text); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 19px; }
.panel h3 { font-size: 15px; }
.panel > p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.field-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Studio */
.studio-layout { display: grid; gap: 16px; padding-bottom: 80px; }
.studio-side { display: none; }
.studio-main { display: grid; gap: 16px; min-width: 0; }
.studio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-item { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-radius: 8px; color: var(--muted); font-size: 13px; text-align: left; padding: 10px 8px; }
.side-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-item span { font-family: var(--mono); color: var(--accent); width: 18px; }
.side-account { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.side-account h3 { margin-bottom: 8px; }
.side-account .small { margin-bottom: 12px; }
.dropzone { width: 100%; margin-top: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.015); padding: 26px 16px; display: grid; gap: 6px; justify-items: center; color: var(--text); }
.dropzone:hover { border-color: var(--accent); background: rgba(201,255,74,.04); }
.dropzone-icon { font-size: 22px; color: var(--accent); }
.dropzone strong { font-size: 14px; }
.empty-state { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 10px; border: 1px dashed var(--line); border-radius: 12px; }
.empty-state > span { font-size: 30px; color: var(--line-strong); }
.empty-state p { font-size: 13px; color: var(--muted); max-width: 320px; }

/* Sample report */
.report-layout { display: grid; gap: 16px; padding-bottom: 80px; }
.report-main, .report-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.report-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 18px; }
.report-strip .strip-cell { height: 48px; }
.report-shot { display: grid; grid-template-columns: 62px 1fr; gap: 12px; border-top: 1px solid var(--line); padding: 18px 0; }
.report-shot:first-of-type { border-top: 0; padding-top: 4px; }
.report-shot-thumb { height: 62px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; border: 1px solid rgba(255,255,255,.12); }
.report-shot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.report-shot-head h3 { font-size: 15px; }
.report-shot-body > .mono { display: block; margin: 5px 0 8px; font-size: 10.5px; }
.report-shot-body p { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; line-height: 1.55; }
.report-shot-body p strong { color: var(--text); font-weight: 600; }
.report-shot-actions { margin-top: 10px; }
.note-panel { background: rgba(255,196,107,.05); border-color: rgba(255,196,107,.22); }

/* Pricing */
.pricing-grid { display: grid; gap: 14px; padding-bottom: 42px; }
.plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.plan-card.is-featured { border-color: rgba(201,255,74,.55); background: linear-gradient(170deg, rgba(201,255,74,.07), var(--panel) 55%); }
.plan-flag { position: absolute; top: -11px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; background: var(--accent); color: var(--accent-ink); padding: 4px 9px; border-radius: 4px; }
.plan-card h2 { font-size: 18px; }
.plan-price { font-family: var(--mono); font-size: 36px; letter-spacing: -.04em; margin: 14px 0 6px; }
.plan-price small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 4px; }
.plan-card > p { font-size: 13px; }
.plan-card ul { display: grid; gap: 10px; margin: 22px 0 24px; }
.plan-card li { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.plan-card li span { color: var(--accent); }
.faq-inline { padding-bottom: 80px; display: grid; gap: 10px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 15px 18px; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 12px; }

/* About / legal / login / 404 */
.prose-layout { display: grid; gap: 20px; padding-bottom: 80px; }
.prose { display: grid; gap: 18px; max-width: 720px; }
.prose p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.prose-side { display: grid; gap: 14px; align-content: start; }
.prose-side .panel p { margin: 10px 0 14px; }
.faq-list { display: grid; gap: 10px; padding-bottom: 80px; max-width: 800px; }
.login-layout { display: grid; gap: 16px; padding-bottom: 80px; max-width: 820px; }
.login-panel { display: grid; gap: 18px; }
.account-state { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: rgba(255,255,255,.02); }
.account-state p { margin-top: 10px; font-size: 14px; }
.tick-list { display: grid; gap: 12px; margin-top: 16px; }
.tick-list li { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; }
.tick-list li::before { content: "✓"; color: var(--accent); }
.legal-body { display: grid; gap: 22px; padding-bottom: 80px; max-width: 800px; }
.legal-body article { border-top: 1px solid var(--line); padding-top: 18px; }
.legal-body h2 { font-size: 18px; margin-bottom: 10px; }
.legal-body p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.not-found { padding: 90px 0 120px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.not-found h1 { font-size: clamp(28px, 7vw, 44px); }
.not-found p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 44px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 14px 0 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.footer-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 9px; align-content: start; }
.footer-grid > div a { font-size: 13px; color: var(--muted); }
.footer-grid > div a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: #6e7883; font-size: 11.5px; }

/* Mobile tabbar (independent mobile navigation) */
.mobile-tabbar { position: fixed; z-index: 70; bottom: 0; left: 0; right: 0; height: 64px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(12, 15, 20, .96); backdrop-filter: blur(16px); border-top: 1px solid var(--line-strong); }
.tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; color: var(--muted); }
.tab-item .tab-icon { font-size: 17px; line-height: 1; }
.tab-item.is-active { color: var(--accent); }

/* Modal + consent */
.modal-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(3,5,8,.78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden], .consent-bar[hidden] { display: none; }
.modal-card { position: relative; width: min(100%, 440px); background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.modal-card h2 { font-size: 26px; margin: 12px 0 12px; }
.modal-card > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.modal-target { font-family: var(--mono); font-size: 11px !important; color: var(--accent) !important; margin-top: 12px; min-height: 16px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: transparent; border: 0; color: var(--muted); font-size: 24px; line-height: 1; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.consent-bar { position: fixed; z-index: 90; bottom: 74px; left: 12px; right: 12px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.consent-bar p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.consent-bar a { color: var(--accent); }
.consent-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Clerk auth modal */
.auth-backdrop { position: fixed; inset: 0; z-index: 130; background: rgba(3,5,8,.82); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.auth-card { position: relative; width: min(100%, 420px); background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 22px; margin: 12px 0 10px; }
.auth-card > p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.auth-form { display: grid; gap: 10px; margin-top: 20px; }
.auth-input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 14px; color: var(--text); outline: 0; font-size: 14px; }
.auth-input:focus { border-color: var(--accent); }
.auth-error { color: #ff9b8f; font-size: 12.5px; min-height: 18px; }
.auth-divider { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 18px 0; }
.auth-hint { font-size: 12.5px !important; }
.auth-actions { display: flex; gap: 8px; margin-top: 14px; }
.auth-google { width: 100%; }
.auth-note { margin-top: 16px; font-size: 11.5px !important; color: #727d88 !important; }
.auth-close { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; color: var(--muted); font-size: 24px; }
.auth-signed { display: grid; gap: 12px; margin-top: 18px; }
.auth-email { font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all; }

/* Desktop layout — intentionally different navigation and grid structure */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .wrap { width: min(100% - 64px, var(--wrap)); }
  .desktop-nav { display: flex; }
  .desktop-only { display: inline-flex; }
  .mobile-tabbar { display: none; }
  .header-inner { height: 74px; }
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .hero-sub { font-size: 17px; }
  .compare-card { padding: 16px; }
  .compare-legend { gap: 14px 18px; }
  .case-track { gap: 18px; }
  .case-foot { margin-top: 26px; }
  .del-band { padding: 28px 30px; margin-top: 44px; }
  .del-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .sample-band-media { margin-top: 0; height: 380px; }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 48px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .feature-card { padding: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step-arrow { display: block; position: absolute; right: -18px; top: 50%; color: var(--accent); z-index: 2; font-size: 20px; }
  .sample-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 38px; }
  .sample-band-copy p { margin-bottom: 24px; }
  .sample-band-strip { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
  .sample-band-strip .strip-cell { height: 110px; }
  .use-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cta-inner { padding: 100px 0; }
  .page-head { padding: 72px 0 40px; }
  .studio-layout { grid-template-columns: 230px 1fr; gap: 22px; }
  .studio-side { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; position: sticky; top: 96px; }
  .studio-side h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  .report-layout { grid-template-columns: 1fr 280px; gap: 22px; }
  .report-strip { grid-template-columns: repeat(10, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
  .plan-card { display: flex; flex-direction: column; }
  .plan-card ul { flex: 1; }
  .prose-layout { grid-template-columns: 1.5fr 1fr; gap: 40px; }
  .login-layout { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .consent-bar { left: 24px; right: 24px; bottom: 24px; max-width: 780px; margin-inline: auto; padding: 16px 20px; }
  .consent-bar p { font-size: 12.5px; }
  .legal-body, .faq-list { max-width: 840px; }
}

/* Narrow two-column hero: drop the sample badge so the comparison label keeps one line */
@media (max-width: 1180px) {
  .compare-top { gap: 8px; }
  .compare-top .eyebrow { font-size: 9.5px; letter-spacing: .1em; white-space: nowrap; }
  .compare-top .chip-sample { display: none; }
}

/* Wide enough for a real two-column hero: text gets the larger share */
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 46px; padding-top: 84px; padding-bottom: 104px; align-items: center; }
  .hero h1 { font-size: clamp(42px, 3.9vw, 57px); text-wrap: balance; }
  .hero-sub { max-width: 100%; }
  .compare-card { justify-self: end; width: 100%; max-width: 480px; }
}

@media (max-width: 640px) {
  .case-card { width: min(52vw, 210px); }
  .case-media { aspect-ratio: 9 / 16; }
  .case-overlay h3 { font-size: 14px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 38px; }
  .url-form { flex-wrap: wrap; }
  .url-form .btn { width: 100%; }
  .input-icon { display: none; }
  .url-input { padding-left: 10px; }
  .header-actions .btn-ghost { padding: 6px 10px; }
  .preview-card { padding: 14px; }
  .report-shot { grid-template-columns: 48px 1fr; }
  .report-shot-thumb { height: 48px; }
  .consent-bar { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: flex-end; }
  .modal-card, .auth-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Clerk official components (lazy-loaded sign-in) ---------- */
.rea-clerk-modal { background: #0e1116 !important; border: 1px solid var(--line-strong) !important; box-shadow: var(--shadow) !important; }
.rea-clerk-card { background: transparent !important; box-shadow: none !important; }
.rea-clerk-title { color: var(--text) !important; letter-spacing: -0.02em; }
.rea-clerk-subtitle { color: var(--muted) !important; }
.rea-clerk-primary { background: var(--accent) !important; color: var(--accent-ink) !important; font-weight: 650 !important; }
.rea-clerk-primary:hover { filter: brightness(1.06); }
.rea-clerk-input { background: rgba(255,255,255,.04) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
.rea-clerk-link { color: var(--accent) !important; }
.rea-clerk-social { background: rgba(255,255,255,.04) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
.rea-clerk-footer { background: transparent !important; }
.rea-clerk-divider-text { color: var(--muted) !important; }
.rea-clerk-close { color: var(--muted) !important; }
.auth-loading { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
