/* dorwij.to — landing, direction C: "Metka" (the hang tag).
 *
 * Colour-blocked and physical. A heather-lilac field, a real sweater cut out of its photo and
 * hung on a rail, and next to it a card hanging from the same rail: the app's observation row,
 * printed on both sides. When the size comes back, the card spins on its string and lands on
 * the other side — the row in its one loud shape — and the phone below lights up.
 *
 * Why lilac: it is a fashion colour, it is the far side of the hue wheel from the product's
 * green, and so the one green thing on the page (the buyable row) is also the loudest thing on
 * it. Lilac never carries a state; it is scenery, like the photo.
 *
 * The rail is the page's one structural device: the hero hangs from it, the three steps hang
 * from it in order, and the form hangs from it at the end.
 *
 * CSP-clean: no inline styles; the scripts only flip data attributes. Production port of
 * design/020-landing/direction-c (plan 020 §A); also styles /potwierdz (the `.confirm` block).
 *
 * States the stylesheet draws on its own, before and without any script:
 *   - no JavaScript (`:root:not([data-js])`, the flag landing-boot.js sets): the hero's end
 *     state — the card turned, the notification on the lock screen — and no send button;
 *   - reduced motion: the same end state from the first paint, nothing moves, no replay.
 */

/* ─── fonts (self-hosted; the product's two faces) ──────────────────────────────────── */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  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;
}

/* Arial scaled to Public Sans' widths, so the swap re-wraps nothing (measured for B). */
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 550;
  size-adjust: 103.3%;
  ascent-override: 92%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 551 900;
  size-adjust: 99%;
  ascent-override: 96%;
  descent-override: 23.2%;
  line-gap-override: 0%;
}

/* A monospace fallback with Plex Mono's advance (0.6em) and vertical metrics, so the swap
   re-wraps nothing inside the hang tag (the prototype's one source of layout shift: the tag's
   mono line re-measured when Plex replaced Consolas, whose advance is 0.55em). */
@font-face {
  font-family: "IBM Plex Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine");
  size-adjust: 100%;
  ascent-override: 102.5%;
  descent-override: 27.5%;
  line-gap-override: 0%;
}

/* ─── tokens: theme.css where it exists, plus the field ─────────────────────────────── */

:root {
  color-scheme: light dark;
  --sans: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* the product's paper and ink (theme.css, light) */
  --bg: oklch(0.985 0.004 70);
  --surface: oklch(1 0 0);
  --surface-sunken: oklch(0.955 0.005 70);
  --border: oklch(0.9 0.005 70);
  --border-strong: oklch(0.82 0.006 70);
  --control-edge: oklch(0.58 0.006 70);
  --text: oklch(0.2 0.008 60);
  --text-muted: oklch(0.48 0.008 60);
  --live: oklch(0.52 0.155 155);
  --live-field: oklch(0.955 0.035 155);
  --on-live: oklch(1 0 0);
  --focus: oklch(0.55 0.16 250);
  /* green as TEXT on the lilac field (the wordmark's .to) and on the card (its status word):
     the fill green's darker twin. Dark needs no twin: there it is the fill green itself. */
  --live-ink: oklch(0.45 0.14 155);

  /* the field: heather. Scenery only — it never marks a state. */
  --field: oklch(0.875 0.05 300);
  --field-deep: oklch(0.82 0.06 300);
  /* muted text ON the field: the paper's muted grey drops to 4.3:1 on lilac, this is 5.6:1 */
  --field-muted: oklch(0.4 0.035 300);
  --field-edge: oklch(0.36 0.02 300);

  /* the rail: brushed steel, lit from above */
  --rail-hi: oklch(0.93 0.004 270);
  --rail-mid: oklch(0.72 0.006 270);
  --rail-lo: oklch(0.45 0.008 270);
  --string: oklch(0.3 0.01 60);

  /* the care label: satin, and the knit it is sewn into */
  --satin: oklch(0.985 0.003 90);
  --satin-shade: oklch(0.93 0.004 90);
  --satin-ink: oklch(0.34 0.01 60);
  --knit: oklch(0.42 0.085 40);
  --knit-rib: oklch(0.34 0.075 38);

  --lift: 0 1px 2px oklch(0.2 0.02 300 / 10%), 0 14px 28px -10px oklch(0.25 0.05 300 / 35%);
  --shadow-row: 0 1px 2px oklch(0.2 0.008 60 / 6%);
  --sweater-filter: drop-shadow(0 18px 18px oklch(0.25 0.05 300 / 28%));
  --rib-filter: none;

  --r-control: 8px;
  --r-row: 14px;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --ease: cubic-bezier(0.22, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.155 0.006 250);
    --surface: oklch(0.205 0.007 250);
    --surface-sunken: oklch(0.175 0.006 250);
    --border: oklch(0.32 0.009 250);
    --border-strong: oklch(0.42 0.01 250);
    --control-edge: oklch(0.58 0.01 250);
    --text: oklch(0.94 0.004 250);
    --text-muted: oklch(0.7 0.008 250);
    --live: oklch(0.72 0.135 155);
    --live-field: oklch(0.3 0.055 155);
    --on-live: oklch(0.16 0.02 155);
    --focus: oklch(0.72 0.13 250);

    /* the field at night: aubergine, low chroma — the same hue, not a new colour */
    --field: oklch(0.235 0.035 300);
    --field-deep: oklch(0.2 0.03 300);
    --field-muted: oklch(0.8 0.025 300);
    --field-edge: oklch(0.85 0.02 300);

    --rail-hi: oklch(0.8 0.005 270);
    --rail-mid: oklch(0.58 0.006 270);
    --rail-lo: oklch(0.34 0.008 270);
    --string: oklch(0.8 0.01 300);

    --satin: oklch(0.9 0.004 90);
    --satin-shade: oklch(0.82 0.005 90);
    --satin-ink: oklch(0.26 0.01 60);
    --knit: oklch(0.36 0.075 40);
    --knit-rib: oklch(0.28 0.06 38);

    --lift: 0 16px 32px -12px oklch(0 0 0 / 60%);
    --shadow-row: none;

    --live-ink: var(--live);
    --sweater-filter: brightness(0.94) drop-shadow(0 18px 24px oklch(0 0 0 / 55%));
    --rib-filter: brightness(0.8);
  }
}

