/* ============================================================
   Verhütungsschuss — one-page site
   Aesthetic: playful-tech · nerdy-but-clean · mobile-first
   ============================================================ */

:root {
  /* palette */
  --ink: #0e0e12;
  --ink-2: #16161d;
  --ink-3: #1e1e27;
  --cream: #f6f1e7;
  --cream-2: #efe7d6;
  --paper: #fbfaf5;
  --lime: #c6f832;
  --lime-deep: #a6d61f;
  --coral: #ff4d3d;
  --pink: #ff7fb0;

  --text-dark: #141418;
  --text-mut-dark: #5b5b66;
  --text-light: #f5f3ec;
  --text-mut-light: rgba(245, 243, 236, 0.66);

  --line-dark: rgba(20, 20, 24, 0.12);
  --line-light: rgba(245, 243, 236, 0.14);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --mx: 50%;
  --my: 30%;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text-light);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { position: relative; z-index: 3; padding: 78px 0; overflow: hidden; }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--cream { background: var(--cream); color: var(--text-dark); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--light,
.section--cream { border-radius: 34px 34px 0 0; margin-top: -22px; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--lime);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--coral); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: var(--text-dark);
}
.h2--light { color: var(--text-light); }

.section__lead {
  margin-top: 18px;
  max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--text-mut-dark);
}
.section--dark .section__lead { color: var(--text-mut-light); }

.hl {
  color: var(--ink);
  background: var(--lime);
  padding: 0 0.12em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.section--dark .hl,
.cta .hl { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 22px rgba(198, 248, 50, 0.28);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(198, 248, 50, 0.4); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--sm { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--line-light);
  box-shadow: none;
}
.section--light .btn--ghost,
.section--cream .btn--ghost { color: var(--text-dark); border-color: var(--line-dark); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.section--light .btn--ghost:hover { background: rgba(20, 20, 24, 0.05); }

/* ---------- overlays: grain + spotlight ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(198, 248, 50, 0.06), transparent 64%);
  transition: background 0.2s linear;
}

/* ---------- 3D condoms canvas (Three.js) ---------- */
.fxcanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 40;
  pointer-events: none; /* pointer hit-testing is done via raycast in condoms3d.js */
}
.fxcanvas.grabbing { cursor: grabbing; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, border-color 0.3s, padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: padding 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(14, 14, 18, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-light);
}
.nav.is-scrolled .nav__inner { padding-block: 11px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -0.02em; color: var(--text-light);
}
.brand img { border-radius: 8px; }

.nav__links { display: none; margin-left: auto; gap: 26px; font-size: 0.96rem; }
.nav__links a { color: var(--text-mut-light); transition: color 0.2s; }
.nav__links a:hover { color: var(--text-light); }
.nav .btn { margin-left: auto; }
.nav__links + .btn { margin-left: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 3;
  padding: 120px 0 0;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__grid {
  max-width: var(--wrap); margin-inline: auto; width: 100%;
  padding-inline: 22px;
  display: grid; gap: 40px; align-items: center; flex: 1;
}
.hero__copy { position: relative; z-index: 4; }
.hero__support { max-width: 44ch; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 15vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
}
.hero__lead {
  max-width: 42ch;
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  color: var(--text-mut-light);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta {
  margin-top: 26px; font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-mut-light); display: flex; align-items: center; gap: 9px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 248, 50, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 248, 50, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(198, 248, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 248, 50, 0); }
}


/* ticker */
.ticker {
  margin-top: 46px; padding: 16px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden; position: relative; z-index: 3;
  background: rgba(198, 248, 50, 0.03);
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 26px;
  white-space: nowrap; padding-left: 26px;
  font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--text-light);
  animation: marquee 26s linear infinite;
}
.ticker .star { color: var(--coral); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEM / stats
   ============================================================ */
.stats {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.stat {
  padding: 22px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line-dark);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--coral);
  display: flex; align-items: baseline;
}
.stat__num--light { color: var(--lime); }
.stat__prefix { font-size: 0.7em; }
.stat__label { margin-top: 10px; color: var(--text-mut-dark); font-size: 0.96rem; }
.stat__label strong { color: var(--text-dark); }
.stats__foot { margin-top: 18px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-mut-dark); }

/* ============================================================
   WHY / cards
   ============================================================ */
.cards {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.card {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-light);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.card:hover { border-color: rgba(198, 248, 50, 0.4); background: var(--ink-3); }
.card__idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--lime); }
.card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  margin: 10px 0 8px; letter-spacing: -0.01em;
}
.card p { color: var(--text-mut-light); font-size: 0.98rem; }

/* ============================================================
   HOW / steps + features
   ============================================================ */
.steps {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 16px; counter-reset: step;
}
.step {
  position: relative; padding: 26px 24px 26px 24px;
  border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line-dark);
}
.step__n {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
  color: var(--ink); background: var(--lime);
  padding: 4px 10px; border-radius: 100px; display: inline-block;
}
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; margin: 14px 0 8px; color: var(--text-dark); }
.step p { color: var(--text-mut-dark); }
.step em { color: var(--coral); font-style: normal; font-weight: 600; }

