/* CalBear web app. Brand: ink, paper, warm neutrals, gold for emphasis, red only for the mark and for failures. */
:root {
  --ink: #0c0a0a; --paper: #faf7f2; --bg: #f6f4f0; --surface: #ffffff;
  --line: #ebe7e1; --line-strong: #d9d4cc; --text: #3f3b36; --text-strong: #0c0a0a; --muted: #8a857d;
  --gold: #f2b63c; --gold-soft: #fdf1d6; --red: #e03a2f; --red-deep: #a4251c; --red-soft: #fbe5e3;
  --green-deep: #1e6b3a; --green-soft: #e6f4ea; --blue-deep: #2c4a80; --blue-soft: #e9eef7;
  --radius: 12px; --radius-sm: 8px; --font: "Inter Tight", -apple-system, "Segoe UI", sans-serif; --mono: "SF Mono", Menlo, Consolas, monospace;
  /* legacy names still used by a few components */
  --blue: #0c0a0a; --blue-hover: #3f3b36; --blue-deep-legacy: #2c4a80;
  --gray-50: #f6f4f0; --gray-100: #f1eee9; --gray-150: #ebe7e1; --gray-300: #d9d4cc; --gray-400: #cfc9c0; --gray-700: #8a857d; --gray-800: #3f3b36; --gray-900: #0c0a0a;
  --green: #1e6b3a; --orange-soft: #fdf1d6; --yellow: #f2b63c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1:focus { outline: none; }
h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--text-strong); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--text-strong); }
h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--text-strong); }
p { margin: 0 0 8px; }
a { color: var(--text-strong); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 12px; color: var(--text-strong); }
pre { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font: 12px/1.6 var(--mono); white-space: pre-wrap; }
pre.tree { background: var(--gray-100); color: var(--text-strong); border: 1px solid var(--line); white-space: pre; overflow-x: auto; }
.muted { color: var(--muted); } .small { font-size: 12px; } .error { color: var(--red-deep); font-weight: 600; } .mono { font-family: var(--mono); font-size: 11.5px; }