/* The same night when it is CHOSEN (Ustawienia › Wygląd, the landing's button: public/theme.js),
   whatever the system says. Keep this block identical to the one above:
   test/spa-rules.test.ts compares them. */
:root[data-theme="dark"] {
  --bg: oklch(0.155 0.006 250);
  --surface: oklch(0.205 0.007 250);
  --surface-sunken: oklch(0.175 0.006 250);
  --border: oklch(0.32 0.009 250);
  --border-strong: oklch(0.42 0.01 250);
  --control-edge: oklch(0.58 0.01 250);
  --text: oklch(0.94 0.004 250);
  --text-muted: oklch(0.7 0.008 250);
  --live: oklch(0.72 0.135 155);
  --live-field: oklch(0.3 0.055 155);
  --on-live: oklch(0.16 0.02 155);
  --focus: oklch(0.72 0.13 250);

  /* the field at night: aubergine, low chroma — the same hue, not a new colour */
  --field: oklch(0.235 0.035 300);
  --field-deep: oklch(0.2 0.03 300);
  --field-muted: oklch(0.8 0.025 300);
  --field-edge: oklch(0.85 0.02 300);

  --rail-hi: oklch(0.8 0.005 270);
  --rail-mid: oklch(0.58 0.006 270);
  --rail-lo: oklch(0.34 0.008 270);
  --string: oklch(0.8 0.01 300);

  --satin: oklch(0.9 0.004 90);
  --satin-shade: oklch(0.82 0.005 90);
  --satin-ink: oklch(0.26 0.01 60);
  --knit: oklch(0.36 0.075 40);
  --knit-rib: oklch(0.28 0.06 38);

  --lift: 0 16px 32px -12px oklch(0 0 0 / 60%);
  --shadow-row: none;

  --live-ink: var(--live);
  --sweater-filter: brightness(0.94) drop-shadow(0 18px 24px oklch(0 0 0 / 55%));
  --rib-filter: brightness(0.8);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

/* ─── base ──────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Blue is the only blue in the product and means only "keyboard is here". The paper halo keeps
   the ring at 3:1 against the lilac as well as against the paper. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--bg);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.5rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: var(--r-control);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
}

/* ─── wordmark (Logo.tsx) ───────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}
.logo .tld {
  color: var(--live);
}
/* On the lilac field the light green of the wordmark needs its dark twin. */
.top .logo .tld {
  color: var(--live-ink);
}
.logo--sm {
  font-size: 1.25rem;
}

/* ─── top bar, on the field ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(var(--gutter), (100% - var(--max)) / 2);
  background: var(--field);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* the links and the light/dark switch after them keep together on the right */
  margin-left: auto;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--r-control);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.top-nav a:hover {
  background: var(--field-deep);
}
.top-login {
  box-shadow: inset 0 0 0 1.5px var(--text);
}

.top-nav a {
  white-space: nowrap;
}

@media (max-width: 30em) {
  .top-nav a[href="#jak"] {
    display: none;
  }
}
/* The light/dark switch: a 44px square beside the links, the same weight as they are. It shows
   where it would take you: the moon while the page is light, the sun while it is dark. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: -0.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--field-deep);
}
.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle[aria-pressed="true"] .theme-icon--moon,
.theme-toggle[aria-pressed="false"] .theme-icon--sun {
  display: none;
}

/* Below 360 px the wordmark, "Pytania" and "Zaloguj się" do not fit on one line. */
@media (max-width: 22.4em) {
  .top-nav a[href="#pytania"] {
    display: none;
  }
}

/* ─── hero: the field ───────────────────────────────────────────────────────────────── */

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "rail"
    "stage";
  padding: 0 var(--gutter);
  background: var(--field);
  /* The band's lower edge is a cut: the phone rises from behind it. */
  overflow: clip;
}

