/* Softelio, zaślepka, wariant B: szyba */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2-variations"),
       url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --graphite: oklch(0.19 0.006 60);
  --text:     oklch(0.95 0.006 70);
  --muted:    oklch(0.79 0.01 70);
  --faint:    oklch(0.67 0.01 70);
  --line:     oklch(0.95 0.006 70 / 0.14);
  --signal:   oklch(0.71 0.2 48);
  --draft:    oklch(0.82 0.012 70);

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --lens: 340px;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 4px; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- hero: the drawing, the fogged pane, the wiped spot, the text ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: clamp(56px, 10vh, 112px);
  border-bottom: 1px solid var(--line);
}

.scene, .schem { color: var(--draft); }
.scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* schematic strokes (flat selectors: they style the symbol's clones) */
.ln { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-opacity: 0.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fl { fill: currentColor; fill-opacity: 0.32; }
.hi { stroke: var(--signal); stroke-opacity: 0.95; }
.hif { fill: var(--signal); fill-opacity: 1; }
.lb { font: 500 13px var(--font); fill: currentColor; fill-opacity: 0.72; }
.flow { stroke-dasharray: 3 7; animation: flow 1.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -10; } }

.fog {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: oklch(0.2 0.006 60 / 0.46);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fog { background: oklch(0.2 0.006 60 / 0.9); }
}

/* the wiped spot: a small window onto a crisp copy of the drawing */
.wipe {
  position: absolute; left: 0; top: 0;
  z-index: 2;
  width: var(--lens); height: var(--lens);
  pointer-events: none;
  display: none;
  overflow: hidden;
  background: var(--graphite);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 60%, transparent 100%);
  will-change: transform;
}
html.js .wipe { display: block; }
.wipe-inner { position: absolute; left: 0; top: 0; will-change: transform; }
.wipe .scene { color: oklch(0.94 0.008 70); }

.content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.brand {
  margin-bottom: clamp(28px, 5vh, 48px);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--signal);
}

.claim {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* a text cursor: the page is still being typed */
.claim::after {
  content: "";
  display: inline-block;
  width: 0.07em; height: 0.8em;
  margin-left: 0.1em;
  vertical-align: -0.04em;
  background: var(--signal);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lead {
  margin: 18px auto 0;
  max-width: 36em;
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.reach {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px 20px;
  margin-top: 34px;
}
.btn {
  display: inline-flex; align-items: center;
  min-height: 50px; padding: 0 22px;
  border-radius: 10px;
  background: var(--signal);
  color: var(--graphite);
  font-size: 17px; font-weight: 650;
  text-decoration: none;
  transition: background-color 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn:hover { background: oklch(0.78 0.17 52); }
.reach p { font-size: 15.5px; color: var(--faint); }

/* ---------- terms ---------- */

.terms {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 24px clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.terms h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.terms-note { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--faint); max-width: 16em; }

.terms dl { border-top: 1px solid var(--line); }
.terms dl div {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--line);
}
.terms dt { font-weight: 620; font-size: 16px; }
.terms dd { font-size: 16px; color: var(--muted); max-width: 62ch; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-bottom: 36px;
  font-size: 14.5px; color: var(--faint);
}

/* ---------- small screens, motion ---------- */

@media (max-width: 1000px) {
  .terms { grid-template-columns: 1fr; }
  .terms-note { max-width: none; }
}
@media (max-width: 640px) {
  :root { --lens: 230px; }
  .terms dl div { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .flow, .claim::after { animation: none; }
}
