/* Fullshot's design language (same as the extension): paper and ink, like the mark. Warm neutrals, ink as the
   accent, one red for "new" and errors. Follows the viewer's light / dark setting. Bricolage Grotesque throughout. */
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --bg: oklch(97.4% .015 87); --panel: oklch(99.1% .009 88); --panel-2: oklch(95.4% .018 86); --line: oklch(89.5% .02 84);
  --text: oklch(19.5% .008 70); --ink-2: oklch(42% .02 75); --muted: oklch(54% .02 78);
  --ink: oklch(19.5% .008 70); --on-ink: oklch(97.5% .014 88); --red: oklch(57% .2 29); --red-soft: oklch(94% .035 25);
  --cream: oklch(98.5% .012 88); --night: oklch(19.5% .008 70); /* fixed: for things drawn over pictures */
  --shadow: 0 18px 50px oklch(25% .03 70 / .12), 0 2px 6px oklch(25% .03 70 / .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16.5% .008 75); --panel: oklch(19.5% .009 75); --panel-2: oklch(23.5% .01 75); --line: oklch(29.5% .012 75);
    --text: oklch(95.5% .02 88); --ink-2: oklch(78% .02 84); --muted: oklch(64% .018 80);
    --ink: oklch(95.5% .02 88); --on-ink: oklch(19% .01 70); --red: oklch(66% .19 29); --red-soft: oklch(28% .06 28);
    --shadow: 0 18px 50px oklch(5% .01 70 / .55), 0 2px 6px oklch(5% .01 70 / .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 450 16px/1.55 'Bricolage', system-ui, sans-serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: color-mix(in oklch, var(--ink) 18%, transparent); }

