/* © 2025 Way Below AB. Alla rättigheter förbehållna. */
/* main.css — arbetsmiljöplan.nu */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  /* Alt C — Myndig & Varm */
  /* UI UX Pro Max: Government #13 × Construction #51 × Corporate Trust typography */
  --color-bg:           #F8FAFC;   /* Concrete white */
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F1F5F9;   /* Very light slate */
  --color-border:       #E2E8F0;   /* Light border */
  --color-border-light: #CBD5E1;   /* Visible border */
  --color-accent:       #0369A1;   /* Blueprint blue / AV-blå */
  --color-accent-hover: #025E8C;
  --color-cta:          #EA580C;   /* Safety orange — knappar & logotyp */
  --color-cta-hover:    #C2410C;
  --color-success:      #15803D;
  --color-warning:      #D97706;
  --color-danger:       #DC2626;
  --color-text:         #0F172A;   /* Near black */
  --color-text-muted:   #475569;   /* Slate */
  --color-text-dim:     #94A3B8;   /* Light slate */
  --radius:             3px;
  --radius-lg:          4px;
  --shadow:             0 1px 8px rgba(0,0,0,.07);
  --transition:         .15s ease;
  --nav-h:              60px;
  --font:               'Source Sans 3', system-ui, sans-serif;
  --font-heading:       'Lexend', 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

/* ─── LJUSTEMA — SPECIFIKA JUSTERINGAR ────────────────────────── */

/* Nav: vit bakgrund på ljus sida */
.amp-nav {
  background: rgba(248,250,252,.97) !important;
}
.amp-nav__logo { color: var(--color-text) !important; }
/* logo-icon och cta-knapp styrs av amp-theme.css */
.amp-nav__cta { color: #fff !important; }
.amp-nav__burger span { background: var(--color-text); }
.amp-nav__mobile { background: var(--color-surface); }

/* Hero: behåller mörk bakgrund för kontrast mot ljust formulär */
.amp-hero {
  background: #0d0f11 !important;
  color: #e2e8f0 !important;
  max-width: 100%;
}
.amp-hero__badge { color: var(--color-cta) !important; }
.amp-hero h1 { color: #f1f5f9 !important; }
.amp-hero h1 em { color: var(--color-cta) !important; }
.amp-hero p { color: #94a3b8 !important; }
.amp-hero__inner::before { background: var(--color-cta) !important; opacity: .7; }

/* Hero outline-knapp på mörk bakgrund */
.amp-hero .btn-outline {
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.2);
  background: transparent;
}
.amp-hero .btn-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* Primär knapp → orange */
.btn-primary {
  background: var(--color-cta);
  border-color: var(--color-cta);
}
.btn-primary:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); }

/* Features-sektion på ljus bakgrund */
.amp-features { background: var(--color-surface-2); }
.amp-feat-card { background: var(--color-surface); }
.amp-feat-card:hover { background: var(--color-surface-2); }
.amp-feat-card::before { background: var(--color-cta); }

/* Riskgrid: valda items med blå accent */
.amp-risk-item.selected {
  border-color: var(--color-accent);
  background: rgba(3,105,161,.05);
}
.amp-risk-item.selected .amp-risk-check,
.amp-risk-item.selected .amp-risk-num { background: var(--color-accent); border-color: var(--color-accent); }
.amp-risk-item.selected .amp-risk-text { color: var(--color-text); }

/* Sammanfattning: vänsterbård orange */
.amp-summary-risk { border-left-color: var(--color-cta); }

/* Footer: lätt bakgrund */
.amp-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-border); }

/* ─── SLUT LJUSTEMA ───────────────────────────────────────────── */

/* ─── NAV ──────────────────────────────────────────────────────── */
.amp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(12,13,15,.96);
  border-bottom: 2px solid var(--color-accent);
}

