/* CutEngine site — edit-suite look: near-black, tungsten orange, timecode mono, condensed display. */
:root {
  --bg: #0E0E0C;
  --panel: #171714;
  --panel-2: #1F1E1A;
  --line: #2A2925;
  --line-2: #4A4842;
  --text: #EEEAE0;
  --text-2: #CFCAC0;
  --muted: #A39E92;
  --accent: #FF6B1A;
  --beat: #C9F23D;
  --paper: #EEEAE0;
  --ink: #0E0E0C;
  --danger: #FF8A6B;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--beat); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--beat); margin: 0 0 20px; }
.display { font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; margin: 0; }
.h-hero { font-size: clamp(60px, 11vw, 168px); line-height: .86; }
.h-xl { font-size: clamp(46px, 7vw, 96px); }
.h-l { font-size: clamp(40px, 5vw, 64px); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.lead { font-size: 21px; line-height: 1.5; color: var(--text-2); max-width: 640px; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 4px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FF8338; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 600; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-lg { min-height: 56px; font-size: 17px; padding: 0 28px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.brand-name { font-weight: 800; font-stretch: 75%; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.nav-tc { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.nav-spacer { flex: 1 1 20px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Sections */
section { position: relative; }
.pad { padding-block: 112px; }
.pad-s { padding-block: 64px; }
@media (max-width: 640px) { .pad { padding-block: 72px; } .pad-s { padding-block: 40px; } }
.paper { background: var(--paper); color: var(--ink); }
.paper a { color: var(--ink); }
.orange { background: var(--accent); color: var(--ink); }
.ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.row { display: flex; flex-wrap: wrap; gap: 40px; }
.row > * { flex: 1 1 320px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Timeline illustration */
.timeline { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline-body { padding: 20px; overflow-x: auto; }
.tracks { min-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.track { display: flex; align-items: stretch; }
.track-label { width: 52px; flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.lane { flex: 1; display: flex; gap: 2px; }
.lane-sections > div { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); border-left: 1px solid #3A3934; padding: 0 0 4px 8px; }
.lane-v1 { height: 56px; }
.lane-v1 > div { border-radius: 2px; padding: 6px; font-family: var(--mono); font-size: 10px; color: var(--ink); overflow: hidden; }
.lane-a1 { height: 48px; align-items: center; background: var(--panel-2); border-radius: 2px; padding: 0 4px; }
.lane-a1 > div { flex: 1; border-radius: 1px; }
.lane-a2 { height: 40px; }
.bite { background: #2B2A25; border: 1px solid var(--accent); border-radius: 2px; padding: 4px 8px; font-size: 12px; color: var(--text); overflow: hidden; white-space: nowrap; }
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* Modes */
.split { display: flex; flex-wrap: wrap; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.split > article { flex: 1 1 400px; background: var(--paper); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.split h3 { margin: 0; font-weight: 800; font-stretch: 75%; font-size: 44px; text-transform: uppercase; line-height: 1; }
.split p { margin: 0; font-size: 18px; color: #3A3832; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { border-top: 1px solid var(--ink); padding-top: 10px; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 48px; }
.step { flex: 1 1 300px; border-top: 2px solid var(--accent); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step .tc { font-family: var(--mono); font-size: 14px; color: var(--accent); margin: 0; }
.step h3 { margin: 0; font-size: 28px; line-height: 1.2; }
.step p { margin: 0; color: var(--text-2); }

/* Panels & cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.plans { display: flex; flex-wrap: wrap; gap: 20px; }
.plan { flex: 1 1 290px; border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--line); }
.plan.featured { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.plan-price { margin: 0; font-weight: 800; font-stretch: 75%; font-size: 56px; line-height: 1; }
.plan-price span { font-size: 18px; font-weight: 500; font-stretch: 100%; }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.qty { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.qty select { min-height: 44px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
label { font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
input, select, textarea { font: 16px var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 14px; min-height: 48px; }
input:focus, select:focus { border-color: var(--text); outline: none; }
.paper input, .orange input { background: #FFF4EC; color: var(--ink); border: 2px solid var(--ink); }
.tabs { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.tabs button { flex: 1; min-height: 46px; background: transparent; color: var(--text-2); border: none; font: 600 15px var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.auth-box { max-width: 460px; margin: 0 auto; }

/* Messages */
.msg { border-radius: 4px; padding: 12px 14px; font-size: 15px; border: 1px solid var(--line-2); background: var(--panel-2); }
.msg[hidden] { display: none; }
.msg.err { border-color: var(--danger); color: #FFD5C8; }
.msg.ok { border-color: var(--beat); color: #E8F7B6; }
.banner { background: var(--beat); color: var(--ink); font-size: 15px; padding: 10px 0; }
.banner a { color: var(--ink); }

/* Account */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.stat .k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.stat .v { font-weight: 800; font-stretch: 75%; font-size: 40px; line-height: 1; margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: none; }
pre.code { background: #0A0A09; border: 1px solid var(--line); border-radius: 6px; padding: 16px; overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--text-2); margin: 0; white-space: pre; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border-radius: 3px; background: var(--beat); color: var(--ink); }
.pill.off { background: var(--line); color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 36px; padding-bottom: 52px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Cloud projects ---- */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.type { text-align: left; min-height: 108px; padding: 16px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-family: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.type .m { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: .8; }
.type .n { font-weight: 800; font-stretch: 75%; font-size: 24px; text-transform: uppercase; line-height: 1; }
.type .d { font-size: 13px; line-height: 1.4; opacity: .85; }
@media (max-width: 420px) { .type .n { font-size: 20px; } .type { min-width: 0; padding: 14px; } }
.type[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.type:disabled { cursor: not-allowed; opacity: .45; }
.type[aria-checked="true"]:disabled { opacity: 1; }

.drop { border: 2px dashed var(--line-2); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.drop.over { border-color: var(--accent); background: #1d140d; }
.drop h3 { margin: 0; font-size: 18px; }
.drop .hint { margin: 0; font-size: 14px; color: var(--muted); }
.pick { position: relative; overflow: hidden; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 12px; padding: 10px 12px;
  background: var(--panel-2); border-radius: 4px; font-size: 14px; }
.file .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .sz { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.file .x { min-height: 32px; min-width: 32px; background: transparent; border: 1px solid var(--line-2); color: var(--text);
  border-radius: 4px; cursor: pointer; }
.file .bar, .bigbar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.file .bar > div, .bigbar > div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.file.done .bar > div { background: var(--beat); }
.file .st { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.file.err .st { color: var(--danger); }
.bigbar { height: 10px; border-radius: 5px; }

.pill-s { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border-radius: 3px; background: var(--line); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-s.done { background: var(--beat); color: var(--ink); }
.pill-s.processing, .pill-s.queued { background: var(--accent); color: var(--ink); }
.pill-s.failed { background: #5a2416; color: #FFD5C8; }

.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); }
.prow:hover { border-color: var(--line-2); color: var(--text); }
.prow .t { flex: 1 1 240px; font-size: 18px; font-weight: 700; }
.prow .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

video.player { width: 100%; max-height: 70vh; background: #000; border-radius: 6px; display: block; }
.sticky-cta { position: sticky; bottom: 0; background: var(--bg); padding: 16px 0; border-top: 1px solid var(--line); }
textarea { font: 16px/1.5 var(--sans); color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 12px 14px; resize: vertical; min-height: 84px; }
