:root {
  --ch-red: #c81e1e;
  --ch-red-dark: #991b1b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --amber-600: #d97706;
  --red-700: #b91c1c;
  --red-600: #dc2626;
  --radius: 10px;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--slate-900);
  outline-offset: 2px;
}

a {
  color: var(--slate-900);
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--ch-red);
  text-decoration-color: var(--ch-red);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.85rem;
  }
}

/* Header & Compact Single-Line Topbar */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--slate-900);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.brand:hover {
  color: var(--slate-900);
  text-decoration: none;
}

.swiss-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--ch-red);
  color: #fff;
  font-weight: 900;
  border-radius: 6px;
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-trust-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.header-guide-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.header-guide-link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  text-decoration: none;
}

@media (max-width: 640px) {
  .header-guide-link {
    display: none;
  }
  .brand {
    font-size: 0.84rem;
    gap: 0.35rem;
  }
  .swiss-cross {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }
  .header-trust-pill {
    font-size: 0.62rem;
    padding: 0.12rem 0.38rem;
    white-space: nowrap;
  }
}

/* Decluttered Hero */
.hero {
  padding: 0.95rem 0 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.22;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.hero-sub {
  color: #475569;
  font-size: 0.92rem;
  max-width: 780px;
  margin: 0;
  line-height: 1.42;
}

@media (max-width: 640px) {
  .hero {
    padding: 0.6rem 0 0.5rem;
  }
  .hero h1 {
    font-size: 1.18rem;
    margin-bottom: 0.2rem;
  }
  .hero-sub {
    font-size: 0.8rem;
    line-height: 1.38;
  }
}

/* Tool Card */
.tool-shell {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.niche-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.45rem 0.6rem;
  gap: 0.4rem;
  scrollbar-width: none;
  max-width: 100%;
}
.niche-tabs::-webkit-scrollbar {
  display: none;
}

.niche-tab {
  appearance: none;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.46rem 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  transition: all 0.15s ease;
}
.niche-tab small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}
.niche-tab:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}
.niche-tab.active {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.niche-tab.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d52b1e;
}
.niche-tab.active small {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.tool-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 1.35rem;
  padding: 1.15rem 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .tool-body {
    display: block;
    padding: 0.85rem;
  }
  .input-panel {
    margin-bottom: 1rem;
  }
}

/* Prevent any grid or flex child from overflowing its track on iOS Safari / Mobile */
.tool-body > *,
.input-panel,
.report-panel,
.form-section,
.core-fields-card,
.advanced-fields,
.form-grid,
.form-group,
.dropzone,
.pdf-dropzone,
.dropzone-content,
.kpi-grid,
.kpi-card,
.cta-box,
.flags-section,
.flags-list,
.flag-item,
.modal-card,
.modal-dialog {
  min-width: 0;
  max-width: 100%;
}


@media (max-width: 640px) {
  .niche-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0.5rem;
    gap: 0.35rem;
  }
  .niche-tab {
    font-size: 0.76rem;
    padding: 0.38rem 0.62rem;
    flex: 1 1 auto;
    justify-content: center;
  }
  .niche-tab small {
    display: none;
  }
}

/* Action Bar & Compact Single-Bar Dropzone */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.action-bar-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-800);
  min-width: 0;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--slate-900);
  color: #ffffff;
  flex-shrink: 0;
}

.btn-demo {
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}
.btn-demo:hover {
  background: var(--slate-200);
  border-color: var(--slate-400);
}

.dropzone,
.pdf-dropzone {
  display: block;
  width: 100%;
  border: 1.5px dashed #94a3b8;
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--slate-900);
  background: var(--slate-100);
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
}
.dropzone-title {
  font-weight: 700;
  font-size: 0.79rem;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  line-height: 1.35;
}
.dropzone-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--slate-700);
  padding: 0.06rem 0.38rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.dropzone-sub,
