/* ==========================================
   DO NOT STYLE HEADER HERE
   Header/navigation styles are in:
   - components/nav-v2.css (when useHeaderV2=true)
   ========================================== */

/* ========== Design Tokens ========== */
:root {
  /* Färg */
  --bg: #0a0f14;         /* mörk bas */
  --bg-2: #0e1520;       /* mörk djup */
  --card: #121a26;       /* kort */
  --line: #1b2838;       /* hårfin kant */
  --ink: #e8eef7;        /* text */
  --muted: #a6b3c6;      /* sekundär text */
  --brand: #1fd1a1;      /* turkos */
  --accent: #ff7a45;     /* orange accent */
  --glow: rgba(31,209,161,.18);

  /* Typo & rytm */
  --font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  --h1: clamp(28px, 3.6vw, 42px);
  --h2: clamp(22px, 2.8vw, 30px);
  --lead: 1.125rem;

  /* UI */
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --ring: 0 0 0 3px rgba(31,209,161,.35);

  /* Layout */
  --maxw: 1080px;
  --pad: 72px;
}

/* ========== Reset & Base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==== Scroll hygiene ==== */
html, body {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-top: 72px; /* Space for fixed header */
}


a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}

a:hover {
  opacity: .85;
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ========== Layout ========== */
.container {
  max-width: var(--maxw);
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: var(--pad) 0;
  border-top: 1px solid var(--line);
}

.section.alt {
  background:
    radial-gradient(600px 240px at 8% 0%, var(--glow), transparent 60%),
    radial-gradient(600px 240px at 92% 0%, rgba(255,122,69,.12), transparent 60%);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ========== Typography ========== */
h1 {
  font-size: var(--h1);
  line-height: 1.18;
  margin: 0 0 10px;
  font-weight: 900;
}

h2 {
  font-size: var(--h2);
  margin: 0 0 10px;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.lead {
  font-size: var(--lead);
  color: var(--muted);
  margin: 6px 0 18px;
}

.muted {
  color: var(--muted);
}

/* ========== Header ========== */
header,
.site-header {
  min-height: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(10,15,20,.85), rgba(10,15,20,.55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.1rem;
}

.brand {
  margin-left: -8px;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Old .nav-toggle removed - navigation handled by nav-v2.css */
.nav-toggle-OLD-REMOVED {
  display: none;
}

/* ========== Elegant textbaserad språkväxlare ========== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #cfcfcf;
}

.lang-switch .divider {
  color: #555;
}

.lang-switch a {
  text-decoration: none;
  color: #bdbdbd;
  transition: color 0.2s ease, text-shadow 0.2s ease, opacity 0.2s ease;
}

.lang-switch a:hover {
  color: #ffa347;
  text-shadow: 0 0 8px rgba(255,122,0,0.45);
}

.lang-switch a[aria-current="page"],
.lang-switch a.active {
  color: #ff7a00;
  text-shadow: 0 0 10px rgba(255,122,0,0.6);
  cursor: default;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: #041a14;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: .2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--ink);
}

/* ========== Cards ========== */
.card {
  background: linear-gradient(180deg, rgba(18,26,38,.9), rgba(18,26,38,.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,209,161,.12);
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

/* ========== Hero ========== */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 8% 5%, rgba(31,209,161,.18), transparent 60%),
    radial-gradient(800px 300px at 92% -10%, rgba(255,122,69,.12), transparent 60%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% -30% -10%;
  background: radial-gradient(1200px 420px at 50% 120%, rgba(255,255,255,.05), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* AI Network Visualization - premium look med bakgrundsglow */
.hero-grid > div:last-child {
  min-height: 450px;
  position: relative;
}

/* Subtil gradient glow bakom nätverket för djup */
.hero-grid > div:last-child::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: 
    radial-gradient(ellipse at 35% 40%, rgba(255, 122, 69, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 60%, rgba(31, 209, 161, 0.12) 0%, transparent 50%);
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

/* Network pattern ovanpå glowet */
.hero-grid > div:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/network-pattern.svg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 1;
}

.hero h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e8eef7 50%, #a6b3c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.hero h2 {
  color: var(--accent);
  margin-bottom: 16px;
}

.hero .lead {
  margin-top: 12px;
  margin-bottom: 24px;
}

.tldr {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px dashed var(--brand);
  border-radius: 12px;
  background: rgba(31,209,161,.06);
}

/* ========== Chips/Pills ========== */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: #0a0f14;
  background: linear-gradient(90deg, #ff5cc3, #ff7a45 55%, #ffc64d);
  box-shadow: 0 6px 20px rgba(255,122,69,.25);
}

.chip .check {
  display: inline-grid;
  place-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a0f14;
  color: white;
  font-size: .85rem;
  line-height: 1;
}

/* ========== Lists ========== */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: var(--ink);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  background: radial-gradient(circle at 50% 50%, var(--brand) 40%, transparent 41%);
}

/* ========== Pricing ========== */
.pricing .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.price-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(18,26,38,.88), rgba(18,26,38,.82));
}

.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(31,209,161,.5), rgba(31,209,161,0) 45%, rgba(255,122,69,.35));
  filter: blur(8px);
  opacity: .55;
}

.price-card.highlight {
  border-color: var(--brand);
}

.price-card.highlight::before {
  opacity: .85;
}

.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 16px;
}

.price {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 6px 0 16px;
}

/* Enterprise tier - horisontell layout */
.enterprise-card-wrapper {
  max-width: 900px;
  margin: 24px auto 0;
}

.enterprise-card {
  position: relative;
  isolation: isolate;
  background: var(--background-elevated);
  border: 2px solid var(--accent);
  padding: 28px 32px;
}

.enterprise-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,122,69,.6), rgba(255,61,0,.3));
  filter: blur(12px);
  opacity: .7;
}

