/* splits.bytefabrika.io. System type, one accent (the running colour), light and dark. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --track: rgba(0, 0, 0, 0.07);
  --accent: #ff6b4a;
  --accent-text: #d9482a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 6px 20px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-soft: #161618;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --track: rgba(255, 255, 255, 0.08);
    --accent-text: #ff8a6e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; letter-spacing: -0.02em; margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 22.5%; }
/* The logo and a small "by Bytefabrika" beside it: two links, side by side rather than nested. */
.brand-line { display: flex; align-items: center; gap: 8px; }
/* Sits on the same line as "Splits": the smaller text needs a nudge down to share its baseline. */
.by { font-size: 13px; color: var(--muted); padding-top: 4px; }
.by:hover { color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a:not(.button) { color: var(--muted); }
.nav-links a:not(.button):hover { color: var(--text); text-decoration: none; }

/* Buttons */
.button {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 17px;
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button.small { padding: 6px 14px; font-size: 14px; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero: the track behind, one runner lapping it */
.hero { position: relative; overflow-wrap: anywhere; max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; text-align: center; overflow: hidden; }
.track { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.track .lanes { fill: none; stroke: var(--track); stroke-width: 1.5; }
.track .lanes line { stroke-width: 1.5; }
.track .runner { fill: var(--accent); }
.track .runner .glow { opacity: 0.18; }
.hero-text { position: relative; max-width: 720px; margin: 0 auto; padding: 60px 0; }
.hero-icon { margin: 0 auto 26px; border-radius: 22.5%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.06; font-weight: 700; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 20px auto 30px; max-width: 640px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Screenshots */
.shot { margin: 0; }
.shot img { border-radius: 12px; box-shadow: var(--shadow); }
.hero-shot { max-width: 1040px; margin: 0 auto 40px; padding: 0 24px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section > h2 { font-size: clamp(30px, 4vw, 44px); text-align: center; margin-bottom: 40px; }

/* Features: text beside a screenshot, alternating sides */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 48px 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature > * { min-width: 0; }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.feature h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-bottom: 14px; }
.feature p:not(.eyebrow) { color: var(--muted); margin: 0; }
.extras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.extras li { background: var(--bg-soft); padding: 22px 24px; color: var(--muted); }
.extras strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Privacy */
.privacy { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-soft); border-radius: 18px; padding: 28px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Getting started */
.start { text-align: center; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0 auto 36px; max-width: 760px; display: grid; gap: 22px; text-align: left; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps span {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); margin: 2px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { max-width: 1120px; margin: 40px auto 0; padding: 28px 24px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 10px; max-width: 820px; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

/* 404 */
.lost { text-align: center; padding: 120px 24px; }
.lost img { margin: 0 auto 24px; border-radius: 22.5%; }
.lost h1 { font-size: 40px; }
.lost p { color: var(--muted); }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .hero { padding: 24px 16px 24px; }
  .hero-icon { width: 88px; height: 88px; }
  main, .hero-shot { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .hero-text { padding: 28px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature.flip .feature-text { order: 0; }
  .extras, .cards { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
