/* TorMonitor — site styles
   Palette taken from the app icon: ink-navy globe, blue = data coming in,
   orange = data going out. Those two colours keep that meaning everywhere. */

:root {
  --ink: #0d1426;
  --ink-2: #16203a;
  --ink-3: #24304f;
  --paper: #f2f4f8;
  --card: #ffffff;
  --text: #141b2e;
  --muted: #59627a;
  --rule: #d8dde8;
  --in: #2f7cf6;        /* downloading from */
  --in-soft: #e3edff;
  --out: #f2801f;       /* uploading to */
  --out-soft: #fff0e2;
  --link: #1f62d0;
  --focus: #f2801f;
  --on-ink: #e9eef9;
  --on-ink-muted: #9fb0d3;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.6rem, 1.7rem + 4vw, 4.75rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 6px;
  --r-m: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1120;
    --card: #121a2e;
    --text: #e6ebf6;
    --muted: #9aa6c0;
    --rule: #26324d;
    --in-soft: #13264a;
    --out-soft: #3a2410;
    --link: #79a9ff;
    --in: #4b90ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--sans);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 750; text-wrap: balance; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; background: var(--card); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--in); color: #fff; text-decoration: none;
  font-weight: 650; font-size: var(--step-0);
  padding: 0.8em 1.3em; border-radius: 999px; border: 0;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #1f68dd; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ver { font-weight: 500; opacity: .8; font-size: .85em; }
.btn-small { font-size: var(--step--1); padding: 0.55em 1em; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127,140,170,.12); }
.btn-out { background: var(--out); }
.btn-out:hover { background: #dc6f12; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header.is-dark { background: color-mix(in srgb, var(--ink) 86%, transparent); border-color: var(--ink-3); color: var(--on-ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: inherit; text-decoration: none; font-weight: 550; font-size: .97rem; opacity: .85; padding: 6px 0; }
.site-nav ul a:hover { opacity: 1; }
.site-nav ul a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--in); }
.nav-toggle { display: none; font: inherit; font-weight: 600; color: inherit; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px; background: var(--paper); color: var(--text); border-bottom: 1px solid var(--rule); }
  .is-dark .site-nav { background: var(--ink); color: var(--on-ink); border-color: var(--ink-3); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 0; font-size: 1.1rem; }
  .site-nav .btn { justify-content: center; }
}

