@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Bakgrund — djup marinblå, inte kolsvart */
  --ink:     #060b14;
  --ink2:    #0a1020;
  --surface: #0e1626;
  --card:    #111c2e;
  --card2:   #162034;
  --dim:     #1e2d45;

  /* Kanter */
  --border:  rgba(99,170,255,.07);
  --border2: rgba(99,170,255,.16);

  /* Accentfärger */
  --blue:    #4d9fff;
  --blue-d:  #1a6fd4;
  --blue-l:  #7cbfff;
  --teal:    #22d3c8;
  --green:   #2dd4a0;
  --gold:    #f59e0b;
  --red:     #f06060;
  --violet:  #9b7cf5;

  /* Text */
  --text:    #eaf1fb;
  --text2:   #7e96b5;
  --muted:   #445870;

  /* Typografi */
  --sans:    'Plus Jakarta Sans', system-ui, sans-serif;
  --serif:   'Lora', Georgia, serif;
  --mono:    'JetBrains Mono', monospace;

  /* Layout */
  --r:       14px;
  --r-sm:    9px;
  --max:     1240px;
  --max-txt: 680px;
}

/* ═══════════════════════════════════════════
   RESET
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════
   BAKGRUNDSEFFEKTER
═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%,   rgba(77,159,255,.1) 0%,  transparent 65%),
    radial-gradient(ellipse 40% 35% at 80% 90%,   rgba(34,211,200,.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 50% 50%,   rgba(155,124,245,.04) 0%,transparent 60%);
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.wrap     { max-width: var(--max);    margin: 0 auto; padding: 0 4rem; position: relative; z-index: 1; }
.wrap-txt { max-width: var(--max-txt);margin: 0 auto; padding: 0 4rem; position: relative; z-index: 1; }
.section  { padding: 7rem 4rem; position: relative; z-index: 1; }
.section-alt { background: rgba(10,16,32,.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════════
   TYPOGRAFI — balanserad, inte brutalist
═══════════════════════════════════════════ */
.display {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
}
.display em {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue-l);
}

.headline {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.headline em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--blue-l);
}

