/* Sidstuga — landing page
   Light/dark dual-theme via prefers-color-scheme.
   No JS, no external fonts, system stack only. ~12 KB CSS. */

:root {
  --brand: #5b3aa8;
  --brand-2: #7a5dcc;
  --brand-soft: #f0e8fc;

  /* Light theme (default) */
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f6f6fa;
  --line: #ececef;
  --line-2: #dfdfe5;
  --text: #0d0d12;
  --text-2: #4a4a55;
  --text-3: #8d8d99;
  --btn-bg: #0d0d12;
  --btn-fg: #ffffff;
  --code-bg: #f0eff7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 8px 28px rgba(91, 58, 168, .10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px rgba(91, 58, 168, .14), 0 8px 16px rgba(0,0,0,.08);

  --max: 1100px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8a6ed4;
    --brand-2: #a98ee8;
    --brand-soft: #1f1830;
    --bg: #0a0a0f;
    --surface: #14141b;
    --surface-2: #1c1c25;
    --line: #232330;
    --line-2: #2c2c3a;
    --text: #ececef;
    --text-2: #b0b0bc;
    --text-3: #6a6a78;
    --btn-bg: #ffffff;
    --btn-fg: #0d0d12;
    --code-bg: #2a2538;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 8px 28px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55), 0 8px 16px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
p  { margin: 0 0 1em; }
code {
  background: var(--code-bg);
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .92em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* ── Header ────────────────────────────────────────────── */
header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.word { font-size: 17px; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--text-2); font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--text); }
nav .nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
nav .nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

