/* Fonts: Fraunces pinned to SOFT 100, WONK 1 and opsz 144 (soft, slightly wonky, display cut),
   weights 300–700, Latin and German only; Instrument Sans subset the same way. Both OFL.
   ReYule landing page. Editorial and warm: paper, a soft serif, one red, knitted details.
   Every effect is CSS. Scroll-driven parts sit inside @supports and everything respects
   prefers-reduced-motion. The page reads and works the same with no JavaScript at all. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

body.landing {
  --paper: oklch(96.6% 0.017 82);
  --paper-2: oklch(93.2% 0.026 78);
  --card: oklch(98.6% 0.009 85);
  --ink: oklch(23% 0.025 45);
  --muted: oklch(45% 0.03 52);
  --line: oklch(86% 0.03 76);
  --red: oklch(51% 0.185 27);
  --red-deep: oklch(41% 0.155 25);
  /* Filled areas (buttons, ticker, badges) keep a deep red in both themes, so cream text on
     them stays above 4.5:1; --red is the accent for text and lines and brightens in dark mode. */
  --red-fill: oklch(50% 0.18 27);
  --red-fill-hover: oklch(43% 0.16 26);
  --green: oklch(40% 0.08 157);
  --gold: oklch(77% 0.14 82);
  --navy: oklch(31% 0.07 262);
  --night: oklch(24% 0.05 245);
  --kraft: oklch(70% 0.075 68);
  --cream: oklch(95% 0.02 85);
  --focus: var(--green);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
  /* A spring with a little overshoot, for things that get picked up. */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 15.9%, 0.938 20.7%, 1.017 24.3%, 1.061 27.6%, 1.076 30.9%, 1.073 34.2%, 1.039 42.6%, 1.008 51.5%, 0.995 61.6%, 1.001 82.5%, 1);
  --knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16'%3E%3Cpath d='M1.5 2 L9 13 L16.5 2' fill='none' stroke='%23412a14' stroke-opacity='.045' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background: var(--knit) var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body.landing {
    --paper: oklch(18.5% 0.016 50);
    --paper-2: oklch(22% 0.02 50);
    --card: oklch(24% 0.02 52);
    --ink: oklch(94% 0.018 80);
    --muted: oklch(74% 0.03 70);
    --line: oklch(34% 0.025 55);
    --red: oklch(64% 0.17 28);
    --red-deep: oklch(56% 0.16 27);
    --green: oklch(72% 0.11 157);
    --focus: var(--green);
    --kraft: oklch(60% 0.07 68);
    --knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16'%3E%3Cpath d='M1.5 2 L9 13 L16.5 2' fill='none' stroke='%23fff3e0' stroke-opacity='.035' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.landing main { max-width: none; padding: 0; overflow-x: clip; /* full-bleed glow and leaning sweaters never widen the page */ }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-optical-sizing: auto; text-wrap: balance; }
.landing p, .landing dd { text-wrap: pretty; }
.landing a { color: var(--red); text-underline-offset: 0.18em; }
.landing :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Header: sticky glass with the knitted band from the rest of the site. */
.landing .site-header {
  position: sticky; top: 0; z-index: 20;
  max-width: none; padding: 14px var(--gutter) 18px;
  background-color: color-mix(in oklch, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  background-size: 100% 6px;
}
.landing .wordmark { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.landing .wordmark span { color: var(--red); }
.header-cta {
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  color: var(--ink) !important; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--ink); color: var(--paper) !important; }

.lp-kicker {
  font: 600 0.78rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.lp-kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lp-fine { font-size: 0.9rem; color: var(--muted); }

/* Buttons: pill with a stitched inner seam, a spring when hovered, a press when clicked. */
.lp-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red-fill); color: var(--cream) !important; text-decoration: none;
  font: 600 1.02rem var(--text); letter-spacing: 0.01em;
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.25) inset, 0 10px 24px -10px oklch(45% 0.18 27 / 0.65);
  transition: transform 0.5s var(--spring), box-shadow 0.3s, background-color 0.2s;
}
.lp-button::after {
  content: ''; position: absolute; inset: 5px; border-radius: inherit;
  border: 1.5px dashed oklch(97% 0.02 85 / 0.55); pointer-events: none;
}
.lp-button:hover { transform: translateY(-3px); background: var(--red-fill-hover); box-shadow: 0 1px 0 oklch(100% 0 0 / 0.25) inset, 0 16px 30px -12px oklch(45% 0.18 27 / 0.7); }
.lp-button:active { transform: translateY(0) scale(0.97); transition-duration: 0.12s; }
.lp-link { font-weight: 600; color: var(--ink) !important; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color 0.2s; }
.lp-link:hover { border-color: var(--red); }

