/* Juggling Tracker website. Same look as the promo video and store art:
   black background, orange Arial Bold, stick-figure juggler. */
:root {
  --bg: #000;
  --panel: #111;
  --line: #2a2a2a;
  --orange: #f59e0b;
  --orange-dim: #563704;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --green: #00ff00;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--orange); }
a:hover { text-decoration-thickness: 2px; }

img, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px;
}
.brand {
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  color: var(--orange); font-weight: 700; font-size: 1.15rem; text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:hover { color: var(--orange); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px 4px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--orange); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .nav-open .nav { display: flex; }
  .brand { font-size: 1rem; }
}


/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center;
}
.slogan {
  font-weight: 700; color: var(--orange);
  font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.25; margin: 0 0 24px;
}
.lead { color: var(--text); font-size: 1.15rem; max-width: 34em; margin: 0 0 28px; }
.hero-art { width: 100%; max-width: 420px; justify-self: center; }
@media (max-width: 800px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; order: -1; }
}

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 2px solid var(--orange);
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: #ffb22e; border-color: #ffb22e; }
.btn-ghost { color: var(--orange); }
.btn-ghost:hover { background: rgba(245, 158, 11, 0.12); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 32px; }

/* Video */
.video-row {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; align-items: center;
}
.video-row video {
  width: 100%; aspect-ratio: 9 / 16; background: #000;
  border: 1px solid var(--line); border-radius: 18px;
}
@media (max-width: 760px) {
  .video-row { grid-template-columns: 1fr; }
  .video-row video { max-width: 340px; margin: 0 auto; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #000; font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Screenshots inside the steps */
.step { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
.step::before { align-self: start; }
.step > p { margin-bottom: 24px; }
.step-media {
  display: flex; gap: 14px; align-items: flex-end; justify-content: center;
}
.shot { margin: 0; text-align: center; }
.shot figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.shot-phone img { width: 160px; border-radius: 18px; border: 5px solid #222; }
/* Screenshots grow on hover (or tap/focus on touch screens). */
.shot-phone img, .shot-round img {
  position: relative; cursor: zoom-in;
  transform-origin: 50% 85%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot-phone img:hover, .shot-phone img:focus,
.shot-round img:hover, .shot-round img:focus {
  transform: scale(2); z-index: 5; outline: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.shot-round img { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .shot-phone img, .shot-round img { transition: none; } }
@media (max-width: 760px) {
  .shot-phone img:hover, .shot-phone img:focus,
  .shot-round img:hover, .shot-round img:focus { transform: scale(1.6); }
}
.shot-round img { width: 200px; height: 200px; border-radius: 50%; border: 8px solid #222; }
.shot-square img { width: 120px; border-radius: 26px; border: 8px solid #222; }
@media (max-width: 760px) {
  .shot-phone img { width: 150px; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; padding: 0; margin: 0; list-style: none; }
.features li { padding-left: 30px; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--orange);
}
.features strong { color: var(--text); }
.features span { color: var(--muted); }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

.note {
  margin-top: 36px; padding: 20px 24px; border-left: 4px solid var(--orange);
  background: var(--panel); border-radius: 0 12px 12px 0; color: var(--muted);
}
.note strong { color: var(--text); }

/* Availability */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.platform h3 { margin: 0; }
.platform p { margin: 0; color: var(--muted); flex: 1; }
.badge {
  align-self: flex-start; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px;
}
.badge-live { background: var(--orange); color: #000; }
.badge-soon { border: 1px solid var(--orange); color: var(--orange); }
.platform .btn { align-self: flex-start; margin-top: 6px; font-size: 0.95rem; padding: 10px 18px; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--orange); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Text pages (privacy, imprint) */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.6rem; margin-top: 2em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.5em; color: var(--text); }
.doc p, .doc li { color: #dcdcdc; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.6em; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px; }
.toc ul { margin: 0.4em 0 0; }
.toc li { margin-bottom: 0.25em; }
