:root {
  --primary-color: #0066CC;
  --primary-dark: #004C99;
  --primary-light: #E6F2FF;
  --success-color: #00A86B;
  --warning-color: #FF8C00;
  --text-dark: #1A1A1A;
  --text-gray: #5F6368;
  --border-color: #E0E0E0;
  --bg-light: #F8F9FA;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #DFEBF0;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px 32px 24px;
}

.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  scroll-margin-top: 100px;
}

/* Intro-sektion med mindre toppmarginal */
#intro-content {
  padding-top: 20px;
}

#intro-content h1:first-child {
  margin-top: 0;
}

#closeout-content h1:first-child {
  margin-top: 0;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

#intro-content.card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

#intro-content.card {
  transition: none;
}

#intro-content.card::before {
  display: none;
}

.card h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--primary-color);
  border-radius: 2px;
}

#intro-content h2 {
  color: var(--text-dark);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

#intro-content h2::before {
  display: none;
}

.hidden {
  display: none;
}

/* Dölj checklistepunkter baserat på tier-nivå */
.tier-hidden {
  display: none !important;
}

/* Fas-sektioner: se styles-phases.css för huvudsaklig styling */

/* Dölj checklist-phase om alla dess items är dolda */
.checklist-phase.tier-hidden {
  display: none !important;
}

button {
  margin-top: 16px;
  margin-right: 12px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

button:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

button[data-strategy] {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  display: inline-block;
  margin-bottom: 12px;
}

button[data-strategy]:hover {
  background: var(--primary-light);
  border-color: var(--primary-dark);
}

label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
  color: var(--text-dark);
}

label:hover {
  background: var(--bg-light);
}

/* Mindre mellanrum för onboarding checkboxar */
#onboarding label {
  margin: 4px 0;
  padding: 8px 12px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-separator {
  width: 1px;
  height: 48px;
  background: #9E9E9E;
  align-self: center;
}

/* Login icon link */
.login-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.login-icon-link:hover {
  color: var(--primary-color);
  background: var(--primary-light);
}

.login-icon {
  width: 24px;
  height: 24px;
}

.login-icon-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Dölj radbrytning på desktop */
.mobile-break {
  display: none;
}

/* Register form modal */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.register-form input {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
}

.register-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-primary {
  background: var(--primary-color) !important;
  color: white !important;
}

.btn-primary:hover {
  background: #0052A3 !important;
}

