@font-face {
  font-family: Poppins;
  src: url('../poppins-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../poppins-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../poppins-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --sw-primary: #1a357e;
  --sw-primary-hover: #122660;
  --sw-accent: #087cff;
  --sw-ink: #152b47;
  --sw-muted: #64748b;
  --sw-border: #e3e8f0;
  --sw-soft-blue: #f1f4fd;
}

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

body.sw-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--sw-ink);
  font-family: Poppins, system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Minimal Header */
.sw-header {
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.sw-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sw-brand {
  display: inline-flex;
  align-items: center;
}

.sw-brand img {
  width: 170px;
  height: auto;
  display: block;
}

.sw-exit-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-muted);
  transition: color 0.16s ease;
}

.sw-exit-link:hover {
  color: var(--sw-primary);
}

/* Centered Wizard Shell */
.sw-shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  flex: 1;
}

/* Top Progress Row */
.sw-topbar {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.sw-back-arrow {
  border: 0;
  background: transparent;
  padding: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--sw-ink);
  border-radius: 50%;
  transition: background 0.15s ease;
}

.sw-back-arrow:hover:not(:disabled) {
  background: #f1f5f9;
}

.sw-back-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.sw-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.sw-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sw-primary);
  transition: width 0.25s ease;
}

.sw-step-fraction {
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-muted);
  min-width: 26px;
  text-align: right;
}

/* 2-Column Swappie Layout */
.sw-columns {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Left Compact Estimate Card */
.sw-left-rail {
  position: sticky;
  top: 24px;
}

.sw-estimate-card {
  background: #ffffff;
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.sw-estimate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sw-estimate-row span {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
}

.sw-estimate-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--sw-primary);
  white-space: nowrap;
}

.sw-estimate-bonus {
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #effbf3;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
}

.sw-rail-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-rail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}

.sw-rail-list span {
  color: var(--sw-muted);
  flex-shrink: 0;
}

.sw-rail-list button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sw-ink);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-rail-list button:hover {
  color: var(--sw-primary);
  text-decoration: underline;
}

/* Right Focused Question Card */
.sw-question-card {
  background: #ffffff;
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  padding: 28px 30px;
}

.sw-q-title {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sw-primary);
}

.sw-q-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--sw-muted);
}

.sw-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--sw-soft-blue);
  color: #364765;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sw-info-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--sw-primary);
  color: var(--sw-primary);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Fields, Selects, Chips */
.sw-field-block {
  margin-bottom: 18px;
}

.sw-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.sw-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-ink);
  margin-bottom: 7px;
}

.sw-label-row .sw-label {
  margin-bottom: 0;
}

.sw-text-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sw-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sw-select,
.sw-text-input,
.sw-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--sw-ink);
  padding: 11px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sw-select {
  min-height: 46px;
}

.sw-select:focus,
.sw-text-input:focus,
.sw-textarea:focus {
  border-color: var(--sw-primary);
  box-shadow: 0 0 0 3px rgba(26, 53, 126, 0.12);
}

.sw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sw-chip {
  border: 1.5px solid #dbe2ec;
  background: #ffffff;
  color: var(--sw-ink);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.sw-chip:hover {
  border-color: #9fb3d9;
}

.sw-chip.is-selected {
  border-color: var(--sw-primary);
  background: var(--sw-soft-blue);
  color: var(--sw-primary);
}

.sw-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sw-choice-pill {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #dbe2ec;
  background: #ffffff;
  text-align: center;
  font-size: 14px;
  color: var(--sw-ink);
  transition: all 0.15s ease;
}

.sw-choice-pill:hover {
  border-color: #9fb3d9;
}

.sw-choice-pill.is-selected {
  border-color: var(--sw-primary);
  background: var(--sw-soft-blue);
  color: var(--sw-primary);
}

/* Visual Photo Cards */
.sw-visual-grid {
  display: grid;
  gap: 12px;
}

.sw-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sw-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--sw-ink);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sw-visual-card:hover {
  transform: translateY(-2px);
  border-color: #9fb3d9;
  box-shadow: 0 8px 20px rgba(26, 53, 126, 0.07);
}

.sw-visual-card.is-selected {
  border-color: var(--sw-primary);
  background: #f8faff;
  box-shadow: 0 0 0 1px var(--sw-primary);
}

.sw-check-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  color: transparent;
}

.sw-visual-card.is-selected .sw-check-badge {
  background: var(--sw-primary);
  border-color: var(--sw-primary);
  color: #ffffff;
}

.sw-card-media {
  width: 100%;
  height: 114px;
  border-radius: 10px;
  background: #eef2f7;
  margin-bottom: 10px;
  overflow: hidden;
}

.sw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.24s ease;
}

.sw-visual-card:hover .sw-card-media img {
  transform: scale(1.03);
}

.sw-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sw-card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sw-ink);
}

.sw-card-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.48;
  color: var(--sw-muted);
}

.sw-status-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 2px;
}

