:root {
  --rb-blue:        #0D4B78;
  --rb-light-blue:  #8CD8F4;
  --rb-medium-blue: #4291d7;
  --rb-white:       #ffffff;
  --rb-dark:        #062B46;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.dm-view { display: none; }

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: var(--rb-blue);
  color: var(--rb-white);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ─── ROOT (GRID) ─── */
.dm-root-container {
  width: 100%;
  max-width: 1280px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: var(--rb-blue);
}

/* ─── TOOLBAR & LOGO ─── */
.dm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 2rem;
  background: var(--rb-blue);
}

.dm-toolbar-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 190px;
  max-width: 280px;
  width: clamp(190px,18vw,280px);
  aspect-ratio: 280/64;
  margin-right: 1rem;
}
.dm-logo-container {
  display: block;
  width: 100%;
  height: 100%;
}
.dm-logo-container picture,
.dm-logo-container img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Right side nav — always grows to fill leftover, never shrinks below (toolbar width − max logo width) */
.dm-toolbar-right {
  /* ❶ Zero out flex‐basis so flex-grow takes *all* free space */
  flex: 1 1 0%;
  /* ❷ Even when logo is at its 280px max, keep nav at least this wide */
  min-width: calc(100% - 280px);
  display: flex;
  justify-content: flex-end;
  overflow-x: auto;
}

/* Keep your custom scrollbar styling */
.dm-toolbar-right::-webkit-scrollbar {
  height: 6px;
}
.dm-toolbar-right::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.dm-toolbar-right::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}


/* ─── NAVIGATION ─── */
.dm-nav {
  display: flex;
  gap: 1rem;
}
.dm-nav a {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--rb-white);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: background .2s, color .2s;
}
.dm-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--rb-light-blue);
  border-radius: 4px;
}
.dm-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--rb-light-blue);
}



.dm-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* shared utilities */
.lead {
  font-size: 1.25rem;
  margin: 0.75rem 0;
}
ul.bullets {
  margin: 0.5rem 0 1.5rem 1.5rem;
}
ul.bullets li {
  margin-bottom: 0.4rem;
}

/* HOME */
#home-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}
.home-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}
.cta-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

/* CTA button */
.btn-primary {
  width: 280px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg,#8CD8F4 0%,#fff 100%);
  color: var(--rb-blue);
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform .2s;
}
.btn-primary img {
  height: 48px;
  margin-right: 0.7em;
}
.btn-primary:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg,#062B46 0%,#0D4B78 100%);
  color: var(--rb-light-blue);
  transition: background .2s, color .2s, transform .2s;
}

/* fade-in/out */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut{ from { opacity: 1 } to { opacity: 0 } }
.btn-primary.fade-in  { animation: fadeIn 1s ease-in forwards; }
.btn-primary.fade-out { animation: fadeOut 1s ease-out forwards; }
.btn-primary.skapa    { transition: opacity .5s ease-in; }

