/* ScreenshotX "Proof" design system — plain CSS, no build step. Tokens: docs/DESIGN.md.
   Ink on paper, one ultramarine accent, a highlighter for marks, crop marks as the signature. */
@font-face { font-family: "Fraunces"; src: url("/assets/Fraunces-edec2e51.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/InstrumentSans-647f35c4.ttf") format("truetype"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --paper: #f1f0e8;
  --sheet: #faf9f4;
  --ink: #15182b;
  --ink-2: #4c5068;
  --ink-3: #6f7389;
  --rule: #d9d7cb;
  --rule-2: #e6e4d9;
  --accent: #2f3cf0;
  --accent-ink: #ffffff;
  --accent-wash: #e3e5fd;
  --mark: #f4e85c;
  --go: #14795a;
  --go-wash: #dcefe6;
  --stop: #c42b3a;
  --stop-wash: #f8e1e3;
  --radius: 6px;
  --radius-lg: 14px;
  --float: 0 2px 4px rgba(21, 24, 43, .06), 0 14px 36px rgba(21, 24, 43, .14);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12141f; --sheet: #1a1d2c; --ink: #f1f0e8; --ink-2: #b3b5c6; --ink-3: #8c8fa6;
    --rule: #2d3047; --rule-2: #23263a; --accent: #8f98ff; --accent-ink: #12141f; --accent-wash: #262a55;
    --mark: #d9cc3f; --go: #62c7a2; --go-wash: #173a2f; --stop: #ff8f9b; --stop-wash: #3d1c22;
    --float: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 36px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 450 15px/1.5 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--serif); font-weight: 560; font-variation-settings: "opsz" 96, "SOFT" 50; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { flex: none; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--ink-2); }
