.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pay step layout */
.pay-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pay-layout {
    grid-template-columns: 1fr min(20rem, 38%);
    gap: 2rem;
    align-items: start;
  }

  .pay-sidebar {
    position: sticky;
    top: 1rem;
  }
}

/* Tier picker */
.tier-picker-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tier-picker-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.tier-card {
  position: relative;
  display: block;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(51 65 85);
  background: rgb(15 23 42 / 0.5);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tier-card:hover {
  border-color: rgb(99 102 241 / 0.6);
}

.tier-card:has(input:checked) {
  border-color: rgb(99 102 241);
  box-shadow: 0 0 0 2px rgb(99 102 241);
}

.tier-card:has(input:focus-visible) {
  outline: 2px solid rgb(99 102 241);
  outline-offset: 2px;
}

.tier-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(165 180 252);
  background: rgb(99 102 241 / 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.tier-card--featured {
  padding-top: 1.75rem;
}

.tier-card__check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgb(71 85 105);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.tier-card:has(input:checked) .tier-card__check {
  opacity: 1;
  background: rgb(99 102 241);
  border-color: rgb(99 102 241);
  color: white;
}

.tier-card__name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(241 245 249);
}

.tier-card__pro {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgb(129 140 248);
}

.tier-card__price {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: rgb(241 245 249);
}

.tier-card__tagline {
  display: block;
  font-size: 0.8125rem;
  color: rgb(148 163 184);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.tier-card__limit {
  display: block;
  font-size: 0.75rem;
  color: rgb(100 116 139);
  margin-top: 0.375rem;
}

/* Compare table */
.tier-compare-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(148 163 184);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(51 65 85);
  background: rgb(30 41 59 / 0.5);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tier-compare-toggle:hover {
  color: rgb(226 232 240);
  border-color: rgb(71 85 105);
}

.tier-compare-chevron {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.125rem;
  transition: transform 0.2s;
}

.tier-compare-chevron.is-open {
  transform: rotate(-135deg);
  margin-top: 0.125rem;
}

@media (min-width: 640px) {
  .tier-compare-toggle {
    display: none;
  }

  .tier-compare-panel.hidden {
    display: block !important;
  }
}

.tier-compare-panel {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(51 65 85);
  background: rgb(15 23 42 / 0.5);
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
}

.tier-compare-col--advanced {
  background: rgb(49 46 129 / 0.2);
}

.tier-compare-yes {
  color: rgb(74 222 128);
  font-weight: 600;
}

.tier-compare-no {
  color: rgb(71 85 105);
}

/* Message scope */
.scope-card {
  border-radius: 0.75rem;
  border: 1px solid rgb(30 41 59);
  background: rgb(15 23 42 / 0.5);
  padding: 1.25rem;
}

.scope-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scope-preset {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(51 65 85);
  background: transparent;
  color: rgb(148 163 184);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.scope-preset:hover {
  border-color: rgb(99 102 241 / 0.5);
  color: rgb(226 232 240);
}

.scope-preset.is-active {
  background: rgb(99 102 241 / 0.2);
  border-color: rgb(99 102 241);
  color: rgb(199 210 254);
}

.scope-total-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(165 180 252);
  font-variant-numeric: tabular-nums;
}

.scope-summary strong {
  color: rgb(226 232 240);
  font-weight: 600;
}

.pay-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pay-spin 0.7s linear infinite;
  vertical-align: -0.15em;
  margin-right: 0.5rem;
}

@keyframes pay-spin {
  to {
    transform: rotate(360deg);
  }
}

#email[aria-invalid="true"] {
  border-color: rgb(217 119 6);
}

.tier-card.selected {
  border-color: rgb(99 102 241);
  box-shadow: 0 0 0 2px rgb(99 102 241);
}

/* Flow stepper: Export → Preview → Pay → Download */
.flow-stepper {
  padding: 0.25rem 0;
}

.flow-stepper-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  text-align: center;
  min-width: 0;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.125rem);
  right: calc(-50% + 1.125rem);
  height: 2px;
  background: rgb(51 65 85);
  z-index: 0;
}

.flow-step.is-complete:not(:last-child)::after {
  background: rgb(99 102 241);
}

.flow-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid rgb(51 65 85);
  background: rgb(15 23 42);
  color: rgb(100 116 139);
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.flow-step.is-pending .flow-step-marker {
  border-color: rgb(51 65 85);
  color: rgb(100 116 139);
}

.flow-step.is-active .flow-step-marker {
  border-color: rgb(99 102 241);
  background: rgb(99 102 241);
  color: white;
}

.flow-step.is-complete .flow-step-marker {
  border-color: rgb(99 102 241);
  background: rgb(99 102 241 / 0.15);
  color: rgb(129 140 248);
  font-size: 0.875rem;
}

.flow-step-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgb(100 116 139);
  line-height: 1.2;
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .flow-step-label {
    font-size: 0.75rem;
  }
}

.flow-step.is-active .flow-step-label {
  color: rgb(199 210 254);
}

.flow-step.is-complete .flow-step-label {
  color: rgb(148 163 184);
}

.flow-step-panel.is-complete-panel {
  opacity: 0.85;
}

.fake-progress-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(30 41 59);
  overflow: hidden;
}

.fake-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: rgb(99 102 241);
  transition: width 0.3s ease-out;
}

/* Hero: upload + sample teaser */
.hero-action {
  max-width: 36rem;
}