.hero-copy {
  grid-area: copy;
  container-type: inline-size;
  padding: clamp(1.25rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}

/* "Powiadomienia," is the longest word and cannot wrap; 13.5cqi keeps it inside its column
   wherever the column is narrow for the viewport (e.g. 1024 px, two columns). */
h1 {
  max-width: 11.5em;
  font-size: min(clamp(2.45rem, 1.55rem + 3.6vw, 4.25rem), 13.5cqi);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  color: var(--field-muted);
  text-wrap: pretty;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.375rem;
  border: 0;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.2, 0, 0.4, 1), background-color 140ms;
}
.btn:active {
  transform: scale(0.97);
}

/* Ink, never green: green is "buyable at your price" and nothing else (017). */
.btn--ink {
  background: var(--text);
  color: var(--bg);
}
.btn--ink:hover {
  background: color-mix(in oklab, var(--text) 84%, var(--bg));
}

.btn--line {
  box-shadow: inset 0 0 0 1.5px var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.btn--line:hover {
  background: var(--field-deep);
}

.btn--wide {
  width: 100%;
}

@media (max-width: 30em) {
  .ctas .btn {
    width: 100%;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--field-muted);
}
.facts li:not(:last-child)::after {
  content: "·" / "";
  margin: 0 0.6rem;
}

/* ─── the rail ──────────────────────────────────────────────────────────────────────── */

.rail {
  grid-area: rail;
  position: relative;
  z-index: 1;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(var(--rail-hi) 0 20%, var(--rail-mid) 55%, var(--rail-lo));
  box-shadow: 0 3px 4px -1px oklch(0.2 0.03 300 / 35%);
}

/* End brackets: the rail is mounted, not floating. */
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 9px;
  height: 22px;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(90deg, var(--rail-lo), var(--rail-mid) 45%, var(--rail-lo));
}
.rail::before {
  left: -3px;
}
.rail::after {
  right: -3px;
}

/* ─── the stage ─────────────────────────────────────────────────────────────────────── */

.hero-visual {
  grid-area: stage;
  margin: 0 calc(var(--gutter) * -1);
}

.stage {
  position: relative;
  height: 140cqw;
  container-type: size;
  /* the stage's own width is the unit for everything in it */
}
.hero-visual {
  container-type: inline-size;
}

/* The hook sits ON the rail: the image is lifted by the rail's height plus the share of the
   photo above the hook's inner curve (34 of 2530 px). */
.sweater {
  position: absolute;
  z-index: 2;
  left: 3cqw;
  top: -7px;
  width: 56cqw;
  transform: translateY(-1.34%);
  filter: var(--sweater-filter);
}
.sweater img {
  width: 100%;
}

/* The card hangs from the rail on a string; it swings about the point where the string meets
   the rail, and spins about the string itself. */
.hang {
  --drop: 11cqw;
  position: absolute;
  z-index: 3;
  right: 3cqw;
  top: var(--drop);
  width: 58cqw;
  font-size: calc(58cqw / 17.5);
  perspective: 70em;
  transform-origin: 50% calc(var(--drop) * -1 - 7px);
}

.string {
  position: absolute;
  left: 50%;
  top: calc(var(--drop) * -1 - 7px);
  width: 1.5px;
  height: calc(var(--drop) + 7px + 1.15em);
  margin-left: -0.75px;
  background: var(--string);
}

.card {
  position: relative;
  transform-style: preserve-3d;
}

.face {
  display: flex;
  flex-direction: column;
  padding: 2.35em 1em 1em;
  border: 1px solid var(--border);
  border-radius: 1.6em 1.6em var(--r-row) var(--r-row);
  corner-shape: bevel bevel round round;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--lift);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* the punched hole: the string shows through it */
  -webkit-mask: radial-gradient(circle at 50% 1.15em, #0000 0.3em, #000 0.34em);
  mask: radial-gradient(circle at 50% 1.15em, #0000 0.3em, #000 0.34em);
}

/* the reinforcement ring around the hole */
.face::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.15em;
  width: 1.2em;
  height: 1.2em;
  margin: -0.6em 0 0 -0.6em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.24em var(--border-strong);
}

/* The live side is in the flow, so the card is always the size of its louder side; the resting
   side lies on top of it, facing the other way. It is on top by source order alone: a z-index
   here takes it out of the card's 3D context in Firefox, which then paints it over the live
   side, mirrored, at every angle. */
.face--rest {
  position: absolute;
  inset: 0;
}
.face--rest .obs-when {
  margin-top: 0.9em;
}
/* The front of a hang tag carries the maker's name; the resting side has room for it. */
.face-brand {
  display: grid;
  place-items: center;
  flex: 1;
  padding-top: 0.5em;
  font-size: 1.6em;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}
.face-brand .tld {
  color: var(--live);
}
.face-brand span {
  grid-row: 1;
}
.face-brand {
  grid-auto-flow: column;
  justify-content: center;
  align-content: center;
}

.face--live {
  border-color: var(--live);
  background: var(--live-field);
  transform: rotateY(180deg);
}
.face--live::before {
  box-shadow: inset 0 0 0 0.24em color-mix(in oklab, var(--live) 45%, var(--live-field));
}

/* ─── the observation row, in em, so the card can be any size ───────────────────────── */