/* Hero */
.lp-hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--wide); margin: 0 auto;
  padding: clamp(28px, 6vw, 88px) var(--gutter) clamp(56px, 9vw, 128px);
  min-height: min(88dvh, 860px);
}
/* A warm glow that follows the pointer when app.js sets --mx/--my; a fixed glow without it.
   It spans the whole window width, not just the content column, so it never shows an edge. */
.lp-hero::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 68%) var(--my, 38%), oklch(80% 0.12 70 / 0.22), transparent 70%);
}
.lp-hero h1 {
  font-size: clamp(2.6rem, 5.6vw + 0.6rem, 6.2rem); line-height: 0.96; letter-spacing: -0.025em;
  font-weight: 620; margin: 0 0 28px;
}
/* English needs more words for the same line, so its headline runs a size smaller. */
.lp-hero h1:lang(en) { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 5.2rem); }
.lp-hero h1 em { display: block; font-style: italic; font-weight: 480; color: var(--red); letter-spacing: -0.02em; }
.lp-lead { font-size: clamp(1.08rem, 0.5vw + 1rem, 1.26rem); line-height: 1.6; max-width: 34em; margin: 0 0 32px; color: color-mix(in oklch, var(--ink) 88%, var(--paper)); }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.lp-meta { margin: 22px 0 0; font-size: 0.95rem; color: var(--muted); }
.lp-meta strong { color: var(--ink); font-weight: 600; }

/* Entrance: copy rises in, one line after the other. The headline is the page's largest
   paint, so it only moves and is never invisible. */
.lp-hero-copy > * { animation: lp-rise 0.9s var(--spring) both; }
.lp-hero-copy > h1 { animation-name: lp-slide; }
@keyframes lp-slide { from { transform: translateY(18px); } }
.lp-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.lp-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.lp-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.lp-hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(24px); } }

/* The stage: a round winter window, snow inside, two sweaters in front that swap places. */
.lp-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.lp-stage::before {
  content: ''; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, oklch(36% 0.06 245), var(--night) 62%, oklch(18% 0.04 250));
  box-shadow: 0 0 0 10px var(--paper-2), 0 0 0 12px var(--line), 0 40px 80px -40px oklch(20% 0.05 250 / 0.6);
}
.lp-snow {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; pointer-events: none;
  background-image:
    radial-gradient(circle, oklch(100% 0 0 / 0.9) 0 1.6px, transparent 2.2px),
    radial-gradient(circle, oklch(100% 0 0 / 0.7) 0 1.1px, transparent 1.6px),
    radial-gradient(circle, oklch(100% 0 0 / 0.5) 0 0.8px, transparent 1.2px);
  background-size: 90px 90px, 60px 60px, 37px 37px;
  background-position: 0 0, 20px 30px, 10px 5px;
  animation: lp-snow 14s linear infinite;
}
@keyframes lp-snow { to { background-position: 30px 540px, 60px 390px, 30px 260px; } }
.lp-yarn { position: absolute; left: 8%; right: 8%; top: 30%; width: 84%; height: 40%; overflow: visible; }
.lp-yarn path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: lp-yarn 1.6s linear infinite; }
@keyframes lp-yarn { to { stroke-dashoffset: -24; } }