.enterprise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.enterprise-cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.generator-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.enterprise-content ul.list {
  margin-top: 0;
}

/* === PRISKORT HOVER-EFFEKT === */
.price-card,
.enterprise-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.price-card:hover,
.enterprise-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.5);
  border-color: rgba(255, 122, 0, 0.8);
}

.price-card:hover::before,
.enterprise-card:hover::before {
  opacity: 1;
  filter: blur(16px);
}

/* ========== FAQ ========== */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 10px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.faq details[open] summary {
  margin-bottom: 10px;
  color: var(--brand);
}

/* ========== Forms ========== */
.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
}

.input:focus,
.textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--brand);
}

/* Överskrid browser autofill-styling för konsistent bakgrund */
/* WebKit browsers (Chrome, Safari, Edge) */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  border-color: var(--line) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Firefox */
.input:-moz-autofill,
.input:-moz-autofill:hover,
.input:-moz-autofill:focus {
  box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
  background-color: var(--bg-2) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  transition: background-color 0s !important;
}

/* Modern browsers (standard) */
.input:autofill {
  background-color: var(--bg-2) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
  transition: background-color 0s !important;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 16px;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 20px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(10,15,20,.8), rgba(10,15,20,1));
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.foot__copyright {
  margin: 0;
  color: var(--muted);
}