/* Fas 1 knappar */
.phase1-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.phase1-btn {
  padding: 10px 20px !important;
  min-width: 100px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.phase1-btn-done {
  background: var(--primary-color) !important;
  color: white !important;
}

.phase1-btn-done:hover {
  background: #0052A3 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.phase1-btn-clear {
  background: white !important;
  color: var(--text-gray) !important;
  border: 1px solid var(--border-color) !important;
}

.phase1-btn-clear:hover {
  background: var(--bg-light) !important;
  color: var(--text-dark) !important;
}

.phase1-btn-export {
  background: #FFF3E0 !important;
  color: #E65100 !important;
  border: 1.5px solid #FFCC80 !important;
  margin-right: auto !important;
}

.phase1-btn-export:hover {
  background: #FFE0B2 !important;
}

.export-toggle {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  background: #f9f9fb !important;
  color: #555 !important;
  border: 1.5px solid #ccc !important;
  margin: 0 !important;
}

.export-toggle.active {
  background: linear-gradient(135deg, #FFF3E0, #FFE8CC) !important;
  color: #BF360C !important;
  border: 1.5px solid #FFB74D !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(230, 81, 0, 0.12) !important;
}

.export-toggle:hover {
  transform: none !important;
}

.export-toggle:hover:not(.active) {
  background: #f3f3f7 !important;
  color: #444 !important;
  border-color: #bbb !important;
}

#hero {
  text-align: center;
  padding: 0 24px 8px 24px;
  margin-bottom: 10px;
}

/* Hero logo - centrerad ovanför titeln */
.hero-logo-link {
  display: inline-block;
  margin-bottom: 0;
}

.hero-logo {
  height: auto;
  width: 200px;
  transition: transform 0.2s ease;
}

.hero-logo:hover {
  transform: scale(1.02);
}

#hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

#hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   PRICING / NIVÅVAL SEKTION
   ======================================== */

.pricing-section {
  margin: 32px 0 100px 0;
  padding: 0 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Färgade ramar per tier */
.pricing-card[data-tier="basic"] {
  border-color: #A5D6A7;
}

.pricing-card[data-tier="premium"] {
  border-color: #90CAF9;
}

.pricing-card[data-tier="max"] {
  border-color: #FFCC80;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Vald pricing-card */
.pricing-card.selected {
  border-width: 3px;
  box-shadow: var(--shadow-md);
}

.pricing-card.selected[data-tier="basic"] {
  border-color: #2E7D32;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.25);
}

.pricing-card.selected[data-tier="premium"] {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.25);
}

.pricing-card.selected[data-tier="max"] {
  border-color: #E65100;
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.25);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-tier-badge {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pricing-tier-badge.basic {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1.5px solid #A5D6A7;
}

.pricing-tier-badge.premium {
  background: var(--primary-light);
  color: var(--primary-color);
  border: 1.5px solid #90CAF9;
}

.pricing-tier-badge.max {
  background: #FFF3E0;
  color: #E65100;
  border: 1.5px solid #FFCC80;
}

.pricing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.5;
  min-height: 42px;
}

.pricing-price {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #9E9E9E;
  border-bottom: 1px solid #9E9E9E;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.price-currency {
  font-size: 1rem;
  color: var(--text-gray);
  margin-left: 4px;
}

.pricing-button {
  margin-top: auto !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100%;
}

.pricing-button.basic {
  background: #81C784 !important;
  color: #1B5E20 !important;
  border: none !important;
}

.pricing-button.basic:hover {
  background: #66BB6A !important;
}

.pricing-button.premium {
  background: #64B5F6 !important;
  color: #0D47A1 !important;
  border: none !important;
}

.pricing-button.premium:hover {
  background: #42A5F5 !important;
}

.pricing-button.max {
  background: #FFB74D !important;
  color: #BF360C !important;
  border: none !important;
}

.pricing-button.max:hover {
  background: #FFA726 !important;
}

/* Läs mer länk - enhetlig mörkgrå med ljus bakgrund per tier */
.pricing-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px 12px;
  border: 1px solid #BDBDBD;
  border-radius: 16px;
  transition: all 0.2s ease;
  color: #4A4A4A;
}

.pricing-readmore::after {
  content: '→';
  font-size: 0.8rem;
}

/* Ljus bakgrund per tier */
.pricing-card[data-tier="basic"] .pricing-readmore {
  background: rgba(129, 199, 132, 0.15);
}

.pricing-card[data-tier="premium"] .pricing-readmore {
  background: rgba(100, 181, 246, 0.15);
}

.pricing-card[data-tier="max"] .pricing-readmore {
  background: rgba(255, 183, 77, 0.15);
}

.pricing-readmore:hover {
  color: #1A1A1A;
  border-color: #9E9E9E;
}

.pricing-card[data-tier="basic"] .pricing-readmore:hover {
  background: rgba(129, 199, 132, 0.25);
}

.pricing-card[data-tier="premium"] .pricing-readmore:hover {
  background: rgba(100, 181, 246, 0.25);
}

.pricing-card[data-tier="max"] .pricing-readmore:hover {
  background: rgba(255, 183, 77, 0.25);
}

/* Responsive pricing */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .hero-logo {
    height: auto;
    width: 140px;
  }

  /* Ta bort blå linje framför h2 i intro-sektionen */
  #intro-content h2::before {
    display: none;
  }
}

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 0;
  line-height: 1.15;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.info-box p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.info-box p + p {
  margin-top: 8px;
}

/* RSE inline alert – visas under LAN_002-checkboxen */
.rse-inline-alert {
  background: var(--bg-light);
  border: 1px solid #9E9E9E;
  border-radius: 8px;
  margin: 6px 0 2px;
  overflow: hidden;
  animation: rseAlertSlideIn 0.25s ease;
  transition: border-color 0.2s ease;
}

.rse-inline-alert.hidden {
  display: none;
}

.rse-inline-alert.collapsed {
  margin: 2px 0 0;
  border-color: var(--border-color);
}

.rse-inline-alert.collapsed .rse-inline-alert-body {
  display: none;
}

.rse-inline-alert.collapsed .rse-inline-alert-toggle {
  transform: rotate(-90deg);
}