/* ── Language picker (CSS-only dropdown via <details>) ── */
.lang-picker { position: relative; }
.lang-picker summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::marker { display: none; }
.lang-picker summary:hover { color: var(--text); background: var(--surface-2); }
.lang-picker[open] summary { color: var(--text); background: var(--surface-2); }
.lang-picker ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  list-style: none;
  margin: 0;
  padding: 6px;
  box-shadow: var(--shadow-md);
  z-index: 20;
}
.lang-picker li { margin: 0; }
.lang-picker li a {
  display: block;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.lang-picker li a:hover { background: var(--brand-soft); color: var(--brand); }
.lang-picker li a[aria-current="true"] { color: var(--brand); font-weight: 700; }

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  top: -50px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 999;
  font-weight: 600;
  font-size: 14px;
  transition: top .15s;
}
.skip-link:focus { top: 8px; color: #fff; }

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

/* ── Section helpers ─────────────────────────────────── */
.section-kicker {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: 56px 0 24px; text-align: center; }
.kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero h1 {
  margin: 0 auto 20px;
  max-width: 880px;
  line-height: 1.05;
}
.hero h1 .ink {
  background: linear-gradient(90deg, var(--brand) 0%, #c4a3f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 28px;
}
.actions { display: flex; justify-content: center; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn.primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn.primary.big { padding: 16px 32px; font-size: 16px; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.play-glyph { width: 18px; height: 18px; }
.micro { color: var(--text-3); font-size: 13px; margin: 8px 0 0; }

/* ── Phone mockup ──────────────────────────────────── */
.mockup { display: flex; justify-content: center; padding: 56px 0 24px; }
.phone {
  width: 280px;
  height: 560px;
  background: #0a0a0e;
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0a0a0e;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.screen {
  width: 100%; height: 100%;
  background: #14141b;
  border-radius: 30px;
  padding: 38px 12px 12px;
  overflow: hidden;
  position: relative;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px 10px;
  font-size: 10px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.status-bar .signal {
  width: 14px; height: 8px;
  background: rgba(255,255,255,.7);
  clip-path: polygon(0 100%, 25% 100%, 25% 75%, 50% 75%, 50% 50%, 75% 50%, 75% 25%, 100% 25%, 100% 100%);
}
.now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(91,58,168,.45), rgba(91,58,168,.15));
  border-radius: 8px;
  border: 1px solid rgba(124,92,198,.4);
}
.live-tag {
  background: #d23a3a;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: .05em;
}
.now-title { color: #fff; font-size: 11.5px; font-weight: 700; }
.now-title-bar {
  flex: 1;
  height: 8px;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.5) 100%);
  border-radius: 3px;
  max-width: 70%;
}
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  margin-bottom: 3px;
}
.row.playing {
  background: rgba(91,58,168,.18);
  border: 1px solid rgba(124,92,198,.32);
}
.logo {
  width: 30px; height: 30px;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo.a { background: linear-gradient(135deg, #5b3aa8, #8a6ed4); }
.logo.b { background: linear-gradient(135deg, #2a3d7a, #5570cb); }
.logo.c { background: linear-gradient(135deg, #7a3a5b, #c66c8c); }
.logo.d { background: linear-gradient(135deg, #2a5a3d, #5cb377); }
.logo.e { background: linear-gradient(135deg, #7a5a2a, #c89a4d); }
.logo.f { background: linear-gradient(135deg, #4a4a5a, #7a7a8a); }
.meta { flex: 1; min-width: 0; }
.title { margin-bottom: 4px; }
.bar {
  height: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,255,255,.18));
  border-radius: 3px;
}
.row .sub .bar { height: 5px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); }
.row.playing .title .bar { background: linear-gradient(90deg, #fff, rgba(255,255,255,.65)); }
.row.playing .sub   .bar { background: linear-gradient(90deg, #c4a3f4, rgba(196,163,244,.5)); }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.badge.purple {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--brand-2);
}

/* ── Trust bar ─────────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.trust-label { font-size: 13px; color: var(--text-3); }

/* ── Features ──────────────────────────────────────── */
.features { padding: 96px 0 24px; text-align: center; }
.features h2 { margin-bottom: 56px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.feat-ico {
  width: 36px;
  height: 36px;
  color: var(--brand);
  margin-bottom: 16px;
  background: var(--brand-soft);
  padding: 6px;
  border-radius: 9px;
  box-sizing: content-box;
}
.feat h3 { margin: 0 0 8px; }
.feat p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.55; }
.feat strong { color: var(--text); font-weight: 600; }
.feat em { color: var(--text-2); font-style: normal; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }

/* ── Screenshots ───────────────────────────────────── */
.screens { padding: 96px 0 24px; text-align: center; }
.screens h2 { margin-bottom: 8px; }
.screens-lead { color: var(--text-2); max-width: 580px; margin: 0 auto 48px; font-size: 15px; }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.screens-grid figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.screens-grid figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.screens-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.screens-grid figcaption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  text-align: left;
  border-top: 1px solid var(--line);
}

/* ── Privacy section ──────────────────────────────── */
.privacy-section { padding: 96px 0 24px; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.privacy-lead { color: var(--text-2); font-size: 15.5px; max-width: 480px; margin: 12px 0 20px; }
.link {
  font-weight: 600;
  font-size: 14.5px;
  display: inline-block;
}
.privacy-list {
  list-style: none;
  padding: 24px;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.privacy-list li:last-child { border-bottom: none; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.dot.ok { background: #3a8a5b; box-shadow: 0 0 0 3px rgba(58,138,91,.18); }

/* ── Tech specs ───────────────────────────────────── */
.techspecs { padding: 96px 0 24px; text-align: center; }
.techspecs h2 { margin-bottom: 56px; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  text-align: left;
}
.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
}
.spec h3 { color: var(--brand); margin: 0 0 14px; font-size: 1rem; }
.spec ul { margin: 0; padding-left: 18px; }
.spec li { color: var(--text-2); font-size: 13.5px; margin-bottom: 6px; line-height: 1.55; }

/* ── FAQ ──────────────────────────────────────────── */
.faq { padding: 96px 0 24px; max-width: 760px; margin: 0 auto; text-align: center; }
.faq h2 { margin-bottom: 40px; }
.faq details {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  padding: 18px 22px;
  transition: border-color .15s;
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq details em { font-family: "SF Mono", Menlo, Consolas, monospace; font-style: normal; font-size: .92em; color: var(--text-2); }

/* ── Pricing ──────────────────────────────────────── */
.pricing { padding: 96px 0 24px; text-align: center; }
.pricing h2 { margin-bottom: 36px; }
.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.price-num {
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--brand);
  margin: 0 0 8px;
  line-height: 1;
}
.price-meta { color: var(--text-3); font-size: 13.5px; margin: 0 0 28px; }
.price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.price-includes li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.price-includes li:last-child { border-bottom: none; }

/* ── Contact ──────────────────────────────────────── */
.contact { padding: 96px 0 24px; text-align: center; }
.contact h2 { margin-bottom: 48px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: left;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: block;
  color: var(--text);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.contact-card svg {
  width: 28px; height: 28px;
  color: var(--brand);
  margin-bottom: 14px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.contact-card p { color: var(--brand); font-size: 14px; margin: 0 0 8px; font-weight: 500; }
.contact-card .card-meta { color: var(--text-3); font-size: 12.5px; }

/* ── Final CTA ────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.cta-lead { color: var(--text-2); margin: 0 0 28px; font-size: 15.5px; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 56px 28px 32px;
  margin-top: 0;
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.foot-col h4 { margin: 0 0 14px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-tag { color: var(--text-2); font-size: 13.5px; max-width: 280px; margin-top: 14px; }
.foot-meta { color: var(--text-3); font-size: 12px; line-height: 1.5; margin: 4px 0; }
.foot-bottom {
  max-width: var(--max);
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}

/* ── Privacy page (privacy.html) ───────────────────── */
.privacy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}
.privacy-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 8px;
}
.privacy-page .updated { color: var(--text-3); font-size: 13.5px; margin: 0 0 36px; }
.privacy-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 36px 0 10px;
  color: var(--text);
}
.privacy-page p, .privacy-page li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.privacy-page ul { padding-left: 20px; }

/* ── Mobile tweaks ───────────────────────────────── */
@media (max-width: 720px) {
  header { padding: 14px 22px; }
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  main { padding: 0 22px; }
  .hero { padding: 32px 0 16px; }
  .phone { width: 240px; height: 480px; }
  .features, .screens, .privacy-section, .techspecs, .faq, .pricing, .contact { padding: 64px 0 16px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 64px 0; margin-top: 32px; }
  .trust { padding: 36px 0; }
}

@media (max-width: 460px) {
  .actions .btn.ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