.foot__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.foot__tagline {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .foot {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .foot__copyright,
  .foot__links {
    width: 100%;
    justify-content: center;
  }
  
  .foot__links {
    display: flex;
  }
  
  /* Enterprise card mobil */
  .enterprise-header {
    flex-direction: column;
  }
  
  .enterprise-cta {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  
  .enterprise-cta .btn {
    width: 100%;
  }
  
  .enterprise-content ul.list {
    grid-template-columns: 1fr;
  }
  
  .generator-cta-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  
  .generator-cta-wrapper .btn {
    width: 100%;
  }
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  
  /* Dölj gradient mesh på mobil/tablet */
  .hero-grid > div:last-child {
    display: none;
  }
  
  .pricing .grid {
    grid-template-columns: 1fr;
  }
  
  :root {
    --pad: 48px;
  }
}

@media (max-width: 760px) {
  .brand img {
    height: 28px;
  }
  
  /* Old .nav-toggle and .nav-links removed - handled by nav-v2.css */
  
  :root {
    --pad: 36px;
  }
}

/* ========== MOBILMENY: Smal & Premium ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  right: 12px;
  width: min(86vw, 320px);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 760px) {
  .mobile-nav {
    display: block;
  }
}

.mobile-nav.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__card {
  background: rgba(16, 20, 26, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,122,0,.10);
  padding: 10px 10px 12px;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 4px;
}

.mobile-nav__list li + li {
  border-top: 1px dashed rgba(255,122,0,.25);
}

.mobile-nav__list a {
  display: block;
  padding: 12px 10px;
  line-height: 1.2;
  min-height: 48px;
  color: #e9eef6;
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.mobile-nav__list a:hover {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,122,0,.12), transparent 60%);
  color: #ffd7b0;
  box-shadow: inset 0 0 0 1px rgba(255,122,0,.25);
}

.mobile-nav__list a.is-active {
  background: radial-gradient(160% 180% at 10% 10%, rgba(255,122,0,.16), transparent 60%);
  color: #ffb36b;
  box-shadow: inset 0 0 0 1px rgba(255,122,0,.35), 0 0 12px rgba(255,122,0,.25);
}

.mobile-nav__separator {
  margin: 8px 6px 6px;
  border-top: 1px dashed rgba(255,122,0,.25);
}

.mobile-nav .lang-switch {
  justify-content: center;
  padding: 6px 2px 2px;
}

/* Scroll-lås hanteras av nav-v2.css med .navv2-no-scroll class */

/* Små skärmar: dra ihop lite till */
@media (max-width: 380px) {
  .mobile-nav {
    right: 8px;
    width: min(92vw, 300px);
  }
  
  .mobile-nav__card {
    border-radius: 14px;
  }
}

/* Respekt för reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav * {
    transition: none !important;
  }
}

/* ========== AEO Generator ========== */
.gen-tabs{display:flex;gap:8px;margin:16px 0}
.gen-tab{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:8px 12px}
.gen-tab.active{border-color:var(--brand)}
.gen-panel{display:none}
.gen-panel.show{display:block}
.gen-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:760px){ .gen-grid{grid-template-columns:1fr} }
.card.dyn{margin:10px 0}
.dyn-actions{margin-top:8px;display:flex;justify-content:flex-end}
.code{white-space:pre-wrap;max-height:480px;overflow:auto}
.out-actions{display:flex;gap:8px;margin-bottom:8px}

/* ========== Navigation fixes (CLS/UX hygien) ========== */
/* Note: .site-header not used with nav-v2, header uses .navv2 instead */

/* ========== Crisp Chat Launcher & Consent ========== */
/* Chat launcher */
.chat-launcher{
  position:fixed; right:20px; bottom:20px;
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; cursor:pointer; z-index:9998;
  background:linear-gradient(90deg,#ff8a1f,#ff6a00); color:#0a0f14;
  box-shadow:0 0 18px rgba(255,120,0,.25); transition:transform .2s;
}
.chat-launcher:hover{ transform:scale(1.05); }

/* Consent modal */
.chat-consent{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); z-index:9999; }
.chat-consent.hidden{ display:none; }
.chat-consent__inner{
  background:#14181e; color:#fff; padding:24px; border-radius:12px;
  max-width:360px; text-align:center; border:1px dashed rgba(255,153,51,.4);
}
.chat-consent__actions{ display:flex; gap:8px; justify-content:center; margin-top:12px; }
.chat-btn-primary{
  background:linear-gradient(90deg,#ff8a1f,#ff6a00); color:#0a0f14;
  border:none; padding:10px 18px; border-radius:9999px; font-weight:600; cursor:pointer; min-height:48px;
}
.chat-btn-ghost{
  background:transparent; border:1px solid rgba(255,153,51,.4);
  color:#ffb077; padding:10px 18px; border-radius:9999px; cursor:pointer; min-height:48px;
}
@media (prefers-reduced-motion: reduce){
  .chat-launcher{ transition:none; }
}

/* Tooltip */
.chat-launcher[data-tip]:after{
  content:attr(data-tip);
  position:fixed; right:84px; bottom:28px;
  max-width:260px; background:rgba(20,24,30,.96); color:#fff;
  padding:10px 12px; font-size:14px; line-height:1.35;
  border-radius:10px; border:1px dashed rgba(255,153,51,.45);
  box-shadow:0 8px 24px rgba(0,0,0,.35); z-index:9999;
  opacity:0; transform:translateY(6px);
  pointer-events:none; transition:opacity .18s ease, transform .18s ease;
}
.chat-launcher[data-tip].is-tip-visible:after{ opacity:1; transform:translateY(0); }
.chat-launcher[data-tip]:before{
  content:""; position:fixed; right:68px; bottom:38px; width:0; height:0;
  border-left:8px solid rgba(20,24,30,.96);
  border-top:8px solid transparent; border-bottom:8px solid transparent;
  opacity:0; transition:opacity .18s ease; z-index:9999;
}
.chat-launcher[data-tip].is-tip-visible:before{ opacity:1; }

@media (max-width:420px){
  .chat-launcher[data-tip]:after{ right:20px; bottom:86px; }
  .chat-launcher[data-tip]:before{
    right:46px; bottom:74px;
    border-left:8px solid transparent; border-top:8px solid rgba(20,24,30,.96); border-right:8px solid transparent; border-bottom:none;
  }
}

/* Pulse (premium, subtil) */
.chat-launcher.pulse{
  box-shadow:0 0 18px rgba(255,120,0,.25), 0 0 0 0 rgba(255,120,0,.35);
  animation:chatPulse 2s ease-out infinite;
}
@keyframes chatPulse{
  0%{ box-shadow:0 0 18px rgba(255,120,0,.25), 0 0 0 0 rgba(255,120,0,.35); }
  70%{ box-shadow:0 0 18px rgba(255,120,0,.25), 0 0 0 18px rgba(255,120,0,0); }
  100%{ box-shadow:0 0 18px rgba(255,120,0,.25), 0 0 0 0 rgba(255,120,0,0); }
}
@media (prefers-reduced-motion: reduce){
  .chat-launcher.pulse{ animation:none; }
}

/* Chat: dölj dummy när Crisp är laddad */
.crisp-ready #chat-launcher { display: none !important; }

/* Chat: säker bottengap så den inte täcker CTA (fallback om offset-API saknas) */
#crisp-chatbox { bottom: 20px !important; }

/* ==========================================
   WIZARD STYLES (AEO Generator)
   Namespace: .wizard-*
   ========================================== */

/* Progress bar */
.wizard-progress {
  background: rgba(18, 26, 38, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  backdrop-filter: blur(8px);
}

.wizard-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.wizard-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 48px;
}

.wizard-progress__step:hover {
  background: rgba(255, 122, 69, 0.1);
  color: var(--ink);
}

.wizard-progress__step.active {
  color: var(--accent);
}

.wizard-progress__num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(166, 179, 198, 0.15);
  font-weight: 600;
  font-size: 0.875rem;
}

.wizard-progress__step.active .wizard-progress__num {
  background: var(--accent);
  color: #0a0f14;
}

.wizard-progress__label {
  font-size: 0.8125rem;
  text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: var(--ink);
}

/* Wizard Intro Section */
.wizard-intro-section {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 3rem;
  padding: 2rem 1rem;
}

.wizard-intro-section h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wizard-intro-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
  opacity: 0.95;
}

