/* Servarr Companion public site */
:root {
  --bg: #0d1018;
  --panel: #151925;
  --panel2: #1b2130;
  --text: #f3f5fb;
  --muted: #a5adbd;
  --faint: #747d91;
  --line: rgba(255,255,255,.1);
  --a: #8b8cff;
  --b: #41e6b5;
  --warn: #ffd166;
  --max: 1080px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--b); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; letter-spacing: -.04em; font-size: 1.12rem; }
.brand-icon { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; flex: 0 0 32px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(93,255,164,.10); }
.brand-text { display: inline-flex; gap: .28em; align-items: baseline; }
.logo .brand-main, .logo .manag { color: var(--a); }
.logo .brand-accent, .logo .arr { color: var(--b); }
.links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.links a { color: var(--muted); padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
.links a:hover, .links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.hero { padding: 62px 0 38px; max-width: 840px; }
.kicker { margin: 0 0 13px; color: var(--b); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; }
h1 { margin: 0 0 18px; font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: .99; letter-spacing: -.06em; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.18rem); margin: 0 0 24px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font-weight: 750; font-size: .92rem; background: rgba(255,255,255,.06); }
.btn.primary { color: #08100e; background: var(--b); border-color: var(--b); }
.section { padding: 34px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 9px; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.intro { color: var(--muted); max-width: 720px; margin: 0 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.card, .svc { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 17px; }
.card h3, .svc h3 { margin: 0 0 7px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.svc h3 { color: var(--muted); font-size: .9rem; }
.pill { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); margin-top: 8px; font-weight: 700; font-size: .91rem; }
.service-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.service-name img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; filter: drop-shadow(0 0 5px rgba(93,255,164,.14)); }
.pill small { color: var(--faint); font-weight: 650; text-align: right; }
.notice { max-width: 850px; border: 1px solid rgba(139,140,255,.3); border-radius: 14px; background: rgba(139,140,255,.1); padding: 16px; color: var(--muted); }
.notice strong { color: var(--text); }
.coming-soon { margin-top: 14px; border: 1px dashed rgba(93,255,164,.24); border-radius: 14px; background: rgba(93,255,164,.045); padding: 14px; max-width: 360px; }
.coming-soon h3 { margin: 0 0 8px; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.coming-soon-pill { margin-top: 0; }

.screenshots-section { overflow: visible; }
.screenshot-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }
.screenshot-card { display: grid; gap: 8px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); padding: 8px; color: var(--muted); text-align: center; font-size: .82rem; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.screenshot-card:hover, .screenshot-card:focus-visible { transform: translateY(-8px) scale(1.08); z-index: 5; border-color: var(--b); color: var(--text); box-shadow: 0 18px 60px rgba(0,0,0,.42), 0 0 0 1px rgba(93,255,164,.2); }
.screenshot-card img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #030504; display: block; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; padding: 28px; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox:target { display: grid; }
.lightbox img { max-width: min(92vw, 620px); max-height: 88vh; object-fit: contain; border-radius: 18px; box-shadow: 0 24px 90px rgba(0,0,0,.68); border: 1px solid var(--line); background: #050807; }
.lightbox-close { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox-x { position: fixed; top: 18px; right: 18px; z-index: 101; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,17,15,.92); padding: 9px 13px; color: var(--text); font-size: .86rem; }

.footer { border-top: 1px solid var(--line); color: var(--faint); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.disclaimer { max-width: 800px; color: var(--muted); }
.legal { max-width: 850px; padding: 52px 0 68px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { margin: 34px 0 10px; font-size: 1.28rem; }
.legal h2::before { content: "# "; color: var(--b); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--b); }
.variant-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.variant-switch a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: .86rem; }
.variant-switch a.active { color: var(--text); border-color: var(--b); }

/* Flashy */
body.flashy { background: radial-gradient(circle at 15% -10%, rgba(139,140,255,.35), transparent 32rem), radial-gradient(circle at 90% 10%, rgba(65,230,181,.16), transparent 26rem), #080b13; }
.flashy .header { background: rgba(8,11,19,.72); }
.flashy h1 { background: linear-gradient(120deg, #fff, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flashy .card, .flashy .svc { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.flashy .hero { position: relative; }
.flashy .hero::after { content: ""; display: block; position: absolute; right: -180px; top: 40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(65,230,181,.18), transparent 70%); pointer-events: none; }

/* Simple */
body.simple { --bg: #111318; --panel: transparent; --panel2: #181b22; --a: #9aa0ff; --b: #d5d9e8; background: #111318; }
.simple .header { background: rgba(17,19,24,.96); }
.simple .hero { max-width: 760px; padding-bottom: 30px; }
.simple h1 { color: var(--text); max-width: 700px; font-size: clamp(1.9rem, 4.7vw, 3.45rem); }
.simple .card, .simple .svc { box-shadow: none; border-radius: 8px; background: transparent; border-color: rgba(255,255,255,.12); }
.simple .grid3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.simple .grid4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.simple .kicker { color: var(--a); }
.simple .btn { border-radius: 8px; }
.simple .btn.primary { background: var(--a); border-color: var(--a); color: #070811; }
.simple .pill { border-radius: 6px; background: rgba(255,255,255,.045); }

/* Terminal */
body.terminal { --bg: #060908; --panel: #0b110f; --panel2: #101915; --text: #d8ffe8; --muted: #8bb99e; --faint: #5d806c; --line: rgba(93,255,164,.18); --a: #7ce7ff; --b: #5dffa4; font-family: "JetBrains Mono", "SFMono-Regular", Consolas, ui-monospace, monospace; background: radial-gradient(circle at top left, rgba(93,255,164,.11), transparent 26rem), #060908; }
.terminal .header { background: rgba(6,9,8,.88); }
.terminal .logo::before { content: ""; }
.terminal h1 { font-size: clamp(1.65rem, 3.9vw, 2.85rem); letter-spacing: -.045em; max-width: 850px; }
.terminal h1::before { content: "> "; color: var(--b); }
.terminal .card, .terminal .svc, .terminal .notice { border-radius: 8px; background: rgba(11,17,15,.92); box-shadow: inset 0 0 0 1px rgba(93,255,164,.04); }
.terminal .pill { border-radius: 6px; }
.terminal .btn { border-radius: 8px; }
.terminal .btn.primary { background: transparent; color: var(--b); border-color: var(--b); }
.terminal .section h2::before { content: "# "; color: var(--b); }
.terminal .kicker { color: var(--b); }

@media (max-width: 860px) { .grid3, .grid4 { grid-template-columns: repeat(2,minmax(0,1fr)); } .screenshot-row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 620px) { .nav { align-items: flex-start; flex-direction: column; padding: 13px 0; } .links { justify-content: flex-start; } .hero { padding-top: 42px; } .grid3, .grid4 { grid-template-columns: 1fr; } .screenshot-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .screenshot-card:hover, .screenshot-card:focus-visible { transform: translateY(-4px) scale(1.03); } }

/* Temporary workflow checklist */
.checklist-hero { max-width: 980px; }
.checklist-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.btn.danger { color: #ffb4b4; border-color: rgba(255, 120, 120, .38); }
button.btn { cursor: pointer; font-family: inherit; color: inherit; }
.progress-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.progress-panel > div { border: 1px solid var(--line); border-radius: 8px; background: rgba(11,17,15,.92); padding: 14px; }
.progress-panel strong { display: block; color: var(--b); font-size: 1.55rem; line-height: 1; }
.progress-panel span { color: var(--muted); font-size: .82rem; }
.workflow-list { display: grid; gap: 18px; }
.workflow-section { border: 1px solid var(--line); border-radius: 10px; background: rgba(11,17,15,.55); overflow: hidden; }
.workflow-section h3 { margin: 0; padding: 14px 16px; color: var(--text); background: rgba(93,255,164,.07); border-bottom: 1px solid var(--line); font-size: 1rem; }
.workflow-section h3::before { content: '$ '; color: var(--b); }
.workflow-item { padding: 14px 16px; border-bottom: 1px solid rgba(93,255,164,.10); }
.workflow-item:last-child { border-bottom: 0; }
.workflow-item.ok { background: rgba(93,255,164,.045); }
.workflow-item.bad { background: rgba(255,105,105,.075); }
.workflow-main { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.workflow-title { color: var(--text); font-size: .94rem; max-width: 720px; }
.workflow-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; min-width: 280px; }
.workflow-controls label, .clear-item { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .8rem; white-space: nowrap; }
.workflow-controls label:has(input:checked) { color: var(--text); border-color: var(--b); background: rgba(93,255,164,.10); }
.workflow-controls input { accent-color: var(--b); margin-right: 4px; }
.clear-item { cursor: pointer; font-family: inherit; }
.detail-label { display: block; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.detail-label.hidden { display: none; }
.detail-label textarea { display: block; width: 100%; margin-top: 6px; resize: vertical; border: 1px solid rgba(255,120,120,.34); border-radius: 8px; background: #090d0b; color: var(--text); padding: 10px; font-family: inherit; line-height: 1.45; }
.needs-list { display: grid; gap: 10px; }
.needs-list.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 16px; color: var(--muted); }
.needs-item { border: 1px solid rgba(255,120,120,.34); border-radius: 8px; background: rgba(255,105,105,.075); padding: 12px; display: grid; gap: 4px; }
.needs-item strong { color: #ffb4b4; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.needs-item span { color: var(--text); }
.needs-item em { color: var(--muted); font-style: normal; }
@media (max-width: 820px) {
  .progress-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-main { flex-direction: column; }
  .workflow-controls { justify-content: flex-start; min-width: 0; }
}
@media (max-width: 520px) {
  .progress-panel { grid-template-columns: 1fr; }
  .workflow-controls label, .clear-item { width: 100%; }
}

.badge-only::before { content: "◆"; color: var(--b); font-size: .7rem; }