.rse-inline-alert.collapsed .rse-inline-alert-header {
  border-bottom: none;
}

@keyframes rseAlertSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Klickbar header-rad */
.rse-inline-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #9E9E9E;
  transition: background 0.15s ease;
}

.rse-inline-alert-header:hover {
  background: #f0f0f0;
}

.rse-inline-alert-header-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.rse-inline-alert.collapsed .rse-inline-alert-header-text {
  color: var(--text-gray);
}

.rse-inline-alert-toggle {
  font-size: 0.6rem;
  color: var(--text-gray);
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
  position: relative;
}

/* Pulserande röd cirkel runt toggle-pilen (inom overflow: hidden) */
.rse-toggle-pulse {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #D32F2F !important;
  background: rgba(211, 47, 47, 0.15);
  animation: rsePulseArrow 1s ease-in-out infinite !important;
}

@keyframes rsePulseArrow {
  0%, 100% { background: rgba(211, 47, 47, 0.15); transform: scale(1); }
  50% { background: rgba(211, 47, 47, 0.35); transform: scale(1.3); }
}

/* Expanderbar kropp */
.rse-inline-alert-body {
  padding: 10px 12px 12px;
  background: #E8F0FE;
}

.rse-inline-alert-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.rse-inline-alert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rse-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid #9E9E9E;
  color: var(--text-gray);
  background: white;
  transition: all 0.15s ease;
}

.rse-inline-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.rse-inline-link-calc,
.rse-inline-link-more {
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .rse-inline-alert-header {
    padding: 8px 10px;
  }

  .rse-inline-alert-body {
    padding: 8px 10px 10px;
  }

  .rse-inline-alert-links {
    flex-direction: column;
    gap: 6px;
  }

  .rse-inline-link {
    justify-content: center;
    width: 100%;
  }
}

ul {
  padding-left: 24px;
  margin: 16px 0;
}