.sw-status-tag.is-emerald { background: #dcfce7; color: #166534; }
.sw-status-tag.is-blue { background: #dbeafe; color: #1e40af; }
.sw-status-tag.is-amber { background: #fef3c7; color: #92400e; }
.sw-status-tag.is-red { background: #fee2e2; color: #991b1b; }
.sw-status-tag.is-slate { background: #e2e8f0; color: #334155; }

/* Fault Drawer & Lock Alert */
.sw-fault-drawer {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fff9f2;
  border: 1px solid #f7dec0;
}

.sw-fault-drawer > strong {
  display: block;
  font-size: 12px;
  color: #7c3f0b;
  margin-bottom: 8px;
}

.sw-fault-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sw-fault-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ecc69b;
  background: #ffffff;
  color: #5b320d;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
}

.sw-fault-chip.is-selected {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.sw-alert-info {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #881337;
}

.sw-alert-info strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 3px;
}

.sw-alert-info p {
  margin: 0;
  font-size: 11.5px;
}

/* Primary Pill Button & Footer */
.sw-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.sw-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--sw-primary);
  color: #ffffff;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.16s ease, transform 0.16s ease;
}

.sw-btn-primary:hover:not(:disabled) {
  background: var(--sw-primary-hover);
  transform: translateY(-1px);
}

.sw-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sw-btn-ghost {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sw-muted);
}

.sw-btn-ghost:hover {
  color: var(--sw-ink);
}

/* Final Offer Card & Competitor Comparison */
.sw-offer-hero {
  background: linear-gradient(135deg, #16327a 0%, #0d2148 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}

.sw-offer-hero.is-locked {
  background: linear-gradient(135deg, #4b1d2e 0%, #24101c 100%);
}

.sw-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.sw-offer-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.sw-offer-price {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.sw-offer-price span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fecdd3;
  margin-top: 5px;
}

.sw-offer-device-line {
  margin: 6px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

.sw-advantage-pill {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.45);
  text-align: right;
}

.sw-advantage-pill span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}

.sw-advantage-pill strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
}

.sw-advantage-pill small {
  font-size: 10.5px;
  color: #bbf7d0;
}

.sw-compare-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.sw-compare-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  margin-bottom: 10px;
}

.sw-compare-head span {
  color: #bfdbfe;
}

.sw-bar-row {
  margin-bottom: 8px;
}

.sw-bar-row:last-child {
  margin-bottom: 0;
}

.sw-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  color: #e2e8f0;
}

.sw-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.sw-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.sw-bar-fill.is-kretslagret { background: #4ade80; }
.sw-bar-fill.is-competitor { background: #64748b; }

.sw-locked-notice {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #ffe4e6;
}

.sw-breakdown-wrap {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sw-breakdown-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 0;
}

.sw-breakdown-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sw-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #dbeafe;
}

.sw-breakdown-row.deduct b { color: #fca5a5; }
.sw-breakdown-row.bonus b { color: #86efac; }

/* Contact Form on Offer Screen */
.sw-contact-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}

.sw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sw-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sw-ink);
}

.sw-form-grid label span {
  color: #ef4444;
}

.sw-form-grid input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 400;
  outline: none;
}

.sw-form-grid input:focus {
  border-color: var(--sw-primary);
  box-shadow: 0 0 0 3px rgba(26, 53, 126, 0.12);
}

.sw-full-col {
  grid-column: 1 / -1;
}

.sw-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--sw-muted);
}

.sw-terms-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--sw-primary);
}

.sw-btn-submit {
  width: 100%;
  padding: 13px 24px;
}

.sw-form-status {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
}

.sw-footnote {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--sw-muted);
}

.sw-footnote a {
  color: var(--sw-primary);
  text-decoration: underline;
}

/* Success Screen */
.sw-success-card {
  text-align: center;
  padding: 12px 6px;
}

.sw-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}

.sw-success-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
  margin: 20px 0;
}

.sw-success-steps > div {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sw-success-steps span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sw-success-steps strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.sw-success-steps p {
  margin: 0;
  font-size: 11px;
  color: var(--sw-muted);
}

/* Minimal Footer */
.sw-mini-footer {
  border-top: 1px solid #eef2f7;
  padding: 18px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--sw-muted);
}

.sw-mini-footer a:hover {
  color: var(--sw-primary);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 820px) {
  .sw-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sw-left-rail {
    position: static;
  }
}

@media (max-width: 600px) {
  .sw-shell {
    padding: 20px 14px 48px;
  }
  .sw-question-card {
    padding: 22px 18px;
  }
  .sw-grid-2,
  .sw-grid-3,
  .sw-form-grid,
  .sw-success-steps {
    grid-template-columns: 1fr;
  }
  .sw-card-media {
    height: 132px;
  }
  .sw-brand img {
    width: 145px;
  }
}

/* Subtle Crawlable Info & FAQ Below Wizard */
.sw-seo-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #e6ebf2;
}

.sw-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sw-seo-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sw-primary);
  margin-bottom: 8px;
}

.sw-seo-info h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--sw-ink);
}

.sw-seo-info p,
.sw-seo-faq p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--sw-muted);
  margin: 0 0 14px;
}

.sw-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sw-seo-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--sw-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sw-seo-faq h2 {
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--sw-ink);
}

.sw-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 8px;
  background: #f8fafd;
}

.sw-faq-item summary {
  padding: 12px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sw-ink);
  cursor: pointer;
  list-style: none;
}

.sw-faq-item summary::-webkit-details-marker {
  display: none;
}

.sw-faq-item p {
  margin: 0 0 12px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .sw-seo-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