.lp-swap { position: absolute; width: 54%; margin: 0; z-index: 2; }
.lp-swap-a { left: -2%; top: 20%; rotate: -8deg; }
.lp-swap-b { right: -2%; top: 34%; rotate: 7deg; z-index: 1; }
.lp-swap .sweater { display: block; width: 100%; filter: drop-shadow(0 18px 18px oklch(15% 0.04 250 / 0.45)); animation: lp-bob 6s ease-in-out infinite; }
.lp-swap-b .sweater { animation-delay: -3s; }
@keyframes lp-bob { 50% { transform: translateY(-10px) rotate(1.5deg); } }
.lp-swap figcaption {
  font: italic 500 clamp(0.95rem, 0.6vw + 0.7rem, 1.1rem) var(--display); text-align: center;
  color: var(--ink); background: var(--card); width: max-content; max-width: 100%;
  margin: 8px auto 0; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: 0 6px 16px -10px oklch(20% 0.03 50 / 0.4);
}

/* Scrolling the first screen swaps the two sweaters along an arc. */
@supports (animation-timeline: scroll()) {
  .lp-swap-a { animation: lp-swap-a linear both; animation-timeline: scroll(root); animation-range: 0 42vh; }
  .lp-swap-b { animation: lp-swap-b linear both; animation-timeline: scroll(root); animation-range: 0 42vh; }
  .lp-swap figcaption { animation: lp-caption linear both; animation-timeline: scroll(root); animation-range: 0 18vh; }
  @keyframes lp-swap-a {
    0% { translate: 0 0; rotate: -8deg; }
    50% { translate: 42% -16%; rotate: 6deg; z-index: 3; }
    100% { translate: 85% 26%; rotate: 7deg; }
  }
  @keyframes lp-swap-b {
    0% { translate: 0 0; rotate: 7deg; }
    50% { translate: -42% 22%; rotate: -10deg; }
    100% { translate: -85% -26%; rotate: -8deg; }
  }
  @keyframes lp-caption { to { opacity: 0; transform: translateY(-6px); } }
}

/* Ticker of sweater names: a full-bleed red band. */
.lp-ticker {
  display: flex; overflow: hidden; background: var(--red-fill); color: var(--cream);
  border-block: 6px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 20px) 6;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lp-ticker ul { display: flex; flex: none; gap: 0; margin: 0; padding: 16px 0; list-style: none; animation: lp-tick 42s linear infinite; }
.lp-ticker li { display: flex; align-items: baseline; gap: 10px; padding: 0 22px; white-space: nowrap; font: italic 500 1.3rem var(--display); }
.lp-ticker li::before { content: '✶'; font-style: normal; color: var(--gold); margin-right: 22px; }
.lp-ticker li span { font: 600 0.7rem var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: oklch(93% 0.04 75); }
.lp-ticker:hover ul { animation-play-state: paused; }
@keyframes lp-tick { to { transform: translateX(-100%); } }

/* Sections */
.lp-section { max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 10vw, 136px) var(--gutter) 0; }
.lp-section h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 3.8rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 20px; }
.lp-section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }

/* Steps: a staggered two-column pattern, like stitches in alternate rows. */
.lp-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 72px); }
.lp-steps li { position: relative; padding: 28px 0 0 0; border-top: 1.5px solid var(--ink); }
.lp-steps li:nth-child(even) { margin-top: clamp(0px, 8vw, 110px); }
.lp-steps h3 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2.1rem); font-weight: 600; margin: 0 0 10px; }
.lp-steps p { margin: 0; max-width: 32em; color: color-mix(in oklch, var(--ink) 85%, var(--paper)); }
.lp-num {
  position: absolute; right: 0; top: 10px;
  font: italic 300 clamp(4rem, 6vw, 6.5rem)/1 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}