/* features & why-us */
.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.why-us-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
  max-width: 600px;
}
.why-row {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.why-row i {
  font-size: 1.5rem;
  color: var(--rb-light-blue);
  min-width: 32px;
  text-align: center;
}

/* ---------- PRICING ------------ */
.pricing-cards {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
}
.pricing-cards .card {
  flex: 1 1 240px;
  background: var(--rb-dark);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--rb-light-blue);
}
.card .price {
  font-size: 1.5rem;
  margin: 0.25rem 0;
}
.card .price span {
  font-size: 0.9rem;
  font-weight: normal;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.pricing-table th,
.pricing-table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.pricing-table th {
  background: var(--rb-light-blue);
  color: var(--rb-blue);
}
.pricing-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

/* ---------- AI grid ------------ */
.ai-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
}
.ai-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.ai-card h3 {
  color: var(--rb-light-blue);
  margin-bottom: 0.5rem;
}
.ai-card .what {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.ai-card .business {
  font-size: 0.9rem;
  opacity: 0.85;
}
/* —— AI-FUNKTIONER TABLE —— */
.ai-table {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 2fr 2fr;
  gap: 1px;
  background: var(--rb-blue);
}
.ai-row {
  display: contents; /* allow the cells to form grid rows */
}
.ai-header .ai-cell {
  background: var(--rb-dark);
  color: var(--rb-white);
  font-weight: bold;
}
.ai-cell {
  background: var(--rb-medium-blue);
  color: var(--rb-white);
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  border-radius: 8px;
}
.ai-row:nth-child(even) .ai-cell {
  background: rgba(255,255,255,0.2);
}
/* make header cells stand out */
.ai-header .ai-cell:nth-child(1) { text-align: left; }
.ai-header .ai-cell { text-align: center; }
/* ensure long text wraps nicely */
.ai-cell p,
.ai-cell {
  margin: 0;
  word-wrap: break-word;
}

/* SKICKA section layout */
.send-container {
  display: flex;
  flex-direction: column;  /* always stack vertically */
  gap: 1.5rem;
}
/* Individual box wrapper */
.send-box {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Header line */
.send-box .box-header {
  background: var(--rb-light-blue);
  color: var(--rb-blue);
  padding: 1rem;
  font-weight: bold;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.send-box .box-header i {
  font-size: 1.5rem;
}
/* Body area */
.send-box .box-body {
  padding: 1rem;
  color: var(--rb-white);
}
.send-box .box-body p {
  margin-bottom: 1rem;
}
.send-box .box-body ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 1rem;
}
.send-box .box-body li {
  margin-bottom: 0.75rem;
}

/* —— Kivra box overrides —— */
.kivra-box {
  background: #EDF9E2;
}
.kivra-box .box-header {
  background: #003006;
  color: #EDF9E2;
}
/* —— Kivra logo —— */
/* Native size: 127×67px */
.kivra-logo {
  /* ❶ lock the native aspect ratio */
  aspect-ratio: 127 / 67;
  /* ❷ let it scale between 64px and its full width */
  width: clamp(64px, 10vw, 127px);
  /* ❸ height computed by aspect-ratio automatically */
  display: block;            /* avoid inline-gap */
  object-fit: contain;
}
.kivra-box .box-body {
  color: #003006;
}

/* CONTACT form */
#contact-form {
  max-width: 600px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form .form-row {
  display: flex;
  flex-direction: column;
}
#contact-form label {
  margin-bottom: 0.25rem;
  font-weight: bold;
}
#contact-form input,
#contact-form textarea {
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--rb-white);
  font-size: 1rem;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--rb-light-blue);
}
#contact-submit {
  position: relative;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background: var(--rb-light-blue);
  color: var(--rb-blue);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#contact-submit .btn-spinner {
  font-size: 1rem;
}
#contact-feedback {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
#contact-feedback.success {
  color: #8CD8F4;
}
#contact-feedback.error {
  color: #F28C8C;
}

/* ---------- footer ------------- */
.dm-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* === GLOBAL RESPONSIVE OVERRIDES ================================ */

/* Root container adapts to any viewport, but preserves your 1280-px desktop cap */
.dm-root-container {
  width: 100%;
  max-width: 1280px;
  height: 100vh;
}

/* Medium screens: stack nav vertically and shrink logo ---------------- */
@media (max-width: 768px) {

  /* stop vertical centering so fixed toolbar sits at top */
  body {
    align-items: flex-start;
  }

  /* let the page scroll naturally */
  .dm-root-container {
    height: auto;
    border-radius: 0;
  }

  /* toolbar fixed at top */
  .dm-toolbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 0 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  /* reserve space below toolbar */
  .dm-content {
    padding: 1rem;
    margin-top: 60px;
  }

  /* stack nav links vertically */
  .dm-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  /* ----- LOGO (desktop + mobile, one set of rules) ---------------- */
.dm-logo-container{
  /* ❶  Desktop: 280 px   →   Mobile:  clamp(120 px,18 vw,260 px)              */
  /*     Keeps the logo crisp while allowing it to shrink responsively.       */
  width: clamp(190px,18vw,280px);

  /* ❷  Preserve the original aspect ratio (280 × 64) without hard‑coding     */
  aspect-ratio: 280/64;

  /* ❸  Make the anchor act like a true container                            */
  display:block;
}

/* 100 % rule applies to both <picture> and fallback <img> */
.dm-logo-container picture,
.dm-logo-container img{
  width:100%;
  height:100%;
  display:block;          /* prevent the small inline‑gap below images       */
  object-fit:contain;     /* never distort, always fit inside the rectangle  */
}

}

