/* Vidlify
   Direction: a projection booth at night. Quiet graphite surfaces, one amber accent like the lamp,
   and the only rich moment is a player sitting on someone else's page.
   Spacing on a 4px grid, one easing curve, motion only where it answers an action. */

@font-face { font-family: "Inter"; src: url("fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "VidlifyMono"; src: url("fonts/mono-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg-0: #0f0f10;
  --bg: #141415;
  --card: #19191b;
  --raised: #232325;
  --raised-2: #2c2c2f;
  --line: rgba(237, 237, 237, .08);
  --line-2: rgba(237, 237, 237, .14);
  --text: #ededed;
  --text-2: #a1a1a6;
  --muted: #85858b;
  --accent: #f2a93b;
  --accent-ink: #1c1405;
  --pos: #4cc38a;
  --neg: #e5484d;

  --r-tag: 6px;
  --r-ctl: 8px;
  --r-card: 12px;
  --r-panel: 16px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 150ms;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "VidlifyMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font: 400 14px/20px var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color var(--fast) var(--ease), color var(--fast) var(--ease); }
a:hover { text-decoration-color: currentColor; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 500; margin: 0; }
p { margin: 0 0 12px; }
code { font: 12px/16px var(--mono); background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--r-tag); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(242, 169, 59, .32); }
.i { flex: none; display: block; }

.wrap { width: min(1440px, 100% - 64px); margin: 0 auto; }
.main { flex: 1; padding: 40px 0 80px; animation: fade .3s var(--ease) both; }
.narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.inline { display: inline; margin: 0; }
.spacer { flex: 1; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.logo-mark { position: relative; width: 20px; height: 20px; border-radius: 5px; background: var(--accent); flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 6px solid var(--accent-ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a:not(.btn), .nav .link { color: var(--text-2); text-decoration: none; }
.nav a:not(.btn):hover, .nav .link:hover { color: var(--text); }

/* Forms */
input, textarea, select {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  font: inherit;
  outline: none;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, textarea:hover, select:hover { border-color: rgba(237, 237, 237, .22); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select option { background: var(--card); }
textarea { resize: vertical; line-height: 20px; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 500; }
.form small { color: var(--muted); font-size: 13px; font-weight: 400; }
.check { display: flex !important; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; color: var(--text-2); }
.check input { width: 16px; min-height: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  font: 500 14px/1 var(--font); color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--raised);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--raised); }
.btn-danger { background: transparent; border-color: rgba(229, 72, 77, .35); color: #f2777b; }
.btn-danger:hover { background: rgba(229, 72, 77, .1); }
.btn-quiet-danger .i { color: var(--muted); }
.btn-quiet-danger:hover { color: #f2777b; border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .08); }
.btn-quiet-danger:hover .i { color: currentColor; }
.btn-sm { height: 28px; padding: 0 10px; gap: 6px; font-size: 13px; border-radius: var(--r-tag); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .i { color: currentColor; }
.btn-ghost .i { color: var(--text-2); }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--text-2); }

/* Surfaces */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.flash { padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-card); border: 1px solid var(--line-2); background: var(--card); color: var(--text); }
.flash-success { border-color: rgba(76, 195, 138, .35); }
.flash-error { border-color: rgba(229, 72, 77, .4); }
.flash-info { border-color: var(--line-2); color: var(--text-2); }
.error-text { color: #f2777b; margin: 4px 0 0; font-size: 13px; }

/* Tags and badges */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-tag); font-size: 12px; color: var(--text-2); background: var(--raised); }
.badge-type { color: var(--text-2); }
.badge-enc { gap: 5px; color: var(--accent); background: rgba(242, 169, 59, .12); }
.up-secure { display: flex; align-items: center; gap: 8px; margin: -8px 0 20px; font-size: 13px; color: var(--muted); }
.up-secure .i { flex: none; color: var(--pos); }
.e2e-note { margin: -8px 0 20px; max-width: 760px; font-size: 13px; line-height: 20px; color: var(--muted); }
.switch span { display: inline-flex; align-items: center; gap: 6px; }
.switch span .i { color: var(--muted); }
.enc-state { margin: 12px 0 0; }
.enc-progress { margin-top: 16px; }
.enc-key { display: grid; gap: 8px; max-width: 640px; margin-top: 20px; }
.enc-key p { margin: 0; }
#enc-preview.has-image { padding: 0; }
#enc-preview.has-image img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; }
.status-ready { color: var(--pos); background: rgba(76, 195, 138, .1); }
.status-queued, .status-processing { color: var(--accent); background: rgba(242, 169, 59, .1); }
.status-failed, .status-removed { color: #f2777b; background: rgba(229, 72, 77, .1); }
.id-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px 0 8px;
  font: 12px/1 var(--mono); color: var(--text-2); background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--r-tag); cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.id-tag .i { color: var(--muted); }
.id-tag:hover { color: var(--text); border-color: rgba(237, 237, 237, .28); }
.id-tag:hover .i { color: var(--accent); }

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; min-height: calc(100vh - 56px - 160px); padding: 24px 0 64px; }
.hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 24px; text-wrap: balance; }
.hero-copy > p { max-width: 36rem; margin: 0 0 32px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy > .hero-terms { margin: -16px 0 32px; font-size: 14px; line-height: 20px; color: var(--text); }

/* The moment: the Vidlify player on someone else's page */
.site { border-radius: 14px; overflow: hidden; background: #f6f3ee; color: #23201c; border: 1px solid var(--line-2); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); }
.site-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: #1d1d1f; border-bottom: 1px solid rgba(0, 0, 0, .4); }
.site-dots { display: flex; gap: 6px; }
.site-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3d; }
.site-url { flex: 1; max-width: 420px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 0 auto; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-tag); background: #2a2a2c; color: #9a9aa0; font: 12px/1 var(--mono); }
.site-body { padding: 32px 40px 40px; }
.site-kicker { margin: 0 0 8px; font: 500 12px/16px var(--font); color: #8b5e1a; }
.site-title { margin: 0 0 8px; font: 400 30px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.01em; color: #23201c; }
.site-by { margin: 0 0 24px; font-size: 13px; color: #6f675d; }
.site-text { margin: 20px 0 0; max-width: 56ch; font: 15px/24px Georgia, "Times New Roman", serif; color: #4a443c; }

.mini-player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #1b1b1d; }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-player .controls { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto auto 1fr auto auto auto; align-items: center; gap: 12px; padding: 24px 16px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); color: #ededed; }
.mini-player .t { font: 12px/1 var(--mono); color: #d2d2d6; }
.mini-player .track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.mini-player .track span { display: block; width: 12%; height: 100%; background: var(--accent); }
.mini-player .brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #d2d2d6; }
.mini-player .brand .logo-mark { width: 14px; height: 14px; border-radius: 4px; }
.mini-player .brand .logo-mark::after { left: 5px; top: 4px; border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; }

/* Home: features. The player gets the big card, files and privacy share the column next to it */
.features { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 16px; }
.feat { display: grid; align-content: start; gap: 8px; padding: 16px 16px 24px; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); }
.feat-player { grid-row: span 2; }
.feat h3 { margin: 12px 8px 0; font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; }
.feat p { margin: 0 8px; max-width: 520px; color: var(--text-2); font-size: 15px; line-height: 24px; }
.feat-art { display: grid; align-content: center; gap: 16px; min-height: 120px; padding: 20px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); }
.feat-player .feat-art { min-height: 296px; padding: 32px; }
.feat-code { display: block; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--card); color: var(--text); font: 13px/22px var(--mono); white-space: normal; overflow-wrap: anywhere; }
.feat-code span { color: var(--accent); }
.feat-quality { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-quality span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-tag); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.feat-quality .on { border-color: transparent; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.feat-types { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.feat-types span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-tag); background: var(--raised); color: var(--text); font: 12px/1 var(--mono); }
.feat-types .more { background: none; padding: 0 4px; color: var(--muted); font: 13px/1 var(--font); }
.feat-access { justify-items: start; gap: 12px; }
.feat-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.feat-seg b, .feat-seg i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-ctl); font-style: normal; font-weight: 400; color: var(--text-2); }
.feat-seg b { color: var(--text); background: var(--raised-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.feat-seg .i { color: var(--muted); }
.feat-seg b .i { color: var(--accent); }
.feat-domain { color: var(--muted); font-size: 13px; }
.feat-domain b { font-weight: 400; color: var(--text); font-family: var(--mono); font-size: 12px; }

/* Section heads and tabs */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; }
.tabs { display: inline-flex; gap: 2px; padding: 2px; margin-bottom: 20px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.section-head .tabs { margin: 0; }
.tabs a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--text-2); text-decoration: none; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); background: var(--raised-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-ctl); background: var(--raised); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(0, 0, 0, .75); font: 11px/1 var(--mono); color: #ededed; }
.meta { margin: 0; color: var(--text-2); font-size: 13px; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.empty { padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty p { margin-bottom: 16px; }

/* Watch page */
.watch { display: grid; gap: 24px; }
.watch-single { max-width: 1120px; margin: 0 auto; }
.player-box { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: #000; border: 1px solid var(--line); }
.watch-title { margin: 20px 0 8px; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; }
.watch-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.description { margin-top: 16px; padding: 16px; white-space: pre-wrap; color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.share { display: grid; gap: 16px; }
.watch-main > .share, .watch-main > .description { margin-top: 24px; }
.share h2 { margin: 0; }
.share label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.share-cta { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.watch-main > .share-cta { margin-top: 24px; }
.share-cta .logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.share-cta .logo-mark::after { left: 9px; top: 7px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.share-cta-text { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.share-cta-text strong { color: var(--text); font-weight: 500; }
.share-cta .btn { flex: none; }
@media (max-width: 640px) { .share-cta { flex-wrap: wrap; } .share-cta .btn { width: 100%; justify-content: center; } }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font: 12px/16px var(--mono); color: var(--text-2); }
.copy-field .btn { height: 36px; }

/* Progress */
.progress-bar { height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease); }
.progress-bar.mini { height: 4px; margin-top: 12px; }
.small-progress { max-width: 320px; margin-top: 8px; }
.small-progress .progress-bar { height: 4px; }

/* Upload */
.up-page { max-width: 800px; margin: 0 auto; }
.up-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.up-head h1 { margin: 0 0 4px; }
.up-head p { margin: 0; color: var(--text-2); }
.quota { min-width: 220px; text-align: right; font-size: 13px; color: var(--text-2); }
.quota .progress-bar { height: 4px; margin-bottom: 8px; }
.quota a { color: var(--text); }

.dropzone {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px dashed rgba(237, 237, 237, .2); border-radius: var(--r-panel);
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.dropzone:hover { border-color: rgba(237, 237, 237, .32); }
.dropzone.drag { border-color: var(--accent); border-style: solid; background: var(--raised); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-orb { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: var(--raised); color: var(--text); border: 1px solid var(--line); }
.dropzone.drag .dz-orb { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.dz-title { font-size: 18px; line-height: 24px; font-weight: 500; }
.dz-sub { max-width: 440px; color: var(--text-2); }
.dz-sub u { text-decoration-color: var(--line-2); text-underline-offset: 3px; color: var(--text); }
.dz-types { margin-top: 8px; font: 12px/16px var(--mono); color: var(--muted); }

.up-options { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin: 20px 0; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--text-2); cursor: pointer; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.seg label:hover { color: var(--text); }
.seg input:checked + label { color: var(--text); background: var(--raised-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg .i { color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: relative; flex: none; width: 32px; height: 20px; border-radius: 10px; background: var(--raised-2); transition: background-color var(--fast) var(--ease); }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform 180ms var(--ease), background-color var(--fast) var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(12px); background: var(--accent-ink); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.up-total { margin-bottom: 12px; padding: 16px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.up-total-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.up-total-top strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.up-total-top span { font: 12px/20px var(--mono); color: var(--text-2); }

.up-list { display: grid; gap: 8px; }
.up-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 16px; align-items: start; padding: 12px 16px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); animation: enter .3s var(--ease) both; transition: border-color var(--fast) var(--ease), opacity .2s var(--ease), transform .2s var(--ease); }
.up-item.leaving { opacity: 0; transform: translateX(12px); }
.up-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--raised); color: var(--text-2); }
.up-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 20px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.up-size { flex: none; font: 12px/16px var(--mono); color: var(--muted); }
.up-bar { height: 4px; margin: 8px 0; border-radius: 4px; background: var(--raised); overflow: hidden; }
.up-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s var(--ease); }
.up-status { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.up-status a { color: var(--text); }
.up-pct { color: var(--text); font-weight: 500; }
.up-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.up-side { display: grid; place-items: center; width: 28px; height: 40px; }
.up-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--r-ctl); border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.up-remove:hover { color: var(--text); background: var(--raised); }
.up-item[data-state="done"] .up-bar span { background: var(--pos); }
.up-item[data-state="error"] { border-color: rgba(229, 72, 77, .35); }
.up-item[data-state="error"] .up-status { color: #f2777b; }
.up-item[data-state="error"] .up-bar span { background: var(--neg); }
.up-check { color: var(--pos); }
.up-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--raised-2); border-top-color: var(--text-2); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.up-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.up-actions .btn-primary { flex: 1; min-width: 240px; }
.up-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.up-note a { color: var(--text-2); }

/* Storage and plans */
.plans-page { max-width: 1040px; margin: 0 auto; }
.usage { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.usage h2 { margin: 0 0 4px; font-size: 20px; line-height: 28px; font-variant-numeric: tabular-nums; }
.usage p { margin: 0 0 12px; color: var(--text-2); }
.usage-ring { position: relative; display: grid; place-items: center; width: 88px; height: 88px; flex: none; }
.usage-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.usage-ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--raised); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--pct) 100; }
.usage-ring strong { font: 14px/1 var(--mono); }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); }
.plan h3 { color: var(--text-2); font-weight: 400; }
.plan-size { margin: 8px 0 4px; font-size: 32px; line-height: 1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price { margin: 0 0 20px; font: 13px/20px var(--mono); color: var(--text); }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 8px; margin: 0 0 24px; padding: 0; color: var(--text-2); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 8px; border-radius: 50%; background: var(--muted); }
.plan-cta { display: grid; align-items: center; min-height: 44px; margin-top: auto; }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }
.plan-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan-current { border-color: rgba(242, 169, 59, .4); }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 12px; margin-bottom: 32px; }
.stat { display: grid; align-content: start; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; text-decoration: none; transition: border-color var(--fast) var(--ease); }
.stats-wide { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.stat span { order: 2; color: var(--text); font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .progress-bar { order: 3; }
a.stat:hover { border-color: var(--line-2); }
.stat-alert { border-color: rgba(229, 72, 77, .4); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .tabs { margin: 0; }
.mini-search { position: relative; }
.mini-search input { width: 280px; padding-left: 36px; }
.mini-search .i { position: absolute; left: 12px; top: 10px; color: var(--muted); pointer-events: none; }
.vlist { display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); transition: background-color var(--fast) var(--ease); }
.vrow:hover { background: #1c1c1e; }
.vrow .thumb { border-radius: 6px; }
.vrow-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; text-decoration: none; }
.vrow-title:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.vrow-body .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vrow-body .figures { font: 12px/16px var(--mono); color: var(--muted); }
.vrow-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vrow-actions form { margin: 0; }
.type-icon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--text-2); font: 11px/1 var(--mono); }
.type-icon em { font-style: normal; color: var(--muted); }

.facts dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; font-variant-numeric: tabular-nums; }
.narrow > .panel + .panel { margin-top: 20px; }
.narrow > h1 + p { margin: 0 0 24px; color: var(--text-2); }

/* Login and sign-up */
.auth-box { max-width: 400px; margin: 40px auto; padding: 32px; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); }
.auth-box h1 { font-size: 24px; margin-bottom: 4px; }
.auth-box > p { margin: 0 0 24px; color: var(--text-2); }
.pow-status { margin: 0; min-height: 0; }
.pow-status:empty { display: none; }
.btn-spin { width: 14px; height: 14px; border: 2px solid rgba(20, 20, 21, .25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-box > .muted.small { margin: 16px 0 0; text-align: center; }
.auth-box .foot { margin: 20px 0 0; text-align: center; color: var(--text-2); }

/* Admin */
.admin-tabs { margin-bottom: 24px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg-0); }
.table td { font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: #1c1c1e; }
.table tr:last-child td { border-bottom: 0; }
/* Home: pricing and privacy */
.home-section { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.home-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; margin-bottom: 32px; }
.home-head h2 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.home-head p { margin: 4px 0 0; color: var(--text-2); max-width: 560px; }
.home-head .report-btn { margin-top: 20px; }
.home-head .report-btn .i { color: var(--muted); }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.price { display: grid; gap: 6px; padding: 24px; background: var(--card); }
.price + .price { border-left: 1px solid var(--line); }
.price-name { color: var(--text-2); font-size: 13px; }
.price-size { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-amount { font: 13px/20px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.price-amount em { font-style: normal; color: var(--muted); }
.price-free .price-size { color: var(--accent); }
.price-file { color: var(--muted); font-size: 13px; }
.plan-form { display: flex; align-items: center; gap: 6px; }
.plan-form select, .plan-form input { width: auto; height: 32px; padding: 0 8px; font-size: 13px; }
.plan-form input { width: 86px; }
.price-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; }
.price-foot p { margin: 0; max-width: 720px; color: var(--text-2); font-size: 13px; line-height: 20px; }
/* Home: privacy, route from you through Mullvad to us */
.privacy-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.privacy { overflow-x: clip; }
.privacy h2 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; max-width: 600px; }
.privacy-lead { margin: 16px 0 0; color: var(--text-2); max-width: 420px; }
.privacy-tip { max-width: 480px; justify-self: end; }
.privacy-tip h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; }
.privacy-tip p { margin: 0 0 20px; color: var(--text-2); line-height: 22px; }
.privacy-tip .btn .i { color: var(--muted); }

.route { --dur: 3.6s; display: grid; grid-template-columns: 184px 1fr 184px 1fr 184px; grid-template-rows: auto auto; align-items: center; justify-items: center; column-gap: 0; row-gap: 16px; margin: 72px 0 64px; }
.route-dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); grid-row: 1; }
.dot-you { grid-column: 1; }
.dot-vpn { grid-column: 3; width: 96px; height: 96px; background: #192e45; border-color: rgba(242, 169, 59, .45); color: var(--accent); }
.dot-vpn img { position: relative; width: 88px; height: 88px; border-radius: 50%; }
.dot-site { grid-column: 5; }
.dot-site .logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.dot-site .logo-mark::after { left: 9px; top: 7px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(242, 169, 59, .55); opacity: 0; pointer-events: none; }
.route-cap { grid-row: 2; display: grid; gap: 4px; text-align: center; max-width: 180px; }
.route-cap b { font-weight: 500; font-size: 15px; }
.route-cap small { color: var(--muted); font-size: 13px; line-height: 18px; }
.route-cap .mono { font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.cap-you { grid-column: 1; }
.cap-vpn { grid-column: 3; }
.cap-site { grid-column: 5; }

.route-seg { position: relative; grid-row: 1; justify-self: stretch; }
.seg-tunnel { grid-column: 2; height: 14px; border-radius: 999px; border: 1px solid rgba(242, 169, 59, .4); background: rgba(242, 169, 59, .06); }
.seg-tunnel::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(242, 169, 59, .85) 0 8px, transparent 8px 20px); background-size: 20px 2px; }
.seg-lock { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(242, 169, 59, .55); color: var(--accent); }
.seg-cap { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); font: 12px/16px var(--mono); color: var(--muted); white-space: nowrap; }
.seg-out { grid-column: 4; height: 1px; background: rgba(237, 237, 237, .18); }
.packet { position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin: -4px 0 0 -4.5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--bg); }
.packet-ip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); font: 12px/16px var(--mono); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.privacy-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; margin: 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }
.privacy-facts li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.privacy-facts .i { color: var(--pos); }

