/* The app's colours (src/context/ThemeContext.tsx) and its icon's purple */
:root {
  --brand: #7b3ff2;
  --brand-deep: #3a0ca3;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --border: #e0e0e0;
  --link: #5b21d6;
  --position: #1976d2;
  --submission: #ff6f00;
  --move: #5f5f5f;
  --hole: #f57c00;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1a1a1a;
    --card: #1e1e1e;
    --text: #e8e8e8;
    --muted: #b0b0b0;
    --border: #2c2c2c;
    --link: #b794ff;
    --position: #42a5f5;
    --submission: #ff9800;
    --move: #b0b0b0;
    --hole: #ffa726;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

/* Header and footer */

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.kicker {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.2rem;
}

.note {
  color: var(--muted);
  margin-top: 24px;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  letter-spacing: -0.02em;
}

.hero .kicker {
  color: #ffffffcc;
}

.hero .lead {
  max-width: 34em;
}

.hero .fine {
  color: #ffffffb3;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* Store buttons */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-button {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #14101f;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  text-decoration: none;
}

.store-small {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-button.soon {
  background: transparent;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}

.cta {
  text-align: center;
}

.cta .downloads {
  justify-content: center;
}

.cta .store-button.soon {
  color: var(--text);
}

/* The sample map */

.map-card {
  margin: 0;
  padding: 20px 20px 14px;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 60px #14101f59;
}

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

.map .loop-glow {
  fill: var(--brand);
  stroke: var(--brand);
  stroke-width: 44;
  stroke-linejoin: round;
  opacity: 0.12;
}

.map .moves line {
  stroke: var(--move);
  stroke-width: 2.5;
}

.map .move-head {
  fill: var(--move);
}

.map .positions circle {
  fill: var(--position);
  stroke: var(--border);
  stroke-width: 2;
}

.map .submission {
  fill: var(--submission);
  stroke: var(--border);
  stroke-width: 2;
}

.map .hole-badge circle {
  fill: var(--hole);
}

.map .hole-badge text {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.map text {
  fill: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.map .side {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
}

.map .move-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 5px;
}

.map .callout {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map .callout.loop {
  fill: var(--brand);
}

.map .callout.hole {
  fill: var(--hole);
}

@media (prefers-color-scheme: dark) {
  .map .loop-glow {
    opacity: 0.25;
  }

  .map .callout.loop {
    fill: var(--link);
  }
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
}

.legend .dot {
  border-radius: 50%;
  background: var(--position);
}

.legend .diamond {
  background: var(--submission);
  transform: rotate(45deg) scale(0.85);
}

.legend .arrow {
  width: 18px;
  height: 2px;
  background: var(--move);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.steps p {
  color: var(--muted);
}

/* Screenshots (src/screenshots) */

.shots {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.shots img {
  flex: 0 0 auto;
  width: 260px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
}

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.cards article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.cards p {
  margin: 0;
  color: var(--muted);
}

/* Pro */

.pro {
  max-width: none;
  background: var(--surface);
}

.pro-inner {
  max-width: 1072px;
  margin: 0 auto;
}

.pro .lead {
  max-width: 40em;
}

/* Coaches and privacy */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.split + .split {
  border-top: 1px solid var(--border);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 0 0 16px 32px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 9px;
  height: 14px;
  border: solid var(--brand);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Text pages: the privacy policy and support */

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.prose li {
  margin-bottom: 0.5em;
}

@media (max-width: 860px) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