/* Small screens: 2-column nav grid with 4 rows each ------------------ */
@media (max-width: 480px) {
  .dm-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}


/* Replace your existing .dm-root-container rules with this: */
.dm-root-container {
  width: 100%;
  max-width: 1280px;
  height: 100vh;

  /* → grid with exactly three rows: toolbar / content / footer */
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  background: var(--rb-blue);
}

/* Make sure the toolbar stays in the first row */
.dm-toolbar {
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 100;
}


/* ─── Login nav‑button ────────────────────────────── */
.login-bankid {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0 .75rem;                 /* equal click target */
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.login-bankid:hover {
  background: rgba(255,255,255,.1);
  color: var(--rb-light-blue);
}
.bankid-logo-inline {
  height: 30px;                      /* visually matches x‑height of text */
  flex-shrink: 0;
}



/* Content always lives in the second row and scrolls if needed */
.dm-content {
  grid-row: 2;
  overflow-y: auto;
  padding: 2rem;
}

/* Footer sits in the third row */
.dm-footer {
  grid-row: 3;
}
/* —— OpenAI box overrides —— */
.openai-box {
  background: #212121;
  margin-top: 1.5rem; /* a little breathing room */
}
.openai-box .box-header {
  background: #181818;
  color: #FFFFFF;
}
.openai-box .box-body {
  background: #212121;
  color: #AFAFAF;
  padding: 1rem;
}

.openai-box .openai-features {
  list-style: disc inside;
  margin: 0;
  padding: 0.5rem 0 0 1.25rem;
  color: var(--rb-white);
  font-size: 0.95rem;
  line-height: 1.4;
}
.openai-box .openai-features li + li {
  margin-top: 0.5rem;
}

/* —— OpenAI logo —— */
/* Native size: 413×102px */
.openai-logo {
  aspect-ratio: 413 / 102;
  /* let it scale between 120px and its full width */
  width: clamp(120px, 15vw, 413px);
  display: block;
  object-fit: contain;
}

/* ─── MODAL SHELL ─── */
.dm-modal{
  position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.65);z-index:1200;
}
.dm-modal .modal-step{
  width:min(95vw,480px);background:#062B46;padding:2rem;border-radius:12px;
  display:flex;flex-direction:column;gap:1rem;animation:fadeIn .3s ease-in;
}
.modal-close{position:absolute;top:1rem;right:1rem;font-size:2rem;
  background:none;border:none;color:#fff;cursor:pointer;}
.bankid-help summary{cursor:pointer;font-weight:bold;margin-bottom:.5rem;}
.bankid-help .small, .modal-step .small{font-size:.85rem;color:#8CD8F4;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.remember{display:flex;align-items:center;gap:.5rem;font-size:.9rem;}
#qr-canvas{border:8px solid #fff;border-radius:8px;background:#fff;}
.btn-secondary{background:#8CD8F4;color:#062B46;border:none;border-radius:6px;
  padding:.6rem 1.2rem;cursor:pointer;font-weight:bold;}


/* STEP 1: Instruction list */
.instructions-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.instructions-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.instructions-list li:last-child {
  margin-bottom: 0;
}

/* Icon styling remains the same */
.instructions-list li i {
  font-size: 1.5rem;
  color: var(--rb-light-blue);
  min-width: 32px;
  text-align: center;
}
.instructions-list li.full-width {
  grid-column: span 2;
}

/* Centered form & button */
.centered-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.centered-form label {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}
.centered-form input {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--rb-white);
  font-size: 1rem;
  text-align: center;
}
.centered-form input::placeholder {
  color: rgba(255,255,255,0.6);
}
.centered-btn {
  align-self: center;
  width: 200px;
  justify-content: center;
}
/* Style for inline error under the Logga in button */
.bankid-error {
  color: #F28C8C;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
/* Centered form & button */
.centered-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.centered-form label {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  text-align: center;        /* ← center the label text */
}
.centered-form input {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--rb-white);
  font-size: 1rem;
  text-align: center;
}
.centered-btn {
  align-self: center;
  width: 200px;
  justify-content: center;
}


/* STEP 3 – Tenant form */
#tenant-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#tenant-form .tenant-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--rb-white);
}

