/* ==========================================================================
   SIBO AI — siboai.app
   Egen CSS. Inga externa typsnitt, inga CDN:er, inga cookies, ingen JS.
   ========================================================================== */

:root {
  --bg:            #0e120d;
  --bg-soft:       #141a13;
  --card:          #19201a;
  --card-hi:       #1e2721;
  --border:        #2a342a;
  --border-hi:     #3a4638;
  --text:          #edf2ea;
  --muted:         #9fae9d;
  --muted-dim:     #78856f;
  --accent:        #8fc7a1;
  --accent-strong: #6fa87f;
  --accent-deep:   #3f6b4d;
  --cream:         #f4ece2;
  --warm:          #d98a63;
  --gold:          #e0c58c;
  --violet:        #b39ad8;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 16px; }
strong { color: #fff; font-weight: 650; }

.eyebrow {
  font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 18, 13, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; gap: 26px;
  max-width: var(--wrap); padding-top: 13px; padding-bottom: 13px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 16.5px; letter-spacing: -.01em;
  text-decoration: none; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
header.site nav { display: flex; gap: 24px; align-items: center; }
header.site nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
header.site nav a:hover { color: var(--text); text-decoration: none; }

/* Språkväxlare — alltid synlig, även när navigeringen göms på smal skärm */
.langs { display: flex; align-items: center; gap: 1px; }
.langs a {
  color: var(--muted-dim); font-size: 13px; font-weight: 650; letter-spacing: .04em;
  padding: 6px 8px; border-radius: 8px; text-decoration: none;
}
.langs a:hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.05); }
.langs a[aria-current="page"] { color: var(--accent); background: rgba(143,199,161,.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15.5px; font-weight: 620; letter-spacing: -.005em;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #0c130d; }
.btn-primary:hover { background: #a3d6b3; }
.btn-ghost { border-color: var(--border-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 17px; font-size: 14.5px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin: 30px 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 900px;
  background:
    radial-gradient(58% 52% at 22% 12%, rgba(111,168,127,.22), transparent 68%),
    radial-gradient(46% 44% at 82% 4%, rgba(179,154,216,.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 74px; padding-bottom: 70px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  border: 1px solid var(--border-hi); background: rgba(143,199,161,.06);
  font-size: 13.5px; font-weight: 560; color: var(--accent); margin-bottom: 22px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(143,199,161,.16);
}

/* Telefoner */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone {
  width: 268px; flex: 0 0 auto;
  background: #05070400; border: 1px solid var(--border-hi);
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #232c22, #0d110c);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
.phone img { border-radius: 30px; display: block; }
.phone-back { transform: translateX(30px) scale(.9); margin-left: -76px; opacity: .82; }
.phone-front { position: relative; z-index: 2; }

/* ---------- Sektionsramar ---------- */
section { padding: 78px 0; }
section.tight { padding: 56px 0; }
.section-rule { border-top: 1px solid var(--border); }
.section-head { max-width: 74ch; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Kort / rutnät ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
}
.card-hi {
  background: linear-gradient(168deg, var(--card-hi), var(--card));
  border-color: var(--border-hi);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico { margin-bottom: 15px; }

.ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(143,199,161,.1); border: 1px solid rgba(143,199,161,.2);
}
.ico svg { width: 21px; height: 21px; stroke: var(--accent); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-warm { background: rgba(217,138,99,.1); border-color: rgba(217,138,99,.22); }
.ico-warm svg { stroke: var(--warm); }
.ico-violet { background: rgba(179,154,216,.1); border-color: rgba(179,154,216,.22); }
.ico-violet svg { stroke: var(--violet); }

/* ---------- Sifferrad ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-soft); padding: 24px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Funktion: text + telefon ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 54px; align-items: center; }
.split .phone { width: 258px; margin: 0 auto; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 13px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: .58em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist li strong { color: var(--text); }

/* ---------- Korrelationsbeviset ---------- */
.proof {
  background: var(--card); border: 1px solid var(--border-hi);
  border-left: 3px solid var(--warm);
  border-radius: 14px; padding: 22px 24px; margin: 16px 0;
}
.proof h3 { margin-bottom: 6px; }
.proof .finding { color: var(--text); font-size: 17.5px; margin-bottom: 10px; }
.proof .meta { font: 500 13.5px/1.6 var(--mono); color: var(--accent); }
.proof .meta em { color: var(--muted-dim); font-style: normal; }
.bullet-warm { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--warm); margin-right: 9px; vertical-align: middle; }

/* ---------- Bildband ---------- */
.strip {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 22px 26px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.strip .shot { flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.strip .shot img { border-radius: 26px; border: 1px solid var(--border-hi); }
.strip .shot figcaption { color: var(--muted); font-size: 14px; margin-top: 13px; text-align: center; }
.strip .shot.wide { width: 420px; align-self: center; }
.strip .shot.wide img { border-radius: 16px; }
.strip figure { margin: 0; }

/* ---------- Bred bandbild (t.ex. AI-utdraget) ---------- */
figure.banner { margin: 46px 0 0; max-width: 900px; }
figure.banner img { border-radius: 16px; border: 1px solid var(--border-hi); }
figure.banner figcaption {
  color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 74ch;
}
figure.banner figcaption em { color: var(--text); font-style: italic; }

/* ---------- Integritet ---------- */
.privacy-band {
  background: linear-gradient(170deg, #16211a, #101610);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ticklist { list-style: none; padding: 0; margin: 0; }
.ticklist li { padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.ticklist li:last-child { border-bottom: 0; }
.ticklist b { color: var(--text); }

/* ---------- Pris ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(266px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.plan-hi { border-color: var(--accent-deep); background: linear-gradient(168deg, #1d2a20, var(--card));
  box-shadow: 0 18px 44px rgba(0,0,0,.36); position: relative; }
.plan .tag {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #0c130d; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.plan h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1.1; margin: 14px 0 4px; }
.price small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan ul li { padding: 8px 0 8px 27px; position: relative; color: var(--muted); font-size: 15.5px; }
.plan ul li::before {
  content: ""; position: absolute; left: 4px; top: .68em; width: 10px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan ul li.off::before {
  border: 0; border-top: 2px solid var(--muted-dim);
  transform: none; width: 11px; height: 0; top: .84em;
}
.plan ul li.off { color: var(--muted-dim); }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); padding: 0; margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 20px 52px 20px 24px; position: relative;
  font-weight: 600; font-size: 16.5px; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .18s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.faq[open] summary { border-bottom: 1px solid var(--border); }
details.faq .answer { padding: 20px 24px 6px; color: var(--muted); }
details.faq .answer p:last-child { margin-bottom: 18px; }

/* ---------- Slut-CTA ---------- */
.final {
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(111,168,127,.20), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 84px 0; text-align: center;
}
.final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
footer.site { color: var(--muted-dim); font-size: 14.5px; }
footer.site .wrap { padding-top: 52px; padding-bottom: 60px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px; margin-bottom: 38px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.foot-grid a { display: block; color: var(--muted); margin-bottom: 9px; font-size: 14.5px; }
.foot-grid a:hover { color: var(--accent); text-decoration: none; }
.foot-bar { border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.foot-bar p { margin: 0; }

/* ---------- Läsbara textblock (policy/support) ---------- */
.doc { max-width: 78ch; }
.doc h2 { margin-top: 46px; }
.doc h3 { margin-top: 30px; }
.doc table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--card-hi); font-weight: 650; }
.doc code { background: var(--card-hi); padding: 2px 6px; border-radius: 5px;
  font: 500 14px var(--mono); }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 8px; color: var(--muted); }
.doc li strong { color: var(--text); }
.todo { background: #3a2f18; color: #ffd98a; padding: 2px 7px; border-radius: 5px;
  font-size: 14px; white-space: nowrap; }

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero .wrap { padding-top: 52px; padding-bottom: 52px; }
  .phones { justify-content: center; }
  .phone-back { margin-left: -46px; transform: translateX(18px) scale(.92); }
  .split { gap: 38px; }
  header.site nav { display: none; }
  header.site .wrap { gap: 14px; }
  section { padding: 60px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .phone { width: 216px; }
  .phone-back { margin-left: -34px; transform: translateX(12px) scale(.94); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 26px; }
  .strip { padding-left: 0; padding-right: 0; }
  .strip .shot.wide { width: 300px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  figure.banner { margin-top: 34px; }
  header.site .wrap { gap: 10px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand img { width: 26px; height: 26px; }
  .langs a { padding: 6px 6px; }
  header.site .btn-sm { padding: 9px 13px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  header.site, .final, .strip { display: none; }
  body { background: #fff; color: #000; }
}