::selection { background: var(--mark); color: #15182b; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Brand: four corner ticks and the captured square ------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 48, "SOFT" 50; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--ink); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark .cap { fill: var(--accent); }

/* ---- App shell: a top bar, a tab strip, then the page --------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 40px; background: var(--paper); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.divider-v { width: 1px; height: 22px; background: var(--rule); }

.sidebar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 28px; padding: 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--ink-2); font-weight: 560; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link .icon { display: none; }
.nav-link.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-heading { display: none; }
.tag-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 12px 0; cursor: pointer; color: var(--ink-2); font-weight: 560; }
.tag-toggle:hover { color: var(--ink); }
.tag-toggle > span { display: inline-flex; align-items: center; gap: 6px; }
.tag-toggle > span .icon { display: none; }
.sidebar [data-controller="collapse"] { position: relative; }
.sidebar [data-collapse-target="body"] { position: absolute; left: 0; top: 100%; z-index: 25; min-width: 200px; padding: 10px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--float); }
.tag-list { margin: 0; padding: 0; list-style: none; }
.tag-list li a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.tag-list li a:hover { color: var(--ink); }
.tag-list li a.is-active { color: var(--accent); font-weight: 600; }
.tag-empty { margin: 0; font-size: 14px; color: var(--ink-2); }
.sidebar-foot { order: 99; margin-left: auto; font-size: 13px; color: var(--ink-3); }
.sidebar-foot a { color: var(--ink-3); }
.sidebar-foot span { margin: 0 6px; }

.content { flex: 1; }
.page-head { padding: 40px 40px 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 38px; font-weight: 520; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; background: none; border: 0; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.sort-btn:hover { color: var(--ink); }
.search { position: relative; width: 380px; max-width: 100%; }
.search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.page-body { padding: 24px 40px 72px; }

/* ---- Captures: a list of proofs ------------------------------------------------ */
.grid { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.card { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; grid-template-areas: "thumb title foot" "thumb date foot"; column-gap: 22px; row-gap: 2px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--rule); }
.card:hover { background: var(--sheet); }
.thumb { grid-area: thumb; position: relative; display: block; aspect-ratio: 4 / 3; background: var(--rule-2); border: 1px solid var(--rule); overflow: hidden; }
.thumb::before, .thumb::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); opacity: 0; transition: opacity .12s; z-index: 2; }
.thumb::before { left: 3px; top: 3px; border-width: 2px 0 0 2px; }
.thumb::after { right: 3px; bottom: 3px; border-width: 0 2px 2px 0; }
.card:hover .thumb::before, .card:hover .thumb::after, .thumb:focus-visible::before, .thumb:focus-visible::after { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.play { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lock-chip { position: absolute; left: 4px; top: 4px; padding: 3px; border-radius: 3px; background: var(--paper); color: var(--ink-2); display: grid; }
.card-title { grid-area: title; align-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-title a.name { color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 520; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-decoration: none; }
.card-title a.name:hover { color: var(--accent); }
.card-date { grid-area: date; align-self: start; color: var(--ink-2); font-size: 14px; }
.card-foot { grid-area: foot; display: flex; align-items: center; gap: 18px; color: var(--ink-3); font-size: 14px; }
.views { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.actions { display: flex; align-items: center; gap: 2px; flex-direction: row-reverse; }
.card-foot .actions { opacity: .0; transition: opacity .12s; }
.card:hover .card-foot .actions, .card:focus-within .card-foot .actions { opacity: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius); background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--rule-2); text-decoration: none; }
.actions .group { display: flex; align-items: center; gap: 2px; }
.icon-btn.danger { color: var(--stop); }
.rename-form { display: flex; flex: 1; min-width: 0; }
.rename-form input { width: 100%; padding: 4px 6px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--sheet); }
.empty { max-width: 460px; padding: 72px 0 72px 72px; position: relative; color: var(--ink-2); }
.empty::before { content: ""; position: absolute; left: 0; top: 72px; width: 48px; height: 48px; background:
  linear-gradient(var(--ink), var(--ink)) 0 0 / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 0 / 2px 14px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 100% 0 / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 0 / 2px 14px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 0 100% / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 2px 14px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 100% 100% / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 100% / 2px 14px no-repeat; }
.empty h2 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.pager { display: flex; justify-content: flex-start; margin-top: 32px; }

/* ---- Settings pages: ruled lists, label left and control right ------------------ */
.settings { max-width: 720px; margin: 0 auto 0 40px; padding: 0 0 80px; }
.settings > h1 { font-size: 38px; font-weight: 520; padding: 40px 0 20px; }
.settings h2 { font-size: 26px; margin: 52px 0 10px; }
.rows { border-top: 1px solid var(--ink); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.row .label { font-weight: 560; }
.row .label small { display: block; margin-top: 3px; font-weight: 450; color: var(--ink-2); font-size: 14px; }
.row .label strong { font-weight: 620; }
.row .value { display: flex; align-items: center; gap: 18px; color: var(--ink-2); }
.row .value a, .link-btn { color: var(--accent); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 12px; font-weight: 620; vertical-align: middle; }
.badge-pro { background: var(--mark); color: #15182b; margin-left: 4px; }
.badge-plan { background: var(--ink); color: var(--paper); margin-left: 6px; }
select, .field { padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); min-width: 170px; }
.row select { min-width: 210px; }
select:disabled { color: var(--ink-3); background: var(--rule-2); }
.field:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input[type=checkbox] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border-radius: 3px; background: var(--rule-2); border: 1px solid var(--ink-3); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 1px; background: var(--ink-3); transition: transform .15s, background .15s; }
.switch input:checked ~ .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked ~ .switch-track::after { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible ~ .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled ~ .switch-track { opacity: .5; }
.notif-table { width: 100%; border-collapse: collapse; }
.notif-table th { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); padding-bottom: 16px; width: 120px; }
.notif-table th:first-child { text-align: left; }
.notif-table td { padding: 16px 0; border-top: 1px solid var(--rule); text-align: center; }
.notif-table td:first-child { text-align: left; }
.notif-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.fineprint { color: var(--ink-2); font-size: 14px; margin-top: 16px; }

/* ---- Buttons / chips / panels --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius); border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .12s, color .12s; }
.btn:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-danger { color: var(--stop); border-color: var(--stop); }
.btn-danger:hover { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn-block { width: 100%; }
.flash { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; }
.flash-notice { background: var(--go-wash); color: var(--go); border-color: var(--go); }
.flash-alert { background: var(--stop-wash); color: var(--stop); border-color: var(--stop); }
.flash-wrap { padding: 20px 40px 0; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 40px; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .tick { flex: none; width: 22px; height: 22px; border: 2px solid var(--go); color: var(--go); display: grid; place-items: center; margin-top: 2px; }
.feature-list strong { display: block; font-weight: 620; }
.feature-list span { color: var(--ink-2); font-size: 14px; }

/* ---- Dropdowns ------------------------------------------------------------------ */
.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 0; font-weight: 560; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; background: var(--accent); border: 2px solid var(--paper); box-sizing: content-box; }
.panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--float); padding: 20px; }
.panel[hidden] { display: none; }
.more-menu { right: auto; left: 0; top: calc(100% + 6px); padding: 6px; min-width: 200px; }
.more-menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.more-menu button:hover { background: var(--rule-2); }
.panel-account { width: 300px; }
.panel-account .who { display: flex; align-items: center; margin-bottom: 4px; font-family: var(--serif); font-weight: 560; font-size: 20px; }
.meter { height: 3px; background: var(--rule); margin: 14px 0 6px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.panel-account .btn { margin: 16px 0 12px; }
.panel-account .signout { display: flex; align-items: center; gap: 12px; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; width: 100%; }
.panel-notes { width: 380px; max-height: 70vh; overflow-y: auto; padding: 0; }
.panel-notes header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; font-family: var(--serif); font-weight: 560; font-size: 18px; }
.note { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--rule-2); }
.note:first-of-type { border-top: 0; }
.note .nbody { min-width: 0; flex: 1; }
.note .nbody b { display: block; font-size: 14px; }
.note .nbody p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note time { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.note .unread { width: 8px; height: 8px; background: var(--mark); border: 1px solid var(--ink); margin: 6px auto 0; }
.note-empty { padding: 28px 20px; color: var(--ink-2); }
dialog { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; background: var(--sheet); color: var(--ink); box-shadow: var(--float); width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(21, 24, 43, .45); }
dialog h3 { font-size: 24px; margin-bottom: 8px; }
dialog p { color: var(--ink-2); margin: 0 0 18px; }
dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---- Auth: one left-aligned column ------------------------------------------------ */
.auth { min-height: 100vh; display: flex; align-items: center; padding: 24px clamp(24px, 9vw, 140px); background: var(--paper); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { font-size: 40px; font-weight: 520; margin-bottom: 24px; }
.auth-card label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.auth-card .field { width: 100%; }
.auth-card .btn { margin-top: 22px; }
.auth-foot { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.errors { margin: 0 0 12px; padding: 10px 14px; background: var(--stop-wash); color: var(--stop); border-left: 4px solid var(--stop); font-size: 14px; }

/* ---- Public share page: the capture on a mat, crop marks at its corners -------------- */
body.share { background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
body.share.theme-light { background: #faf9f4; color: #15182b; }
.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--rule); }
.share-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.share-id b { font-family: var(--serif); font-weight: 560; font-size: 18px; }
.share-id span { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-stage { flex: 1; display: grid; place-items: center; padding: 44px 28px; min-height: 0; }
.share-stage img, .share-stage video { max-width: 100%; max-height: calc(100vh - 230px); background: var(--sheet); outline: 1px solid var(--rule); outline-offset: 14px; box-shadow: 0 0 0 14px var(--paper), 0 0 0 15px var(--rule); }
.share-meta { width: min(820px, 100%); margin: 0 auto; padding: 0 28px 64px; }
.comments h3 { font-size: 24px; margin-bottom: 12px; }
.comment { padding: 14px 0; border-top: 1px solid var(--rule); }
.comment b { font-size: 14px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; max-width: 68ch; }
.comment .replies { margin-left: 24px; }
.comment-form { display: grid; gap: 8px; margin-top: 12px; }
.comment-form textarea, .comment-form input { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; color: inherit; }
.share-foot { position: fixed; right: 20px; bottom: 14px; font-size: 13px; color: var(--ink-3); }
.share-foot a { color: inherit; font-weight: 600; }
.lock-card { background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 32px; width: min(380px, calc(100vw - 32px)); }
.lock-card .field { width: 100%; margin-top: 16px; }

@media (max-width: 900px) {
  .topbar, .page-head, .page-body, .sidebar { padding-left: 16px; padding-right: 16px; }
  .flash-wrap { padding-left: 16px; padding-right: 16px; }
  .sidebar { overflow-x: auto; flex-wrap: nowrap; gap: 20px; }
  .sidebar-foot, .nav-heading { display: none; }
  .page-head h1, .settings > h1 { font-size: 30px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .settings { margin: 0; padding: 0 16px 64px; }
  .card { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "thumb title" "thumb date" "foot foot"; }
  .card-foot { padding-top: 8px; justify-content: space-between; }
  .card-foot .actions { opacity: 1; }
  .share-stage img, .share-stage video { outline-offset: 8px; box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--rule); }
}

/* ---- Marketing site -------------------------------------------------------------------- */
body.mk { background: var(--paper); }
.mk-wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.mk-narrow { width: min(760px, 100% - 48px); margin: 0 0 0 max(24px, calc((100vw - 1120px) / 2)); }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--mark); border-color: var(--mark); color: #15182b; }

.mk-nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.mk-nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.mk-links { display: flex; gap: 26px; flex: 1; }
.mk-links a { color: var(--ink-2); font-weight: 560; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.mk-links a:hover { color: var(--ink); }
.mk-links a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.mk-cta { display: flex; align-items: center; gap: 20px; }
.mk-login { color: var(--ink); font-weight: 560; }

/* Hero: text left, a captured-and-marked-up window right */
.mk-hero { padding: 72px 0 80px; }
.mk-hero > .mk-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.mk-hero-sm { padding: 64px 0 24px; }
.mk-hero-sm > .mk-wrap { display: block; }
.mk-hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -.03em; font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 70; }
.mk-hero-sm h1 { font-size: clamp(36px, 5vw, 60px); }
.mk-lead { max-width: 34em; margin: 24px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.mk-pill { display: none; }
.mk-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.mk-note { margin-top: 18px; color: var(--ink-3); font-size: 14px; }

.proof { position: relative; margin: 0; padding: 22px; }
.proof-corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); animation: proof-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.proof-corner.tl { left: 0; top: 0; border-width: 3px 0 0 3px; --dx: -14px; --dy: -14px; }
.proof-corner.tr { right: 0; top: 0; border-width: 3px 3px 0 0; --dx: 14px; --dy: -14px; }
.proof-corner.bl { left: 0; bottom: 0; border-width: 0 0 3px 3px; --dx: -14px; --dy: 14px; }
.proof-corner.br { right: 0; bottom: 0; border-width: 0 3px 3px 0; --dx: 14px; --dy: 14px; }
@keyframes proof-in { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } to { transform: none; opacity: 1; } }
.proof-win { position: relative; background: var(--sheet); border: 1px solid var(--rule); aspect-ratio: 5 / 4; overflow: hidden; box-shadow: var(--float); }
.proof-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.proof-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.proof-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.proof-body { padding: 22px 26px; display: grid; gap: 12px; }
.proof-body b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 520; }
.proof-body p { margin: 0; height: 9px; background: var(--rule-2); border-radius: 2px; }
.proof-body p:nth-of-type(2) { width: 82%; } .proof-body p:nth-of-type(3) { width: 64%; }
.proof-body .hl { position: relative; width: 58%; background: var(--rule-2); }
.proof-body .hl::before { content: ""; position: absolute; left: -6px; right: -6px; top: -5px; bottom: -5px; background: var(--mark); opacity: .78; border-radius: 2px; z-index: 0; }
.proof-body .hl::after { content: ""; position: absolute; inset: 0; background: var(--rule-2); border-radius: 2px; opacity: .0; }
.proof-body .blur { width: 46%; height: 22px; border-radius: 3px; background: repeating-linear-gradient(90deg, #a9aabb 0 6px, #c9cad8 6px 12px); filter: blur(1.5px); }
.proof-note { position: absolute; right: 30px; bottom: 34px; padding: 6px 12px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; border-radius: 3px; }
.proof-arrow { position: absolute; right: 78px; bottom: 74px; width: 110px; height: 74px; color: var(--accent); }

.mk-sec { padding: 88px 0; border-top: 1px solid var(--rule); }
.mk-tight { padding-top: 24px; }
.mk-alt { background: var(--sheet); }
.mk-sec h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.02em; font-weight: 500; max-width: 18em; }
.mk-sub { max-width: 38em; margin: 14px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.mk-feats { margin-top: 48px; border-top: 1px solid var(--ink); }
.mk-feat { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) 40px; gap: 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.mk-feat h3 { font-size: 24px; margin: 0; order: 1; }
.mk-feat p { margin: 0; color: var(--ink-2); max-width: 46em; order: 2; }
.mk-feat .mk-ico { order: 3; justify-self: end; }
.mk-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--accent); }
.mk-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.mk-steps li span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; background: var(--mark); color: #15182b; font-weight: 700; border-radius: 2px; }
.mk-steps h3 { margin: 16px 0 8px; font-size: 26px; }
.mk-steps p { margin: 0; color: var(--ink-2); }
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mk-checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.mk-checks li { position: relative; padding-left: 28px; }
.mk-checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 8px; border: solid var(--go); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.mk-band { padding: 88px 0; background: var(--ink); color: var(--paper); }
.mk-band .mk-wrap { display: grid; gap: 4px; justify-items: start; }
.mk-band h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 500; }
.mk-band p { margin: 12px 0 28px; opacity: .8; font-size: 18px; }