li {
  margin: 8px 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.step-indicator {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 600;
  margin-right: 8px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes celebrate {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(-5deg);
  }
  20%, 40%, 60%, 80% {
    transform: scale(1.1) rotate(5deg);
  }
}

@keyframes confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.card:not(.hidden) {
  animation: fadeIn 0.5s ease-out;
}

/* Checkbox styling */
input[type="checkbox"]:checked {
  animation: checkmark 0.3s ease;
}


/* Progress styling */
/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
button:focus,
input:focus {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* Section numbering */
section.card > h2 {
  counter-increment: section;
}

/* Hover effect for info boxes */
.info-box {
  transition: transform 0.2s ease;
}

.info-box:hover {
  transform: translateX(4px);
}

/* Enhanced list styling */
ul li {
  position: relative;
  padding-left: 8px;
}

ul li::marker {
  color: var(--primary-color);
}

/* Button group spacing */
button + button {
  margin-left: 0;
}

/* Status pill animation */
/* Card hover states */
.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

/* Success state */
.success-state {
  background: var(--success-color) !important;
  color: white !important;
}

/* Card entrance animation */
.card {
  opacity: 1;
  animation: fadeIn 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* Visible cards only */
section:not(.hidden) {
  opacity: 1;
}

@media (max-width: 768px) {
  /* Större bastext på mobil */
  body {
    font-size: 1.05rem;
  }

  #hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  #hero p {
    font-size: 1.05rem;
  }

  .container {
    padding: 12px 0;
  }

  .card {
    padding: 20px 16px;
    margin-bottom: 12px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    touch-action: manipulation;
  }

  .topbar {
    padding: 8px 8px 8px 8px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px;
    justify-content: center;
  }

  .topbar-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .topbar-logo {
    height: 32px;
  }

  #stepIndicator {
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
  }

  .topbar-progress {
    gap: 8px;
  }

  .topbar-progress-track {
    width: 60px;
    height: 8px;
  }

  .topbar-progress-label {
    font-size: 0.65rem;
  }

  .topbar-progress-pct {
    font-size: 0.65rem;
  }

  /* Dölj separatorerna på mobil */
  .topbar-separator {
    display: none;
  }

  /* Login/ikon-länkar på mobil */
  .login-icon-link {
    padding: 6px 10px;
    flex-direction: column;
    align-items: center;
  }

  .login-icon {
    width: 22px;
    height: 22px;
  }

  .login-icon-text {
    font-size: 0.85rem;
    text-align: center;
    max-width: 70px;
  }

  /* Visa radbrytning på mobil */
  .mobile-break {
    display: block;
  }

  /* Reset-knapp på mobil */
  .reset-button {
    padding: 2px 10px !important;
    font-size: 0.85rem !important;
    min-height: auto !important;
    width: auto !important;
  }

  /* Pil-symbol på mobil */
  .reset-arrow {
    font-size: 1.6rem;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: -2px;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.15rem;
    margin-top: 16px;
  }

  label {
    padding: 10px 8px;
    font-size: 1.05rem;
  }

  p {
    font-size: 1rem;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  .timeline-item {
    flex-direction: column;
    padding-left: 0;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-marker {
    position: relative;
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .info-box {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .tooltip .tooltiptext {
    width: 240px;
    margin-left: -120px;
    font-size: 0.95rem;
  }

  /* Better touch targets */
  button, label, input {
    min-height: 44px;
  }

  /* Adjust modal for mobile */
  .modal-content h3 {
    font-size: 1.25rem;
  }

  .modal-content p {
    font-size: 0.9rem;
  }
}

/* Timeline styles */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 50px;
  bottom: -32px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 1;
  position: relative;
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-content h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.timeline-content ul {
  margin: 8px 0;
  padding-left: 24px;
}

.timeline-content ul li {
  margin: 4px 0;
}

/* Reset button in topbar */
.reset-button {
  background: #004C99 !important;
  border: 1px solid #004C99 !important;
  color: white !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 0 0 8px !important;
  box-shadow: 0 2px 4px rgba(0, 76, 153, 0.2) !important;
  font-weight: 500 !important;
}

.reset-button:hover {
  background: #003D7A !important;
  border-color: #003D7A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 76, 153, 0.4) !important;
}

.reset-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 76, 153, 0.3) !important;
}

/* Topbar logo */
.topbar-logo-link {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.topbar-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.topbar-logo-text {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.topbar-logo-name {
  color: #5F6368;
  font-weight: 600;
}

/* Topbar progress bars */
.topbar-progress {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.topbar-progress-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
  width: 90px;
  text-align: right;
}

.topbar-progress-track {
  width: 160px;
  height: 10px;
  background: #E0E0E0;
  border-radius: 5px;
  overflow: hidden;
}

.topbar-progress-fill {
  height: 100%;
  width: 0%;
  background: #81C784;
  border-radius: 5px;
  transition: width 0.4s ease;
}

.topbar-progress-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  min-width: 30px;
}

/* Service provider input section */
.service-provider-section {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
}

.add-provider-btn {
  background: white !important;
  border: 2px dashed var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100%;
}

.add-provider-btn:hover {
  background: var(--primary-light) !important;
  border-style: solid !important;
}

.service-provider-list {
  margin-top: 12px;
}

.service-provider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  animation: fadeIn 0.2s ease;
}

.service-provider-item input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.service-provider-item input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.service-provider-item input[type="text"]::placeholder {
  color: var(--text-gray);
}

.remove-provider-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-gray) !important;
  padding: 6px !important;
  margin: 0 !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.remove-provider-btn:hover {
  color: #dc3545 !important;
}

/* Custom service provider checklist items */
.custom-service-label {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  margin: 4px 0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.custom-service-label:hover {
  border-color: var(--primary-light);
  transform: translateX(4px);
}

/* Custom modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

/* Modal content box */
.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  position: relative;
}

.modal-content h3 {
  margin: 0 0 12px 0;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-content p {
  margin: 0 0 24px 0;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-buttons button {
  margin: 0 !important;
  padding: 10px 20px !important;
  font-size: 0.95rem !important;
}

.btn-secondary {
  background: white !important;
  color: var(--text-gray) !important;
  border: 1px solid var(--border-color) !important;
}

.btn-secondary:hover {
  background: var(--bg-light) !important;
  color: var(--text-dark) !important;
}

.btn-danger {
  background: #DC3545 !important;
  color: white !important;
}

.btn-danger:hover {
  background: #C82333 !important;
}

/* Warning button */
.btn-warning {
  background: linear-gradient(135deg, #FF8C00, #F57C00) !important;
  color: white !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #F57C00, #E65100) !important;
}

/* Phase validation modal icon */
.modal-icon-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.modal-icon-circle.warning {
  background: #FFF9C4;
  color: #555;
  border: 1px solid #999;
}

.modal-icon-circle.success {
  background: #E8F5E9;
  color: #43A047;
}

/* Clean modal system */
.modal-clean {
  text-align: center;
  padding: 40px 36px 32px;
}

.modal-clean-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.modal-clean-icon.success {
  background: linear-gradient(135deg, #43A047, #66BB6A);
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.3);
}

.modal-clean-icon.warning {
  background: linear-gradient(135deg, #E65100, #FF8A65);
  box-shadow: 0 4px 16px rgba(230, 81, 0, 0.25);
}

.modal-clean-icon.danger {
  background: linear-gradient(135deg, #C62828, #EF5350);
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.25);
}

.modal-clean-icon.info {
  background: linear-gradient(135deg, #0066CC, #42A5F5);
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
}

.modal-clean h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.modal-clean-divider {
  width: 40px;
  height: 2px;
  margin: 12px auto 16px;
  border-radius: 1px;
}

.modal-clean-divider.success { background: linear-gradient(90deg, #43A047, #66BB6A); }
.modal-clean-divider.warning { background: linear-gradient(90deg, #E65100, #FF8A65); }
.modal-clean-divider.danger { background: linear-gradient(90deg, #C62828, #EF5350); }
.modal-clean-divider.info { background: linear-gradient(90deg, #0066CC, #42A5F5); }

.modal-clean p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

.btn-gradient-success {
  background: linear-gradient(135deg, #43A047, #2E7D32) !important;
}
.btn-gradient-success:hover {
  background: linear-gradient(135deg, #2E7D32, #1B5E20) !important;
}

.btn-gradient-info {
  background: linear-gradient(135deg, #0066CC, #0052A3) !important;
}
.btn-gradient-info:hover {
  background: linear-gradient(135deg, #0052A3, #003D7A) !important;
}

.btn-gradient-warning {
  background: linear-gradient(135deg, #E65100, #BF360C) !important;
  color: white !important;
}
.btn-gradient-warning:hover {
  background: linear-gradient(135deg, #BF360C, #8D2000) !important;
}

/* Animerad checkmark */
.check-animate {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: drawCheck 0.5s 0.3s ease forwards;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.phase-validation-modal h3 {
  text-align: center;
}

.phase-validation-modal p {
  text-align: center;
}

.phase-validation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px 0;
  max-height: 50vh;
  overflow-y: auto;
}

.phase-validation-list li {
  padding: 10px 16px;
  margin: 6px 0;
  background: #FFF8E1;
  border-left: 3px solid #FF8C00;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
    width: 95%;
  }

  .modal-buttons {
    flex-direction: column-reverse;
  }

  .modal-buttons button {
    width: 100% !important;
  }
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted var(--primary-color);
  color: var(--primary-color);
  cursor: help;
  padding-bottom: 0px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 280px;
  background-color: var(--text-dark);
  color: white;
  text-align: left;
  border-radius: 8px;
  padding: 12px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -140px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Phase badges */
.phase-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.phase-badge.preparation {
  background: var(--primary-light);
  color: var(--primary-color);
}

.phase-badge.execution {
  background: #FFF4E6;
  color: var(--warning-color);
}

.phase-badge.completion {
  background: #E8F5E9;
  color: var(--success-color);
}

.phase-badge.success {
  background: var(--success-color);
  color: white;
}

/* Two-column grid for intro boxes */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

/* Colored boxes */
.colored-box {
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.colored-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.colored-box h4 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.colored-box ul {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
}

.colored-box li {
  margin: 10px 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Compact variant for colored boxes */
.colored-box.compact {
  padding: 12px 16px;
}

.colored-box.compact h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.colored-box.compact li {
  margin: 3px 0;
  line-height: 1.4;
  font-size: 0.95rem;
}

.colored-box.compact ul {
  padding-left: 18px;
  margin: 0;
}

/* Blue box for financial products */
.box-blue {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border: none;
}

.box-blue h4 {
  color: #1565C0;
}

.box-blue li {
  color: #0D47A1;
}

/* Green box - now uses same blue styling */
.box-green {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border: none;
}

.box-green h4 {
  color: #1565C0;
}

.box-green li {
  color: #0D47A1;
}

.box-green li::marker {
  color: #2196F3;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .colored-box {
    padding: 20px;
  }

  .colored-box h4 {
    font-size: 1.1rem;
  }

  .colored-box li {
    font-size: 0.95rem;
  }
}

/* Intro track cards */
.intro-track {
  background: white;
  border: 1px solid #B8CDD6;
  border-left: 4px solid #B8CDD6;
  border-radius: 12px;
  padding: 20px 24px;
}

.intro-track:nth-child(2) {
  border-left-color: #B8CDD6;
}

.intro-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.intro-track-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: #E3F2FD;
  border: 1.5px solid #90CAF9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E88E5;
}

.intro-track:nth-child(2) .intro-track-icon {
  background: #E8F5E9;
  border-color: #A5D6A7;
  color: #43A047;
}

.intro-track h4 {
  margin: 0 !important;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.intro-track ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.intro-track li {
  position: relative;
  padding-left: 4px;
  margin: 1px 0;
  font-size: 0.93rem;
  color: var(--text-gray);
  line-height: 1.35;
}

.intro-track li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: #999;
  border-radius: 50%;
}

.intro-track:nth-child(2) li::before {
  background: #999;
}

/* Intro notice */
.intro-notice {
  margin: 24px 0 8px 0;
  padding: 10px 20px;
  background: #FFF4E6;
  border-left: 4px solid #FF9800;
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.intro-notice p:last-child {
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .intro-track {
    padding: 16px 18px;
  }

  .intro-track-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .intro-track-icon svg {
    width: 18px;
    height: 18px;
  }

  .intro-notice {
    padding: 14px 16px;
  }
}

/* ========================================
   INFO-IKON MED HOVER-TOOLTIP
   ======================================== */

/* Info-hint - diskret tips om info-ikoner */
.info-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
  margin: 40px 0 40px 0;
  background: #E8F0FE;
  padding: 12px 18px;
  border-radius: 10px;
}

@keyframes infoHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--hint-pulse-color, rgba(0,0,0,0.15)); }
  50% { box-shadow: 0 0 16px 6px var(--hint-pulse-color, rgba(0,0,0,0.15)); }
}

.info-hint-pulse {
  animation: infoHintPulse 1.25s ease-in-out 3;
}

.info-hint-pulse-twice {
  animation: infoHintPulse 1.25s ease-in-out 2;
}

.info-hint-pulse-once {
  animation: infoHintPulse 1.25s ease-in-out 1;
}

.info-icon-hint {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #5c6bc0;
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Info-ikon - rund cirkel med i-symbol */
.info-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: #5c6bc0;
  color: white;
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  font-family: Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  margin-left: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.info-icon:hover {
  background: #3f51b5;
  transform: scale(1.1);
}

/* Wrapper för info-ikon och tooltip */
.info-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  top: 4px;
}

/* Tooltip-popup - visas till höger om ikonen */
.info-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: #2d3748;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

/* Pil som pekar till vänster */
.info-tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #2d3748 transparent transparent;
}

/* Visa tooltip vid hover */
.info-tooltip-wrapper:hover .info-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Triggertext i tooltip */
.trigger-text {
  display: block;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #B0BEC5;
  font-size: 0.85em;
}

.trigger-icon {
  font-size: 1.1em;
}

/* Konsekvenstext i tooltip */
.consequence-text {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 165, 0, 0.4);
  color: #FFB347;
  font-size: 0.85em;
}

.consequence-icon {
  font-size: 1.3em;
}

/* Term med tooltip (text som visar förklaring vid hover) */
.term-with-tooltip {
  border-bottom: 1px dotted var(--primary-color);
  cursor: help;
  color: var(--primary-color);
}

.term-with-tooltip:hover {
  border-bottom-style: solid;
}

/* Mobile adjustments för info-tooltip */
@media (max-width: 768px) {
  .info-tooltip {
    width: 220px;
    font-size: 0.85rem;
    padding: 10px 12px;
    left: calc(100% + 8px);
  }

  .info-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    font-size: 10px;
  }
}

/* Tillåt overflow för kort som innehåller checklistor med tooltips */
#onboarding.card,
#checklist.card,
#status.card {
  overflow: visible;
}

/* Disable shine effect on these cards since they need overflow: visible */
#onboarding.card::before,
#checklist.card::before,
#status.card::before {
  display: none;
}
