/* Kloptet website: the app's "Nacht" palette, Manrope for reading, and the
   stencil face only for the wordmark and the stamp, same as in the app. */

@font-face { font-family: "Manrope"; src: url("/fonts/Manrope_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Stencil"; src: url("/fonts/BigShouldersStencilDisplay_900Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Stencil"; src: url("/fonts/BigShouldersStencilDisplay_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0b12;
  --surface: #151826;
  --raised: #1a1d2e;
  --line: #262a3d;
  --text: #f5f6fa;
  --muted: #9aa0b4;
  --ink: #a9b4ff;
  --accent: #5b6bff;
  --accent-edge: #3341c9;
  --danger: #ff5a4e;
  --gutter: clamp(16px, 5vw, 48px);
  --page: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.55 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 34em; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); padding: 8px 14px; border-radius: 10px; z-index: 5; }
.skip:focus { top: 12px; }

/* Header */
.bar {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: "Stencil", "Manrope", sans-serif;
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none;
}
.bar-nav { display: flex; align-items: center; gap: 22px; }
.bar-help { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 0; }
.bar-help:hover { color: var(--text); }
.langs { display: flex; gap: 2px; }
.langs a {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); background: var(--raised); }

/* Hero: the headline on the left, the real result screen on the right */
.hero {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .lead { margin-top: 24px; }
.hero-phone .phone { max-width: 340px; margin-inline: auto; animation: thud 260ms ease-out 900ms 1; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 9px 22px 9px 18px;
  color: var(--text);
  background: var(--raised);
  border-radius: 18px;
  border-bottom: 4px solid #0f1120;
  text-decoration: none;
}
a.store { background: var(--accent); border-bottom-color: var(--accent-edge); }
a.store:hover { background: #6877ff; }
a.store:active { transform: translateY(2px); border-bottom-width: 2px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
a.store small { color: #dfe3ff; }
.store strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }

/* A plain phone around a real screenshot */
.phone {
  background: #1c1f2e;
  padding: 9px;
  border-radius: 13.5% / 6.4%;
  box-shadow: inset 0 0 0 1px #33384e;
}
.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 11.8% / 5.6%;
  overflow: hidden;
  padding-top: 8%;
}
.island {
  position: absolute;
  top: 2.2%;
  left: 50%;
  width: 28%;
  height: 2.8%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
}
.shot { position: relative; container-type: inline-size; }
.shot img { width: 100%; }

/* The stamp, built in the app's own measurements (one --u is one app point) and
   set at the position of the hero card on the result screen. */
.stamp {
  --u: calc(100cqw / 390);
  position: absolute;
  left: 45%;
  top: 23.1%;
  color: var(--danger);
  border: calc(4 * var(--u)) solid currentColor;
  border-radius: calc(10 * var(--u));
  padding: calc(4 * var(--u));
  transform: translate(-50%, -50%) rotate(-7deg);
  animation: stamp 520ms 700ms both;
}
.stamp-inner {
  display: grid;
  justify-items: center;
  gap: calc(4 * var(--u));
  border: calc(1.5 * var(--u)) solid currentColor;
  border-radius: calc(6 * var(--u));
  padding: calc(6 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u));
}
.stamp-word {
  font: 900 calc(64 * var(--u)) / calc(70 * var(--u)) "Stencil", sans-serif;
  letter-spacing: calc(3 * var(--u));
  text-transform: uppercase;
}
.stamp-rule { height: calc(2 * var(--u)); width: 100%; background: currentColor; }
.stamp-date {
  font: 700 calc(15 * var(--u)) / 1.2 "Stencil", sans-serif;
  letter-spacing: calc(2.5 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-7deg) scale(1.9); }
  16% { opacity: 1; }
  46% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  62% { transform: translate(-50%, -50%) rotate(-7deg) scale(0.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
}
@keyframes thud {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(5px); }
}

/* The other screens */
.screens {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}
.screens h2 { max-width: 15em; }
.screen-list {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.screen-list li:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.screen-list h3 { margin-top: 26px; }
.screen-list p { margin-top: 6px; color: var(--muted); }

/* Privacy */
.promise {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: clamp(40px, 6vw, 80px) auto 0;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}
.promise li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.promise li:first-child { padding-top: 4px; }
.link { display: inline-block; margin-top: 22px; color: var(--ink); font-weight: 700; padding: 6px 0; }

/* Closing */
.closing {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
}
.klopje { width: 84px; height: auto; }
.closing p { margin-top: 20px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.closing .stores { justify-content: center; margin-top: 28px; }

/* Help page */
.help {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 96px);
}
.help h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.help .lead { margin-top: 16px; }
.help h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 16px; }
.numbers { display: grid; gap: 10px; }
.numbers a {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 18px;
  text-decoration: none;
}
.numbers a:hover { background: var(--raised); }
.number { grid-row: span 2; align-self: center; color: var(--ink); font-weight: 800; overflow-wrap: anywhere; text-align: right; }
.detail { color: var(--muted); font-size: 0.95rem; }
.accordion { margin-top: 12px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--ink); font-weight: 800; }
.accordion details[open] summary::after { content: "2"; }
.accordion details > p, .accordion ol { color: var(--muted); padding: 0 0 18px; }
.accordion ol { list-style: decimal; padding-left: 1.3em; }
.accordion ol li + li { margin-top: 6px; }

/* Footer */
.footer {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-bottom: 18px; }
.footer .wordmark { color: var(--text); font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { color: var(--text); text-decoration: none; padding: 6px 0; font-weight: 700; }
.footer-links a:hover { color: var(--ink); }
.footer p + p { margin-top: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-phone .phone { max-width: 320px; }
  .screen-list { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 340px; margin-inline: auto; }
  .screen-list li:nth-child(2) { margin-top: 0; }
  .promise { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .numbers a { grid-template-columns: minmax(0, 1fr); }
  .number { grid-row: auto; text-align: left; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp, .hero-phone .phone { animation: none; }
}
