:root {
  --color-primary: #005078;
  --color-primary-hover: #003b58;
  --color-accent: #3bb273;

  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-border: #dde0e5;

  --color-text: #111827;
  --color-text-muted: #6b7280;

  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);

  --font-heading: "Bricolage Grotesque", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Grundlayout / reset */

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* Typografi */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout / container */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-main {
  padding-bottom: 5.5rem; /* plats för sticky-bar på mobil */
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Viktigt: minst 16px font-size på inputs i iOS för att slippa auto-zoom vid fokus */
input,
textarea,
select {
  font-size: 16px;
}

/* Om du har en specifik klass för dina inputs */
.ak-input {
  font-size: 16px;
}

/* Knappar */

.button-primary,
.ak-btn,
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.button-primary,
.ak-btn-primary,
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 80, 120, 0.35);
}

.button-primary:hover,
.ak-btn-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.ak-btn-primary:focus-visible:not(:disabled),
.btn-primary:focus-visible:not(:disabled) {
  background-color: var(--color-primary-hover);
  box-shadow: 0 18px 36px rgba(0, 80, 120, 0.45);
  transform: translateY(-1px);
}

.ak-btn-secondary,
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  padding-inline: 0;
}

.ak-btn-secondary span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ak-btn:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* Ghost-knapp (t.ex. "Fortsätt till frågorna") */

.ak-btn-ghost {
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
  padding-inline: 0.4rem;
}

.ak-btn-ghost:hover:not(:disabled),
.ak-btn-ghost:focus-visible:not(:disabled) {
  background: rgba(0, 80, 120, 0.06);
  box-shadow: none;
}

/* Avdragskollen – shell */

.ak-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1.75rem 1rem 4.5rem;
}

.ak-shell {
  width: 100%;
  max-width: 720px;
  background: var(--color-surface);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .ak-main {
    padding: 3rem 1.5rem 5rem;
  }

  .ak-shell {
    padding: 2.5rem 2.5rem 2rem;
  }
}

/* HERO – exakt enligt mockup */

.ak-hero {
  margin-bottom: 0.75rem;
}

.ak-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #dcfce7;
  color: #166534;
  margin-bottom: 0.9rem;
}

.ak-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  line-height: 1.1;
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
}

.ak-hero-sub {
  margin: 0 0 1.25rem;
  color: var(--color-text);
  font-size: 0.95rem;
  max-width: 40rem;
}

/* Checklistan med gröna checkar */

.ak-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.ak-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

.ak-check-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #15803d;
  margin-top: 2px;
}

/* Divider */

.ak-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0 1rem;
}

.ak-divider-bottom {
  margin-top: 1.5rem;
}

/* Icon-raden under checklistan – centrerad */

.ak-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.ak-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.ak-feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

/* CTA i botten av kortet */

.ak-hero-cta {
  margin: 0 0 1rem;
}

.ak-hero-cta-btn {
  width: 100%;
  justify-content: center;
}

.ak-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* STEG 2: Hur deklarerar du? */

.ak-declare-method {
  margin-top: 0.75rem;
}

.ak-step-indicator {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Upload-panelen i steg 2 */

.ak-upload-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  background: #f9fafb;
}

/* Steg-wrapper */

.ak-step-shell {
  margin-top: 0.75rem;
}

.ak-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ak-progress-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.ak-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.ak-progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.ak-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.ak-step-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Alternativ */

.ak-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ak-option {
  width: 100%;
  text-align: left;
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: border 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.ak-option:hover:not(.ak-option-selected) {
  border-color: rgba(0, 80, 120, 0.35);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ak-option-selected {
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 80, 120, 0.18);
  background: linear-gradient(135deg, rgba(0, 80, 120, 0.03), #fff);
}

.ak-option-label {
  display: flex;
  flex-direction: column;
}

.ak-option-title {
  font-weight: 600;
}

.ak-option-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.ak-option-pill {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 80, 120, 0.06);
  color: var(--color-primary);
  font-weight: 500;
}

/* Inputs */

.ak-input-group {
  margin-bottom: 1rem;
}

.ak-input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.ak-input-help {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.ak-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s ease, border 0.15s ease;
}

.ak-input:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 80, 120, 0.25);
}

.ak-input-error {
  border-color: #b91c1c;
}