#tenant-form .tenant-fields input {
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--rb-white);
  font-size: 1rem;
}

#tenant-form .tenant-fields input::placeholder {
  color: rgba(255,255,255,0.6);
}

#tenant-form label.full-width {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--rb-white);
}

#tenant-form label.full-width input[type="file"] {
  margin-top: 0.4rem;
}

#tenant-save {
  align-self: flex-end;
  padding: 0.75rem 1.5rem;
}
/* STEP 3 modal: ensure plenty of breathing room */
#bankid-step-3.modal-step {
  /* override the default fixed width so our min applies */
  width: auto !important;
  min-width: 625px;
  min-height: 835px;
  /* you can keep your existing padding on .modal-step so the inputs never touch the border */
}
/* new Step 3 footer flex‐container */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* logo upload + preview */
.logo-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-preview {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.1); /* shows through transparent PNG */
  border-radius: 3px;
  object-fit: contain;
}

/* custom file‐select button */
.upload-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--rb-medium-blue);
  color: var(--rb-white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}
.upload-btn i {
  font-size: 1.1rem;
}
.upload-btn:hover {
  background: var(--rb-light-blue);
  color: var(--rb-dark);
}

/* hide the real file input */
#logo-input {
  display: none;
}


/* Inline tenant‐form feedback */
.tenant-feedback {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--rb-light-blue);
}
.tenant-feedback.error {
  color: #F28C8C;
}
.tenant-feedback.success {
  color: #8CD8F4;
}

/* ─── STEP 4 modal sizing like Step 3 ───────────────────────── */
#bankid-step-4.modal-step {
  width: auto !important;
  min-width: 625px;
  min-height: 835px;
  position: relative;
  padding-bottom: 3rem; /* room for the proceed button */
}

/* “Gå vidare” button */
#proceed-subscription {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
}

/* ─── Modern checklist icons ─────────────────────────────────── */
.auth-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.auth-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.auth-item:hover {
  background: rgba(255,255,255,0.2);
}
.auth-icon {
  color: var(--rb-light-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.checkmark i {
  font-size: 1.4rem;
  color: var(--rb-white);
  flex-shrink: 0;
}
.auth-item.done .checkmark i {
  color: var(--rb-light-blue);
}

/* Container for the three cards */
.auth-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

/* Each authorization card */
.auth-card {
  display: grid;
  grid-template-columns: 48px 1fr auto 32px;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}
.auth-card-icon {
  font-size: 1.5rem;
  color: var(--rb-light-blue);
}
.auth-card-body h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--rb-white);
}
.auth-card-body p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Branded Kivra button */
.btn-kivra,
.btn-kivra-outline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}
.btn-kivra {
  background: #003006;
  color: #EDF9E2;
  border: none;
}
.btn-kivra-outline {
  background: transparent;
  color: #EDF9E2;
  border: 2px solid #EDF9E2;
}
.btn-kivra img,
.btn-kivra-outline img {
  height: 1em;
}