/* Scroll-in reveal for the main blocks, where the browser supports view timelines. */
@supports (animation-timeline: view()) {
  .lp-steps li, .lp-rules dl > div, .lp-stats p, .lp-siblings a, .lp-phone, .lp-bag-wrap {
    animation: lp-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%;
  }
  @keyframes lp-reveal { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
}

/* Demo: a phone with the real gallery pattern, all CSS. Counters count ticked boxes. */
.lp-demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lp-demo-copy p { max-width: 30em; }
.lp-phone {
  justify-self: center; width: min(100%, 400px); padding: 14px; border-radius: 48px;
  background: linear-gradient(145deg, oklch(30% 0.02 50), oklch(16% 0.015 50));
  box-shadow: 0 0 0 1px oklch(40% 0.02 50), 0 50px 80px -40px oklch(20% 0.04 40 / 0.6), 0 20px 30px -20px oklch(20% 0.04 40 / 0.4);
  rotate: 2deg;
}
.lp-phone-screen {
  counter-reset: picks;
  border-radius: 36px; padding: 26px 16px 116px; min-height: 560px;
  background: var(--knit) var(--paper); position: relative; overflow: hidden;
}
.lp-phone-screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 90px; height: 24px; translate: -50% 0; border-radius: 999px; background: oklch(16% 0.015 50); }
.lp-phone-title { font: 600 1.25rem var(--display); margin: 18px 4px 14px; }
.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-card {
  position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 10px 12px;
  transition: border-color 0.2s, box-shadow 0.3s, transform 0.5s var(--spring);
}
.lp-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-card .sweater { width: 100%; height: auto; transition: transform 0.6s var(--spring); }
.lp-card-name { font: 600 0.86rem/1.2 var(--display); }
.lp-card-note { font-size: 0.7rem; line-height: 1.35; color: var(--muted); }
.lp-card-tick {
  margin-top: 6px; align-self: flex-start; font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  padding: 4px 9px 4px 24px; border-radius: 999px; border: 1.5px solid var(--line); position: relative;
}
.lp-card-tick::before { content: ''; position: absolute; left: 7px; top: 50%; width: 10px; height: 10px; translate: 0 -50%; border-radius: 3px; border: 1.5px solid var(--muted); }
.lp-card:hover { transform: translateY(-2px); }
.lp-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.lp-card:has(input:checked) { counter-increment: picks; border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 12px 24px -16px oklch(40% 0.08 157 / 0.6); }
.lp-card:has(input:checked) .sweater { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.lp-card:has(input:checked) .lp-card-tick { background: var(--green); border-color: var(--green); color: var(--paper); }
.lp-card:has(input:checked) .lp-card-tick::before { border-color: var(--paper); background: var(--paper); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 20%, 86% 6%, 38% 72%); border-radius: 0; }
.lp-count { margin: 14px 4px 0; font-size: 0.86rem; color: var(--muted); }
.lp-count-n::before { content: 'Du würdest ' counter(picks) ' davon tragen.'; }
.lp-phone-screen:not(:has(input:checked)) .lp-count-n::before { content: 'Noch nichts angekreuzt. Trau dich.'; }
/* The counter's words live here, so English gets its own. */
:lang(en) .lp-count-n::before { content: 'You would wear ' counter(picks) ' of them.'; }
:lang(en) .lp-phone-screen:not(:has(input:checked)) .lp-count-n::before { content: 'Nothing ticked yet. Go on.'; }
.lp-match {
  display: none; position: absolute; left: 12px; right: 12px; bottom: 14px; margin: 0;
  padding: 14px 16px; border-radius: 18px; font-size: 0.86rem; line-height: 1.4;
  background: var(--red-fill); color: var(--cream);
  box-shadow: 0 16px 30px -14px oklch(40% 0.16 27 / 0.8);
}
.lp-match strong { font: italic 700 1.1rem var(--display); }
.lp-phone-screen:has(.lp-card-match input:checked) .lp-match { display: block; animation: lp-pop 0.7s var(--spring) both; }
@keyframes lp-pop { from { opacity: 0; transform: translateY(30px) scale(0.92); } }