.features {
  margin-top: 16px;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.feature {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.feature:hover { box-shadow: 0 16px 40px rgba(20, 20, 24, 0.1); }
.feature__icon {
  font-size: 1.9rem; width: 58px; height: 58px; display: grid; place-items: center;
  background: #fff; border-radius: 16px; border: 1px solid var(--line-dark); margin-bottom: 14px;
}
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text-dark); margin-bottom: 6px; }
.feature p { color: var(--text-mut-dark); font-size: 0.97rem; }

/* ============================================================
   USE CASES
   ============================================================ */
.uses { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.use {
  padding: 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-dark);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.use:hover { transform: translateY(-4px); background: #fff; }
.use__emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.use h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; }
.use p { color: var(--text-mut-dark); font-size: 0.95rem; }

/* ============================================================
   IMPACT
   ============================================================ */
.impact__grid { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 26px; }
.impact__stat .stat__num { font-size: clamp(2.4rem, 10vw, 3.6rem); }
.impact__stat p { margin-top: 8px; color: var(--text-mut-light); max-width: 30ch; }
.impact__mission {
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light);
  font-size: clamp(1.05rem, 3vw, 1.35rem); max-width: 60ch; color: var(--text-light);
}
.impact__mission strong { color: var(--lime); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative; z-index: 3;
  background: radial-gradient(120% 120% at 50% 0%, #1a1a22 0%, var(--ink) 60%);
  padding: 92px 0; text-align: center; overflow: hidden;
  border-top: 1px solid var(--line-light);
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4.4rem); line-height: 0.98; letter-spacing: -0.03em;
  max-width: 16ch; margin-inline: auto;
}
.cta__lead { margin: 20px auto 0; max-width: 48ch; color: var(--text-mut-light); font-size: 1.1rem; }
.cta__buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line-light); padding: 56px 0 30px; position: relative; z-index: 3; }
.footer__inner { display: grid; gap: 34px; }
.footer__gloss { margin-top: 12px; color: var(--text-mut-light); font-size: 0.9rem; max-width: 34ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 14px; }
.footer nav, .footer__cols > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer a, .footer__link { color: var(--text-mut-light); font-size: 0.96rem; background: none; border: none; padding: 0; transition: color 0.2s; }
.footer a:hover, .footer__link:hover { color: var(--text-light); }
.footer__base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-mut-light);
}

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(6, 6, 9, 0.72); backdrop-filter: blur(6px);
  animation: fade 0.25s var(--ease);
}
.modal__dialog {
  position: relative; z-index: 2;
  width: min(560px, 100%); max-height: 92svh; overflow-y: auto;
  background: var(--paper); color: var(--text-dark);
  border-radius: var(--radius-lg); padding: 30px 24px 26px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  animation: pop 0.35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.96); } }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-dark); font-size: 1rem;
  display: grid; place-items: center; transition: transform 0.2s, background 0.2s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--cream); }
.modal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; margin: 6px 0 6px; }
.modal__sub { color: var(--text-mut-dark); margin-bottom: 22px; }

.options { border: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option-card {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--line-dark); cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.option-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12); }
.option-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card__check {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform 0.2s var(--ease);
}
.option-card:has(input:checked) { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 248, 50, 0.35); }
.option-card:has(input:checked) .option-card__check { transform: scale(1); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 2px; }

.field { margin-top: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-mut-dark); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--text-dark);
  background: #fff; border: 1.5px solid var(--line-dark); border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 248, 50, 0.3);
}
.field input.invalid, .field textarea.invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 77, 61, 0.18); }

.field-error { color: var(--coral); font-size: 0.82rem; margin-top: 6px; min-height: 1em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: 22px; }
.btn__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(14, 14, 18, 0.25); border-top-color: var(--ink);
  animation: spin 0.7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn.is-loading { pointer-events: none; opacity: 0.85; }
#submitBtn.is-loading .btn__label { opacity: 0.5; }
#submitBtn.is-loading .btn__spinner { display: block; }

.form-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-mut-dark); text-align: center; }
.form-status { margin-top: 12px; text-align: center; font-size: 0.92rem; min-height: 1em; }
.form-status.error { color: var(--coral); }

.modal__success { text-align: center; padding: 20px 4px; }
.success__badge {
  font-size: 3rem; width: 92px; height: 92px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 10px rgba(198, 248, 50, 0.18);
  animation: pop 0.5s var(--ease);
}
.modal__success .btn { margin-top: 22px; }

/* ============================================================
   RESPONSIVE — scale up from mobile
   ============================================================ */
@media (min-width: 620px) {
  .wrap, .hero__grid, .nav__inner { padding-inline: 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 110px 0; }
  .nav__links { display: flex; }
  .nav .btn { margin-left: 0; }
  .hero { padding-top: 90px; }
  /* wide screens: headline left, supporting copy + CTAs right — fills the width */
  .hero__copy {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    column-gap: 56px;
  }
  .hero__support { max-width: 40ch; }
  .hero__title { font-size: clamp(3.6rem, 8vw, 6.2rem); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .uses { grid-template-columns: repeat(3, 1fr); }
  .impact__grid { grid-template-columns: repeat(3, 1fr); }
  .options { gap: 14px; }
}

@media (min-width: 1200px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .fxcanvas { display: none; }
  .spotlight { display: none; }
}