#dropzone-status {
  font-size: 0.73rem;
  line-height: 1.35;
  color: var(--slate-600);
  word-break: break-word;
  overflow-wrap: anywhere;
  width: 100%;
}

/* Core Fields Card & Progressive Disclosure */
.core-fields-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
}

.advanced-fields {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
  overflow: hidden;
}

.advanced-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--slate-800);
  user-select: none;
  background: var(--slate-100);
}
.advanced-summary::-webkit-details-marker {
  display: none;
}
.advanced-summary:hover {
  background: var(--slate-200);
}
.advanced-summary-title {
  min-width: 0;
  word-break: break-word;
}
.advanced-summary-title small {
  font-weight: 500;
  color: var(--slate-600);
  font-size: 0.72rem;
}
.advanced-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  white-space: nowrap;
}
.advanced-badge.has-active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: #ffffff;
}

.advanced-grid {
  padding: 0.8rem;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
}

/* Form controls (WCAG 1.4.11 >= 3:1 border contrast + zero horizontal expansion on iOS) */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.68rem;
  width: 100%;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  width: 100%;
  min-width: 0;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.3;
  word-break: break-word;
}
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border: 1.5px solid #94a3b8;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-900);
  background: #ffffff;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  overflow: hidden;
}
.form-group select {
  white-space: nowrap;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--slate-900);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  padding: 0.44rem 0.6rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  font-size: 0.76rem;
  line-height: 1.35;
  width: 100%;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 15px;
  height: 15px;
  accent-color: var(--slate-900);
  flex-shrink: 0;
}
.checkbox-row label {
  min-width: 0;
  flex: 1;
}

/* Step 2 Report Panel — 3 Clear Visual Beats */
.report-panel {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
@media (max-width: 640px) {
  .report-panel {
    padding: 0.85rem;
  }
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.55rem;
}
.report-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

/* Beat 1: Hero KPI Cards (Giant Numbers) */
.kpi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  width: 100%;
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
}
.kpi-card.kpi-disputed {
  border-top: 3.5px solid var(--red-700);
  background: #fcfcfd;
}
.kpi-card.kpi-undisputed {
  border-top: 3.5px solid var(--emerald-600);
  background: #fcfcfd;
}
.kpi-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}
.kpi-disputed .kpi-value {
  font-size: clamp(1.65rem, 4.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.12;
  margin-top: 0.2rem;
  color: var(--red-700);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi-undisputed .kpi-value {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.22rem;
  color: var(--emerald-700);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.kpi-note {
  font-size: 0.72rem;
  color: var(--slate-600);
  margin-top: 0.2rem;
  font-weight: 500;
  word-break: break-word;
}
.btn-ebanking-copy {
  margin-top: 0.42rem;
  align-self: flex-start;
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 0.2rem 0.52rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}
.btn-ebanking-copy:hover {
  background: var(--slate-200);
}

/* Beat 2: Primary Conversion CTA Block (Directly Below KPIs) */
.cta-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 0.75rem;
  width: 100%;
}
.btn-cta-chf19 {
  width: 100%;
  background: var(--ch-red);
  color: #ffffff;
  border: 1px solid #991b1b;
  border-radius: 9px;
  padding: 0.88rem 0.95rem;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 30, 30, 0.25);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  text-align: center;
  word-break: break-word;
}
.btn-cta-chf19:hover {
  background: var(--ch-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 30, 30, 0.32);
}

#savings-vs-fee-banner,
.savings-banner {
  margin-top: 0.48rem;
  font-size: 0.75rem;
  color: var(--slate-700);
  text-align: center;
  line-height: 1.38;
  word-break: break-word;
}

.cta-meta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.38rem;
  font-size: 0.71rem;
  color: var(--slate-600);
}
.meta-dot {
  color: var(--slate-400);
}
.btn-link-subtle {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--slate-800);
  text-decoration: underline;
  text-decoration-color: var(--slate-400);
  cursor: pointer;
}
.btn-link-subtle:hover {
  color: var(--ch-red);
  text-decoration-color: var(--ch-red);
}