.wizard-intro-cta {
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .wizard-progress__label {
    display: none;
  }
  .wizard-progress__steps {
    gap: 0.25rem;
  }
}

/* Wizard steps */
.wizard-step {
  display: none;
}

.wizard-step.show {
  display: block;
  animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wizard card */
.wizard-card {
  background: linear-gradient(135deg, rgba(18, 26, 38, 0.6), rgba(14, 21, 32, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wizard-intro {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9375rem;
}

/* Form elements */
.wizard-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.wizard-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.wizard-label--inline {
  display: inline;
  font-weight: 400;
  margin-left: 0.5rem;
}

.wizard-input,
.wizard-textarea {
  background: rgba(10, 15, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.wizard-input:focus,
.wizard-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2);
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Fix autocomplete white background issue - cross-browser */
.wizard-input:-webkit-autofill,
.wizard-input:-webkit-autofill:hover,
.wizard-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 15, 20, 0.6) inset;
  box-shadow: 0 0 0 1000px rgba(10, 15, 20, 0.6) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill support */
.wizard-input:-moz-autofill,
.wizard-input:-moz-autofill:hover,
.wizard-input:-moz-autofill:focus,
.wizard-input:-moz-autofill-preview {
  background-color: rgba(10, 15, 20, 0.6) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 1000px rgba(10, 15, 20, 0.6) inset !important;
  border-color: var(--line) !important;
  filter: none;
}

.wizard-input:autofill {
  background-color: rgba(10, 15, 20, 0.6) !important;
  color: var(--ink) !important;
  box-shadow: 0 0 0 1000px rgba(10, 15, 20, 0.6) inset !important;
}

.wizard-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.wizard-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -0.25rem;
}

.wizard-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  cursor: pointer;
}

/* Buttons */
.wizard-btn {
  background: rgba(18, 26, 38, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.wizard-btn:hover {
  background: rgba(255, 122, 69, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.wizard-btn:active {
  transform: translateY(0);
}

.wizard-btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff6030);
  border-color: var(--accent);
  color: #0a0f14;
}

.wizard-btn--primary:hover {
  background: linear-gradient(135deg, #ff8a5c, var(--accent));
  box-shadow: 0 4px 16px rgba(255, 122, 69, 0.4);
}

.wizard-btn--ghost {
  background: transparent;
  border-color: transparent;
}

.wizard-btn--ghost:hover {
  background: rgba(255, 122, 69, 0.1);
  border-color: var(--line);
}

.wizard-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
}

.wizard-btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 56px;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.wizard-actions--between {
  justify-content: space-between;
}

/* Sections */
.wizard-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(10, 15, 20, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.wizard-section h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Dynamic lists */
.wizard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.wizard-item {
  background: rgba(18, 26, 38, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.wizard-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.wizard-item__title {
  font-weight: 600;
  color: var(--ink);
}

.wizard-item__remove {
  background: transparent;
  border: 1px solid rgba(255, 61, 0, 0.4);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  color: #ff6b4a;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.wizard-item__remove:hover {
  background: rgba(255, 61, 0, 0.15);
  border-color: #ff6b4a;
}

/* Preview */
.wizard-preview {
  background: #0a0f14;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.wizard-preview__toolbar {
  background: rgba(18, 26, 38, 0.8);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.wizard-preview__code {
  padding: 1.5rem;
  color: var(--ink);
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
}

/* Warnings */
.wizard-warnings {
  margin: 1rem 0;
}

.wizard-warning {
  background: rgba(255, 122, 69, 0.1);
  border: 1px solid rgba(255, 122, 69, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wizard-warning::before {
  content: "⚠️";
  flex-shrink: 0;
}

/* Export section */
.wizard-export {
  text-align: center;
  margin: 2rem 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wizard-card {
    padding: 1.5rem 1rem;
  }
  
  .wizard-actions {
    flex-direction: column;
  }
  
  .wizard-actions--between {
    flex-direction: row;
  }
  
  .wizard-btn {
    width: 100%;
  }
  
  .wizard-actions--between .wizard-btn {
    width: auto;
  }
}

/* Sticky progress on mobile */
@media (max-width: 640px) {
  .wizard-progress {
    position: sticky;
    top: 72px;
    z-index: 10;
    margin: 1rem -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* === Cookie info banner (no-consent) === */
.cb {
  position: fixed; inset-inline: 0; bottom: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 280ms ease;
  /* glasmorfism-lågmäld */
  backdrop-filter: blur(6px);
  background: rgba(12, 16, 22, 0.9);
  border-top: 1px dashed rgba(255, 153, 51, 0.35);
}
.cb.is-visible { transform: translateY(0); }

.cb__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.cb__text {
  color: #dbe1ea; font-size: 14px; line-height: 1.4;
}

.cb__link {
  justify-self: end;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,153,51,0.6);
  color: #ffb347;
  padding-bottom: 2px;
}
.cb__link:hover { color: #ffc274; border-bottom-color: rgba(255,153,51,0.9); }

.cb__btn {
  min-height: 48px; padding: 0 16px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,153,51,0.45);
  border-radius: 999px;
  color: #fff; cursor: pointer;
}
.cb__btn:hover { background: rgba(255,255,255,0.10); }
.cb__btn:focus-visible { outline: 2px solid #ff9933; outline-offset: 2px; }

/* Mobilstackning */
@media (max-width: 720px) {
  .cb__inner { grid-template-columns: 1fr; gap: 10px; }
  .cb__link { justify-self: start; }
}

/* Respekt för reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cb { transition: none; }
}

/* Säkerhetsnypa: ingen horisontell scroll */
html, body { overflow-x: hidden; }