@media (prefers-reduced-motion: no-preference) {
  .seg-tunnel::before { animation: tunnel-flow .7s linear infinite; }
  .ring { animation: ring-out 3s cubic-bezier(.2, .6, .3, 1) infinite; }
  .ring + .ring { animation-delay: 1.5s; }
  .packet { animation: packet-go var(--dur) cubic-bezier(.45, 0, .25, 1) infinite; }
  .dot-site::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(237, 237, 237, .5); opacity: 0; animation: arrive var(--dur) ease-out infinite; }
  .js .route > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .privacy.in .route > * { opacity: 1; transform: none; }
  .js .privacy.in .route .seg-tunnel, .js .privacy.in .route .cap-you { transition-delay: .15s; }
  .js .privacy.in .route .dot-vpn { transition-delay: .3s; }
  .js .privacy.in .route .seg-out, .js .privacy.in .route .cap-vpn { transition-delay: .45s; }
  .js .privacy.in .route .dot-site, .js .privacy.in .route .cap-site { transition-delay: .6s; }
}
@keyframes tunnel-flow { to { background-position: 20px 0; } }
@keyframes ring-out { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes packet-go {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  78% { left: 100%; opacity: 1; }
  86%, 100% { left: 100%; opacity: 0; }
}
@keyframes arrive {
  0%, 76% { opacity: 0; transform: scale(1); }
  80% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes packet-go-y {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  78% { top: 100%; opacity: 1; }
  86%, 100% { top: 100%; opacity: 0; }
}
/* Home: security with two views, FAQ and the report line */
.sec-tabs { display: inline-flex; gap: 2px; padding: 2px; margin-bottom: 24px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.sec-tab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--text-2); font: inherit; cursor: pointer; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.sec-tab:hover { color: var(--text); }
.sec-tab[aria-selected="true"] { color: var(--text); background: var(--raised-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.sec-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sec-tab .i { color: var(--muted); }
.sec-tab[aria-selected="true"] .i { color: var(--accent); }
.js .sec-panel[hidden] { display: none; }
.sec-panel + .sec-panel { margin-top: 48px; }
.js .sec-panel + .sec-panel { margin-top: 0; }
.sec-foot { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.lock-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lock-step { display: grid; gap: 8px; align-content: start; padding: 16px 16px 20px; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); }
.lock-step strong { margin-top: 8px; font-size: 15px; font-weight: 500; }
.lock-step > span { color: var(--text-2); }
.lock-art { display: grid; place-items: center; height: 112px; padding: 0 16px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); overflow: hidden; font: 13px/20px var(--mono); }
.art-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--raised); border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.art-chip .i { color: var(--text-2); }
.art-chip [data-lock-name] { display: inline-block; min-width: 10ch; }
.art-lock { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); transition: color .3s var(--ease), background-color .3s var(--ease); }
.art-file.locked .art-lock { color: var(--accent-ink); background: var(--accent); }
.art-file.locked .art-lock .i { color: inherit; }
.art-file.locked [data-lock-name] { color: var(--accent); }
.art-store { place-items: start center; align-content: center; gap: 2px; color: var(--muted); }
.art-store span { white-space: nowrap; transition: color .4s var(--ease); }
.art-store span.fresh { color: var(--accent); }
.art-url { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.art-url b { font-weight: 400; color: var(--accent); background: linear-gradient(90deg, transparent 0 40%, rgba(242, 169, 59, .28) 50%, transparent 60% 100%) no-repeat; background-size: 250% 100%; background-position: 120% 0; border-radius: 4px; }
.anon-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.anon-top p { margin: 0; max-width: 640px; color: var(--text-2); }
.anon-top strong { color: var(--text); font-weight: 500; }
.anon-top .btn .i { color: var(--muted); }
.sec-panel .route { margin: 56px 0 40px; }
.faq-head { align-items: start; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq details p { margin: 0 0 16px; max-width: 640px; color: var(--text-2); }
.home-note { display: flex; align-items: flex-start; gap: 10px; margin: 72px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 20px; }
.home-note .i { flex: none; margin-top: 3px; }
.home-note a { color: var(--text-2); }
.keep-note { margin: 24px 0 0; }
.keep-note a { color: var(--text-2); }
@media (prefers-reduced-motion: no-preference) {
  .art-url b { animation: key-shine 3.6s ease-in-out infinite; }
}
@keyframes key-shine { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
@media (max-width: 860px) {
  .lock-steps { grid-template-columns: 1fr; }
}
@keyframes tunnel-flow-y { to { background-position: 0 20px; } }
@media (max-width: 700px) {
  .privacy h2 { font-size: 32px; }
  .route { grid-template-columns: 96px 1fr; grid-template-rows: auto 128px auto 128px auto; column-gap: 20px; row-gap: 0; justify-items: start; margin: 48px 0; }
  .route-dot, .route-seg { grid-column: 1; justify-self: center; }
  .dot-you { grid-row: 1; }
  .seg-tunnel { grid-row: 2; align-self: stretch; width: 14px; height: auto; margin: 10px 0; }
  .seg-tunnel::before { left: 50%; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; margin: 0 0 0 -1px; background: repeating-linear-gradient(180deg, rgba(242, 169, 59, .85) 0 8px, transparent 8px 20px); background-size: 2px 20px; }
  .seg-cap { left: 75px; top: 50%; transform: translateY(-50%); }
  .dot-vpn { grid-row: 3; }
  .seg-out { grid-row: 4; align-self: stretch; width: 1px; height: auto; margin: 10px 0; }
  .packet { top: 50%; left: 0; margin: -4px 0 0 -4px; }
  .packet-ip { left: 72px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .dot-site { grid-row: 5; }
  .route-cap { grid-column: 2; align-self: center; justify-self: start; text-align: left; }
  .cap-you { grid-row: 1; }
  .cap-vpn { grid-row: 3; }
  .cap-site { grid-row: 5; }
  .privacy-facts { flex-direction: column; align-items: center; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .seg-tunnel::before { animation-name: tunnel-flow-y; }
  .packet { animation-name: packet-go-y; }
}
@media (max-width: 900px) {
  .home-head { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 420px) {
  .price { padding: 16px; }
  .price-size { font-size: 26px; }
}
  .price-row { grid-template-columns: repeat(2, 1fr); }
  .price:nth-child(3) { border-left: 0; }
  .price:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .privacy-top { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .privacy-tip { justify-self: start; }
  .price-foot { flex-direction: column; align-items: flex-start; }
}

/* Payment method: PayPal monthly or crypto in advance */
.plans-page[data-mode="crypto"] .only-paypal, .plans-page[data-mode="paypal"] .only-crypto { display: none !important; }
.pay-switch { display: inline-flex; gap: 2px; margin: 0 0 16px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); }
.pay-switch a { padding: 6px 14px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.pay-switch a:hover { color: var(--text); }
.plans-page[data-mode="paypal"] .pay-switch a[data-pay="paypal"], .plans-page[data-mode="crypto"] .pay-switch a[data-pay="crypto"] { background: var(--raised); color: var(--text); }
.months { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.months legend { float: left; margin-right: 8px; color: var(--text-2); font-size: 13px; }
.month-chip input { position: absolute; opacity: 0; pointer-events: none; }
.month-chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 13px; cursor: pointer; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.month-chip span:hover { color: var(--text); }
.month-chip input:checked + span { border-color: rgba(242, 169, 59, .6); background: rgba(242, 169, 59, .08); color: var(--text); }
.month-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-total { margin: -16px 0 20px; font: 13px/20px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.plan-total span { color: var(--muted); }
.needs-consent .only-crypto.btn { opacity: .55; }
.pay-pending { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pay-pending > div { flex: 1; }
.pay-pending p { margin: 2px 0 0; }
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242, 169, 59, .5); animation: pulse-dot 1.6s var(--ease) infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgba(242, 169, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 169, 59, 0); } }
.pay-state { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.receipt .pay-state h1 { margin: 0; }
.prepaid-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
/* Narrow phones: the logged-in header keeps every link on one line */
@media (max-width: 560px) {
  .nav { gap: 12px; font-size: 13px; }
  .nav a, .nav .link { white-space: nowrap; }
  .topbar-inner:has(.nav form.inline) .nav .btn-sm { gap: 0; padding: 0 8px; font-size: 0; }
  .topbar-inner:has(.nav form.inline) .logo { gap: 0; font-size: 0; }
}

/* Recovery code */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { color: var(--text-2); font-size: 13px; font-weight: 400; }
.label-row a:hover { color: var(--text); }
.code-input { letter-spacing: .06em; text-transform: uppercase; }
.nowrap { white-space: nowrap; }
.recovery-intro h1, .recovery-show h1 { font-size: 24px; margin-bottom: 8px; }
.recovery-intro > p, .recovery-show > p { color: var(--text-2); }
.eyebrow-step { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 500; }
.code-card { display: grid; gap: 8px; justify-items: center; margin: 20px 0 16px; padding: 24px 16px; border: 1px dashed rgba(242, 169, 59, .45); border-radius: var(--r-card); background: var(--raised); text-align: center; }
.rc-code { padding: 0; border: 0; background: none; font: 500 26px/1.2 var(--mono); letter-spacing: .08em; color: var(--text); user-select: all; word-break: break-all; animation: rc-in .5s var(--ease) both; }
@keyframes rc-in { from { opacity: 0; letter-spacing: .3em; } }
.rc-actions { justify-content: center; margin-bottom: 20px; }
.rc-rules { margin: 0 0 20px; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 20px; }
.recovery-show .check { margin-bottom: 16px; }
.btn.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }
@media (max-width: 520px) { .rc-code { font-size: 20px; } }

/* Account, cancel page, consent */
.account-page > h1, .cancel-page > h1 { margin-bottom: 20px; }
.account-page .panel + .panel { margin-top: 16px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.acc-row h2, .acc-row p { margin: 0; }
.acc-plan { display: grid; justify-items: end; gap: 2px; }
.danger-zone { border-color: rgba(229, 72, 77, .24); }
.danger-zone h2 { color: #f2777b; }
.cancel-page > .muted { margin: -12px 0 20px; }
.cancel-page form.panel { margin-bottom: 12px; }
.cancel-who { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--raised); }
.form-note { margin: -8px 0 0; }
.choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 8px; font-weight: 500; font-size: 13px; }
.receipt h1 { font-size: 24px; margin-bottom: 20px; }
.receipt-list { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0 0 20px; padding: 16px; border-radius: var(--r-ctl); background: var(--raised); }
.receipt-list dt { color: var(--muted); font-size: 13px; }
.receipt-list dd { margin: 0; }
.consent { max-width: 760px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); }
.consent.nudge { animation: nudge .4s var(--ease); border-color: rgba(242, 169, 59, .5); }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.needs-consent .pp-button { opacity: .45; transition: opacity var(--fast) var(--ease); }
@media print {
  .topbar, .footer, .receipt .row { display: none !important; }
  body, .panel, .receipt-list { background: #fff !important; color: #000 !important; border-color: #ccc !important; }
  .receipt-list dt, .muted { color: #555 !important; }
}
.linked-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.linked-head h2 { margin-bottom: 4px; }
.linked-head p { margin: 0; max-width: 640px; }
.link-warn { color: var(--accent); text-decoration-color: rgba(242, 169, 59, .4); }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.filter-row { display: flex; gap: 8px; max-width: 640px; margin-bottom: 20px; }
.report-item { margin-bottom: 12px; }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-item blockquote { margin: 12px 0 16px; padding: 12px 16px; white-space: pre-wrap; color: var(--text-2); background: var(--bg-0); border-left: 2px solid var(--line-2); border-radius: 4px; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-actions input { flex: 1; min-width: 240px; }
.report-video { padding: 12px 16px; background: var(--bg-0); border: 1px solid var(--line); border-radius: var(--r-ctl); }

/* Text pages */
.prose { font-size: 15px; line-height: 24px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 32px 0 8px; font-size: 16px; }
.prose p, .prose li { color: var(--text-2); }
.prose address { font-style: normal; }
.prose ul { padding-left: 20px; }
.prose h3 { margin: 0 0 8px; font-size: 14px; }
.legal-box { margin: 16px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.legal-box h3 + p, .legal-box p + h3 { margin-top: 0; }
.legal-box h3:not(:first-child) { margin-top: 20px; }
.legal-box p:last-child { margin-bottom: 0; }
.prose a { color: var(--text); }
.error-page .error-code { margin: 0 0 8px; font: 48px/1 var(--mono); color: var(--muted); }

/* File page */
.file-page { max-width: 960px; margin: 0 auto; display: grid; gap: 20px; }
.file-main { display: grid; gap: 20px; }
.file-preview { display: grid; place-items: center; min-height: 240px; overflow: hidden; border-radius: var(--r-card); background: var(--bg-0); }
.file-preview img, .file-preview video { max-width: 100%; max-height: 70vh; width: auto; }
.file-preview video { width: 100%; }
.file-preview-audio { gap: 20px; padding: 32px 20px; }
.file-preview-audio audio { width: min(520px, 100%); }
.file-preview-icon { padding: 48px; }
.file-preview-icon img { max-height: 320px; border-radius: var(--r-ctl); }
.big-icon { display: grid; place-content: center; justify-items: center; gap: 12px; width: 112px; height: 136px; border-radius: var(--r-card); background: var(--raised); border: 1px solid var(--line); color: var(--text-2); font: 12px/1 var(--mono); }
.pdf-frame { width: 100%; height: 70vh; border: 0; background: #fff; }
.text-preview { margin: 0; max-height: 60vh; overflow: auto; padding: 16px; border-radius: var(--r-card); background: var(--bg-0); color: var(--text-2); font: 13px/20px var(--mono); white-space: pre-wrap; word-break: break-word; }
.file-info { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.file-name { margin: 0 0 8px; font-size: 22px; line-height: 28px; word-break: break-word; }
.file-info .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.download-btn { min-width: 200px; }
.file-actions { margin: 0; }

/* Footer */
.footer { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; justify-self: end; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-inner > span a { color: var(--text-2); }
.powered { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.powered-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; letter-spacing: -.01em; }
.powered-logo svg { width: 28px; height: 20px; }
.powered-logo b { font-weight: 500; }
.powered-logo i { margin-left: -4px; font-style: normal; color: var(--text-2); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; padding: 8px 16px; border-radius: var(--r-ctl); background: var(--text); color: var(--bg); font-weight: 500; transform: translateX(-50%); animation: toast 1.8s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Motion
   One entrance per screen, then motion only where something happens:
   the countdown in the hero player, reveals on scroll, feedback on copy, upload and usage. */
.hero-copy > * { animation: rise .6s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero .site { animation: rise .8s var(--ease) .2s both; }

/* Film leader countdown: the sweep fills once per second, the number steps 3, 2, 1 */
.leader-sweep { stroke-dasharray: 0 100; animation: sweep 1s linear infinite; }
.leader-hand { transform-box: view-box; transform-origin: 160px 90px; animation: hand 1s linear infinite; }
.leader-n { opacity: 0; animation: leader-n 3s step-end infinite; }
.leader-n.n2 { animation-delay: -2s; }
.leader-n.n1 { animation-delay: -1s; }
@keyframes sweep { to { stroke-dasharray: 100 100; } }
@keyframes hand { to { transform: rotate(360deg); } }
@keyframes leader-n { 0% { opacity: 1; } 33.333% { opacity: 0; } }
.mini-player .track span { animation: track 18s linear infinite; }
@keyframes track { from { width: 12%; } to { width: 100%; } }

/* Sections slide in once when they scroll into view */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .features[data-reveal] > div, .js .steps[data-reveal] > div { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].in > div { opacity: 1; transform: none; }
.js [data-reveal].in > div:nth-child(2) { transition-delay: 60ms; }
.js [data-reveal].in li:nth-child(3), .js [data-reveal].in > div:nth-child(3) { transition-delay: 120ms; }

/* Lists build up from the top on load */
.vlist > *, .stats > *, .plan-grid > *, .up-list > * { animation: enter .45s var(--ease) both; }
.vlist > :nth-child(2), .stats > :nth-child(2), .plan-grid > :nth-child(2) { animation-delay: 40ms; }
.vlist > :nth-child(3), .stats > :nth-child(3), .plan-grid > :nth-child(3) { animation-delay: 80ms; }
.vlist > :nth-child(4), .stats > :nth-child(4), .plan-grid > :nth-child(4) { animation-delay: 120ms; }
.vlist > :nth-child(5), .stats > :nth-child(5) { animation-delay: 160ms; }
.vlist > :nth-child(n+6), .stats > :nth-child(n+6) { animation-delay: 200ms; }
.auth-box, .up-page > *, .file-page > *, .watch-main > * { animation: enter .5s var(--ease) both; }
.up-page > :nth-child(2), .file-page > :nth-child(2), .watch-main > :nth-child(2) { animation-delay: 60ms; }
.watch-main > :nth-child(n+3) { animation-delay: 120ms; }

/* Upload feedback */
.dz-orb { transition: transform .3s var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.dz-orb .i { transition: transform .3s var(--ease); }
.dropzone:hover .dz-orb .i { transform: translateY(-2px); }
.dropzone.drag .dz-orb { transform: scale(1.12); }
.dropzone.drag .dz-orb .i { animation: lift .7s var(--ease) infinite alternate; }
@keyframes lift { to { transform: translateY(-4px); } }
.up-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s var(--ease) .05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.up-item[data-state="uploading"] .up-bar span { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: run 1.2s linear infinite; }
@keyframes run { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Usage ring fills up to the real value */
.ring-fg { animation: ring .9s var(--ease) .2s both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.progress-bar span { animation: grow .8s var(--ease) .15s both; }
@keyframes grow { from { width: 0; } }

/* Copy feedback */
.btn.copied, .id-tag.copied { color: var(--pos); border-color: rgba(76, 195, 138, .4); }
.btn.copied .i, .id-tag.copied .i { color: var(--pos); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding-top: 16px; }
  .hero h1 { max-width: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .vrow { grid-template-columns: 112px minmax(0, 1fr); }
  .vrow-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .main { padding-top: 24px; }
  .topbar-inner { gap: 12px; }
  .nav { gap: 12px; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 16px; line-height: 24px; }
  .site-body { padding: 20px; }
  .site-title { font-size: 22px; }
  .site-text { display: none; }
  .site-url { justify-content: flex-start; padding: 0 8px; }
  .features { grid-template-columns: 1fr; }
  .feat-player { grid-row: auto; }
  .feat-player .feat-art { min-height: 0; padding: 20px; }
  .steps, .row-2, .plan-grid { grid-template-columns: 1fr; }
  .steps div, .steps div + div { padding: 20px 0; border-left: 0; }
  .steps div + div { border-top: 1px solid var(--line); }
  .mini-search, .mini-search input { width: 100%; }
  .download-btn { width: 100%; }
  .table { display: block; overflow-x: auto; }
  .quota { width: 100%; text-align: left; }
  .dropzone { padding: 40px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer nav { justify-self: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* Blog */
.blog { max-width: 1200px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.blog-head { padding: 16px 0 40px; }
.blog-head h1 { max-width: 760px; font-size: 56px; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
.blog-head > p { margin: 0; max-width: 580px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.blog-cats a span { color: var(--muted); font: 12px var(--mono); }
.blog-cats a:hover { color: var(--text); background: var(--card); }
.blog-cats a[aria-current="page"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.blog-cats a[aria-current="page"] span { color: rgba(20, 20, 21, .6); }

.blog-cover { aspect-ratio: 1200 / 630; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.blog-cover .cover { display: block; width: 100%; height: 100%; transition: transform .6s var(--ease); }
.blog-tag { display: inline-flex; align-items: center; align-self: start; justify-self: start; height: 24px; padding: 0 9px; border-radius: var(--r-tag); background: rgba(242, 169, 59, .12); color: var(--accent); font-size: 12px; font-weight: 500; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13px; }
.blog-meta time { font-family: var(--mono); font-size: 12px; }

.blog-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 32px 0 64px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.blog-feature-body { display: grid; gap: 16px; justify-items: start; }
.blog-feature h2 { margin: 0; font-size: 40px; line-height: 1.08; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; transition: color var(--fast) var(--ease); }
.blog-feature p { margin: 0; font-size: 17px; line-height: 27px; color: var(--text-2); }
.blog-feature:hover h2, .blog-card:hover h3 { color: var(--accent); }
.blog-feature:hover .cover, .blog-card:hover .cover { transform: scale(1.025); }
.blog-feature:focus-visible, .blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--r-panel); }

.blog-section { margin: 0 0 24px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 400; color: var(--muted); }
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.blog-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.blog-card .blog-cover { margin-bottom: 8px; }
.blog-card h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; transition: color var(--fast) var(--ease); }
.blog-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 23px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-section-gap { margin-top: 64px; }
.blog-archive { list-style: none; margin: 0; padding: 0; }
.blog-archive li { border-bottom: 1px solid var(--line); }
.blog-archive a { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 18px 0; text-decoration: none; color: inherit; }
.blog-archive time { color: var(--muted); font: 12px var(--mono); }
.blog-archive-title { font-size: 18px; line-height: 26px; font-weight: 500; transition: color var(--fast) var(--ease); }
.blog-archive-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.blog-archive a:hover .blog-archive-title { color: var(--accent); }
.blog-band { margin: 96px 0 0; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.blog-band h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.blog-band p { margin: 0; color: var(--text-2); font-size: 15px; }

.post { max-width: 1200px; margin: 0 auto; }
.post-head { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.post-head h1 { font-size: 48px; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; }
.post-lead { margin: 0 0 32px; font-size: 20px; line-height: 31px; color: var(--text-2); }
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); flex: none; }
.post-byline-text { display: grid; gap: 2px; font-size: 13px; }
.post-byline-text strong { font-weight: 500; }
.post-byline-text > span { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.post-byline-text time { font-family: var(--mono); font-size: 12px; }
.post-cover { max-width: 1040px; margin: 0 auto 56px; aspect-ratio: 1200 / 630; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.post-cover .cover { display: block; width: 100%; height: 100%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); }
.post-body { grid-column: 2; font-size: 18px; line-height: 31px; color: #c9c9cd; }
.post-toc { grid-column: 1; align-self: start; position: sticky; top: 88px; max-width: 220px; margin-left: auto; padding-right: 40px; font-size: 13px; line-height: 20px; }
.post-toc span { display: block; margin-bottom: 12px; color: var(--muted); }
.post-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 10px; border-left: 1px solid var(--line-2); }
.post-toc a { color: var(--text-2); text-decoration: none; }
.post-toc a:hover { color: var(--text); }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 22px; }
.post-body h2 { margin: 56px 0 16px; font-size: 30px; line-height: 1.18; font-weight: 500; letter-spacing: -.025em; color: var(--text); scroll-margin-top: 88px; }
.post-body h3 { margin: 36px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--text); scroll-margin-top: 88px; }
.post-body ul, .post-body ol { margin: 0 0 26px; padding-left: 24px; }
.post-body li { margin: 0 0 10px; padding-left: 6px; }
.post-body li::marker { color: var(--accent); }
.post-body ol li::marker { font: 15px var(--mono); }
.post-body strong { color: var(--text); font-weight: 500; }
.post-body a { color: var(--text); text-decoration-color: rgba(242, 169, 59, .6); }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body code { padding: 2px 6px; border-radius: var(--r-tag); background: var(--raised); color: var(--text); font: .85em var(--mono); }
.post-body blockquote { margin: 0 0 26px; padding: 18px 22px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 27px; }
.post-body blockquote p { margin: 0; }
.post-body blockquote code { padding: 0; background: none; color: var(--text-2); font-size: 15px; word-break: break-all; }
.post-table { margin: 0 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.post-table th { text-align: left; font-weight: 500; color: var(--text); background: var(--card); }
.post-table th, .post-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table tr:last-child td { border-bottom: 0; }
.post-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share .btn { text-decoration: none; }
.post-band { max-width: 1040px; margin-left: auto; margin-right: auto; }
.post-more { max-width: 1040px; margin: 96px auto 0; }
.post-more .blog-grid { gap: 32px; }
.post-more .blog-card h3 { font-size: 18px; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .post-body { grid-column: 1; }
  .post-toc { display: none; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .blog-feature { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .blog-feature h2 { font-size: 30px; }
}
@media (max-width: 700px) {
  .blog-head h1 { font-size: 38px; }
  .blog-head > p { font-size: 16px; line-height: 25px; }
  .blog-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-archive a { grid-template-columns: 1fr; gap: 4px; }
  .post-head h1 { font-size: 34px; }
  .post-lead { font-size: 17px; line-height: 27px; }
  .post-cover { border-radius: var(--r-panel); margin-bottom: 40px; }
  .post-body { font-size: 17px; line-height: 29px; }
  .post-body h2 { font-size: 24px; margin-top: 44px; }
  .blog-band { padding: 28px 24px; margin-top: 64px; }
  .blog-band h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-cover .cover { transition: none; }
  .blog-feature:hover .cover, .blog-card:hover .cover { transform: none; }
}

/* Support: contact page, conversations and chat */
.nav-support { position: relative; }
.nav-dot { position: absolute; top: -3px; right: -9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.contact { max-width: 1040px; margin: 0 auto; }
.contact-head { padding: 16px 0 40px; }
.contact-head h1 { font-size: 48px; line-height: 1.05; letter-spacing: -.035em; margin: 0 0 16px; }
.contact-head p { margin: 0; max-width: 620px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.contact-form { position: relative; padding: 32px; }
.contact-as { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: 13px; }
.contact-as .i { color: var(--muted); }
.contact-as strong { color: var(--text); font-weight: 500; }
.form small.opt { display: inline; margin-left: 6px; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn-primary { justify-self: start; }
.contact-side { display: grid; gap: 4px; }
.contact-way { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-card); text-decoration: none; color: inherit; transition: background-color var(--fast) var(--ease); }
.contact-way:hover { background: var(--card); }
.contact-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--raised); color: var(--text-2); }
.contact-way strong { display: block; font-weight: 500; margin-bottom: 2px; }
.contact-way span span { color: var(--muted); font-size: 13px; line-height: 19px; }

.contact-list { margin-top: 64px; }
.contact-list h2 { font-size: 20px; margin-bottom: 16px; }
.contact-list ul, ul.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.conv { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 90px; gap: 16px; align-items: center; padding: 16px 8px; text-decoration: none; color: inherit; border-radius: var(--r-ctl); transition: background-color var(--fast) var(--ease); }
.conv:hover { background: var(--card); }
.conv-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.conv-new .conv-dot { background: var(--accent); }
.conv-main { display: grid; gap: 4px; min-width: 0; }
.conv-main strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-new .conv-main strong { color: var(--text); }
.conv-main > span { color: var(--muted); font-size: 13px; }
.conv-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2) !important; }
.conv-time { color: var(--muted); font-size: 12px; text-align: right; }
.conv-status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-tag); font-size: 12px; white-space: nowrap; background: var(--raised); color: var(--text-2); }
.conv-open { background: rgba(242, 169, 59, .12); color: var(--accent); }
.conv-answered { background: rgba(76, 195, 138, .12); color: var(--pos); }
.conv-new .conv-status { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.admin-conv { margin-top: 8px; }

.chat-page { max-width: 760px; margin: 0 auto; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.chat-head h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
.chat-head p { margin: 0; }
.chat-status { flex: none; margin-top: 4px; }
.chat-link { display: grid; gap: 16px; margin-top: 24px; border-color: rgba(242, 169, 59, .4); }
.chat-link strong { font-weight: 500; }
.chat-link p { margin: 4px 0 0; color: var(--text-2); }
.chat { list-style: none; margin: 0; padding: 32px 0; display: grid; gap: 20px; }
.msg { display: grid; gap: 6px; max-width: 82%; }
.msg-in { justify-self: start; }
.msg-out { justify-self: end; justify-items: end; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 23px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-in .msg-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-out .msg-bubble { background: var(--raised-2); border-bottom-right-radius: 6px; }
.msg-meta { color: var(--muted); font-size: 12px; padding: 0 4px; }
.msg-fresh { animation: rise .35s var(--ease) both; }
.chat-reply { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-panel); background: var(--card); border: 1px solid var(--line); }
.chat-reply textarea { min-height: 88px; }
.chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-buttons { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.chat-close { margin-top: 16px; text-align: center; }
.chat-close .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-head h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .contact-pair { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .conv { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .conv-time { display: none; }
  .msg { max-width: 92%; }
}
.tabs a .muted { margin-left: 6px; }
