/* Koha Player website: dark, modern, the app's koel red. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(/fonts/sora-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Sora; font-weight: 700; font-display: swap; src: url(/fonts/sora-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #08090d;
  --card: #10121a;
  --soft: #171a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f4f8;
  --text-2: #a9adbb;
  --text-3: #6e7383;
  --accent: #f0444f;
  --accent-2: #ff6a72;
  --violet: #8b6bff;
  --accent-soft: rgba(240, 68, 79, 0.14);
  --display: Sora, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  --radius: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--text-3); }

/* Soft colour behind the top of the page. */
.glow {
  position: absolute;
  inset: -200px 0 auto 0;
  height: 1100px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(240, 68, 79, 0.28), transparent 70%),
    radial-gradient(700px 500px at 80% 20%, rgba(139, 107, 255, 0.22), transparent 70%),
    radial-gradient(900px 400px at 50% 90%, rgba(240, 68, 79, 0.08), transparent 70%);
  filter: blur(10px);
}
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.5;
}

/* ---------- header / footer ---------- */
.top {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 26, 0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand img { border-radius: 9px; }
.brand small { font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.top nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 22px); font-weight: 600; font-size: 14.5px; }
.top nav a:not(.btn) { color: var(--text-2); transition: color 0.15s; }
.top nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

.foot {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 36px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--text-2); }
.foot .copy { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  font: 600 15px var(--body);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px var(--accent);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 34px -10px var(--accent); }
.btn.small { padding: 8px 15px; font-size: 14px; }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- layout ---------- */
main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
main.narrow { width: min(820px, calc(100% - 36px)); padding: 64px 0 24px; }
section { padding: clamp(52px, 8vw, 96px) 0; }
section > h2, main.narrow > h1 { font-size: clamp(30px, 4.4vw, 48px); text-align: center; margin-bottom: 40px; }
main.narrow > h1 { margin-bottom: 14px; }
main.narrow > .lead { text-align: center; margin: 0 auto 36px; }
.kicker { text-align: center; color: var(--accent-2); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 620px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 8vw, 100px);
}
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .cta { justify-content: center; } }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow:hover { color: var(--text); border-color: rgba(240, 68, 79, 0.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff 30%, #b8bcc9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-bottom: 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-meta { margin-top: 16px; color: var(--text-3); font-size: 13.5px; }

.hero-art { position: relative; }
.hero-art .window { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg); transform-origin: right center; }
@media (max-width: 960px) { .hero-art .window { transform: none; } }
.hero-logo { display: block; margin: auto; border-radius: 48px; }
.float {
  position: absolute;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(20, 22, 32, 0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
}
.f1 { top: 26%; left: -4%; }
.f2 { bottom: 18%; right: 3%; animation-delay: -2s; }
.f3 { bottom: -4%; left: 14%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .float { display: none; } }

/* A screenshot in a Mac window. */
.window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0d0f15;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 80px -20px rgba(240, 68, 79, 0.35);
}
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: #161922; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window img { display: block; width: 100%; height: auto; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  padding: 0;
  margin-top: clamp(40px, 7vw, 80px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.stats div { background: rgba(16, 18, 26, 0.85); padding: 24px; text-align: center; display: grid; gap: 2px; }
.stats b { font-family: var(--display); font-size: 28px; }
.stats span { color: var(--text-3); font-size: 14px; }

/* ---------- tour ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px auto 28px; max-width: 900px; }
.tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 600 14px var(--body);
  cursor: pointer;
  transition: all 0.15s;
}
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.tabs button.on { color: #fff; background: var(--accent-soft); border-color: rgba(240, 68, 79, 0.6); }
.tour .window { max-width: 1040px; margin: 0 auto; }

/* ---------- features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 2; }
@media (max-width: 560px) { .tile.wide { grid-column: auto; } }
.tile.wide::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(240, 68, 79, 0.22), transparent 65%);
  pointer-events: none;
}
.tile.wide:nth-child(even)::after { background: radial-gradient(circle, rgba(139, 107, 255, 0.24), transparent 65%); }
.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.tile h3 { font-size: 19px; margin: 18px 0 8px; }
.tile.wide h3 { font-size: 24px; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile.wide p { font-size: 16.5px; max-width: 440px; }

/* ---------- install ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--violet));
}
.steps p { color: var(--text-2); }

/* ---------- what's new ---------- */
.new-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: radial-gradient(500px 300px at 0% 0%, rgba(240, 68, 79, 0.16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
@media (max-width: 760px) { .new-card { grid-template-columns: 1fr; } }
.new-card .kicker { text-align: left; }
.new-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.notes { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.notes li { position: relative; padding-left: 26px; }
.notes li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: rotate 0.2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--text-2); padding: 0 40px 22px 0; }

/* ---------- final call ---------- */
.final {
  text-align: center;
  margin: 20px 0 0;
  padding: clamp(48px, 7vw, 80px) 24px;
  border-radius: 32px;
  border: 1px solid var(--line-2);
  background: radial-gradient(600px 300px at 50% 0%, rgba(240, 68, 79, 0.3), transparent 70%), radial-gradient(500px 300px at 50% 120%, rgba(139, 107, 255, 0.25), transparent 70%), #0e1017;
}
.final img { border-radius: 18px; margin-bottom: 20px; }
.final h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 12px; }
.final .lead { margin: 0 auto 28px; }

/* ---------- versions page ---------- */
.release { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); margin-bottom: 16px; }
.release-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-head h2 { font-size: 24px; }
.release-head .btn { margin-left: auto; }
.release .notes { margin: 18px 0 0; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }

/* ---------- motion ---------- */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }
