/* Liike X: yhteinen pohja kaikille rakenneversioille (luonnos, ei lukittu) */
@import url("fonts/fonts.css");

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --paper: #f1f1ef;
  --white: #ffffff;
  --mute: #8c8c8c;
  --mute-dark: #5c5c5c;
  --red: #e3241b;
  --red-deep: #b5170f;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-hand: "Shantell Sans", "Comic Sans MS", cursive;
  --f-sign: "Homemade Apple", "Shantell Sans", cursive;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }

/* ---------- display type ---------- */
.shout {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0;
}
.hand {
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 60, "BNCE" 20;
}

/* the red strike: hand-drawn line through a word */
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; top: 50%;
  height: 0.14em;
  background: var(--red);
  border-radius: 0.1em;
  transform: rotate(-4deg) scaleX(var(--s, 1));
  transform-origin: left center;
}
.strike.is-drawing::after { --s: 0; animation: strike 900ms 400ms var(--ease-out) forwards; }
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font: 800 1rem/1 var(--f-display);
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms;
}
.btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--white); border-color: var(--white); color: var(--red); }
.on-light .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-light .btn--red:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.45; cursor: progress; }

/* ---------- live counter ---------- */
.count { font-variant-numeric: tabular-nums; }
.live-dot {
  display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--red); vertical-align: 0.1em;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.count.bump { animation: bump 600ms var(--ease-out); }
@keyframes bump { from { color: var(--red); } }

/* ---------- 3D coin (placeholder for the future logo video) ---------- */
.coin {
  --size: 120px;
  --depth: 10px;
  width: var(--size); height: var(--size);
  perspective: 800px;
}
.coin__body {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}
.coin__layer {
  position: absolute; inset: 0; border-radius: 50%;
  background: #2a2a2a;
}
.coin__face {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #6a6a6a 0%, #2b2b2b 45%, #121212 100%);
  box-shadow: inset 0 0 0 calc(var(--size) * 0.035) #3b3b3b, inset 0 0 0 calc(var(--size) * 0.05) #151515;
  display: grid; place-items: center;
  backface-visibility: hidden;
}
.coin__face svg { width: 52%; height: 52%; }
.coin__face--back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); }
.coin__face--front { transform: translateZ(calc(var(--depth) / 2)); }
@keyframes spin { to { transform: rotateY(360deg); } }

/* ---------- sign form ---------- */
.sign-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 0.78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 500 1.05rem/1.2 var(--f-display);
}
.field input::placeholder { color: var(--mute); }
.field input:focus { outline: none; border-color: var(--red); }
.field .err { color: var(--red); font-size: 0.85rem; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.35; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
.sign-note { font-size: 0.82rem; color: var(--mute); line-height: 1.4; margin: 0; }
.sign-done { display: grid; gap: 10px; }
.sign-done strong { font: 900 1.6rem/1 var(--f-display); font-variation-settings: "wdth" 70; text-transform: uppercase; }

/* ---------- sponsor placeholders ---------- */
.logo-ph {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 1.1rem/1 var(--f-display);
  font-variation-settings: "wdth" 100;
  color: currentColor; opacity: 0.85;
  white-space: nowrap;
}
.logo-ph i { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; display: inline-block; }
.logo-ph:nth-child(3n) i { border-radius: 2px; }
.logo-ph:nth-child(4n) i { border-radius: 0; transform: rotate(45deg); }

/* ---------- demo badge ---------- */
.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 999;
  font: 600 11px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
  background: #ffe600; color: #000; padding: 6px 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .coin__body { animation: none; transform: rotateY(-25deg); }
}
