/* Split Control website. Colours follow the app (orange accent on dark ink). */
:root {
  --bg: #101215;
  --surface: #191d22;
  --raised: #232930;
  --border: #343b44;
  --text: #f1f3f5;
  --muted: #aab4c0;
  --faint: #768391;
  --accent: #ff650f;
  --accent-hover: #ff7b33;
  --radius: 12px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

code, kbd, pre { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--raised); padding: 0.1em 0.4em; border-radius: 4px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; text-align: center;
  background: var(--raised); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.4em; font-weight: 800; }
h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 0.4em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 18, 21, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--raised); }

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

/* Home */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0 0 12px; }
.hero p.lead { color: var(--muted); font-size: 1.2rem; margin: 0 0 28px; max-width: 34em; }
.hero-mark { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 20px 50px rgba(255, 101, 15, 0.25)); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; border: 1px solid var(--border); background: var(--raised); color: var(--text);
}
.button:hover { text-decoration: none; color: var(--text); border-color: var(--faint); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #171a1d; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #171a1d; }
.button.disabled { opacity: 0.5; pointer-events: none; }

.section-intro { color: var(--muted); max-width: 46em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin: 0.4em 0 0; }
.card ul { color: var(--muted); padding-left: 1.2em; margin: 0.6em 0 0; }

/* Downloads */
.downloads .card { display: flex; flex-direction: column; gap: 10px; }
.downloads .card .button { margin-top: auto; justify-content: center; }
.downloads .meta { color: var(--faint); font-size: 0.9rem; }
.release-status { color: var(--muted); margin: 0 0 16px; }
.notice { background: rgba(255, 101, 15, 0.08); border: 1px solid rgba(255, 101, 15, 0.35); border-radius: var(--radius); padding: 14px 18px; color: var(--text); }
.notice p { margin: 0.3em 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Manual: sidebar + content */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; font-size: 0.92rem; }
.toc p { color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li a { display: block; padding: 5px 10px; color: var(--muted); border-left: 2px solid var(--border); }
.toc li a:hover { color: var(--text); border-left-color: var(--accent); text-decoration: none; }
.doc-body { min-width: 0; overflow-wrap: anywhere; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h2 { padding-top: 12px; border-top: 1px solid var(--border); }
.doc-body li { margin: 0.25em 0; }
.tip { border-left: 3px solid var(--accent); background: var(--surface); padding: 10px 16px; border-radius: 0 8px 8px 0; color: var(--muted); }
.tip strong { color: var(--text); }

/* FAQ */
.faq { max-width: 820px; padding-top: 40px; }
.faq h2 { font-size: 1.2rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2em; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 1.3rem; color: var(--faint); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 18px 14px; color: var(--muted); }
details > div p:first-child { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--faint); font-size: 0.9rem; }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 28px 20px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  html { scroll-padding-top: 160px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-mark { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; margin-bottom: 24px; }
  .site-header .inner { flex-wrap: wrap; gap: 8px; }
  .site-nav { margin-left: 0; }
}

/* Looks */
.looks-intro { padding-top: 40px; }
.looks-intro .notice { margin: 20px 0 24px; }
.looks-grid .look { display: flex; flex-direction: column; gap: 6px; }
.looks-grid .look .button { justify-content: center; }
.looks-grid .pv-try { margin-top: auto; font-weight: 600; }
.looks-grid .look h3 { margin: 6px 0 0; }
.swatches { display: flex; gap: 6px; }
.swatches span { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); }
.card .approved-only { align-self: flex-start; margin: 0; padding: 2px 10px; border: 1px solid #f0b429; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #f0b429; }
.badge { font-size: 0.7rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.meta { color: var(--faint); font-size: 0.9rem; }