/* ------------------------------------------------------------------ hero (home) */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero-inner { padding-top: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; margin-bottom: 0.35em; }
.hero-lede { font-size: var(--step-1); color: var(--on-ink-muted); max-width: 52ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-actions .meta { color: var(--on-ink-muted); font-size: var(--step--1); }
.hero .btn-ghost { color: var(--on-ink); }

.swarm { position: relative; margin: clamp(28px, 5vw, 56px) 0 0; }
.swarm-map { position: relative; aspect-ratio: 720 / 284; width: 100%; }
.swarm-map > img, .swarm-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.swarm-map .arc { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.swarm-map .arc.in { stroke: var(--in); }
.swarm-map .arc.out { stroke: var(--out); }
.swarm-map .node { stroke: var(--ink); stroke-width: 1.5; }
.swarm-map .node.in { fill: #8db8ff; }
.swarm-map .node.out { fill: #ffb36b; }
.swarm-map .me { fill: #fff; }
.swarm-map .me-halo { fill: none; stroke: #fff; stroke-opacity: .5; }
.swarm-map .flow { stroke-width: 2.4; stroke-linecap: round; fill: none; stroke-dasharray: 2 18; }
.swarm-map .flow.in { stroke: #bcd5ff; animation: flow-in 1.6s linear infinite; }
.swarm-map .flow.out { stroke: #ffd2a6; animation: flow-out 1.6s linear infinite; }
@keyframes flow-in { to { stroke-dashoffset: 20; } }
@keyframes flow-out { to { stroke-dashoffset: -20; } }
.swarm-map .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.swarm-map .lbl { font: 600 9.5px var(--mono); fill: var(--on-ink); paint-order: stroke; stroke: var(--ink); stroke-width: 3.5px; stroke-linejoin: round; }
.swarm-map .lbl .rate-in { fill: #9cc1ff; }
.swarm-map .lbl .rate-out { fill: #ffbf85; }
.swarm-legend { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 18px 0 28px; border-top: 1px solid var(--ink-3); font-size: var(--step--1); color: var(--on-ink-muted); }
.swarm-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.swarm-legend .k-in::before { background: var(--in); }
.swarm-legend .k-out::before { background: var(--out); }
.swarm-legend .k-me::before { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.swarm-legend .note { margin-left: auto; }
@media (max-width: 640px) { .swarm-map .lbl { display: none; } .swarm-legend .note { margin-left: 0; flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .swarm-map .draw { animation: none; stroke-dashoffset: 0; }
  .swarm-map .flow { animation: none; display: none; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: var(--step-4); letter-spacing: -0.03em; max-width: 22ch; }
.page-head .lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* Questions people ask (home) */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 2px solid var(--text); }
.asks a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.asks a:hover .q { color: var(--link); }
.asks .q { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.asks .a { grid-column: 1; color: var(--muted); font-size: var(--step--1); }
.asks .tag { grid-row: 1; grid-column: 2; align-self: start; }
@media (max-width: 760px) { .asks { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--out-soft); color: #b55308; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .tag { color: #ffb36b; } }
.tag-free { background: var(--in-soft); color: var(--link); }

/* Feature groups */
.fgroup { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 56px; padding: 40px 0; border-top: 1px solid var(--rule); }
.fgroup h2 { font-size: var(--step-3); letter-spacing: -0.025em; position: sticky; top: 90px; align-self: start; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.fgroup li h3 { font-size: var(--step-1); margin-bottom: .3em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fgroup li p { color: var(--muted); max-width: 64ch; margin-bottom: .4em; }
.fgroup li .more { font-weight: 600; font-size: var(--step--1); }
@media (max-width: 760px) { .fgroup { grid-template-columns: 1fr; } .fgroup h2 { position: static; } }

/* Compact feature index on home */
.findex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.findex h3 { font-size: var(--step-1); margin-bottom: .35em; }
.findex p { color: var(--muted); margin: 0; font-size: .98rem; }
.findex a { color: inherit; text-decoration: none; }
.findex a:hover h3 { color: var(--link); }
.findex .gname { font-size: var(--step--1); color: var(--muted); margin-bottom: 6px; display: block; }
@media (max-width: 900px) { .findex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .findex { grid-template-columns: 1fr; } }

/* Facts table (quotable by search & AI) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 2px solid var(--text); max-width: 760px; }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 650; padding-right: 32px; }
.facts dd { color: var(--muted); }

/* Ink band */
.band { background: var(--ink); color: var(--on-ink); border-radius: var(--r-m); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.band h2 { font-size: var(--step-3); margin-bottom: .25em; }
.band p { color: var(--on-ink-muted); margin: 0; max-width: 56ch; }
.band .btn-ghost { color: var(--on-ink); }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ download */
.dl-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.dl-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 28px; }
.dl-card h2 { font-size: var(--step-2); margin-bottom: .2em; }
.dl-card .sub { color: var(--muted); margin-bottom: 1.2em; }
.dl-detect { font-size: var(--step--1); color: var(--muted); min-height: 1.6em; margin-top: 14px; }
.dl-files { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.dl-files li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.dl-files li.is-recommended .pname::after { content: "Recommended for this Mac"; margin-left: 10px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--in-soft); color: var(--link); vertical-align: 2px; }
.dl-files .pname { font-weight: 650; }
.dl-files .pmeta { grid-column: 1; color: var(--muted); font-size: var(--step--1); }
.dl-files .btn { grid-row: 1 / span 2; grid-column: 2; }
.sha { font-family: var(--mono); font-size: .74rem; color: var(--muted); word-break: break-all; display: block; margin-top: 4px; }
.notes { font-size: .98rem; }
.notes h2, .notes h3 { font-size: var(--step-1); margin-top: 1.2em; }
.notes ul { padding-left: 1.2em; }
.archive { width: 100%; border-collapse: collapse; font-size: .97rem; }
.archive th, .archive td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.archive th { font-size: var(--step--1); color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--text); }
.archive td a { margin-right: 14px; white-space: nowrap; }
.archive details summary { cursor: pointer; color: var(--link); font-size: var(--step--1); }
.empty { padding: 24px; border: 1.5px dashed var(--rule); border-radius: var(--r-m); color: var(--muted); }
@media (max-width: 860px) { .dl-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .archive thead { display: none; }
  .archive tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .archive td { display: block; border: 0; padding: 4px 0; }
}

/* ------------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--out); }
.plan h2 { font-size: var(--step-2); margin-bottom: .1em; }
.plan .price { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; margin: .2em 0 .1em; }
.plan .price small { font-size: var(--step-0); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 1.1em; margin: 1em 0 1.6em; flex: 1; }
.plan li { margin-bottom: .45em; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.compare { width: 100%; max-width: 920px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 90px; }
.compare thead th { border-bottom: 2px solid var(--text); }
.yes { color: var(--in); font-weight: 800; }
.no { color: var(--muted); }

/* ------------------------------------------------------------------ guides index */
.gcat { padding: 32px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 56px; }
.gcat h2 { font-size: var(--step-2); }
.glist { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.glist a { font-size: var(--step-1); font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.glist a:hover { color: var(--link); }
.glist p { margin: 4px 0 0; color: var(--muted); font-size: .98rem; max-width: 62ch; }
@media (max-width: 760px) { .gcat { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; padding-bottom: 80px; }
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; }
.article-head { padding: 24px 0 8px; max-width: 760px; }
.article-head h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.article-meta { color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.answer { margin: 28px 0 36px; padding: 22px 24px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--in); border-radius: var(--r-s); max-width: 760px; }
.answer h2 { font-size: var(--step-0); margin-bottom: .4em; color: var(--link); }
.answer p { margin: 0; font-size: var(--step-1); line-height: 1.5; }
.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.72; max-width: 70ch; }
.prose h2, .prose h3 { font-family: var(--sans); }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
.anchor { margin-left: .35em; opacity: 0; text-decoration: none; color: var(--muted); }
.prose .anchor { margin-left: .35em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose ol > li::marker { font-family: var(--sans); font-weight: 750; color: var(--link); }
.prose strong { font-weight: 650; }
.prose code { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: .05em .3em; }
.prose pre { background: var(--ink); color: var(--on-ink); padding: 18px 20px; border-radius: var(--r-s); overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--rule); background: var(--card); border-radius: var(--r-s); font-size: 1.05rem; }
.prose blockquote p:last-child { margin: 0; }
.prose .callout-pro { border-color: var(--out); }
.prose .callout-tip { border-color: var(--in); }
.prose .callout-warning { border-color: #d6453d; }
.prose img { border-radius: var(--r-s); border: 1px solid var(--rule); }
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
.prose table { border-collapse: collapse; font-family: var(--sans); font-size: .95rem; width: 100%; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { border-bottom: 2px solid var(--text); }
.toc { position: sticky; top: 92px; font-size: var(--step--1); padding-top: 40px; }
.toc h2 { font-size: var(--step--1); color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 28px; border-left: 2px solid var(--rule); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc li a:hover, .toc li a.active { color: var(--text); border-left-color: var(--in); }
.related { border-top: 2px solid var(--text); margin-top: 56px; padding-top: 20px; max-width: 70ch; }
.related h2 { font-size: var(--step-1); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.related a { font-weight: 650; text-decoration: none; }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* ------------------------------------------------------------------ FAQ */
.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 56px; padding: 32px 0; border-top: 1px solid var(--rule); }
.faq-group > h2 { font-size: var(--step-2); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 2px solid var(--text); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item .faq-a { padding: 0 0 20px; color: var(--muted); max-width: 66ch; }
.faq-item .faq-a p { margin-bottom: .6em; }
.faq-item .faq-a strong { color: var(--text); }
@media (max-width: 760px) { .faq-group { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ changelog */
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--rule); }
.release h2 { font-size: var(--step-2); margin-bottom: .2em; }
.release .when { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h2 { font-size: var(--step--1); color: var(--on-ink); margin-bottom: 12px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-about .brand { color: var(--on-ink); margin-bottom: 12px; }
.footer-about p { max-width: 36ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ink-3); margin-top: 40px; padding-top: 20px; font-size: var(--step--1); }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

.not-found { padding: 96px 0 120px; }
.not-found h1 { font-size: var(--step-4); }

/* ------------------------------------------------------------------ screenshots */
.shot { margin: 2em 0; }
.shot a.zoom { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -22px rgba(13, 20, 38, .55); background: var(--ink); }
.shot img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.shot figcaption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: 10px; max-width: 64ch; }
.prose .shot img { border: 0; border-radius: 0; }
@media (min-width: 1100px) { .prose .shot { margin-right: -60px; } }

/* App window showcase on home + features */
.showcase { position: relative; margin: 0 auto; }
.showcase .frame { border-radius: 12px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -30px rgba(0,0,0,.7); }
.showcase .frame img { display: block; width: 100%; height: auto; }
.fshot { margin: 18px 0 0; max-width: 640px; }
.fshot a { display: block; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.fshot img { display: block; width: 100%; height: auto; }

/* Real app screenshot straddling the dark hero and the page */
.showcase-band { background: linear-gradient(to bottom, var(--ink) 0 38%, transparent 38%); padding-bottom: clamp(16px, 3vw, 32px); }
.showcase-band figcaption { color: var(--muted); font-size: var(--step--1); margin-top: 14px; max-width: 70ch; }
@media (max-width: 600px) { .answer { padding: 18px; } .answer p { font-size: var(--step-0); } .prose { font-size: 1.08rem; } }

/* ------------------------------------------------------------------ launch offer */
.promo { background: var(--out); color: #1b0f02; font-size: .95rem; }
.promo-row { display: flex; align-items: center; gap: 10px 18px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.promo p { margin: 0; flex: 1; line-height: 1.4; }
.promo-code, .code-inline { font-family: var(--mono); font-weight: 700; letter-spacing: .06em; background: rgba(255,255,255,.55); border-radius: 5px; padding: .05em .4em; }
.code-inline { background: rgba(242,128,31,.18); color: #ffb36b; }
.promo-time { white-space: nowrap; }
.promo-cta { color: #1b0f02; font-weight: 750; white-space: nowrap; }
.promo-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: inherit; cursor: pointer; padding: 4px 6px; opacity: .7; }
.promo-close:hover { opacity: 1; }
@media (max-width: 640px) { .promo-cta { display: none; } .promo { font-size: .88rem; } }

.offer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 48px; align-items: center; background: var(--ink); color: var(--on-ink); border-radius: var(--r-m); padding: clamp(24px, 4vw, 44px); margin-bottom: 40px; max-width: 920px; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--out); }
.offer h2 { font-size: var(--step-3); letter-spacing: -0.025em; margin-bottom: .35em; }
.offer p { color: var(--on-ink-muted); max-width: 54ch; }
.offer p strong { color: #fff; }
.offer .btn-ghost { color: var(--on-ink); }
.offer .meta { color: var(--on-ink-muted); font-size: var(--step--1); }
.offer-code { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; flex-wrap: wrap; }
.offer-code code { font-family: var(--mono); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); font-weight: 700; letter-spacing: .14em; color: #ffb36b; border: 2px dashed rgba(255,179,107,.6); border-radius: 10px; padding: 6px 18px; background: rgba(242,128,31,.08); }
.offer-clock { border-left: 1px solid var(--ink-3); padding-left: 32px; }
.offer-clock-label { margin: 0 0 4px; font-size: var(--step--1); }
.offer-clock-time { font-family: var(--mono); font-size: var(--step-2); font-weight: 600; color: #fff !important; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.offer-clock-date { font-size: var(--step--1); margin: 0; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer-clock { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-3); padding-top: 20px; } }
.price .was { color: var(--muted); font-weight: 600; font-size: .55em; margin-right: .2em; text-decoration-thickness: 2px; }
.dl-offer { font-size: var(--step--1); color: var(--muted); margin: 10px 0 0; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ private stats */
.stats-login { display: grid; gap: 10px; margin-top: 24px; }
.stats-login input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--r-s); background: var(--card); color: var(--text); }
.stats-login .btn { justify-self: start; margin-top: 6px; }
.stats-error { color: #d6453d; margin: 0; }
.stats-head h1 { font-size: var(--step-4); margin-bottom: .2em; }
.stats-head p { color: var(--muted); }
.stats-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.stats-periods section { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 18px 20px; }
.stats-periods h2 { font-size: var(--step--1); color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.stats-periods dl { margin: 0; display: grid; gap: 6px; }
.stats-periods dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stats-periods dt { color: var(--muted); font-size: var(--step--1); }
.stats-periods dd { margin: 0; font-size: var(--step-2); font-weight: 750; font-variant-numeric: tabular-nums; }
.stats-periods .dl dd { color: var(--out); }
.stats-note { color: var(--muted); font-size: var(--step--1); margin-top: 12px; }
.stats-block { margin-top: 40px; }
.stats-block h2 { font-size: var(--step-1); }
.stats-block table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stats-block td, .stats-block th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.stats-block th { color: var(--muted); font-size: var(--step--1); font-weight: 600; border-bottom: 2px solid var(--text); }
.stats-block .num { text-align: right; font-variant-numeric: tabular-nums; width: 90px; }
.stats-daily .bar-col { width: 40%; padding-left: 16px; }
.stats-daily .bar { display: block; height: 10px; border-radius: 3px; background: var(--in); min-width: 1px; }
.stats-daily tr.is-today td { font-weight: 700; }
.stats-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stats-cols td:first-child { word-break: break-all; }
@media (max-width: 900px) { .stats-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-cols { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 560px) { .stats-daily .bar-col { display: none; } }
