/* Unplug site. Plain CSS, black and white, self-hosted Questrial, no third parties. */
@font-face {
  font-family: "Questrial";
  src: url("/assets/fonts/questrial.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a6a6a6;
  --line: #2a2a2a;
  --font: "Questrial", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #5a5a5a;
    --line: #e2e2e2;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 var(--font);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
.wrap { width: 100%; max-width: 62.5rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 9vw, 4.75rem); letter-spacing: -0.03em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* header / footer */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: inline-flex; color: var(--fg); text-decoration: none; }
.nav { display: flex; gap: 1.2rem; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; padding: .35rem 0; color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: underline; }
.logo { display: block; color: var(--fg); }
.logo-xs { height: 1.5rem; width: auto; }
.logo-sm { height: 2rem; width: auto; }
.logo text { font-family: Helvetica, Arial, sans-serif; }
.site-footer { border-top: 1px solid var(--line); margin-top: 5rem; padding: 2rem 0 3rem; font-size: .95rem; }
.foot { display: grid; gap: .8rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--fg); }

/* hero */
.hero { padding: 4.5rem 0 3rem; }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: clamp(1.1rem, 3.5vw, 1.4rem); color: var(--muted); max-width: 34rem; margin: 0 0 2rem; }
.soon { margin: 0; color: var(--fg); }

/* sections */
.sec { padding: 3rem 0; }
.label { font-size: .85rem; letter-spacing: .08em; text-transform: lowercase; color: var(--muted); margin: 0 0 1.75rem; }

/* private */
.private { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; font-size: clamp(1.2rem, 4vw, 1.6rem); line-height: 1.3; }
.private li { border-top: 1px solid var(--line); padding-top: 1rem; }

/* prose pages */
.prose { max-width: 44rem; padding-top: 2.5rem; }
.prose h1 { font-size: clamp(2rem, 7vw, 3rem); }
.prose h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.prose dt { margin-top: 1rem; }
.prose dd { margin: .2rem 0 0; color: var(--muted); }
.prose li { margin-bottom: .4rem; }
.prose strong { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.prose summary { cursor: pointer; }
.nf { padding: 5rem 1.25rem; }
.btn { display: inline-block; border: 1px solid var(--fg); color: var(--fg); padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none; }
.btn:hover { background: var(--fg); color: var(--bg); }

@media (min-width: 52rem) {
  .hero { padding: 6.5rem 0 4rem; }
  .private { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .foot { grid-template-columns: auto 1fr auto; align-items: center; }
  .foot nav { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.nav .cur { color: var(--fg); }

/* at a glance, steps, faq */
.def { font-size: clamp(1.1rem, 3.5vw, 1.3rem); max-width: 40rem; margin: 0 0 2rem; }
.facts, .steps { list-style: none; margin: 0; padding: 0; max-width: 44rem; counter-reset: step; }
.facts li, .steps li { border-top: 1px solid var(--line); padding: .8rem 0; }
.facts li:last-child, .steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; }
.steps li::before { content: counter(step); color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: .9rem 0; max-width: 44rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: var(--muted); }

/* cookie notice and footer control */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--fg); }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin: 0 auto; z-index: 20; background: var(--bg); color: var(--fg); border: 1px solid var(--fg); border-radius: 12px; padding: 1rem 1.1rem; font-size: .92rem; }
.consent p { margin: 0 0 .8rem; color: var(--fg); }
.consent a { color: var(--fg); }
.consent-row { display: flex; gap: .6rem; }
.consent-btn { flex: 1; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--fg); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; }
.consent-btn:hover { background: var(--fg); color: var(--bg); }