.obs-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 0.6em;
  font-size: max(0.72em, 11px);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--live-ink);
}

.status-mark {
  width: 0.7em;
  height: 0.7em;
  flex: none;
  border-radius: 1px;
  background: currentColor;
}

.obs-head {
  display: flex;
  gap: 0.75em;
  align-items: flex-start;
}

.thumb,
.thumb img {
  width: 3.5em;
  height: 4.5em;
  flex: none;
  border-radius: 0.5em;
  object-fit: cover;
}

.obs-id {
  min-width: 0;
  flex: 1;
}

.obs-title {
  font-size: 1.0625em;
  line-height: 1.35;
  font-weight: 650;
}

.obs-sub {
  margin-top: 0.3em;
  font-size: max(0.84em, 13px);
  line-height: 1.4;
  color: var(--text-muted);
}

.price-live {
  margin-top: 0.9em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.125em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.price-live span {
  margin-left: 0.25em;
  /* "zł" is part of the price a person reads: never under the 13 px floor */
  font-size: max(0.44em, 13px);
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  min-height: 3.25em;
  margin-top: 0.9em;
  padding: 0.6em 0.75em;
  border-radius: 0.5em;
  background: var(--live);
  color: var(--on-live);
  font-size: 1.0625em;
  font-weight: 700;
  text-align: center;
}
.buy small {
  font-size: max(0.68em, 11px);
  font-weight: 500;
  text-wrap: balance;
}

.obs-when {
  margin-top: 0.75em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: max(0.8em, 11px);
  line-height: 1.4;
  color: var(--text-muted);
}

/* ─── the phone, rising from behind the field's lower edge ──────────────────────────── */

.phone {
  position: absolute;
  z-index: 4;
  left: 4cqw;
  top: 88cqw;
  width: 50cqw;
  aspect-ratio: 9 / 19.5;
  container-type: inline-size;
  padding: 2.6%;
  border-radius: 13% / 6%;
  background: oklch(0.13 0.005 250);
  box-shadow:
    inset 0 0 0 1px oklch(0.4 0.005 250),
    0 -2px 30px -6px oklch(0.2 0.05 300 / 40%);
  rotate: -4deg;
  transform-origin: 50% 100%;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 11% / 5.2%;
  color: oklch(0.98 0 0);
  background:
    radial-gradient(90% 55% at 30% 8%, oklch(0.52 0.08 300) 0%, transparent 70%),
    radial-gradient(80% 50% at 90% 40%, oklch(0.42 0.07 330) 0%, transparent 70%),
    linear-gradient(180deg, oklch(0.3 0.05 295), oklch(0.16 0.02 290));
}

.phone-cam {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  width: 3.4cqw;
  height: 3.4cqw;
  margin-left: -1.7cqw;
  border-radius: 50%;
  background: oklch(0.06 0 0);
}

.phone-date {
  padding-top: 13.5cqw;
  text-align: center;
  font-size: max(11px, 4.6cqw);
  font-weight: 550;
}

.phone-clock {
  text-align: center;
  font-size: 23cqw;
  font-weight: 280;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.note {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  top: 50cqw;
  padding: 3.6cqw 4.2cqw 4cqw;
  border-radius: 5.5cqw;
  background: oklch(0.97 0.004 300 / 84%);
  color: oklch(0.2 0.008 60);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  font-size: max(13px, 4.6cqw);
  line-height: 1.32;
  opacity: 0;
  transform: translateY(-40%) scale(0.95);
  transition:
    opacity 320ms var(--ease) 120ms,
    transform 520ms var(--ease) 120ms;
}

.note-app {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.86em;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.note-icon {
  width: 1.45em;
  height: 1.45em;
  flex: none;
}

.note-when {
  margin-left: auto;
  text-transform: none;
  opacity: 0.75;
}

.note-title {
  margin-top: 0.45em;
  font-weight: 700;
}

/* ─── the moment ────────────────────────────────────────────────────────────────────── */

/* 1.5 turns, fast off the mark and slow to land: a card on a string does not stop dead. */
@keyframes spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(540deg);
  }
}

@keyframes swing {
  0% {
    rotate: 0deg;
  }
  14% {
    rotate: 4.5deg;
  }
  38% {
    rotate: -2.6deg;
  }
  62% {
    rotate: 1.2deg;
  }
  84% {
    rotate: -0.4deg;
  }
  100% {
    rotate: 0deg;
  }
}

.stage[data-state="spin"] .card {
  animation: spin 1.9s cubic-bezier(0.18, 0.62, 0.22, 1) both;
}
.stage[data-state="spin"] .hang {
  animation: swing 2.4s cubic-bezier(0.3, 0.1, 0.3, 1) both;
}

.stage[data-state="live"] .card {
  transform: rotateY(180deg);
}
.stage[data-state="live"] .note {
  opacity: 1;
  transform: none;
}

/* Without JavaScript nothing moves, so the hero shows its end state: the card already turned
   to its live side and the notification on the lock screen. Reduced motion gets the same end
   state from the first paint — not after landing.js (deferred) has run. */
:root:not([data-js]) .stage .card {
  transform: rotateY(180deg);
}
:root:not([data-js]) .stage .note {
  opacity: 1;
  transform: none;
}
:root:not([data-js]) .replay {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .stage .card {
    transform: rotateY(180deg);
    animation: none !important;
  }
  .stage .hang {
    animation: none !important;
  }
  .stage .note {
    opacity: 1;
    transform: none;
  }
  .replay {
    display: none;
  }
}

.no-anim,
.no-anim * {
  transition: none !important;
  animation: none !important;
}

/* ─── under the field: caption and replay ───────────────────────────────────────────── */

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-top: 0.5rem;
}
.hero .hero-foot {
  margin-top: 0;
}