.btn-share-inline {
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-share-inline:hover {
  background: var(--slate-200);
}

/* Beat 3: Concise Legal Findings */
.flags-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}
.flags-section-header {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate-600);
}
.flags-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.flag-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-left: 3.5px solid var(--slate-400);
  border-radius: 8px;
  padding: 0.58rem 0.72rem;
  font-size: 0.77rem;
  line-height: 1.38;
  color: var(--slate-700);
  word-break: break-word;
}
.flag-item.red,
.flag-item.flag-red {
  border-left-color: #dc2626;
}
.flag-item.amber,
.flag-item.flag-amber {
  border-left-color: #d97706;
}
.flag-item.green,
.flag-item.flag-green {
  border-left-color: #059669;
}
.flag-title {
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.flag-statute {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.38rem;
  border-radius: 4px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  max-width: 100%;
  word-break: break-word;
}
.citations-footer {
  font-size: 0.68rem;
  color: var(--slate-500);
  margin-top: 0.15rem;
  word-break: break-word;
}

/* Sticky Mobile Live-Result & CTA Bar (<900px) */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 72px;
  }
  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.22);
    max-width: 100vw;
  }
  .mobile-sticky-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mobile-sticky-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-sticky-amount {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .btn-mobile-cta {
    background: var(--ch-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.58rem 0.82rem;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Content Sections */
.content-section {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.65rem;
  margin-bottom: 1.75rem;
  max-width: 100%;
}
@media (max-width: 640px) {
  .content-section {
    padding: 1.15rem;
  }
}
.content-section h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.content-section h3 {
  font-size: 1.02rem;
  margin-top: 1.1rem;
}

.niche-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.niche-card {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1.05rem;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.niche-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}
.niche-card p {
  font-size: 0.84rem;
  color: var(--slate-600);
  margin: 0 0 0.8rem;
}

/* Decluttered Modal & 2-Tier Selector */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  z-index: 100;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
  .modal-card {
    padding: 0.95rem;
  }
}
.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.beta-banner {
  background: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-left: 4px solid var(--emerald-600);
  color: var(--slate-800);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.tier-selector-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 640px) {
  .tier-selector-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
}
.tier-card {
  position: relative;
  border: 1.5px solid var(--slate-300);
  border-radius: 9px;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  cursor: pointer;
  min-width: 0;
}
.tier-card:hover {
  border-color: var(--slate-500);
}
.tier-card.active {
  border-color: var(--slate-900);
  background: var(--slate-50);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}
.tier-rec-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--slate-900);
  color: #ffffff;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}
.tier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.28rem;
}
.tier-card-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--slate-900);
}
.tier-price-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.tier-price-strike {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  text-decoration: line-through;
}
.tier-beta-free {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--emerald-700);
  background: #ecfdf5;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
}
.tier-bullets {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.73rem;
  color: var(--slate-700);
  word-break: break-word;
}

.modal-address-grid {
  margin-bottom: 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.btn-primary {
  background: var(--ch-red);
  color: #fff;
  border: none;
  padding: 0.68rem 0.95rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  max-width: 100%;
  word-break: break-word;
}
.btn-primary:hover {
  background: var(--ch-red-dark);
}
.btn-secondary {
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-300);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.letter-preview {
  background: var(--slate-50);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.42;
  max-width: 100%;
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-200);
  padding: 2.25rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-col-title {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

/* Print stylesheet for Swiss A4 Einschreiben */
@media print {
  body * {
    visibility: hidden;
  }
  #letter-modal,
  #letter-modal #printable-letter-area,
  #letter-modal #printable-letter-area * {
    visibility: visible;
  }
  #letter-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 0;
  }
  #printable-letter-area {
    border: none;
    max-height: none;
    overflow: visible;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10.5pt;
    line-height: 1.45;
    color: #000;
    padding: 15mm 18mm;
  }
}
