/* Pip Studio site. Sage theme pack: Plus Jakarta Sans for text, a mono face only for timecodes and specs. */
:root {
  /* Sage theme: stone background, porcelain surfaces, sage primary, charcoal text. */
  --paper: #EBE5DF;
  --surface: #F7F6F2;
  --ink: #24272A;
  --ink-2: #3A3F42;
  --muted: #5B6B68;
  --line: #D1D5DB;
  --line-strong: #B9BFC4;
  --accent: #465B53;
  --accent-2: #73847C;
  --accent-soft: #A7B8A9;
  --accent-ink: #F7F6F2;
  --monitor: #24272A;
  --monitor-2: #2F3336;
  --monitor-line: #3E4346;
  --monitor-text: #F7F6F2;
  --monitor-muted: #A9B1AE;
  --ok: #4F7A62;
  --warn: #B07A2E;
  --err: #B5523F;
  --radius: 8px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E2123; --surface: #24272A; --ink: #EEEDE8; --ink-2: #D5D6D1; --muted: #A2AFAB;
    --line: #353A3D; --line-strong: #474D50; --accent: #A7B8A9; --accent-2: #8FA196; --accent-soft: #73847C; --accent-ink: #1E2123;
    --monitor: #171A1B; --monitor-2: #24282A; --monitor-line: #33393B; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 5px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .top nav .opt { display: none; } }
.brand, .top .btn { white-space: nowrap; }
@media (max-width: 420px) { .top .wrap { gap: 14px; } .top .btn { padding: 9px 12px; font-size: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 11px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.eyebrow { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .02em; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 600; }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 26px; max-width: 34em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin: 28px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font: 13px/1.4 var(--mono); color: var(--muted); list-style: none; }
.facts b { display: block; color: var(--ink); font: 600 15px/1.4 var(--sans); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Editor monitor (real render, real scene times) */
.editor { background: var(--monitor); color: var(--monitor-text); border-radius: 10px; overflow: hidden; border: 1px solid var(--monitor-line); }
.editor-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--monitor-line); font: 12px/1.3 var(--mono); color: var(--monitor-muted); }
.editor-bar .name { color: var(--monitor-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-bar .spec { margin-left: auto; white-space: nowrap; }
.editor-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 0; }
.shots { border-right: 1px solid var(--monitor-line); max-height: 456px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.shot { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 4px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.shot:hover { background: var(--monitor-2); }
.shot[aria-current="true"] { background: var(--monitor-2); box-shadow: inset 2px 0 0 var(--accent-soft); }
.shot img { width: 36px; height: 64px; object-fit: cover; border-radius: 2px; }
.shot .t { font: 11px/1.2 var(--mono); color: var(--monitor-muted); }
.shot .h { font-size: 13px; line-height: 1.3; }
.viewer { display: grid; place-items: center; padding: 16px; background: #000; }
.viewer video { height: 424px; width: auto; aspect-ratio: 9 / 16; background: #000; }
.timeline { border-top: 1px solid var(--monitor-line); padding: 10px 14px 14px; }
.tc { display: flex; justify-content: space-between; font: 11px/1 var(--mono); color: var(--monitor-muted); margin-bottom: 8px; }
.track { position: relative; height: 40px; display: flex; gap: 2px; margin-bottom: 4px; }
.clip { height: 100%; background: var(--monitor-2); border: 1px solid var(--monitor-line); border-radius: 3px; font: 11px/1 var(--mono); color: var(--monitor-muted); padding: 6px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.clip.on { border-color: var(--accent-soft); color: var(--monitor-text); }
.track.audio { height: 30px; background: url(media/wave.png) center / 100% 100% no-repeat, var(--monitor-2); border: 1px solid var(--monitor-line); border-radius: 3px; }
.track-label { font: 10px/1 var(--mono); color: var(--monitor-muted); margin: 6px 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.playhead { position: absolute; top: -4px; bottom: -40px; width: 2px; background: var(--accent-soft); left: 0; pointer-events: none; }
.editor-note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
@media (max-width: 640px) {
  .editor-body { grid-template-columns: 1fr; }
  .shots { order: 2; border-right: 0; border-top: 1px solid var(--monitor-line); display: flex; overflow-x: auto; max-height: none; gap: 4px; }
  .shot { grid-template-columns: 1fr; width: 76px; flex: none; }
  .shot img { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  .shot .h { display: none; }
  .viewer video { height: 380px; }
  .editor-bar .spec { display: none; }
}

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 600; }
.section-lead { color: var(--ink-2); margin: 0 0 32px; max-width: 40em; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 20px 24px 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: 500 13px/1 var(--mono); color: var(--accent-2); margin-bottom: 12px; }
.steps h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 30%; font-weight: 500; color: var(--muted); padding-right: 24px; }
.spec-table td { color: var(--ink); }
.spec-table .mono { font-size: 14px; }
@media (max-width: 640px) { .spec-table th, .spec-table td { display: block; width: auto; } .spec-table th { border-bottom: 0; padding-bottom: 2px; } .spec-table td { padding-top: 0; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; gap: 24px; } }

.price { border: 1px solid var(--line-strong); border-radius: 8px; padding: 24px; background: var(--surface); }
.price .amount { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.price ul { margin: 16px 0 0; padding-left: 18px; color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 44em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }

/* Legal pages */
.doc { max-width: 720px; padding: 48px 20px 72px; }
.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc code { font: 13px var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }

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