.amp-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: .01em;
}
.amp-nav__logo span { color: var(--color-accent); }
.amp-nav__logo-icon {
  width: 32px; height: 32px;
  background: var(--color-navy, #1E3A5F);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.amp-nav__links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: stretch;
}
.amp-nav__links li { display: flex; align-items: center; }
.amp-nav__links a {
  color: var(--color-text-muted);
  font-size: .875rem;
  font-weight: 500;
  padding: 0 18px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; /* kompensera nav border-bottom */
  transition: color var(--transition), border-color var(--transition);
}
.amp-nav__links a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* Aktiv/nuvarande sida */
.amp-nav__links a.is-current {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* Kontakt — sista länken, separerad med vänsterbård */
.amp-nav__links li:last-child a {
  color: var(--color-text);
  font-weight: 600;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.amp-nav__links li:last-child a:hover { border-bottom-color: var(--color-accent); }

/* Pill-klassen behålls för bakåtkompatibilitet men utan pill-styling */
.amp-nav__cta { background: none !important; padding-left: 20px !important; }

/* Burger */
.amp-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.amp-nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}
.amp-nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
  padding: 16px clamp(16px, 4vw, 56px);
  flex-direction: column;
  gap: 0;
}
.amp-nav__mobile.open { display: flex; }
.amp-nav__mobile a {
  color: var(--color-text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}
.amp-nav__mobile a:hover { color: var(--color-text); }
.amp-nav__mobile a:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .amp-nav__links { display: none; }
  .amp-nav__burger { display: flex; }
}

/* ─── HERO ──────────────────────────────────────────────────────── */
.amp-hero {
  padding: calc(var(--nav-h) + 80px) clamp(20px, 6vw, 80px) 80px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.amp-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .13;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.amp-hero__badge,
.amp-hero h1,
.amp-hero p,
.amp-hero__actions {
  position: relative;
  z-index: 1;
}

.amp-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 0 clamp(20px, 6vw, 80px);
}

/* Vertikal accentlinje */
.amp-hero__inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  opacity: .55;
}

.amp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-left: 20px;
}

.amp-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 680px;
  margin-bottom: 20px;
  padding-left: 20px;
}
.amp-hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}
.amp-hero p {
  color: var(--color-text-muted);
  font-size: clamp(.9rem, 2vw, 1rem);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-left: 20px;
}
.amp-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-left: 20px;
}

@media (max-width: 640px) {
  .amp-hero__inner::before { display: none; }
  .amp-hero__badge,
  .amp-hero h1,
  .amp-hero p,
  .amp-hero__actions { padding-left: 0; }
  .amp-hero__inner { padding: 0; }
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  border: 1px solid transparent;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}
.btn-primary:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-text); }
.btn-success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.btn-success:hover { background: #268a4e; }
.btn-lg { padding: 13px 28px; font-size: .95rem; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ─── INFO-KORT ──────────────────────────────────────────────── */
.amp-features {
  padding: 72px clamp(20px, 6vw, 80px);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.amp-features h2 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.amp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
}
.amp-feat-card {
  background: var(--color-surface);
  padding: 28px 24px;
  border-right: none;
  position: relative;
  transition: background var(--transition);
}
.amp-feat-card:hover { background: var(--color-surface-2); }
.amp-feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.amp-feat-card:hover::before { opacity: 1; }
.amp-feat-card__icon {
  margin-bottom: 16px;
  color: var(--color-accent);
}
.amp-feat-card h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: -.01em;
}
.amp-feat-card p {
  font-size: .825rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── STEPPER ─────────────────────────────────────────────────── */
.amp-stepper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0 0 40px;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}
.amp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  cursor: default;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.amp-step:not(:last-child)::after { display: none; }

.amp-step__num {
  width: 22px; height: 22px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-dim);
  transition: var(--transition);
  letter-spacing: 0;
}
.amp-step.active .amp-step__num {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.amp-step.done .amp-step__num {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.amp-step__label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--color-text-dim);
}
.amp-step.active .amp-step__label { color: var(--color-text); }
.amp-step.done .amp-step__label { color: var(--color-success); }