.ak-input-error-msg {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Sticky bottom bar */

.ak-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: var(--color-bg-elevated, #f5f5f7);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
}

.ak-sticky-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ak-sticky-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.ak-sticky-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (min-width: 960px) {
  .ak-sticky-bar {
    position: static;
    padding-top: 1rem;
    padding-bottom: 0;
    background: transparent;
    box-shadow: none;
  }

  .ak-sticky-inner {
    padding-inline: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* === Resultatsida === */

.results-view {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.results-header {
  margin-bottom: 1.5rem;
}

.results-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.results-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Stor siffra i fokus */

.results-hero {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.4rem 0 0.4rem;
}

.results-equals {
  font-size: 1.6rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1;
}

.results-total-amount {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #065f46;
}

.results-tagline {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
}

.results-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 40rem;
}

/* Texten "Nästa steg" under resultatet */

.results-nextsteps {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.results-nextsteps ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.results-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Sektionstitlar ovanför avdragskorten */

.results-section {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.results-section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Layout om du använder två kolumner (valfritt, skadar inte om ej används) */

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.results-main {
  min-width: 0;
}

.results-sidebar {
  min-width: 0;
}

/* Sammanfattningskort i sidokolumn (valfritt) */

.results-summary-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
}

.results-summary-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.results-summary-amount {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #065f46;
}

.results-summary-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.results-summary-text {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Lite luft runt CTA på resultatsidan */

.results-header .btn-primary {
  margin-top: 0.75rem;
}

/* Avdragskort */

.deduction-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deduction-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem;
  background: #f9fafb;
}

.deduction-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.deduction-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.deduction-amount {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.deduction-description {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.deduction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}

.deduction-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  background: #e5e7eb;
  color: #374151;
}

.deduction-tag-easy {
  background: #ecfdf3;
  color: #166534;
}

.deduction-tag-medium {
  background: #eff6ff;
  color: #1d4ed8;
}

.deduction-tag-hard {
  background: #fef3c7;
  color: #92400e;
}

.deduction-link {
  font-size: 0.8rem;
  text-decoration: underline;
}

.deduction-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Knapp-styles för resultatvyn (återanvänder .btn) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: #005078;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* Responsivt för resultatsidan */

@media (max-width: 768px) {
  .results-view {
    padding: 1.5rem 1.25rem;
  }

  .results-total-amount {
    font-size: 2rem;
  }

  .results-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-sidebar {
    order: -1;
  }
}

/* Loader för deklarations-analys */

.ak-status-loading {
  position: relative;
  padding-left: 1.6rem;
}

.ak-status-loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.15);
  border-top-color: var(--color-primary);
  animation: ak-spin 0.7s linear infinite;
}

@keyframes ak-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Deklarations-sammanfattning i steg 1 */

.ak-deklaration-status {
  margin-top: 1rem;
}

.ak-deklaration-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #111827;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.ak-deklaration-header {
  margin-bottom: 0.75rem;
}

.ak-deklaration-step {
  margin: 0 0 0.1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.ak-deklaration-step-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.ak-deklaration-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.ak-deklaration-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dcfce7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #16a34a;
  flex-shrink: 0;
}

.ak-deklaration-main-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.ak-deklaration-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.ak-deklaration-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.ak-deklaration-rows {
  margin: 0;
}

.ak-deklaration-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.ak-deklaration-row-label {
  color: #111827;
}

.ak-deklaration-row-value {
  font-weight: 600;
}

.ak-deklaration-avdrag-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.ak-deklaration-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}

.ak-deklaration-list li {
  margin-bottom: 0.15rem;
}

.ak-deklaration-muted {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Modal */

.howto-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.howto-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  z-index: 9998;
}

.howto-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  background: white;
  border-radius: 14px;
  width: 90%;
  max-width: 520px;
  padding: 32px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.howto-modal.active .howto-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.howto-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.howto-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.howto-intro {
  margin-bottom: 20px;
  color: #444;
}

.howto-primary {
  width: 100%;
  background: #005078;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  margin-top: 24px;
  cursor: pointer;
  font-size: 16px;
}

.howto-primary:hover {
  background: #004066;
}

.howto-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

/* SEO-kort & e-postkort */

.card {
  background-color: var(--color-surface);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  margin: 0 auto 1.25rem;
  max-width: 720px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-family: inherit;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Länklista */

.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.link-list li {
  margin-bottom: 0.35rem;
}

.link-list a {
  text-decoration: none;
  color: var(--color-primary);
}

.link-list a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

#deklaration-file {
  display: none;
}

/* CTA efter deklarationsanalys */

.ak-next-cta {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 1.8rem auto 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 80, 120, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.ak-next-cta:hover:not(:disabled),
.ak-next-cta:focus-visible:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: 0 16px 34px rgba(0, 80, 120, 0.45);
  transform: translateY(-2px);
}

.ak-next-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Sticky på mobil/tablet --- */

@media (max-width: 960px) {
  .ak-next-cta {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 2rem);
    max-width: 500px;
    z-index: 9000;
    padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  }

  .ak-next-cta {
    backdrop-filter: blur(4px);
    background: rgba(0, 80, 120, 0.97);
  }

  .page-main {
    padding-bottom: 6.5rem !important;
  }
}

/* === Deklarationsanimationer === */

.ak-fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.ak-fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: akFadeIn 0.45s ease forwards;
}

@keyframes akFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ak-cta-slide-in {
  position: sticky;
  bottom: 0;
  animation: akSlideUp 0.4s ease forwards;
}

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