/* Pricing: a ruled comparison rather than three equal cards */
.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.mk-plan { display: flex; flex-direction: column; padding: 0 32px 0 0; border-right: 1px solid var(--rule); }
.mk-plan + .mk-plan { padding-left: 32px; }
.mk-plan:last-child { border-right: 0; }
.mk-plan-pro { background: var(--sheet); }
.mk-plan-top { padding: 14px 0 0; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.mk-plan-pro .mk-plan-top { color: var(--accent); }
.mk-plan-body { display: flex; flex-direction: column; flex: 1; padding: 8px 0 32px; }
.mk-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-plan h3 { font-size: 32px; }
.mk-price { margin-top: 20px; }
.mk-price b { font-family: var(--serif); font-size: 64px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variation-settings: "opsz" 144, "SOFT" 70; }
.mk-plan .mk-checks { margin: 22px 0 28px; }
.mk-plan-body > .btn { margin-top: auto; align-self: flex-start; }
.mk-plan .mk-per { display: block; margin: 6px 0 0; }
.mk-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.mk-table th, .mk-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--rule); }
.mk-table th:first-child, .mk-table td:first-child { text-align: left; padding-left: 0; }
.mk-table th { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.mk-table .yes { color: var(--go); display: inline-flex; }
.mk-table .no { color: var(--ink-3); }
.mk-legal-doc { padding-bottom: 80px; }
.mk-legal-doc h2 { font-size: 28px; margin: 44px 0 10px; }
.mk-legal-doc p, .mk-legal-doc li { color: var(--ink-2); line-height: 1.75; max-width: 70ch; }
.mk-legal-doc ul { padding-left: 22px; display: grid; gap: 6px; }
.mk-legal-doc .mk-updated { color: var(--ink-3); font-size: 14px; }
.mk-faq { margin-top: 36px; border-top: 1px solid var(--ink); }
.mk-faq details { border-bottom: 1px solid var(--rule); }
.mk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--serif); font-weight: 520; font-size: 22px; cursor: pointer; list-style: none; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary .icon { color: var(--ink-3); transition: transform .15s; }
.mk-faq details[open] summary .icon { transform: rotate(180deg); }
.mk-faq p { margin: 0 0 22px; max-width: 62ch; color: var(--ink-2); line-height: 1.65; }