.caption {
  padding-block: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Present from the start (no shift) but invisible and unfocusable until the moment has played. */
.replay:not([data-ready]) {
  visibility: hidden;
}

.replay {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ─── hero on a phone: text you can read ────────────────────────────────────────────── */

/* The prototype scaled the whole tag with the stage, which left its text at 9–12 px on a
   360 px phone. Now the tag's base size never drops below 13 px (anywhere — see the floors
   on .obs-*, .buy small, .note, .phone-date): the rows a person reads (name, size, price,
   limit, the button, the notification) are at least 13 px, and the micro-labels (the status
   word, "otworzy stronę…", the check times, the lock screen's date) at least 11 px. On a phone
   that makes the tag longer than the stage's proportions allowed, so the geometry below is
   derived from the tag's size rather than from the stage's width. */
@media (max-width: 39.99em) {
  /* --tag-f: the tag's base size. --phone-top: below the tag's live side, which is at most
     26.6 of its ems tall (measured 25.2–26.6 from 320 to 640 px: narrower than 16.5em, the
     name and the check times wrap once more), plus a gap. The stage ends a notification's
     height below the phone's top edge — the field's lower edge cuts the phone there. */
  .stage {
    --tag-f: clamp(13px, calc(60cqw / 16.5), 16px);
    --drop: min(9cqw, 2.5rem);
    --phone-w: min(54cqw, 15.5rem);
    --phone-top: calc(var(--drop) + 26.6 * var(--tag-f) + 22px);
    height: calc(var(--phone-top) + max(228px, 1.05 * var(--phone-w)));
  }
  .sweater {
    left: 2cqw;
    width: 54cqw;
  }
  .hang {
    --drop: min(9cqw, 2.5rem);
    right: 3cqw;
    width: min(60cqw, calc(16.5 * var(--tag-f)));
    font-size: var(--tag-f);
  }
  .obs-status {
    letter-spacing: 0.02em;
  }
  .phone {
    left: 3cqw;
    top: var(--phone-top);
    width: var(--phone-w);
  }
  .phone-date {
    padding-top: 11cqw;
    font-size: max(11px, 5.6cqw);
  }
  .phone-clock {
    font-size: 19cqw;
  }
  .note {
    left: 3.5cqw;
    right: 3.5cqw;
    top: 39cqw;
    padding: 3.4cqw 4cqw 3.8cqw;
    font-size: max(13px, 6.9cqw);
    line-height: 1.28;
  }
}

/* ─── hero, wider screens ───────────────────────────────────────────────────────────── */

@media (min-width: 40em) {
  .stage {
    height: 96cqw;
  }
  .sweater {
    left: 6cqw;
    width: 46cqw;
  }
  .hang {
    --drop: 7cqw;
    right: 5cqw;
    width: 44cqw;
    font-size: clamp(13px, calc(44cqw / 17.5), 1rem);
  }
  .phone {
    left: 8cqw;
    top: 56cqw;
    width: 34cqw;
  }
}

@media (min-width: 64em) {
  .band {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "rail rail"
      "copy stage";
    column-gap: clamp(2rem, 4vw, 4rem);
    padding: 0 max(var(--gutter), (100% - var(--max)) / 2);
  }
  .rail {
    margin-top: 0.5rem;
  }
  .hero-copy {
    align-self: start;
    padding: 3.25rem 0 3.5rem;
  }
  .hero-visual {
    margin: 0;
  }
  /* never shorter than the lock screen needs: the notification's text keeps its 13 px floor
     even where the column (and so the phone) is narrow, around 1024 px */
  .stage {
    height: max(90cqw, calc(56cqw + 14rem));
  }
  .sweater {
    left: 0;
    width: 58cqw;
  }
  .hang {
    --drop: 9cqw;
    right: 0;
    width: 44cqw;
    font-size: clamp(13px, calc(44cqw / 17), 1rem);
  }
  .phone {
    left: 6cqw;
    top: 56cqw;
    width: 40cqw;
  }
  .phone-date {
    padding-top: 11cqw;
  }
  .phone-clock {
    font-size: 19cqw;
  }
  .note {
    top: 39cqw;
  }
}

/* ─── sections ──────────────────────────────────────────────────────────────────────── */

.stories,
.how,
.can,
.shops,
.fair,
.faq,
.hero-foot,
.foot {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: clamp(4.5rem, 10vw, 7.5rem) auto 0;
  padding: 0 var(--gutter);
}

/* Below the hero, a section is laid out and painted when it comes near the viewport rather than
   all at the first paint. The first layout of the whole page measured ~175 ms on a mid desktop
   (four times that on Lighthouse's phone, one long task), a third of it for sections nobody
   sees yet; with this it is the hero plus what is near it. `auto` remembers a section's real
   height once it has been rendered; 40rem only stands in until then — and a jump across
   stand-ins would land by them, so landing.js sets `data-full` (everything laid out for real)
   on the click of an in-page link, before the browser scrolls, and at load when the address
   has a fragment or the browser is restoring a scroll position. Without JavaScript nothing is
   deferred. content-visibility brings paint containment, which would clip the step tags' and
   the care label's shadows at their section's lower edge: the padding/negative-margin pair
   below gives them room without moving anything (it collapses with the next section's margin).
   Screen only: a printout (or anything else that renders the whole page at once) gets it all. */
@media screen {
  :root[data-js]:not([data-full]) :is(.how, .can, .shops, .fair, .faq, .ask, .foot) {
    content-visibility: auto;
    contain-intrinsic-size: auto 40rem;
  }
}
.how,
.fair {
  padding-bottom: 2.5rem;
  margin-bottom: -2.5rem;
}

.sec-head {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sec-head p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ─── how it works: three tags, in order, on one cord ───────────────────────────────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

/* On a phone the tags are strung on one cord, top to bottom, through their holes. */
.steps::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.5rem;
  bottom: 3rem;
  width: 1.5px;
  margin-left: -0.75px;
  background: var(--string);
  opacity: 0.55;
}

/* Strung on the cord, a tag keeps a tag's proportions: it does not stretch to a tablet's width. */
.step {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  min-width: 0;
}

.tag {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  min-width: 0;
  align-content: start;
  height: 100%;
  padding: 2.6rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem 1.5rem var(--r-row) var(--r-row);
  corner-shape: bevel bevel round round;
  background: var(--surface);
  box-shadow: var(--shadow-row), 0 10px 24px -14px oklch(0.2 0.02 60 / 22%);
  -webkit-mask: radial-gradient(circle at 50% 1.2rem, #0000 0.34rem, #000 0.38rem);
  mask: radial-gradient(circle at 50% 1.2rem, #0000 0.34rem, #000 0.38rem);
}
.tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.2rem;
  width: 1.3rem;
  height: 1.3rem;
  margin: -0.65rem 0 0 -0.65rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.26rem var(--border);
}

.step-no {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.step-no::before {
  content: "Krok " / "";
}

.tag h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.tag > p:not(.step-no) {
  color: var(--text-muted);
}

.frag {
  min-width: 0;
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: var(--r-control);
  background: var(--surface-sunken);
  font-size: 0.9375rem;
}

.frag-label {
  font-size: 0.71875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.frag-label--gap {
  margin-top: 1rem;
}

.frag-field {
  margin-top: 0.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--control-edge);
  border-radius: var(--r-control);
  background: var(--surface);
  font-size: 0.9375rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.frag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.625rem;
  border-radius: var(--r-control);
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 650;
}

/* ColorPicker.tsx: photo crops, the chosen one ringed in ink with a tick, its name below. */
.swatches {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 4.25rem;
  border-radius: var(--r-control);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.swatch img {
  width: 2.5rem;
  height: auto;
}
.swatch--picked {
  box-shadow: inset 0 0 0 2.5px var(--text);
}
.swatch--picked::after {
  content: "";
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--text);
}
/* its tick, centred on the badge (badge centre = 0.2rem in from the swatch's top-right corner) */
.swatch--picked::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: calc(0.2rem - 3px);
  top: calc(0.2rem - 5.5px);
  width: 4px;
  height: 7px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.swatch-name {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* SizePicker.tsx: every chip names its state in a word; "picked" is a thicker ink edge. */
/* Equal chips while they fit; a chip never gets narrower than its word ("wybrany" is the long
   one) — the others give way. */
.sizes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min-content, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.size {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.125rem;
  min-height: 52px;
  padding-inline: 4px;
  border-radius: var(--r-control);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.size b {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
}
.size i {
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.size--picked {
  box-shadow: inset 0 0 0 2.5px var(--text);
}
.size--picked i {
  color: var(--text);
}

.frag--note {
  border-radius: 1.25rem;
  background: var(--field);
  color: var(--text);
  line-height: 1.35;
}
.frag--note .note-app {
  font-size: 0.75rem;
}
.frag--note .note-when {
  opacity: 1;
  color: var(--field-muted);
}

/* Three tags side by side only when each still has a tag's width. */
@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 3.25rem;
  }
  .step {
    max-width: none;
  }
  /* On a wide screen the cord becomes the rail, and each tag hangs from it on its own string. */
  .steps::before {
    left: -0.5rem;
    right: -0.5rem;
    top: 0;
    bottom: auto;
    width: auto;
    height: 7px;
    margin: 0;
    border-radius: 4px;
    opacity: 1;
    background: linear-gradient(var(--rail-hi) 0 20%, var(--rail-mid) 55%, var(--rail-lo));
    box-shadow: 0 3px 4px -1px oklch(0.2 0.03 60 / 25%);
  }
  .step::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -3.25rem;
    width: 1.5px;
    height: calc(3.25rem + 1.2rem);
    margin-left: -0.75px;
    background: var(--string);
  }
}

/* ─── what it can do ────────────────────────────────────────────────────────────────── */

.feats {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.feat {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.feat-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-icon circle[r=".5"] {
  fill: currentColor;
}

.feat h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.feat p {
  color: var(--text-muted);
}

@media (min-width: 40em) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64em) {
  .feats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── supported shops: a sentence of names ──────────────────────────────────────────── */

.shop-names {
  margin-top: 1.25rem;
  /* reserves the room the names take, so their arrival moves nothing */
  min-height: 5.5rem;
}

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.names li:not(:last-child)::after {
  content: "·" / "";
  margin: 0 0.35em;
  font-weight: 400;
  color: var(--text-muted);
}

.shop-generic {
  max-width: 36rem;
  color: var(--text-muted);
}

.shops-note {
  margin-top: 1.25rem;
  font-weight: 600;
}

.shops-legal {
  margin-top: 0.5rem;
  max-width: 46rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 64em) {
  .shop-names {
    min-height: 3rem;
  }
}

/* ─── honestly: the care label ──────────────────────────────────────────────────────── */

.fair {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.fair-copy {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}
.fair-copy p {
  color: var(--text-muted);
  font-size: 1.125rem;
}
.fair-copy a {
  color: var(--text);
  font-weight: 650;
}

/* A strip of the sweater's own hem rib (cropped from the same photo), running off the edge of
   the page, with the label sewn into it. */
.care-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 1.75rem;
}
.care-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(var(--gutter) * -1);
  top: 0;
  height: 2rem;
  border-radius: 0.4rem 0 0 0.4rem;
  background-color: var(--knit);
  background-image: url("/landing/rib-64.webp");
  background-image: image-set(url("/landing/rib-64.avif") type("image/avif"), url("/landing/rib-64.webp") type("image/webp"));
  background-size: auto 100%;
  background-repeat: repeat-x;
  box-shadow: 0 6px 10px -6px oklch(0.2 0.03 40 / 45%);
  filter: var(--rib-filter);
}

.care {
  position: relative;
  width: min(100%, 14.5rem);
  padding: 2.25rem 1.25rem 2.25rem;
  background:
    linear-gradient(90deg, var(--satin-shade), var(--satin) 18%, var(--satin) 40%, var(--satin-shade) 62%, var(--satin) 84%, var(--satin-shade));
  color: var(--satin-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 24px -12px oklch(0.2 0.02 60 / 35%);
  rotate: -1.5deg;
  transform-origin: 50% 0;
}
/* the seam: where the label goes into the knit, stitched */
.care::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.85rem;
  height: 0;
  border-top: 1.5px dashed color-mix(in oklab, var(--satin-ink) 55%, transparent);
}

.care-title {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.care-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.care-list b {
  font-weight: 400;
}

.care-icons {
  display: block;
  width: 9.5rem;
  height: auto;
  margin: 1.25rem auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-wrap: balance;
}
.care-note + .care-note {
  margin-top: 0.75rem;
}

@media (min-width: 48em) {
  .fair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem 4rem;
  }
  .care-wrap {
    margin-top: 0.5rem;
  }
}

/* ─── questions: stitched dividers ──────────────────────────────────────────────────── */

.faq-list {
  max-width: 50rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1.5px dashed var(--border-strong);
}

.faq details {
  border-bottom: 1.5px dashed var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}

/* plus that turns into a minus: two bars, one of which folds away */
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(var(--text), var(--text)) 50% 50% / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 50% 50% / 2px 100% no-repeat;
  transition: background-size 160ms var(--ease);
}
.faq details[open] summary::after {
  background-size: 100% 2px, 2px 0;
}

.faq details p {
  max-width: 44rem;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
}

/* The way on to the guides (/blog), under the questions they answer at length. */
.faq-more {
  margin-top: 1rem;
  font-weight: 600;
}
.faq-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ─── ask for access: back on the field, the form hanging from the rail ─────────────── */

.ask {
  --ask-pad: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  margin-top: clamp(4.5rem, 10vw, 7.5rem);
  padding: var(--ask-pad) var(--gutter) clamp(3rem, 7vw, 5rem);
  background: var(--field);
}

.rail--ask {
  max-width: var(--max);
  margin: 0 auto;
}

.ask-card {
  position: relative;
  display: grid;
  gap: 2rem;
  max-width: 66rem;
  margin: 3rem auto 0;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.75rem 1.75rem 1.25rem 1.25rem;
  corner-shape: bevel bevel round round;
  background: var(--surface);
  box-shadow: var(--lift);
  -webkit-mask: radial-gradient(circle at 50% 1.4rem, #0000 0.42rem, #000 0.46rem);
  mask: radial-gradient(circle at 50% 1.4rem, #0000 0.42rem, #000 0.46rem);
}
.ask-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.4rem;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.3rem var(--surface-sunken);
}
/* its string, from the rail through the hole */
.ask::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--ask-pad) + 7px);
  width: 1.5px;
  height: calc(3rem + 1.4rem);
  margin-left: -0.75px;
  background: var(--string);
}

.ask-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
  max-width: 30rem;
}
.ask-copy p {
  color: var(--text-muted);
}
.ask-copy a {
  color: var(--text);
  font-weight: 650;
}

.form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 650;
}