/* blog and articles */
.post { max-width: 38rem; padding-top: 2rem; line-height: 1.7; }
.post h1 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: .5em; }
.post h2 { font-size: 1.3rem; margin: 2.6rem 0 .8rem; }
.post p, .post ul, .post ol { margin: 0 0 1.1rem; }
.post li { margin-bottom: .5rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.byline { color: var(--muted); font-size: .95rem; margin: 0 0 2rem; }
.tldr { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem 0; margin: 0 0 2rem; }
.tldr h2 { font-size: .85rem; letter-spacing: .08em; text-transform: lowercase; color: var(--muted); margin: 0 0 .7rem; }
.tldr ul { padding-left: 1.2rem; }
.refs { padding-left: 1.4rem; font-size: .95rem; color: var(--muted); }
.refs li { border-top: 1px solid var(--line); padding: .7rem 0 .2rem; margin: 0; overflow-wrap: anywhere; }
.refs li:last-child { border-bottom: 1px solid var(--line); }
.refs a { color: var(--fg); }
.post :target { scroll-margin-top: 1.5rem; }
.postlist { list-style: none; margin: 0; padding: 0; max-width: 38rem; }
.postlist li { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.postlist li:last-child { border-bottom: 1px solid var(--line); }
.postlist h2 { font-size: 1.3rem; margin: 0 0 .3rem; }
.postlist p { margin: 0 0 .3rem; color: var(--muted); }
.postlist time { font-size: .9rem; color: var(--muted); }

/* home redesign (scoped classes only) */
.hx { position: relative; padding: 2.5rem 0 4rem; overflow: hidden; }
.hx-grid { display: grid; gap: 3.5rem; align-items: center; }
.hx-eyebrow { margin: 0 0 1.5rem; font-size: .95rem; letter-spacing: .04em; color: var(--muted); text-transform: lowercase; }
.hx-title { font-size: clamp(3rem, 9vw, 6.5rem); letter-spacing: -0.03em; line-height: 1.02; font-weight: 400; margin: 0 0 .35em; }
.hx-lead { font-size: clamp(1.2rem, 3.6vw, 1.7rem); line-height: 1.4; color: var(--muted); max-width: 30rem; margin: 0 0 2.25rem; }
.hx-visual { position: relative; display: flex; justify-content: center; }
.hx-visual::before { content: ""; position: absolute; width: 150%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,255,255,.07), rgba(255,255,255,0)); pointer-events: none; }
.hx-phone, .sc-wrap { --w: 16.5rem; }
.hx-phone, .sc-phone { --hx-edge: rgba(255,255,255,.22); position: relative; box-sizing: border-box; width: var(--w); height: calc((var(--w) - 18px) * 1070 / 540 + 18px); padding: 8px; border: 1px solid var(--hx-edge); border-radius: 42px; background: var(--bg); }
.hx-phone { animation: hx-rise 900ms cubic-bezier(.2,.7,.2,1) both; }
.hx-phone::after, .sc-phone::after { content: ""; position: absolute; top: 15px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--hx-edge); z-index: 2; }
.hx-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.hx-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; animation: hx-fade 12s ease-in-out infinite both; }
.hx-screen img:nth-child(1) { opacity: 1; animation-name: hx-fade-first; animation-fill-mode: none; }
.hx-screen img:nth-child(2) { animation-delay: 4s; }
.hx-screen img:nth-child(3) { animation-delay: 8s; }
@keyframes hx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { 0% { opacity: 0; } 4% { opacity: 1; } 29% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hx-fade-first { 0% { opacity: 1; } 29% { opacity: 1; } 33% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }

.hx-mirror { padding: 5rem 0; }
.hx-mirror p { font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--muted); max-width: 40rem; margin: 0 0 1.6em; }
.hx-mirror p:last-child { color: var(--fg); margin-bottom: 0; }

.hx-benefits { padding: 2rem 0 4rem; }
.hx-benefits .wrap > div { border-top: 1px solid var(--line); padding: 2.25rem 0; display: grid; gap: .6rem; }
.hx-benefits .wrap > div:last-child { border-bottom: 1px solid var(--line); }
.hx-benefits h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); letter-spacing: -0.02em; margin: 0; }
.hx-benefits p { margin: 0; color: var(--muted); max-width: 34rem; }

.hx-identity { padding: 5rem 0 3rem; }
.hx-identity h2 { font-size: clamp(2rem, 6.5vw, 4rem); letter-spacing: -0.03em; margin: 0 0 1.2em; max-width: 46rem; }
.hx-identity h3 { font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 0 0 .4em; }
.hx-identity p { margin: 0; color: var(--muted); }