/* Blind date: a paper bag that tears open. A checkbox drives it, so it works without JS. */
.lp-blind { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lp-bag-wrap { position: relative; display: grid; justify-items: center; gap: 28px; }
.lp-bag-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-bag { position: relative; width: min(100%, 300px); aspect-ratio: 0.86; }
.lp-bag::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 18%; bottom: 0; border-radius: 6px 6px 10px 10px;
  background: color-mix(in oklch, var(--kraft) 80%, black);
}
.lp-bag-inside { position: absolute; left: 10%; width: 80%; top: 26%; z-index: 1; transition: transform 0.9s var(--spring) 0.15s; }
.lp-bag-inside .sweater { width: 100%; display: block; }
.lp-bag-front {
  position: absolute; left: 0; right: 0; top: 34%; bottom: 0; z-index: 2; border-radius: 4px 4px 10px 10px;
  background:
    linear-gradient(90deg, transparent 49.6%, oklch(0% 0 0 / 0.08) 50%, transparent 50.4%),
    linear-gradient(175deg, color-mix(in oklch, var(--kraft) 92%, white), var(--kraft));
  box-shadow: 0 30px 50px -30px oklch(25% 0.05 60 / 0.7);
  display: grid; place-items: center;
}
.lp-bag-front span {
  font: italic 600 1.05rem/1.3 var(--display); text-align: center; color: var(--ink);
  background: var(--cream); padding: 10px 16px; border-radius: 4px; rotate: -4deg;
  box-shadow: 0 2px 0 oklch(0% 0 0 / 0.08);
}
.lp-bag-top {
  position: absolute; left: 0; right: 0; top: 18%; height: 18%; z-index: 3;
  background: linear-gradient(180deg, color-mix(in oklch, var(--kraft) 85%, white), color-mix(in oklch, var(--kraft) 90%, black));
  clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 90% 80%, 85% 100%, 80% 80%, 75% 100%, 70% 80%, 65% 100%, 60% 80%, 55% 100%, 50% 80%, 45% 100%, 40% 80%, 35% 100%, 30% 80%, 25% 100%, 20% 80%, 15% 100%, 10% 80%, 5% 100%, 0 80%);
  transform-origin: 10% 100%;
  transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.5s 0.15s;
}
.lp-bag-close { display: none; }
.lp-bag-wrap:has(.lp-bag-toggle:checked) .lp-bag-top { transform: translate(-30%, -140%) rotate(-28deg); opacity: 0; }
.lp-bag-wrap:has(.lp-bag-toggle:checked) .lp-bag-inside { transform: translateY(-58%) rotate(-4deg) scale(1.06); }
.lp-bag-wrap:has(.lp-bag-toggle:checked) .lp-bag-open { display: none; }
.lp-bag-wrap:has(.lp-bag-toggle:checked) .lp-bag-close { display: inline; }
.lp-bag-wrap:has(.lp-bag-toggle:focus-visible) .lp-bag-button { outline: 3px solid var(--focus); outline-offset: 4px; }
/* A burst of yarn bits when the bag opens. */
.lp-bag::after {
  content: ''; position: absolute; inset: -10% -10% 40%; z-index: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 20% 60%, var(--gold) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 50%, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 35% 25%, var(--green) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 20%, var(--gold) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 45%, var(--red) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 22%, var(--green) 0 4px, transparent 5px);
}
.lp-bag-wrap:has(.lp-bag-toggle:checked) .lp-bag::after { animation: lp-burst 0.9s ease-out 0.2s both; }
@keyframes lp-burst { 0% { opacity: 0; transform: scale(0.4) translateY(40px); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) translateY(-30px); } }