/* ─── FORMULÄR-SEKTION ────────────────────────────────────────── */
.amp-tool {
  padding: 56px clamp(20px, 6vw, 80px) 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.amp-tool__inner {
  max-width: 800px;
  margin: 0 auto;
}
.amp-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 40px);
  margin-bottom: 20px;
}
.amp-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.amp-panel .amp-subtitle {
  color: var(--color-text-muted);
  font-size: .825rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Formulärfält */
.amp-form-group {
  margin-bottom: 18px;
}
.amp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .amp-form-row { grid-template-columns: 1fr; } }

label.amp-label {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.amp-input, .amp-textarea, .amp-select {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: .875rem;
  padding: 9px 12px;
  transition: border-color var(--transition);
  outline: none;
}
.amp-input:focus, .amp-textarea:focus, .amp-select:focus {
  border-color: var(--color-accent);
  background: var(--color-surface);
}
.amp-textarea { resize: vertical; min-height: 80px; }
.amp-select { cursor: pointer; }

/* Upload-ruta för logotyp */
.amp-upload-zone {
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--color-bg);
}
.amp-upload-zone:hover { border-color: var(--color-accent); background: var(--color-surface); }
.amp-upload-zone p { color: var(--color-text-muted); font-size: .825rem; margin: 0; }
.amp-upload-zone input { display: none; }
.amp-logo-preview {
  max-height: 80px;
  max-width: 240px;
  margin: 12px auto 0;
  display: none;
  border-radius: var(--radius);
}