.bar { max-width: 1320px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 30px; width: auto; }
.pill { font-size: 14px; font-weight: 550; color: var(--ink-2); padding: 6px 10px; border-radius: 9px; text-decoration: none; }
.pill:hover { color: var(--text); background: var(--panel-2); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 8px 20px 64px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { background: var(--panel-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: color-mix(in oklch, var(--ink) 86%, var(--bg)); }
.btn.big { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }

/* ---- a shared video or screenshot, with its notes alongside */
.view { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.left { min-width: 0; }
.player { position: relative; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px var(--line); aspect-ratio: var(--ar, 16/9); max-height: 76vh; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.player:fullscreen { border-radius: 0; max-height: none; width: 100vw; height: 100vh; }

.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 22px 2px 0; }
.meta h1 { flex: 1 1 100%; margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.meta p { margin: 0; color: var(--muted); font-size: 14px; }
.meta p { flex: 1 1 260px; }
.actions { display: flex; gap: 8px; }

/* custom controls: the seek bar carries a dot per note (they sit on the video, so their colours are fixed) */
.bubble { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); max-width: min(560px, 86%); padding: 9px 14px; border-radius: 11px; background: oklch(19.5% .008 70 / .92); color: var(--cream); font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: none; }
.bubble b { margin-right: 4px; }
.bubble[hidden] { display: none; }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s var(--ease); }
.player:hover .ctrl, .player.paused .ctrl, .ctrl:focus-within { opacity: 1; }
.cb { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--cream); cursor: pointer; }
.cb:hover { background: rgba(255,255,255,.12); }
.ctime { flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; color: oklch(98.5% .012 88 / .85); min-width: 78px; }
.track { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; outline: none; }
.rail { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.track:hover .rail { height: 6px; margin-top: -3px; }
.fill { height: 100%; width: 0; background: var(--cream); }
.knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cream); box-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }
.tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 2px 6px; border-radius: 5px; background: oklch(19.5% .008 70 / .9); color: var(--cream); font-size: 11.5px; font-variant-numeric: tabular-nums; pointer-events: none; }
.tip[hidden] { display: none; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; padding: 0; border-radius: 50%; border: 2px solid var(--night); background: var(--cream); cursor: pointer; pointer-events: auto; z-index: 2; transition: transform .15s var(--ease); }
.mark.owner { background: var(--red); }
.mark:hover { transform: scale(1.25); }
.mark .pop, .pin .pop { display: none; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 250px; padding: 8px 11px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 450 12.5px/1.4 'Bricolage', system-ui, sans-serif; text-align: left; white-space: normal; box-shadow: var(--shadow); }
.mark .pop b, .pin .pop b { display: block; font-size: 11.5px; font-weight: 650; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.mark:hover .pop { display: block; }

/* the notes column */
.notes { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: min(76vh, calc(100vh - 32px)); min-height: 320px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.notes-head h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.notes-head h2 span { color: var(--muted); font-weight: 500; }
.nlist { list-style: none; margin: 0; padding: 4px 0; flex: 1; min-height: 0; overflow: auto; }
.nlist li { display: flex; gap: 10px; padding: 12px 18px; }
.nlist li + li { border-top: 1px solid var(--line); }
.nlist li.empty { color: var(--muted); font-size: 14px; line-height: 1.5; }
.nlist li.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { from { background: color-mix(in oklch, var(--red) 12%, transparent); } to { background: transparent; } }
.nlist .body { min-width: 0; flex: 1; }
.nlist .who { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.nlist .who b { font-weight: 650; }
.nlist .who .when { color: var(--muted); font-size: 12px; }
.nlist .tag { font-size: 11px; font-weight: 650; color: var(--on-ink); background: var(--ink); padding: 0 6px; border-radius: 5px; }
.nlist .tag.old { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.nlist p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.nlist li.stale .body p { color: var(--muted); }
/* a note's moment or pin is a keycap: it takes you there */
.at { flex: none; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.at:hover { border-color: var(--muted); }
.at.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.at.off { opacity: .5; cursor: default; text-decoration: line-through; }
.compose { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 8px; }
.compose textarea, .compose input { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; width: 100%; }
.compose textarea::placeholder, .compose input::placeholder { color: var(--muted); }
.compose textarea { resize: none; min-height: 62px; line-height: 1.4; }
.compose textarea:focus, .compose input:focus { border-color: var(--ink); }
.crow { display: flex; gap: 8px; align-items: center; }
.crow input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; }
.crow .btn { height: 36px; padding: 0 14px; }
.nerr { margin: 0; color: var(--red); font-size: 13px; }
.nerr[hidden] { display: none; }

/* screenshot viewer: scrolls inside its frame when the capture is tall; click to pin a note */
.shot { margin: 0; border-radius: 14px; background: var(--panel-2); overflow: auto; max-height: 80vh; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.shot-in { position: relative; cursor: crosshair; }
.shot-in img { display: block; width: 100%; height: auto; }
.pins { position: absolute; inset: 0; pointer-events: none; }
/* pins are ink drops with cream numbers — the same on any screenshot */
.pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; display: grid; place-items: center; border-radius: 50% 50% 50% 4px; border: 2px solid var(--cream); background: var(--night); color: var(--cream); font: 750 12px/1 'Bricolage', system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; pointer-events: auto; transition: transform .15s var(--ease); }
.pin.owner { background: var(--cream); border-color: var(--night); color: var(--night); }
.pin.draft { background: var(--red); color: var(--cream); border-style: dashed; cursor: default; }
.pin:hover, .pin.hot { transform: scale(1.15); z-index: 3; }
.pin .pop { bottom: 32px; }
.pin:hover .pop, .pin.hot .pop { display: block; }
.pin.flash { animation: pinflash 1s var(--ease) 2; }
@keyframes pinflash { 50% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--red) 35%, transparent); } }
.nlist .num { flex: none; width: 24px; height: 24px; border-radius: 50% 50% 50% 4px; border: 0; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.nlist .num.general { background: var(--panel-2); color: var(--muted); border-radius: 50%; cursor: default; }
.nlist li.owner .num:not(.general) { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* live cursors */
.cursors { position: absolute; pointer-events: none; z-index: 6; }
.cursors.page { left: 0; top: 0; width: 0; height: 0; z-index: 60; }
.cur[hidden] { display: none; }
.cur { position: absolute; left: 0; top: 0; transition: opacity .4s; will-change: transform; }
.cur svg { display: block; margin: -2px 0 0 -2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.cur svg path { fill: var(--c); stroke: var(--cream); stroke-width: 1.3; stroke-linejoin: round; }
.cur span { position: absolute; left: 13px; top: 15px; padding: 3px 7px; border-radius: 7px; background: var(--c); color: #fff; font: 600 11.5px/1.3 'Bricolage', system-ui, sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cur.idle { opacity: .45; }
.here { display: inline-flex; align-items: center; gap: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.here[hidden] { display: none; }
.here i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--panel); margin-right: -3px; }
.here i:last-of-type { margin-right: 6px; }

/* report */
.btn.report { margin-left: auto; color: var(--muted); font-weight: 500; border-color: transparent; background: transparent; }
.btn.report:hover { color: var(--text); background: var(--panel-2); }
.btn.report:disabled { cursor: default; opacity: .7; }
.rdlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.rdlg::backdrop { background: oklch(15% .01 70 / .45); }
.rform { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.rform h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.rsub { margin: -4px 0 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.rlist { display: grid; gap: 2px; }
.ropt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.ropt:hover { background: var(--panel-2); }
.ropt input { accent-color: var(--ink); margin: 0; }
.rform textarea { width: 100%; resize: vertical; min-height: 64px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.ractions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---- what Fullshot is (below a share, and the landing page): ruled, not boxed */
.promo { margin-top: 72px; padding-top: 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.promo h2 { margin: 0 0 12px; font-size: clamp(24px, 2.8vw, 34px); font-weight: 650; line-height: 1.12; letter-spacing: -.025em; }
.promo p { margin: 0 0 22px; color: var(--ink-2); max-width: 46ch; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.feats li { padding: 14px 0; border-top: 1px solid var(--line); }
.feats li:nth-child(-n+2) { border-top: 0; padding-top: 2px; }
.feats b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 2px; }
.feats span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

.foot { color: var(--muted); font-size: 13px; padding: 0 20px 36px; max-width: 1320px; margin: 0 auto; }
.gone { padding-top: 14vh; }
.gone h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.gone p { color: var(--ink-2); margin: 0 0 24px; }

/* landing: left-aligned, big type, then what it does */
.landing .wrap, .landing .bar, .landing .foot { max-width: 1120px; }
.hero { padding: 11vh 0 64px; max-width: 760px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 700; line-height: .98; letter-spacing: -.04em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero p { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin: 0 0 30px; }
.hero .note { display: block; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.landing .feats { grid-template-columns: repeat(3, 1fr); padding-top: 28px; border-top: 1px solid var(--line); }
.landing .feats li:nth-child(-n+3) { border-top: 0; padding-top: 2px; }
.landing .feats li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 14px; }
.landing .feats li:nth-child(3) { border-top: 0; padding-top: 2px; }
.expired { max-width: 640px; margin: 4vh 0 0; padding: 12px 16px; border-radius: 11px; background: var(--panel-2); color: var(--ink-2); font-size: 14px; }
.expired[hidden] { display: none; }

@media (max-width: 960px) {
  .view { grid-template-columns: 1fr; }
  .notes { position: static; max-height: 70vh; }
  .promo { grid-template-columns: 1fr; gap: 24px; }
  .landing .feats { grid-template-columns: 1fr 1fr; }
  .landing .feats li:nth-child(3) { border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 560px) {
  .feats, .landing .feats { grid-template-columns: 1fr; }
  .feats li:nth-child(2), .landing .feats li:nth-child(n+2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .actions { width: 100%; } .actions .btn { flex: 1; } .actions .btn.report { flex: 0; }
  .player, .shot { border-radius: 11px; }
  .bubble { bottom: 54px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