/* Stats: four big numbers on a ruled line. */
.lp-stats {
  max-width: var(--wide); margin: clamp(64px, 10vw, 136px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lp-stats p { margin: 0; padding: 28px 20px 8px; border-top: 1.5px solid var(--ink); display: grid; gap: 6px; }
.lp-stats p + p { border-left: 1px solid var(--line); }
.lp-stats strong { font: 500 clamp(2.4rem, 4vw, 4.2rem)/1 var(--display); letter-spacing: -0.03em; color: var(--red); }
.lp-stats span { font-size: 0.95rem; color: var(--muted); }

/* House rules: three columns of short ones. */
.lp-rules dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); margin: 0; }
.lp-rules dt { font: 600 1.35rem var(--display); margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.lp-rules dt::before { content: '✶'; color: var(--red); font-size: 0.9rem; }
.lp-rules dd { margin: 0; color: color-mix(in oklch, var(--ink) 85%, var(--paper)); }
.lp-rules > .lp-fine { margin-top: 40px; }

/* Sign-up: the pitch on the left stays put while the form scrolls. */
.lp-signup { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lp-signup-intro { position: sticky; top: 110px; }
.lp-signup #mitmachen {
  background: var(--card); border-radius: 28px; padding: 8px clamp(18px, 3vw, 36px) 32px;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px oklch(25% 0.04 50 / 0.5);
  background-image: repeating-linear-gradient(90deg, var(--red) 0 12px, var(--green) 12px 24px);
  background-size: 100% 8px; background-repeat: no-repeat; background-position: top;
  scroll-margin-top: 90px;
}
.lp-signup #mitmachen > h2 { display: none; }
.lp-signup form label { font-weight: 600; }
.lp-signup input:not([type=checkbox], [type=radio]), .lp-signup select, .lp-signup textarea {
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-signup input:focus, .lp-signup select:focus, .lp-signup textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in oklch, var(--green) 25%, transparent); outline: none; }
.lp-signup input[type=file] { padding: 8px; cursor: pointer; }
.lp-signup input[type=file]::file-selector-button {
  font: 600 0.9rem var(--text); color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lp-signup input[type=file]:hover::file-selector-button { border-color: var(--ink); }
.lp-signup fieldset { margin-top: 28px; padding-top: 4px; border-top: 1px dashed var(--line); }
.lp-signup legend { font: 600 1.25rem var(--display); padding-top: 20px; }
.lp-signup .button { min-height: 52px; padding: 0 30px; font-size: 1.02rem; background: var(--red-fill); color: var(--cream); }

/* Siblings: two doors, deliberately not the same size. */
.lp-siblings > div { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.lp-siblings a {
  display: grid; gap: 8px; padding: 28px 28px 30px; border-radius: 22px; text-decoration: none;
  color: var(--ink) !important; background: var(--paper-2); border: 1px solid var(--line);
  transition: transform 0.5s var(--spring), background-color 0.2s;
}
.lp-siblings a:hover { transform: translateY(-4px); background: var(--card); }
.lp-siblings strong { font: 600 1.5rem var(--display); }
.lp-siblings strong::after { content: ' →'; color: var(--red); transition: margin 0.3s var(--spring); }
.lp-siblings a:hover strong::after { margin-left: 6px; }
.lp-siblings span { color: var(--muted); }

/* FAQ */
.lp-faq { max-width: 880px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 0; }
.lp-faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 600 clamp(1.1rem, 0.6vw + 1rem, 1.35rem) var(--display);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 300 2rem var(--display); color: var(--red); transition: rotate 0.4s var(--spring); }
.lp-faq details[open] summary::after { rotate: 45deg; }
.lp-faq details p { margin: 0 0 24px; max-width: 40em; color: color-mix(in oklch, var(--ink) 85%, var(--paper)); }

/* Final call: a big knitted panel. */
.lp-final {
  margin: clamp(80px, 12vw, 160px) var(--gutter) 40px; padding: clamp(56px, 9vw, 120px) var(--gutter);
  border-radius: 36px; text-align: center; color: var(--cream);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='16'%3E%3Cpath d='M1.5 2 L9 13 L16.5 2' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"),
    radial-gradient(120% 140% at 50% 0%, oklch(56% 0.19 28), oklch(38% 0.15 25));
}
.lp-final h2 { font-size: clamp(2.2rem, 5vw + 0.5rem, 5.2rem); line-height: 1; letter-spacing: -0.025em; margin: 0 auto 36px; max-width: 14em; font-weight: 600; }
.lp-final h2 em { font-weight: 450; color: var(--gold); }
.lp-final .lp-button { background: var(--cream); color: oklch(41% 0.155 25) !important; box-shadow: 0 16px 30px -14px oklch(15% 0.05 25 / 0.6); }
.lp-final .lp-button::after { border-color: oklch(45% 0.16 27 / 0.4); }
.lp-final .lp-button:hover { background: oklch(100% 0 0); }

.landing .site-footer { max-width: var(--wide); margin: 0 auto; flex-wrap: wrap; }

/* Sweater palettes and parts. */
.sweater { overflow: visible; }
.sweater--red   { --sw-body: oklch(51% 0.185 27); --sw-band: oklch(95% 0.02 85); --sw-rib: oklch(41% 0.15 25); --sw-motif: oklch(42% 0.09 157); }
.sweater--green { --sw-body: oklch(43% 0.085 157); --sw-band: oklch(95% 0.02 85); --sw-rib: oklch(34% 0.07 157); --sw-motif: oklch(95% 0.02 85); }
.sweater--gold  { --sw-body: oklch(79% 0.135 84); --sw-band: oklch(51% 0.185 27); --sw-rib: oklch(66% 0.13 74); --sw-motif: oklch(51% 0.185 27); }
.sweater--navy  { --sw-body: oklch(33% 0.075 262); --sw-band: oklch(95% 0.02 85); --sw-rib: oklch(26% 0.06 262); --sw-motif: oklch(79% 0.135 84); }
.sweater--cream { --sw-body: oklch(93% 0.03 82); --sw-band: oklch(51% 0.185 27); --sw-rib: oklch(51% 0.185 27); --sw-motif: oklch(43% 0.085 157); }
.sw-body { fill: var(--sw-body); stroke: oklch(20% 0.03 40 / 0.35); stroke-width: 2; stroke-linejoin: round; }
.sw-band { fill: none; stroke: var(--sw-band); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sw-dot { fill: var(--sw-band); }
.sw-hem, .sw-collar, .sw-cuff { fill: var(--sw-rib); }
.sw-rib { fill: oklch(0% 0 0 / 0.16); }
.sw-motif { fill: var(--sw-motif); }
.sw-star { fill: oklch(79% 0.135 84); }
.sw-flake { fill: none; stroke: var(--sw-motif); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.sw-wire { fill: none; stroke: oklch(25% 0.04 150); stroke-width: 2; }
.sw-light { animation: lp-twinkle 2.4s ease-in-out infinite; }
.sw-light-0 { fill: oklch(79% 0.135 84); }
.sw-light-1 { fill: oklch(75% 0.13 200); animation-delay: -0.6s; }
.sw-light-2 { fill: oklch(80% 0.1 145); animation-delay: -1.2s; }
.sw-light-3 { fill: oklch(92% 0.04 90); animation-delay: -1.8s; }
@keyframes lp-twinkle { 50% { opacity: 0.35; } }

/* Small screens: one column, the stage under the headline, steps in one row each. */
@media (max-width: 860px) {
  .lp-hero, .lp-demo, .lp-blind, .lp-signup { grid-template-columns: minmax(0, 1fr); }
  .lp-hero { min-height: 0; padding-top: 20px; }
  .lp-stage { max-width: 420px; }
  .lp-blind .lp-bag-wrap { order: 2; }
  .lp-steps ol, .lp-rules dl { grid-template-columns: minmax(0, 1fr); }
  .lp-steps li:nth-child(even) { margin-top: 0; }
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-stats p:nth-child(3) { border-left: 0; }
  .lp-siblings > div { grid-template-columns: minmax(0, 1fr); }
  .lp-signup-intro { position: static; }
  .lp-phone { rotate: 0deg; }
}
@media (max-width: 420px) {
  .lp-phone-screen { min-height: 520px; padding-inline: 12px; }
  .lp-card-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
  .lp-phone-screen:has(.lp-card-match input:checked) .lp-match { display: block; }
}