.hx-close { padding: 5rem 0 2rem; text-align: center; }
.hx-close h2 { font-size: clamp(2.2rem, 7vw, 4.5rem); letter-spacing: -0.03em; margin: 0 0 .5em; }

.hx-details { font-size: .98rem; }
.hx-details .label { margin-bottom: 0; }
.hx-details-head { padding-top: 3rem; }
.hx-details .def { font-size: 1.05rem; }

.hx-page a, .hx-page .linklike { transition: opacity 200ms ease, text-underline-offset 200ms ease, color 200ms ease; }
.hx-page a:hover { text-underline-offset: 7px; }

@keyframes hx-reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: hx-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .reveal.r2 { animation-range: entry 5% entry 50%; }
  .reveal.r3 { animation-range: entry 10% entry 60%; }
}

@media (prefers-color-scheme: light) {
  .hx-phone, .sc-phone { --hx-edge: rgba(0,0,0,.2); }
  .hx-visual::before { background: radial-gradient(closest-side, rgba(0,0,0,.05), rgba(0,0,0,0)); }
}
@media (min-width: 52rem) {
  .hx { padding: 4rem 0 6rem; }
  .hx-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hx-visual { justify-content: flex-end; }
  .hx-phone, .sc-wrap { --w: 17.5rem; }
  .hx-mirror { padding: 8rem 0; }
  .hx-benefits .wrap > div { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: baseline; padding: 2.75rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-phone, .reveal { animation: none !important; opacity: 1; transform: none; }
  .hx-screen img:nth-child(n+2) { opacity: 0 !important; }
}

/* showcase: static by default (also the reduced-motion / no-animation fallback) */
.sc-phone { display: none; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.25rem; }
.sc-shot { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #000; line-height: 0; }
.sc-shot img { display: block; width: 100%; height: auto; }
.sc-cap { margin: .9rem 0 0; display: grid; gap: .25rem; font-size: 1rem; line-height: 1.4; color: var(--fg); }
.sc-idx { font-size: .8rem; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 52rem) { .sc-list { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; } }

/* showcase: animated single phone, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .sc-wrap { position: relative; padding-top: .5rem; }
  .sc-phone { display: block; margin: 0 auto 2.5rem; }
  .sc-list { display: block; }
  .sc-shot { position: absolute; top: calc(.5rem + 9px); left: calc(50% - var(--w, 16.5rem) / 2 + 9px); width: calc(var(--w, 16.5rem) - 18px); border: 0; border-radius: 34px; opacity: 0; animation: sc-shot 30s linear infinite both; animation-delay: var(--d); }
  .sc-list li:first-child .sc-shot { opacity: 1; }
  .sc-list li { --d: 0s; padding: 1.1rem 0; border-top: 1px solid var(--line); }
  .sc-list li:nth-child(2) { --d: 5s; } .sc-list li:nth-child(3) { --d: 10s; } .sc-list li:nth-child(4) { --d: 15s; } .sc-list li:nth-child(5) { --d: 20s; } .sc-list li:nth-child(6) { --d: 25s; }
  .sc-list li:last-child { border-bottom: 1px solid var(--line); }
  .sc-cap { margin: 0; display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.25rem, 3.2vw, 1.9rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--muted); animation: sc-cap 30s linear infinite both; animation-delay: var(--d); }
  .sc-idx { flex: none; }
  @keyframes sc-shot { 0% { opacity: 0; } 3% { opacity: 1; } 13.667% { opacity: 1; } 16.667% { opacity: 0; } 100% { opacity: 0; } }
  @keyframes sc-cap { 0% { color: var(--muted); transform: none; } 3% { color: var(--fg); transform: translateX(6px); } 13.667% { color: var(--fg); transform: translateX(6px); } 16.667% { color: var(--muted); transform: none; } 100% { color: var(--muted); transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 52rem) {
  .sc-wrap { display: grid; grid-template-columns: auto 1fr; gap: 5rem; align-items: start; }
  .sc-phone { margin: 0; }
  .sc-shot { left: calc(1.25rem + 9px); }
  .sc-list { align-self: center; }
}