.opt {
  margin-left: 0.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

input[type="email"],
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--control-edge);
  border-radius: var(--r-control);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 6rem;
}
/* Plan 025's "Skąd wiesz o dorwij.to?": the native list (the phone's own wheel or sheet), with
   one drawn chevron in place of each browser's own arrow. */
select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 50%, calc(100% - 0.85rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
input[type="email"]:hover,
textarea:hover,
select:hover {
  border-color: var(--text);
}
input[aria-invalid="true"] {
  border-color: var(--text);
  border-width: 2.5px;
}

.field-err,
.form-err,
.noscript {
  font-size: 0.9375rem;
  font-weight: 650;
}

.hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.shop {
  position: relative;
  display: inline-flex;
}

.shop input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* The app's chip: a quiet outline; checked adds a thicker ink edge AND a tick. */
.shop span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.875rem;
  border-radius: var(--r-control);
  box-shadow: inset 0 0 0 1px var(--control-edge);
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
}
.shop span::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.shop input:hover + span {
  box-shadow: inset 0 0 0 1px var(--text);
}
.shop input:checked + span {
  box-shadow: inset 0 0 0 2.5px var(--text);
  background: var(--surface-sunken);
}
.shop input:checked + span::before {
  border-color: var(--text);
  background: var(--text);
}
/* The tick: two borders of a small box, turned — a check, not a slash (a slash in a box reads
   as "excluded"). Positioned against the label (the span must not be positioned, or it would
   cover the invisible checkbox); the 12px box starts 0.875rem into the chip. */