/* DynamicMail outline */
.btn-primary-outline {
  background: transparent;
  color: var(--rb-white);
  border: 2px solid var(--rb-white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
}

/* Checkmark column */
.checkmark i {
  font-size: 1.4rem;
  color: var(--rb-white);
  transition: color .2s;
}
.auth-card.done .checkmark i {
  color: var(--rb-light-blue);
}



/* ─── Sub-modal shell & content ──────────────────────────────── */
.dm-submodal {
  display: none;
}
.dm-submodal.open {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
}
.dm-submodal .modal-content {
  display: flex;
  flex-direction: column;
  width: 1060px;
  max-width: 95vw;
  height: 90vh;
  background: #062B46;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dm-submodal .modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  background: none; border: none; color: #fff;
  cursor: pointer;
}
.dm-submodal h4 {
  margin-bottom: 1rem;
  color: var(--rb-white);
  text-align: center;
}

/* make iframe fill remaining space, 100% width of modal-content */
.terms-frame {
  flex: 1;
  width: 100%;
  min-height: 0;   /* allow flex to control height */
  background: #fff;
  border-radius: 6px;
  border: none;
}

/* push Accept to bottom */
.dm-submodal .accept-btn {
  margin-top: auto;
}

/* Color coding for yes / no */
.pricing-table td .yes {
  display: inline-block;
  color: #56de9f;      /* green‐ish */
  font-weight: bold;
}
.pricing-table td .no {
  display: inline-block;
  color: #f28c8c;      /* red */
  font-weight: bold;
}
/* — Footer logo inline sizing — */
.footer-logo {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin: 0 0.1em;
}
.footer-logo img {
  width: 100%;
  height: auto;
}
.footer-logo source {
  width: 100%;
  height: auto;
}
/* disable clicking directly on the checkmark */
.checkmark {
  pointer-events: none;
}

/* card-buttons hover & focus animation */
.focusable {
  transition: transform .15s, box-shadow .15s;
}
.focusable:hover,
.focusable:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  outline: none;
}

/* inline error message above cards */
#legal-error {
  color: #F28C8C;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ensure iframe shows only first page */
.terms-frame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #fff;
  /* page=1 anchor handled in src */
}


.pricing-cards .card.trial {
  background: rgba(255,255,255,0.2);
  border: 2px dashed var(--rb-light-blue);
}
.pricing-cards .card.selected {
  box-shadow: 0 0 0 3px var(--rb-light-blue);
}

.dm-modal .modal-step {
  max-height: 90vh;       /* never taller than 90% of the viewport */
  overflow-y: auto;       /* add a vertical scrollbar when needed */
}


/* ────────────────────────────────────────────────────────── */
/* 1) Never let any FA icon shrink or get clipped by flex */
/* 2) Ensure a tight, unclipped line‐box for each icon     */
/* 3) Force a high‐contrast color on header icons         */
/* ────────────────────────────────────────────────────────── */

.fa-solid,
.fa-regular,
.fa-light,
.fa-duotone,
.fa-brands {
  /* never collapse away in tight flex layouts */
  flex-shrink: 0;
}

i[class*="fa-"] {
  /* force a clean square line-box */
  display: inline-block;
  line-height: 1;
}

/* make header icons pop on both light-blue & dark headers */
.send-box .box-header i,
.login-bankid i,
.home-title i,
.why-row i,
.auth-icon,
.checkmark i {
  /* always white for max contrast (override any inherited color) */
  color: var(--rb-white) !important;
}


/* Inline “button” that sits in text */
.btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.25em 0.6em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--rb-blue);                     /* product-blue text */
  background: var(--rb-white);               /* white fill */
  border: 2px solid var(--rb-white);
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s, color .2s, transform .1s;
}

.btn-inline:hover {
  background: var(--rb-light-blue);
  color: var(--rb-blue);
  transform: translateY(-1px);
}

.btn-inline:active {
  transform: translateY(0);
}

/* ── Responsive video wrapper — reusable anywhere on the site ── */
.video-embed{
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;          /* 1920×1080 → perfect 16:9 */
  width: 100%;
  max-width: 960px;              /* optional visual cap */
  margin: 0 auto 2rem;           /* centre + space below CTA */
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}




/* ─── Tenant-chooser list (inside BankID modal) ─── */
.tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;                                /* match modal’s gap */
}

.tenant-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;                             /* same as .instructions-list */
  padding: 1rem;                            /* comfortable touch targets */
  border: 1px solid rgba(255,255,255,0.3);  /* light, semi-transparent border */
  border-radius: 8px;                       /* consistent with other cards */
  background: rgba(255,255,255,0.05);       /* subtle contrast on dark bg */
  cursor: pointer;
  transition: background .2s;
}

.tenant-list li:hover {
  background: rgba(255,255,255,0.1);        /* hover matches other hover cards */
}

.tenant-list img {
  flex-shrink: 0;                           /* never collapse the logo */
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;                       /* soften any square logos */
}
