/* Klippi — salibandyalasivu. Sama tumma kieli kuin ländärillä, ilman
   sovelluksen buildia. Latin-leikkaukset ovat samat tiedostot kuin
   @fontsource-paketeissa. */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0e100e;
  --surface: #131610;
  --deep: #0b0d0b;
  --band: #111310;
  --ink: #f2f1ec;
  --secondary: #b3b8ab;
  --muted: #9aa093;
  --subtle: #868d81;
  --line: #23281f;
  --line-strong: #2f3a32;
  --accent: #8fbfa3;
  --accent-hover: #a9d6bd;
  --on-accent: #0e100e;
  --link: #9ed3b4;
  --link-hover: #c7e8d6;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

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

h2,
h3 {
  scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(1180px, calc(100% - 4rem));
  }
}

.measure {
  max-width: 40rem;
}

/* ---------- header, same chrome as the landing ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(14 16 14 / 0.82);
  backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top);
}

.bar .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo svg {
  display: block;
  height: 30px;
  width: auto;
}

.bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.login {
  color: var(--secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.login:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: #4a5a4d;
  background: transparent;
  color: var(--ink);
}

/* ---------- pitch ---------- */

.hero {
  padding: 4.5rem 0 1rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 6rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  margin: 1.3rem 0 0;
  font-size: clamp(2.4rem, 4.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.fine {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.block {
  padding-top: 5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.duo {
  display: grid;
  gap: 3.5rem;
}

.prose p {
  margin: 0.95rem 0 0;
  color: var(--secondary);
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The evening, in order. Numbers are the sequence, not decoration. */

.steps {
  margin: 1.6rem 0 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem 0.85rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.steps .n {
  padding-top: 0.15rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.steps strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.steps li > div span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.stack {
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}

.stack li {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 0.6rem;
}

.stack h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.shot {
  margin: 1.15rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0d0b;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shots {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.shots .shot {
  margin-top: 0;
}

.shot.phone {
  width: min(220px, 70%);
  border-radius: 22px;
}

.prices {
  margin: 1.4rem 0 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}

.prices li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  color: var(--secondary);
}

.prices strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- the coach's evening, quieter than the pitch ---------- */

.evening {
  margin-top: 5.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--band);
  padding: 5.25rem 0 4.5rem;
}

.chapter {
  margin-top: 3.75rem;
  max-width: 40rem;
}

.chapter h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.note {
  max-width: 40rem;
  margin-top: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 1.3rem 1.4rem 1.45rem;
}

.note .kicker {
  color: var(--muted);
}

.note p {
  margin: 0.7rem 0 0;
  color: var(--secondary);
}

/* ---------- close ---------- */

.close {
  padding: 4rem 0 4.5rem;
}

.foot {
  border-top: 1px solid #1c201a;
  background: var(--deep);
  padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom));
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.5rem;
}

.foot a {
  color: #a8ada0;
  font-size: 0.9rem;
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* Desktop: the page uses the same 1180px column as the landing, not a
   narrow stack parked on the left. */

@media (min-width: 1024px) {
  .hero-foot {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 2rem 4rem;
    align-items: start;
    margin-top: 2rem;
  }

  .hero-foot .lead,
  .hero-foot .fine {
    max-width: none;
  }

  .hero-foot .lead,
  .hero-foot .actions {
    margin-top: 0;
  }

  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4.5rem;
    align-items: start;
  }

  .steps {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .steps li {
    display: block;
    border-top: 2px solid var(--line-strong);
    padding: 1rem 0 0;
  }

  .steps .n {
    display: block;
    margin-bottom: 0.75rem;
  }

  .stack {
    max-width: none;
  }

  .stack li > .copy,
  .chapter > .copy {
    display: contents;
  }

  .stack li,
  .chapter:not(:has(.shots)),
  .note {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 30rem);
    column-gap: 2.75rem;
    row-gap: 1.7rem;
    align-items: start;
  }

  .stack li h3,
  .chapter h3 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .stack li .prose,
  .chapter:not(:has(.shots)) .prose {
    grid-column: 1;
    grid-row: 2;
  }

  .stack li > .shot,
  .chapter > .shot,
  .note .shot {
    margin-top: 0;
  }

  .stack li > .shot,
  .chapter > .shot {
    grid-column: 2;
    grid-row: 2;
  }

  .stack li.flip,
  .chapter.flip,
  .note.flip {
    grid-template-columns: minmax(16rem, 30rem) minmax(16rem, 1fr);
  }

  .stack li.flip .prose,
  .chapter.flip .prose {
    grid-column: 2;
  }

  .stack li.flip > .shot,
  .chapter.flip > .shot {
    grid-column: 1;
  }

  .note.flip .copy {
    order: 2;
  }

  .note.flip .shot {
    order: 1;
  }

  .stack li.with-phone {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .stack li.with-phone > .shot {
    width: 200px;
    grid-column: 2;
  }

  .chapter:has(.shots) {
    display: block;
  }

  .chapter:has(.shots) .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.75rem;
  }

  .chapter:has(.shots) .shots:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chapter:has(.shots) .shots.mixed {
    grid-template-columns: minmax(0, 1fr) 11.5rem;
    align-items: end;
  }

  .shots.mixed .shot.phone {
    width: 100%;
  }

  .offer {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 2rem 4rem;
    align-items: start;
  }

  .offer .prices {
    max-width: none;
    margin-top: 0.35rem;
  }

  .chapter,
  .note,
  .evening .measure {
    max-width: none;
  }
}