/* Shell: dark sidebar with the mark, light content. */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 224px; flex-shrink: 0; padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--ink); color: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; color: var(--paper); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.nav-item { display: flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 6px; text-decoration: none; color: rgba(250,247,242,.72); font-weight: 500; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--paper); text-decoration: none; }
.nav-item.active { background: rgba(255,255,255,.1); color: var(--paper); font-weight: 600; }
.nav-section { margin: 12px 8px 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(250,247,242,.55); }
.sidebar-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; }
.sidebar-footer .muted { color: rgba(250,247,242,.6); }
.sidebar .btn-text { color: var(--paper); opacity: .8; }
.main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.crumb { font-size: 12px; color: var(--muted); display: block; }
.stepper { display: flex; gap: 26px; margin: 0; padding: 0 32px; height: 44px; align-items: center; list-style: none; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li::before { counter-increment: step; content: counter(step); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.stepper li.active { color: var(--text-strong); } .stepper li.active::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stepper li.done { color: var(--text); } .stepper li.done::before { content: "✓"; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tabs { display: flex; gap: 26px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs .tab { display: flex; align-items: center; height: 44px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs .tab.active { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--ink); }
.content { padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.content.two-col { flex-direction: row; align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 20px; flex-grow: 1; min-width: 0; }
.col.narrow { flex-grow: 0; width: 380px; flex-shrink: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.empty { align-items: flex-start; }
.card.info { background: var(--gold-soft); border-color: #f2d68a; color: var(--text-strong); }
.card.info h3 { margin-top: 0; }
.card.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.card.dark h2, .card.dark h3 { color: var(--paper); } .card.dark .muted { color: rgba(250,247,242,.72); }
.card.error-card { border-color: #f3c3bf; background: var(--red-soft); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpi-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi-value { font-size: 22px; font-weight: 600; color: var(--text-strong); letter-spacing: -.02em; }
.kpi-up { color: var(--green-deep); } .kpi-down { color: var(--red-deep); }

.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.field input, .field select, .row select, .row input[type=file], .select, .input { height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: 13px var(--font); color: var(--text); }
.field input:focus, .select:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[type=range] { padding: 0; height: 24px; accent-color: var(--ink); }
.check, .option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); margin: 0; width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--text); cursor: pointer; text-decoration: none; }
.pill:hover { text-decoration: none; border-color: var(--ink); }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.robot-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.robot-card:hover { border-color: var(--line-strong); }
.robot-card.on { border: 2px solid var(--ink); padding: 11px 13px; }
.robot-card strong { color: var(--text-strong); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 26px; text-align: center; background: #fbfaf8; }
.dropzone.over { border-color: var(--ink); background: var(--gold-soft); }

.btn-primary, .btn-secondary, .btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--radius-sm); font: 600 13px var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); border: 1px solid var(--ink); color: var(--paper); } .btn-primary:hover { background: #2a2622; color: var(--paper); text-decoration: none; }
.btn-secondary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-strong); } .btn-secondary:hover { border-color: var(--ink); text-decoration: none; }
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: var(--ink); } .btn-gold:hover { background: #e9a92a; text-decoration: none; }
.btn-primary:disabled, .btn-secondary:disabled, .btn-gold:disabled { opacity: .45; cursor: default; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-text { background: none; border: 0; padding: 0; color: var(--text-strong); font: 600 13px var(--font); cursor: pointer; }
.btn-text.danger { color: var(--red-deep); }

.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 12.5px; }
.table th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table.plain { border: 0; } .table.plain td { padding-left: 0; }
.table tr.dimmed { opacity: .5; } .table .actions { text-align: right; white-space: nowrap; display: flex; gap: 12px; justify-content: flex-end; }
.table .right, td.right { text-align: right; } .nowrap { white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--gray-100); color: var(--text); font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip.mono { font-family: var(--mono); font-weight: 500; }
.chip-dark { background: var(--ink); color: var(--paper); }
.chip-succeeded, .chip-keep, .chip-ready, .chip-completed { background: var(--green-soft); color: var(--green-deep); }
.chip-running, .chip-processing, .chip-queued, .chip-exporting { background: var(--blue-soft); color: var(--blue-deep); }
.chip-flagged, .chip-warning, .chip-reviewpending, .chip-awaitingreview, .chip-draft { background: var(--gold-soft); color: #7a5200; }
.chip-failed, .chip-drop { background: var(--red-soft); color: var(--red-deep); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; } .bar-fill { height: 100%; background: var(--ink); transition: width .3s; }
.bar.gold .bar-fill { background: var(--gold); } .bar.red .bar-fill { background: var(--red); } .bar.green .bar-fill { background: var(--green-deep); }
.score { display: grid; grid-template-columns: 104px 1fr 36px; gap: 8px; align-items: center; font-size: 11.5px; }
.score .right { text-align: right; font-weight: 600; color: var(--text-strong); }
.thumb { position: relative; width: 96px; height: 54px; border-radius: 6px; background: linear-gradient(135deg, #2a2622, #4a433c); flex-shrink: 0; overflow: hidden; display: block; }
.thumb.lg { width: 100%; height: 130px; border-radius: 8px; } .thumb.xl { width: 100%; height: 240px; border-radius: 10px; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .t { position: absolute; right: 6px; bottom: 5px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-family: var(--mono); }
.thumb .p { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.thumb .p::after { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 110px; } .hist div { flex: 1; border-radius: 4px 4px 0 0; opacity: .9; }
.stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stage.succeeded .bar-fill { background: var(--green-deep); } .stage.failed .bar-fill { background: var(--red); }
.timeline { display: flex; gap: 10px; } .timeline div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; }
.steps { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; } .steps pre { margin-top: 4px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-row { display: grid; grid-template-columns: 96px 1fr 110px 110px 130px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gray-100); cursor: pointer; }
.ep-row:hover { border-color: var(--line-strong); } .ep-row.on { background: var(--gold-soft); border-color: var(--gold); } .ep-row.dropped { opacity: .55; }
.validation-message, .validation-errors { color: var(--red-deep); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(12,10,10,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { width: 560px; max-width: 100%; background: var(--surface); border-radius: 14px; box-shadow: 0 24px 64px rgba(12,10,10,.3); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.modal .btn-text { font-size: 18px; line-height: 1; }
.field textarea { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: 13px var(--font); color: var(--text); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.robot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.robot-card .badge-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.robot-card:disabled { cursor: default; } .robot-card:disabled:not(.on) { opacity: .6; }
.section { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0; }
.section-head { background: none; border: 0; padding: 0; font: inherit; display: flex; gap: 12px; align-items: baseline; cursor: pointer; color: var(--text-strong); font-weight: 600; text-align: left; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chip-gold { background: var(--gold-soft); color: #7a5200; }

.robot-summary { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; }
.robot-glyph { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.robot-mark { width: 72px; height: 72px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spec { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf8; }
.spec strong { color: var(--text-strong); font-size: 14px; }
.facts { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 12.5px; align-items: start; }
.upload-row { display: grid; grid-template-columns: 96px 1fr 160px 100px 60px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }

/* Account pages: brand panel on the left, form on the right. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-brand { background: #000; color: #fff; padding: 36px 48px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  font-family: "Inter Tight", var(--font); }
.auth-mark { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: inherit; text-decoration: none; }
.auth-brand h2 { display: block; margin: 0 0 32px; color: #fff; font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; max-width: 12ch; }
.auth-brand ul { list-style: none; margin: 0; padding: 0; max-width: 42ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.64); }
.auth-brand li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.auth-brand-foot { margin: 0; font-size: 12px; color: rgba(255,255,255,.4); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-panel { width: 100%; max-width: 400px; }
.auth-mark-mobile { display: none; color: var(--gray-900); margin-bottom: 32px; }
.auth-panel h1 { display: block; margin: 0 0 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--gray-900); }
.auth-panel h1:focus { outline: none; }
.auth-panel .lead { margin: 0 0 28px; font-size: 14px; color: var(--gray-700); }
.auth-panel form { display: flex; flex-direction: column; gap: 18px; }
.auth-panel .field { gap: 6px; font-size: 13px; }
.auth-panel .field input { height: 44px; padding: 0 14px; font-size: 14px; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.auth-panel .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.auth-panel .field input.invalid { border-color: var(--red-deep); }
.auth-panel .field input.invalid:focus { box-shadow: 0 0 0 3px var(--red-soft); }
.auth-panel .validation-message { font-size: 12px; font-weight: 400; color: var(--red-deep); }
.auth-panel .validation-message:empty { display: none; }
.auth-hint { font-size: 12px; font-weight: 400; color: var(--gray-700); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.auth-row .check { font-size: 13px; }
.auth-panel .btn-primary { height: 44px; width: 100%; font-size: 14px; border-radius: var(--radius); }
.auth-alert { padding: 12px 14px; border-radius: var(--radius); background: var(--red-soft); color: var(--red-deep); font-size: 13px; }
.auth-foot { margin: 28px 0 0; font-size: 13px; color: var(--gray-700); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mark-mobile { display: inline-flex; }
  .auth-form { align-items: flex-start; padding: 40px 20px; }
}
.validation-message, .validation-errors { color: var(--red-deep); font-size: 12px; }

/* ===== Admin console ===== */
.admin-two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.admin-two .col { display: flex; flex-direction: column; gap: 20px; }
.stat-bar { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; font-size: 12px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.swatch-line { width: 14px; height: 2px; background: var(--gray-900); border-radius: 0; margin-bottom: 3px; }

/* ===== Landing page ===== */
/* Pure black behind full-screen looping video, one headline and one sentence per scene. Scoped under .landing. */
.landing { --white: #ffffff; --dim: rgba(255,255,255,.64); --hair: rgba(255,255,255,.16); --blue: #0074d9;
  background: #000; color: var(--white); font-family: "Inter Tight", "Open Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.landing a, .landing a:hover { color: inherit; text-decoration: none; }
.landing a:focus-visible, .landing button:focus-visible, .landing input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation: fixed, transparent, uppercase like a film title card. */
.ln-nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 22px 40px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.ln-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .12em; }
.ln-links { display: flex; gap: 28px; margin-left: 24px; }
.ln-links a, .ln-account > a, .ln-account a:not(.ln-button) { opacity: .78; } .ln-links a:hover, .ln-account a:hover { opacity: 1; }
.ln-account { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.landing a.ln-button { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--white); border-radius: 999px; opacity: 1; }
.landing a.ln-button:hover { background: var(--white); color: #000; }
.landing a.ln-button-lg { height: 48px; padding: 0 26px; font-size: 15px; letter-spacing: 0; background: var(--white); color: #000; }
.landing a.ln-button-lg:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Scenes: one viewport each, video underneath, copy pinned bottom-left. */
.ln-hero, .ln-scene { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 40px 64px; overflow: hidden; }
.ln-copy { position: relative; z-index: 1; max-width: 720px; }
.ln-copy h1, .ln-copy h2 { display: block; margin: 0 0 16px; font-weight: 500; letter-spacing: -.035em; line-height: .98; max-width: 14ch; color: var(--white); }
.ln-copy h1 { font-size: clamp(2.8rem, 8vw, 7rem); }
.ln-copy h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.ln-copy p { margin: 0 0 22px; max-width: 46ch; font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--dim); }
.ln-copy a { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hair); }
.ln-copy a:hover { text-decoration-color: var(--white); }
.ln-hero::after, .ln-scene::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.35) 100%); }

/* Video slot and its placeholder: viewfinder corner marks, file name in the middle. */
.lv { position: absolute; inset: 0; background: #000; }
.lv-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-frame { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, #171717 0%, #050505 70%); }
.lv-corner { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.35); }
.lv-tl { top: 88px; left: 40px; border-right: 0; border-bottom: 0; } .lv-tr { top: 88px; right: 40px; border-left: 0; border-bottom: 0; }
.lv-bl { bottom: 40px; left: 40px; border-right: 0; border-top: 0; } .lv-br { bottom: 40px; right: 40px; border-left: 0; border-top: 0; }
.lv-note { position: absolute; top: 96px; right: 78px; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.4); white-space: nowrap; }

/* The five steps: the content is a sequence, so the numbers carry meaning. */
.ln-process { padding: 120px 40px; border-top: 1px solid var(--hair); }
.ln-process h2 { display: block; color: var(--white); margin: 0 0 56px; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.03em; max-width: 20ch; }
.ln-process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.ln-process li { padding: 24px 24px 24px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; }
.ln-process li span { font-size: 13px; color: var(--dim); }
.ln-process li strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.ln-process li p { margin: 0; color: var(--dim); font-size: .95rem; max-width: 30ch; }

/* Supported robots: a plain ledger, one row each. */
/* robots: landing section and /robots catalog */
.ln-eyebrow { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; color: var(--gold); }
.ln-robots .ln-robots-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; gap: 28px; }
.ln-robots-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ln-robots .ln-copy h2 { max-width: 18ch; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.ln-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ln-cat-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(250,247,242,.03); color: var(--white); text-decoration: none; }
.ln-cat-card:hover { border-color: rgba(250,247,242,.35); background: rgba(250,247,242,.05); }
.ln-cat-top { display: flex; justify-content: space-between; align-items: center; }
.ln-cat-count { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.ln-cat-card strong { display: block; font-size: 16px; font-weight: 600; } .ln-cat-card strong + span { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.ln-cat-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(250,247,242,.8); }
.ln-glyph-tile { width: 48px; height: 48px; border-radius: 12px; background: rgba(250,247,242,.06); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ln-glyph-tile.sm { width: 40px; height: 40px; border-radius: 10px; }
.ln-robots-foot { margin: 0; font-size: 12.5px; color: var(--dim); } .ln-robots-foot a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ln-button-gold { background: var(--gold); color: #0c0a0a; border-color: var(--gold); }
.ln-catalog { padding: 120px 40px 80px; display: flex; flex-direction: column; gap: 24px; }
.ln-catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ln-catalog .ln-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.ln-catalog-tools { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.ln-catalog-tools input { height: 40px; width: 260px; padding: 0 12px; border: 1px solid rgba(250,247,242,.25); border-radius: 8px; background: transparent; color: var(--white); font: 13px var(--font); }
.ln-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ln-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid rgba(250,247,242,.25); border-radius: 999px; font-size: 12px; color: var(--dim); text-decoration: none; }
.ln-pill.on, .ln-pill:hover { color: var(--white); background: rgba(250,247,242,.1); }
.ln-cat-section { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--hair); }
.ln-cat-section h2 { display: block; margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--white); } .ln-cat-section h2 span { color: var(--dim); font-weight: 500; }
.ln-cat-section > div:first-child p { margin: 6px 0 0; font-size: 13px; color: var(--dim); max-width: 260px; }
.ln-robot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ln-robot-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(250,247,242,.03); }
.ln-robot-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--white); } .ln-robot-meta { font-size: 11.5px; color: var(--dim); }
.ln-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.ln-tag.pop { background: var(--white); color: #0c0a0a; } .ln-tag.new { background: rgba(242,182,60,.18); color: var(--gold); }
.ln-catalog-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid var(--hair); }
.ln-catalog-foot h2 { display: block; margin: 0 0 6px; font-size: 22px; font-weight: 600; color: var(--white); } .ln-catalog-foot p { margin: 0; max-width: 60ch; font-size: 13px; color: var(--dim); }
.ln-catalog-foot-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 900px) { .ln-cat-grid, .ln-robot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ln-cat-section { grid-template-columns: 1fr; } .ln-robots-head, .ln-catalog-head, .ln-catalog-foot { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .ln-cat-grid, .ln-robot-grid { grid-template-columns: 1fr; } }
.ln-list { padding: 0 40px 120px; }
.ln-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.ln-list li { padding: 18px 0; border-top: 1px solid var(--hair); font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; }
.ln-list li.ln-soon { color: var(--dim); font-weight: 400; }

/* Closing call to action. */
.ln-cta { padding: 140px 40px; text-align: center; border-top: 1px solid var(--hair); }
.ln-cta h2 { display: block; color: var(--white); margin: 0 0 14px; font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.035em; }
.ln-cta p { margin: 0 auto 32px; max-width: 48ch; color: var(--dim); font-size: 1.1rem; }
.ln-cta-actions { display: flex; justify-content: center; align-items: center; gap: 28px; }
.ln-cta-actions a:not(.ln-button) { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--hair); }

/* Footer. */
.ln-footer { border-top: 1px solid var(--hair); padding: 80px 40px 40px; }
.ln-footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 72px; }
.ln-footer h2 { display: block; color: var(--white); margin: 0 0 8px; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.ln-footer p { margin: 0; color: var(--dim); max-width: 44ch; }
.ln-signup { display: flex; gap: 10px; }
.ln-signup input { height: 46px; width: min(320px, 60vw); padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--white); font: inherit; }
.ln-signup input::placeholder { color: var(--dim); }
.ln-signup button { height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--white); color: #000; font: inherit; font-weight: 500; cursor: pointer; }
.ln-signup button:hover { background: var(--blue); color: var(--white); }
.ln-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.ln-footer-bottom nav { display: flex; gap: 22px; } .ln-footer-bottom nav a:hover { color: var(--white); }

@media (max-width: 800px) {
  .ln-nav { padding: 18px 20px; gap: 16px; } .ln-links { display: none; } .ln-account { gap: 14px; }
  .ln-hero, .ln-scene { padding: 0 20px 40px; }
  .ln-process { padding: 80px 20px; } .ln-process ol { grid-template-columns: 1fr; }
  .ln-list { padding: 0 20px 80px; } .ln-list ul { grid-template-columns: 1fr; }
  .ln-cta { padding: 96px 20px; } .ln-cta-actions { flex-direction: column; gap: 18px; }
  .ln-footer { padding: 64px 20px 32px; }
  .lv-tl, .lv-bl { left: 20px; } .lv-tr, .lv-br { right: 20px; } .lv-bl, .lv-br { bottom: 20px; } .lv-note { right: 58px; }
}
@media (prefers-reduced-motion: reduce) { .lv-video { display: none; } .lv-frame { display: block; } }
