/* Extracted from assets/modal.css — MODAL CONTENT (sections/typography/tables/content spacing) — Step 8 */

.modal-body p {
  color: var(--ink);
  line-height: 1.55;
}

/* Add vertical padding inside the modal body so the ✕ doesn’t overlap text */
.modal-panel .modal-body .section,
.modal-panel .modal-body>div {
  padding-top: 20px;
  /* adjust this if you want more or less space */
  padding-left: 15px;
  padding-right: 15px;
}

.modal-panel .section+.section {
  margin-top: var(--modal-section-gap);
}

/* Body text alignment and spacing consistency */
.modal-panel,
.modal-panel p,
.modal-panel label,
.modal-panel li,
.modal-panel input,
.modal-panel select,
.modal-panel textarea {
  font-family: "Aileron", system-ui, sans-serif !important;
  letter-spacing: normal;
  font-weight: 400;
}

/* ===== Phase 5: Modal typography & buttons (mobile) ===== */
@media (max-width: 768px) {
  .modal-panel {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .modal-panel h1 {
    font-size: 1.35rem;
    letter-spacing: 0;
  }

  .modal-panel h2 {
    font-size: 1.20rem;
    letter-spacing: 0;
  }

  .modal-panel h3 {
    font-size: 1.10rem;
    letter-spacing: 0;
  }

  .modal-panel h4,
  .modal-panel h5,
  .modal-panel h6 {
    letter-spacing: 0;
  }

  .modal-panel p,
  .modal-panel label,
  .modal-panel li,
  .modal-panel .field-label {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .modal-panel .btn,
  .modal-panel button,
  .modal-panel .primary {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
    line-height: 1.1;
    touch-action: manipulation;
  }
}

/* Added from assets/modal.css — modal interior leftovers (10B cleanup) */
.lead-xl {
  font-size: clamp(1.10rem, 2.1vw, 1.45rem);
  line-height: 1.5;
}

/* Ensure long table text wraps instead of overflowing */
.table th,
.table td {
  word-break: break-word;
}

@media (max-width: 420px) {
  .table {
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }
}

@media (max-width: 360px) {
  .table {
    font-size: 12px;
  }

  .table th,
  .table td {
    padding: 7px 6px;
  }
}

.section {
  background: #0a0d12;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid #1f2330;
  padding: 10px 8px;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

/* -- Mobile “plan cards” for PT (stacked layout) ------------------- */
.plans-cards {
  display: none;
}

/* desktop: off */

@media (max-width: 540px) {

  /* Hide the wide table and show cards instead */
  .section .table {
    display: none;
  }

  .plans-cards {
    display: grid;
    gap: 12px;
    margin-top: 6px;
  }

  .plan-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 12px 14px;
  }

  .plan-title {
    margin: 0 0 4px 0;
    font-weight: 700;
    font-size: 1.05rem;
  }

  .plan-meta {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 6px;
  }

  .plan-includes {
    margin: 0 0 8px 0;
    line-height: 1.45;
  }

  .plan-price {
    display: flex;
    flex-direction: column;
    /* stack text and badge vertically */
    align-items: center;
    /* center horizontally */
    justify-content: center;
    /* center vertically if more height */
    text-align: center;
    gap: 4px;
    font-size: 1.05rem;
    margin-top: 6px;
  }

  .plan-price .badge {
    font-size: .75rem;
  }
}

/* ===== TYPOGRAPHY OVERRIDES ===== */

/* Apply Aileron to absolutely all headings inside modals */
.modal-panel h1,
.modal-panel h2,
.modal-panel h3,
.modal-panel h4,
.modal-panel h5,
.modal-panel h6,
.modal-title,
.section h3,
.section h4,
.policies-box h4 {
  font-family: "Aileron", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  /* <- removes that wide spacing */
  margin-bottom: 0.4em;
}

/* Bigger section heading specifically when we opt-in with .h3-xl */
.h3-xl {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

/* Inline bracket note next to a heading */
.note-inline {
  margin-left: .5rem;
  font-weight: 400;
  font-size: .80rem;
  /* keep smaller than the heading */
  color: var(--muted);
  /* same tone as other muted text */
  white-space: nowrap;
  /* avoid ugly wrapping next to the title */
}

@media (max-width: 480px) {
  .note-inline {
    white-space: normal;
  }

  /* let it wrap on tiny phones */
}

.modal-panel .wiz-step[data-step="domains"] {
  border-style: solid;
  border-color: var(--panel-border);
}

@media (max-width: 640px) {
  .section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  }

  .section ul li {
    padding-left: 0;
    text-indent: 0;
  }
}

/* keep XL iframe consistent */
/* Switch policy blocks by viewport */
@media (min-width: 769px) {

  /* desktop */
  .policies-mobile {
    display: none;
  }
}

@media (max-width: 768px) {

  /* mobile */
  .policies-desktop {
    display: none;
  }
}