/* Kryssrutor — riskval */
.amp-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}
.amp-risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.amp-risk-item:hover { border-color: var(--color-border-light); background: var(--color-surface); }
.amp-risk-item.selected {
  border-color: var(--color-accent);
  background: rgba(212,101,28,.06);
}
.amp-risk-item input[type="checkbox"] { display: none; }
.amp-risk-check {
  width: 18px; height: 18px;
  min-width: 18px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  background: transparent;
  flex-shrink: 0;
}
.amp-risk-item.selected .amp-risk-check {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.amp-risk-check::after {
  content: '';
  display: none;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg) translateY(-1px);
}
.amp-risk-item.selected .amp-risk-check::after { display: block; }
.amp-risk-num {
  min-width: 20px;
  height: 20px;
  background: var(--color-surface-2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--color-text-dim);
  font-variant-numeric: tabular-nums;
}
.amp-risk-item.selected .amp-risk-num {
  background: var(--color-accent);
  color: #fff;
}
.amp-risk-text {
  font-size: .825rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.amp-risk-item.selected .amp-risk-text { color: var(--color-text); }

/* Eget riskmoment */
.amp-custom-risk {
  background: var(--color-bg);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
}
.amp-custom-risk h4 {
  font-size: .775rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.amp-custom-list { list-style: none; margin-bottom: 10px; }
.amp-custom-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: .825rem;
  border-bottom: 1px solid var(--color-border);
}
.amp-custom-list li:last-child { border-bottom: none; }
.amp-del-btn {
  background: none;
  border: none;
  color: var(--color-text-dim);
  cursor: pointer;
  font-size: .8rem;
  padding: 2px 6px;
  transition: color var(--transition);
}
.amp-del-btn:hover { color: var(--color-danger); }

/* Riskkort — steg 3 */
.amp-riskcard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.amp-riskcard__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.amp-riskcard__header .badge {
  background: var(--color-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.amp-riskcard__header h3 {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.amp-riskcard__body {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .amp-riskcard__body { grid-template-columns: 1fr; } }

.amp-checklist h4 {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}
.amp-checklist-items { display: flex; flex-direction: column; gap: 4px; }
.amp-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .825rem;
  padding: 6px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.amp-check-item:hover { background: rgba(255,255,255,.03); }
.amp-check-item input[type="checkbox"] { display: none; }
.amp-check-box {
  width: 16px; height: 16px;
  min-width: 16px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  margin-top: 1px;
  flex-shrink: 0;
}
.amp-check-item.checked .amp-check-box {
  background: var(--color-success);
  border-color: var(--color-success);
}
.amp-check-item.checked .amp-check-box::after {
  content: '';
  display: block;
  width: 4px; height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(40deg) translateY(-1px);
}
.amp-check-item.checked .amp-check-label {
  color: var(--color-text);
}
.amp-check-label {
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Eget fält i riskkort */
.amp-add-custom {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.amp-add-custom .amp-input { font-size: .825rem; padding: 6px 10px; }

/* ─── SAMMANFATTNING ─────────────────────────────────────────── */
.amp-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.amp-summary-section { margin-bottom: 18px; }
.amp-summary-section h4 {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-dim);
  margin-bottom: 8px;
  font-weight: 700;
}
.amp-summary-risk {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 2px solid var(--color-accent);
}
.amp-summary-risk h5 {
  font-size: .825rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.amp-summary-risk ul {
  list-style: none;
  font-size: .78rem;
  color: var(--color-text-muted);
}
.amp-summary-risk ul li { padding: 2px 0; }

/* ─── LEGAL NOTICE ────────────────────────────────────────────── */
.amp-legal-box {
  background: rgba(232,160,32,.06);
  border: 1px solid rgba(232,160,32,.2);
  border-left: 2px solid var(--color-warning);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.amp-legal-box strong { color: var(--color-warning); }

/* ─── NAVIGATIONS-KNAPPAR (steg) ───────────────────────────────── */
.amp-nav-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.amp-footer-wave { display: none; }

.amp-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px clamp(20px, 6vw, 80px) 32px;
}
.amp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
@media (max-width: 600px) { .amp-footer__inner { grid-template-columns: 1fr; } }
.amp-footer__brand {
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.amp-footer__brand span { color: var(--color-accent); }
.amp-footer p {
  color: var(--color-text-dim);
  font-size: .775rem;
  margin-top: 4px;
  line-height: 1.5;
}
.amp-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.amp-footer__links a {
  color: var(--color-text-dim);
  font-size: .775rem;
  transition: color var(--transition);
}
.amp-footer__links a:hover { color: var(--color-accent); }
.amp-footer__bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  color: var(--color-text-dim);
  font-size: .72rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── PRINT ─────────────────────────────────────────────────── */
@media print {
  .amp-nav, .amp-hero, .amp-features, .amp-stepper,
  .amp-nav-btns, .amp-export-row, #amp-cookie-banner,
  .amp-footer-wave, .amp-footer { display: none !important; }
  body { background: #fff; color: #111; }
  .amp-panel, .amp-summary, .amp-riskcard { break-inside: avoid; border: 1px solid #ddd; }
}

/* ─── UTILS ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--color-text-muted); }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ─── ROLLVAL & PROJEKTTYP ────────────────────────────────────── */
.amp-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.amp-role-card {
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--color-surface-2);
  user-select: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.amp-role-card:hover { border-color: var(--color-accent); }
.amp-role-card.selected { border-color: var(--color-accent); background: rgba(3,105,161,.05); }
.amp-role-card strong { display: block; font-size: .875rem; font-weight: 700; color: var(--color-text); margin-bottom: 5px; }
.amp-role-card.selected strong { color: var(--color-accent); }
.amp-role-card p { font-size: .78rem; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

.amp-type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amp-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 99px;
  cursor: pointer;
  font-size: .825rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: var(--transition);
  user-select: none;
  font-family: var(--font);
}
.amp-type-chip:hover { border-color: var(--color-accent); color: var(--color-text); }
.amp-type-chip.selected {
  border-color: var(--color-accent);
  background: rgba(3,105,161,.07);
  color: var(--color-accent);
  font-weight: 600;
}

.amp-role-help {
  display: none;
  background: rgba(3,105,161,.05);
  border: 1px solid rgba(3,105,161,.15);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .825rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.6;
}
.amp-role-help.show { display: block; }
.amp-role-help strong { color: var(--color-accent); font-weight: 700; }

.amp-section-divider {
  font-size: .7rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

/* ─── FOCUS / TILLGÄNGLIGHET ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