.sample-teaser-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sample-teaser-list li {
  position: relative;
  padding-left: 1rem;
}

.sample-teaser-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: rgb(99 102 241);
  font-weight: bold;
}

#deliverable-preview-slot {
  margin-bottom: 0.5rem;
}

#deliverable-preview-slot .deliverable-mock-frame {
  transform: none;
}

#sample-modal-body .deliverable-mock-frame {
  transform: none;
  box-shadow: none;
  border-color: rgb(51 65 85);
}

#sample-modal-body #deliverable-preview-heading {
  display: none;
}

#sample-modal-body .deliverable-tier-tabs {
  margin-left: auto;
}

.deliverable-preview {
  transition: opacity 0.3s ease;
}

.deliverable-tier-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.125rem;
  border-radius: 0.5rem;
  background: rgb(30 41 59);
  border: 1px solid rgb(51 65 85);
}

.mock-tier-tab {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  color: rgb(148 163 184);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.mock-tier-tab:hover {
  color: rgb(226 232 240);
}

.mock-tier-tab.is-active {
  background: rgb(99 102 241);
  color: white;
}

.deliverable-mock-frame {
  border-radius: 0.75rem;
  border: 1px solid rgb(51 65 85);
  background: rgb(15 23 42);
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  transform: rotate(-0.5deg);
  transition: max-height 0.35s ease;
}

@media (min-width: 1024px) {
  .deliverable-mock-frame {
    transform: rotate(0.75deg);
  }
}

.deliverable-mock-page {
  background: #fafafa;
  color: #1a1a1a;
  border-radius: 0.375rem;
  padding: 0.875rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.5625rem;
  line-height: 1.45;
  text-align: left;
}

.mock-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 0.25rem;
}

.mock-pro-badge {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.25rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.mock-meta {
  color: #666;
  font-size: 0.5rem;
  margin: 0 0 0.5rem;
}

.mock-disclaimer {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 0.375rem 0.5rem;
  font-size: 0.4375rem;
  margin-bottom: 0.5rem;
  border-radius: 0.125rem;
}

.mock-h2 {
  font-size: 0.625rem;
  font-weight: 700;
  color: #312e81;
  margin: 0.625rem 0 0.25rem;
  padding-bottom: 0.125rem;
  border-bottom: 1px solid #c7d2fe;
}

.mock-p {
  margin: 0.25rem 0;
  color: #333;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.5rem;
  margin: 0.25rem 0;
}

.mock-table th,
.mock-table td {
  border: 1px solid #ddd;
  padding: 0.1875rem 0.3125rem;
  text-align: left;
}

.mock-table th {
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}

.mock-dim-table th:not(:first-child),
.mock-dim-table td:not(:first-child) {
  text-align: center;
  width: 2.5rem;
}

.mock-score {
  font-variant-numeric: tabular-nums;
}

.mock-dim-count {
  display: inline-block;
  font-size: 0.4375rem;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  vertical-align: middle;
}

.mock-terms {
  margin: 0.25rem 0;
  font-size: 0.4375rem;
  line-height: 1.6;
}

.mock-terms span {
  display: inline-block;
  background: #eef2ff;
  border-radius: 0.1875rem;
  padding: 0.0625rem 0.3125rem;
  margin: 0.0625rem 0.1875rem 0.0625rem 0;
  color: #444;
}

.mock-ul {
  margin: 0.25rem 0;
  padding-left: 1rem;
  color: #333;
}

.mock-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0.375rem 0;
  padding: 0.25rem 0;
  border-top: 1px solid #c7d2fe;
  border-bottom: 1px solid #c7d2fe;
}

.mock-timeline-node {
  flex: 1;
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.4375rem;
  padding: 0 0.125rem;
}

.mock-timeline-connector {
  flex: 0 0 0.5rem;
  align-self: center;
  height: 1px;
  margin-top: 0.5rem;
  background: #a5b4fc;
}

.mock-timeline-icon {
  display: block;
  font-size: 0.5625rem;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.mock-timeline-dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #4f46e5;
  margin: 0 auto 0.125rem;
}

.mock-timeline-date {
  display: block;
  font-weight: 700;
  color: #4338ca;
}

.mock-timeline-label {
  display: block;
  color: #555;
}

.mock-profile {
  font-size: 0.5rem;
  margin: 0.25rem 0;
  padding-left: 0.375rem;
  border-left: 2px solid #c7d2fe;
  color: #333;
}

.mock-observation {
  font-size: 0.5rem;
  margin: 0.25rem 0;
  padding-left: 0.375rem;
  border-left: 2px solid #c7d2fe;
  color: #333;
}

.mock-observation p {
  margin: 0.125rem 0;
}

.mock-observation em {
  font-style: normal;
  font-weight: 600;
  color: #4338ca;
}

/* Trust pills */
.trust-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: rgb(30 41 59 / 0.5);
  border: 1px solid rgb(51 65 85 / 0.6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.trust-pill:hover {
  border-color: rgb(99 102 241 / 0.5);
  background: rgb(30 41 59 / 0.8);
}

.trust-pill-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
  color: rgb(129 140 248);
}

.trust-pill-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(203 213 225);
  line-height: 1.2;
}

.trust-pill-sub {
  display: block;
  font-size: 0.625rem;
  color: rgb(100 116 139);
  line-height: 1.2;
  margin-top: 0.0625rem;
}