.shop input:checked + span::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: calc(0.875rem + 3px);
  top: 50%;
  width: 4px;
  height: 7px;
  margin-top: -5.5px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.shop input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* The form cannot be sent without a script (the CSP forbids a native submission); the
   <noscript> line inside it says what to do instead. */
:root:not([data-js]) .form .submit {
  display: none;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submit {
  display: grid;
  gap: 0.625rem;
}

.age {
  font-size: 0.9375rem;
  font-weight: 650;
}

.privacy {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.privacy a {
  color: var(--text);
}

/* The success state replaces the form; the live region is always in the tree, and has no box
   while it is empty. */
.done {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.5rem;
  border-radius: var(--r-row);
  background: var(--surface-sunken);
}
.done:empty {
  padding: 0;
}
.done h3 {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.done h3:focus {
  outline: none;
  box-shadow: none;
}
.done p {
  color: var(--text-muted);
}
.done .done-small {
  font-size: 0.875rem;
}

@media (min-width: 64em) {
  .ask-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: 3.5rem;
  }
}

/* ─── footer ────────────────────────────────────────────────────────────────────────── */

.foot {
  margin-top: 0;
  padding-top: 1.75rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
}

.foot-note {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── /potwierdz: the confirmation, the form's card on the same field ───────────────── */

.ask--confirm {
  --ask-pad: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 0;
  padding-bottom: clamp(3.5rem, 9vw, 6rem);
}
/* one column at every width (the landing's form card has two from 64em) */
.ask--confirm .ask-card {
  grid-template-columns: minmax(0, 1fr);
  max-width: 38rem;
}

.confirm {
  display: grid;
  gap: 1.25rem;
}
.confirm h1 {
  max-width: none;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.confirm-intro {
  display: grid;
  gap: 0.75rem;
}
.confirm-intro p {
  color: var(--text-muted);
}
.confirm-why,
.confirm-small {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
/* The live region stays in the tree while empty (so its first message is announced); the
   grid gap is taken back so it does not leave a hole. */
.confirm-result:empty {
  margin-top: -1.25rem;
}

/* Neutral in both outcomes: green on this site means "buyable at your price" and nothing else. */
.confirm-note {
  display: grid;
  gap: 0.625rem;
  padding: 1.25rem;
  border-radius: var(--r-row);
  background: var(--surface-sunken);
}
.confirm-note--error {
  box-shadow: inset 0 0 0 1.5px var(--text);
}
.confirm-note h2 {
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.confirm-note h2:focus {
  outline: none;
  box-shadow: none;
}
.confirm-note a {
  color: var(--text);
  font-weight: 650;
}

/* ─── reduced motion: the end state, arrived at once ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}

/* ─── Znasz to? the three stories ───────────────────────────────────────────────────── */

.story {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--field);
  color: var(--text);
}
.story p {
  color: var(--text);
}
.story .story-turn {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1.5px dashed var(--field-edge);
  font-weight: 650;
}
.stories-cta {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}
/* four stories: two by two from the tablet up (.feats already gives two columns at 40em) */
@media (min-width: 64em) {
  .story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.why-not {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 46rem;
}
.why-not h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.why-not ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.875rem;
}
.why-not li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--field-deep);
}
.why-not > p {
  margin-top: 1.25rem;
  font-weight: 650;
}