.mk-foot { border-top: 1px solid var(--ink); padding: 56px 0 28px; background: var(--paper); }
.mk-foot-in { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.mk-foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.mk-foot-cols div { display: grid; gap: 10px; align-content: start; }
.mk-foot-cols b { margin-bottom: 4px; font-family: var(--serif); font-weight: 560; font-size: 18px; }
.mk-foot-cols a { color: var(--ink-2); text-decoration: none; }
.mk-foot-cols a:hover { color: var(--accent); text-decoration: underline; }
.mk-legal { margin-top: 40px; color: var(--ink-3); font-size: 13px; }

@media (max-width: 860px) {
  .mk-links { display: none; }
  .mk-nav-in { gap: 12px; justify-content: space-between; }
  .mk-split, .mk-hero > .mk-wrap { grid-template-columns: 1fr; }
  .mk-hero { padding: 48px 0 56px; }
  .mk-sec { padding: 60px 0; }
  .mk-feat { grid-template-columns: 1fr; gap: 6px; }
  .mk-feat .mk-ico { display: none; }
  .mk-plan, .mk-plan + .mk-plan { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ---- Auth extras --------------------------------------------------------------------------- */
.oauth { display: grid; gap: 10px; }
.oauth-btn { justify-content: center; margin: 0; }
.oauth-apple { background: #000; color: #fff; border-color: #000; }
.oauth-apple:hover { background: #2a2a2e; border-color: #2a2a2e; color: #fff; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--ink-3); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 450; color: var(--ink-2); }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 40px; background: var(--mark); color: #15182b; font-size: 14px; }
.verify-banner form { margin: 0; }
.verify-banner .link-btn { color: #15182b; }

/* Downloads */
.dl-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.dl-card h2 { font-size: 26px; margin: 0 0 4px; }
.dl-card .btn { white-space: nowrap; }
.dl-notes { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.dl-notes p { margin: 0 0 6px; }
@media (max-width: 640px) { .dl-card { flex-direction: column; align-items: flex-start; } }

/* Billing: plan cards */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan-card { padding: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.plan-card-featured { border-color: var(--accent); outline: 1px solid var(--accent); }
.plan-card h3 { margin: 0 0 6px; font-size: 26px; }
.plan-price { margin: 0 0 14px; font-family: var(--serif); font-size: 44px; font-weight: 500; letter-spacing: -.02em; }
.plan-price small { font-family: var(--sans); font-size: 14px; font-weight: 450; color: var(--ink-2); letter-spacing: 0; }
.feature-list-sm { margin: 0 0 20px; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.feature-list-sm li { margin: 0 0 6px; }
.mk-per { margin-left: 8px; font-size: 14px; font-weight: 450; color: var(--ink-2); }
.mk-tag { display: inline-block; padding: 2px 10px; margin-left: 6px; font-family: var(--sans); font-size: 14px; font-weight: 620; color: #15182b; background: var(--mark); border-radius: 3px; vertical-align: middle; }

/* Small screens: keep the bar on one line */
.brand, .nav-link, .tag-toggle { white-space: nowrap; }
@media (max-width: 900px) {
  .topbar .dropdown-toggle > span:not(.avatar) { display: none; }
  .topbar .brand { font-size: 18px; }
}
@media (max-width: 860px) {
  .proof-win { aspect-ratio: auto; min-height: 300px; }
  .proof-arrow { bottom: 70px; right: 60px; width: 90px; height: 60px; }
  .proof-note { right: 22px; bottom: 22px; }
}
@media (max-width: 640px) {
  .row { flex-wrap: wrap; gap: 10px 16px; }
  .row select { min-width: 0; width: 100%; }
}
@media (max-width: 860px) {
  .mk-narrow { margin-left: 24px; }
  .mk-nav-in { height: 60px; }
  .mk-cta { gap: 12px; }
  .mk-cta a { white-space: nowrap; }
  .mk-cta .btn { padding: 8px 12px; font-size: 14px; }
  .mk-nav .brand { font-size: 18px; }
}