.title-lg { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.title    { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.body     { font-size: 1.05rem; color: var(--text2); line-height: 1.85; }
.body-sm  { font-size: .9rem;   color: var(--text2); line-height: 1.8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.4rem;
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }

/* ═══════════════════════════════════════════
   NAVIGATION — full-width, fast i toppen
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(6,11,20,.9);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  gap: 0;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--text);
  text-decoration: none; flex-shrink: 0; margin-right: 2rem;
}
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.nav-center {
  display: flex; align-items: center; gap: .1rem;
  list-style: none; flex: 1;
}
.nav-center a {
  display: block; padding: .5rem .95rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-center a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; margin-left: auto; }
.nav-link-plain {
  padding: .48rem .9rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--text2);
  transition: color .18s;
}
.nav-link-plain:hover { color: var(--text); }
.nav-cta {
  padding: .52rem 1.2rem; border-radius: var(--r-sm);
  background: var(--blue); color: #fff;
  font-size: .875rem; font-weight: 700;
  transition: background .18s, transform .15s;
}
.nav-cta:hover { background: var(--blue-l); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   HERO — asymmetrisk 2-kolumn
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
  padding: 8rem 4rem 6rem;
  max-width: var(--max);
  margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-left { display: flex; flex-direction: column; }
.hero-eyebrow { margin-bottom: 2rem; }
.hero-title { margin-bottom: 1.8rem; }
.hero-desc { max-width: 480px; margin-bottom: 2.8rem; font-size: 1.05rem; color: var(--text2); line-height: 1.85; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-proof {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.proof-item { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.proof-check { color: var(--green); }
.proof-stat strong { color: var(--text); font-weight: 700; font-size: 1.25rem; margin-right: .2rem; }

/* HERO RIGHT — mock dashboard */
.hero-right { position: relative; }
.hero-mockup {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(77,159,255,.08);
}
.mockup-bar {
  background: var(--card2); padding: .7rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.md-red { background: #f06060; } .md-gold { background: #f59e0b; } .md-green { background: #2dd4a0; }
.mockup-url {
  flex: 1; background: var(--surface); border-radius: 5px;
  padding: .28rem .8rem; font-family: var(--mono); font-size: .72rem; color: var(--muted);
  text-align: center; margin: 0 .5rem;
}
.mockup-body { padding: 1.2rem; }
.mockup-kpi { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; margin-bottom: 1rem; }
.mkpi {
  background: var(--surface); border-radius: 8px; padding: .8rem;
  border: 1px solid var(--border);
}
.mkpi-lbl { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .3rem; }
.mkpi-val { font-family: var(--sans); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.mockup-chart { background: var(--surface); border-radius: 8px; padding: 1rem; border: 1px solid var(--border); }
.chart-label { font-family: var(--mono); font-size: .62rem; color: var(--muted); margin-bottom: .7rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.bar {
  flex: 1; border-radius: 3px 3px 0 0; transition: opacity .2s;
  background: var(--blue);
}
.mockup-insight {
  margin-top: .7rem; background: rgba(77,159,255,.06);
  border: 1px solid rgba(77,159,255,.15); border-radius: 8px;
  padding: .8rem; display: flex; gap: .7rem; align-items: flex-start;
}
.insight-ico { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.insight-txt { font-size: .78rem; color: var(--text2); line-height: 1.65; }
.insight-txt strong { color: var(--blue-l); }

/* FLOATING BADGE på mockup */
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--card); border: 1px solid rgba(45,212,160,.3);
  border-radius: 12px; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  font-size: .82rem; font-weight: 600;
}
.badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  background: var(--border); gap: 1px;
}
.stat-cell  { background: var(--card); padding: 2.2rem 2rem; text-align: center; }
.stat-num   { display: block; font-family: var(--sans); font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: .4rem; letter-spacing: -.03em; }
.stat-num em{ font-style: normal; color: var(--blue); }
.stat-lbl   { font-size: .78rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.stat-src   { font-size: .68rem; color: var(--dim); margin-top: .4rem; }

/* ═══════════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.fi {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.fi-blue   { background: rgba(77,159,255,.1);  border: 1px solid rgba(77,159,255,.2);  }
.fi-teal   { background: rgba(34,211,200,.1);  border: 1px solid rgba(34,211,200,.2);  }
.fi-gold   { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.2);  }
.fi-green  { background: rgba(45,212,160,.1);  border: 1px solid rgba(45,212,160,.2);  }
.fi-violet { background: rgba(155,124,245,.1); border: 1px solid rgba(155,124,245,.2); }
.fi-red    { background: rgba(240,96,96,.1);   border: 1px solid rgba(240,96,96,.2);   }

/* ═══════════════════════════════════════════
   SÖMNFASER — 2-kolumn, med tidslinje
═══════════════════════════════════════════ */
.phase-row {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem 0; border-bottom: 1px solid var(--border);
}
.phase-row:last-child { border-bottom: none; }
.phase-icon { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* ═══════════════════════════════════════════
   FAKTORKORT — 3-kolumn
═══════════════════════════════════════════ */
.factor-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.factor-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.6rem;
  transition: border-color .2s;
}
.factor-card:hover { border-color: var(--border2); }
.factor-emoji { font-size: 1.8rem; margin-bottom: 1rem; }
.factor-tip {
  border-radius: var(--r-sm); padding: .65rem .9rem;
  font-size: .8rem; margin-top: 1rem; line-height: 1.7;
}
.tip-warn    { background: rgba(245,158,11,.06);  border: 1px solid rgba(245,158,11,.18);  color: var(--text2); }
.tip-ok      { background: rgba(45,212,160,.06);  border: 1px solid rgba(45,212,160,.18);  color: var(--text2); }
.tip-info    { background: rgba(77,159,255,.06);  border: 1px solid rgba(77,159,255,.18);  color: var(--text2); }
.tip-str     { font-weight: 600; }
.tip-warn .tip-str { color: var(--gold); }
.tip-ok   .tip-str { color: var(--green); }
.tip-info .tip-str { color: var(--blue); }

/* ═══════════════════════════════════════════
   CBT-I STEG
═══════════════════════════════════════════ */
.cbti-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
}
.cbti-step:last-child { border-bottom: none; }
.cbti-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(77,159,255,.1); border: 1px solid rgba(77,159,255,.22);
  color: var(--blue); font-size: .76rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: .1rem;
}

/* ═══════════════════════════════════════════
   LOGG-FÄLT
═══════════════════════════════════════════ */
.log-field {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.log-field:last-child { border-bottom: none; }
.log-ico  { font-size: 1rem; width: 24px; text-align: center; flex-shrink: 0; margin-top: .1rem; }
.log-name { font-size: .88rem; font-weight: 600; margin-bottom: .15rem; }
.log-desc { font-size: .78rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════
   DATA ROW (klinisk effekt)
═══════════════════════════════════════════ */
.data-row { display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.88rem; }
.data-row:last-child { border-bottom:none; }
.data-label { color:var(--text2); }
.data-value { color:var(--green);font-weight:700;font-family:var(--mono);font-size:.82rem; }

/* ═══════════════════════════════════════════
   TEKNIK-KORT
═══════════════════════════════════════════ */
.technique { padding:.85rem 1rem;background:var(--card2);border-radius:var(--r-sm);border:1px solid var(--border);margin-bottom:.6rem; }
.technique:last-child { margin-bottom:0; }
.technique-name { color:var(--blue);font-size:.86rem;font-weight:600;margin-bottom:.28rem; }
.technique-desc { color:var(--muted);font-size:.79rem;line-height:1.7; }

/* ═══════════════════════════════════════════
   PRISER — sida vid sida, tydlig
═══════════════════════════════════════════ */
.price-cols { display: grid; grid-template-columns: 1fr 1.08fr; gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2.2rem 2rem; position: relative;
  transition: border-color .3s;
}
.price-card.featured {
  border-color: rgba(77,159,255,.3);
  background: linear-gradient(155deg, rgba(77,159,255,.06), var(--card));
  box-shadow: 0 0 56px rgba(77,159,255,.07);
}
.price-badge-pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: .25rem 1.1rem;
  border-radius: 50px; font-size: .7rem; font-weight: 700; white-space: nowrap; letter-spacing: .04em;
}
.price-tier   { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 1.1rem; }
.price-amount { font-family: var(--sans); font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: .4rem; letter-spacing: -.04em; }
.price-amount sup { font-size: 1.1rem; vertical-align: super; font-weight: 600; }
.price-amount em  { font-style: normal; font-size: .88rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-desc { font-size: .88rem; color: var(--muted); margin-bottom: 1.8rem; line-height: 1.75; min-height: 3em; }
.price-list { list-style: none; margin-bottom: 2rem; }
.price-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .55rem 0; font-size: .88rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.price-list li:last-child { border-bottom: none; }
.pl-ok { color: var(--green); flex-shrink: 0; font-size: .9rem; margin-top: .05rem; }
.pl-no { color: var(--dim);   flex-shrink: 0; font-size: .9rem; margin-top: .05rem; }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-item   { border-bottom: 1px solid var(--border); }
.faq-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 0; background: none; border: none; color: var(--text);
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: left; gap: 1rem; transition: color .18s;
}
.faq-toggle:hover { color: var(--blue); }
.faq-arr    { color: var(--blue); transition: transform .28s; flex-shrink: 0; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.faq-body   { display: none; padding-bottom: 1.4rem; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.faq-item.open .faq-body { display: block; }

/* ═══════════════════════════════════════════
   INFO BOXAR
═══════════════════════════════════════════ */
.box-info    { background: rgba(77,159,255,.06);   border: 1px solid rgba(77,159,255,.18);  border-radius: var(--r-sm); padding: 1rem 1.3rem; font-size: .88rem; color: var(--text2); line-height: 1.85; }
.box-warn    { background: rgba(245,158,11,.06);   border: 1px solid rgba(245,158,11,.18);  border-radius: var(--r-sm); padding: 1rem 1.3rem; font-size: .88rem; color: var(--text2); line-height: 1.85; }
.box-success { background: rgba(45,212,160,.06);   border: 1px solid rgba(45,212,160,.18);  border-radius: var(--r-sm); padding: 1rem 1.3rem; font-size: .88rem; color: var(--text2); line-height: 1.85; }
.box-danger  { background: rgba(240,96,96,.06);    border: 1px solid rgba(240,96,96,.18);   border-radius: var(--r-sm); padding: 1rem 1.3rem; font-size: .88rem; color: var(--text2); line-height: 1.85; }
.box-info strong    { color: var(--blue); }
.box-warn strong    { color: var(--gold); }
.box-success strong { color: var(--green); }
.box-danger strong  { color: var(--red); }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .8rem; border-radius: 50px;
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
}
.badge-blue   { background: rgba(77,159,255,.1);  color: var(--blue);   border: 1px solid rgba(77,159,255,.2);  }
.badge-teal   { background: rgba(34,211,200,.1);  color: var(--teal);   border: 1px solid rgba(34,211,200,.2);  }
.badge-green  { background: rgba(45,212,160,.1);  color: var(--green);  border: 1px solid rgba(45,212,160,.2);  }
.badge-gold   { background: rgba(245,158,11,.1);  color: var(--gold);   border: 1px solid rgba(245,158,11,.2);  }
.badge-red    { background: rgba(240,96,96,.1);   color: var(--red);    border: 1px solid rgba(240,96,96,.2);   }
.badge-violet { background: rgba(155,124,245,.1); color: var(--violet); border: 1px solid rgba(155,124,245,.2); }
.badge-muted  { background: rgba(68,88,112,.15);  color: var(--muted);  border: 1px solid rgba(68,88,112,.25);  }
.badge-white  { background: rgba(255,255,255,.06);color: var(--text2);  border: 1px solid rgba(255,255,255,.1); }

/* ═══════════════════════════════════════════
   KNAPPAR
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: var(--r-sm); border: none;
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
  line-height: 1; white-space: nowrap; transition: all .18s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-l); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(77,159,255,.28); }
.btn-outline { background: transparent; color: var(--text2); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost   { background: rgba(255,255,255,.04); color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: rgba(255,255,255,.07); color: var(--text); }
.btn-teal    { background: var(--teal); color: #000; }
.btn-teal:hover { filter: brightness(1.1); }
.btn-danger  { background: rgba(240,96,96,.1); color: var(--red); border: 1px solid rgba(240,96,96,.22); }
.btn-danger:hover { background: rgba(240,96,96,.18); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: .52rem 1.1rem; font-size: .83rem; }
.btn-xs { padding: .3rem .8rem; font-size: .75rem; border-radius: 6px; }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none !important; }
.w-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.grid-2-1 { display: grid; grid-template-columns: 1fr .9fr; gap: 4rem; align-items: start; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card  { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .25s; }
.card:hover { border-color: var(--border2); }
.card-p  { padding: 1.8rem; }
.card-pm { padding: 1.4rem; }
.card-ps { padding: 1.1rem; }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-group   { margin-bottom: 1.4rem; }
.form-label   { display: block; font-size: .83rem; font-weight: 600; color: var(--text2); margin-bottom: .48rem; }
.form-input   {
  width: 100%; background: var(--card2); border: 1.5px solid var(--border2);
  border-radius: var(--r-sm); color: var(--text); font-family: var(--sans);
  font-size: .95rem; padding: .85rem 1.1rem; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-input:focus  { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77,159,255,.11); }
.form-input::placeholder { color: var(--dim); }
select.form-input  { cursor: pointer; }
textarea.form-input { min-height: 88px; resize: vertical; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-hint  { font-size: .76rem; color: var(--muted); margin-top: .38rem; }

/* ═══════════════════════════════════════════
   TABELLER
═══════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--card2); }
td { padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.03); color: var(--text2); font-size: .88rem; vertical-align: middle; }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(77,159,255,.02); }

/* ═══════════════════════════════════════════
   TOGGLE
═══════════════════════════════════════════ */
.toggle-row { display:flex;align-items:center;justify-content:space-between;padding:.85rem 1rem;background:var(--card2);border:1px solid var(--border);border-radius:var(--r-sm);margin-bottom:.55rem; }
.toggle-label strong { display:block;font-size:.88rem;margin-bottom:.12rem; }
.toggle-label span   { font-size:.76rem;color:var(--muted); }
.toggle { position:relative;width:44px;height:24px;flex-shrink:0; }
.toggle input { opacity:0;width:0;height:0; }
.toggle-track { position:absolute;inset:0;background:var(--dim);border-radius:50px;cursor:pointer;transition:.28s; }
.toggle-track::before { content:'';position:absolute;width:16px;height:16px;left:4px;top:4px;background:var(--muted);border-radius:50%;transition:.28s; }
.toggle input:checked + .toggle-track { background:rgba(45,212,160,.18);border:1px solid var(--green); }
.toggle input:checked + .toggle-track::before { transform:translateX(20px);background:var(--green); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer { border-top: 1px solid var(--border); padding: 5rem 4rem 3rem; position: relative; z-index: 1; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { font-size: .87rem; color: var(--muted); margin-top: .65rem; max-width: 250px; line-height: 1.8; }
.footer-col h5 { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--dim); font-size: .87rem; padding: .28rem 0; transition: color .18s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 1.8rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: .79rem; color: var(--dim); flex-wrap: wrap; gap: 1rem; }
.f-badges { display: flex; gap: .45rem; }
.f-badge { background: var(--card); border: 1px solid var(--border); padding: .2rem .62rem; border-radius: 5px; font-family: var(--mono); font-size: .62rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   ANIMATIONER
═══════════════════════════════════════════ */
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin   { to{transform:rotate(360deg)} }
@keyframes barLoad { from { height: 0; } }

.a1 { animation: fadeUp .55s .05s ease both; }
.a2 { animation: fadeUp .55s .15s ease both; }
.a3 { animation: fadeUp .55s .25s ease both; }
.a4 { animation: fadeUp .55s .35s ease both; }
.a5 { animation: fadeUp .55s .45s ease both; }

.reveal { opacity:0; transform:translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.mt-2 { margin-top: 1rem; }   .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }   .mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }   .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
code { font-family: var(--mono); font-size: .84em; background: rgba(77,159,255,.1); padding: .12rem .38rem; border-radius: 4px; color: var(--blue); }
pre  { background: rgba(0,0,0,.5); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.3rem; overflow-x: auto; font-family: var(--mono); font-size: .79rem; line-height: 1.8; color: var(--text2); }
.spin { width:17px;height:17px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block;flex-shrink:0; }

/* ═══════════════════════════════════════════
   BAKÅTKOMPATIBILITET — gamla token-namn
═══════════════════════════════════════════ */
:root {
  --bg: var(--ink); --bg2: var(--ink2);
  --border-h: var(--border2);
  --card2: #162034;
}

/* ═══════════════════════════════════════════
   RESPONSIVT
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 7rem 2.5rem 4rem; min-height: auto; }
  .hero-right { display: none; }
  .grid-4    { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { font-size: 15px; }
  .wrap, .wrap-txt { padding: 0 1.8rem; }
  .section { padding: 5rem 1.8rem; }
  .feature-grid, .factor-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar  { grid-template-columns: 1fr 1fr; }
  .price-cols { grid-template-columns: 1fr; max-width: 460px; }
  .grid-2-1   { grid-template-columns: 1fr; }
  .nav { padding: 0 1.5rem; }
  .nav-center { display: none; }
  .hero { padding: 6rem 1.8rem 4rem; }
  footer { padding: 4rem 1.8rem 2rem; }
}
@media (max-width: 580px) {
  .feature-grid, .factor-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
}
