.aws-migration-builder-page {
  color: #0a2540;
}

.amb-shell {
  max-width: 1180px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.amb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.amb-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #2bbdee;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amb-hero-copy .title,
.amb-hero-copy .subtitle,
.amb-planner-header h2,
.amb-intro-card h2 {
  color: #0a2540;
}

.amb-hero-copy .title {
  margin-bottom: 1.25rem;
  color: #0a2540;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.amb-hero-copy .subtitle {
  max-width: 640px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.55rem;
  line-height: 1.4;
}

.amb-hero-text,
.amb-planner-header p,
.amb-intro-item span,
.amb-planner-aside li {
  color: #486073;
  line-height: 1.82;
}

.amb-hero-points,
.amb-hero-actions,
.amb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.amb-hero-points {
  margin: 2rem 0 1.8rem;
}

.amb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: #f1f8fc;
  border: 1px solid #d7ebf5;
  color: #0a2540;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.amb-hero-actions {
  margin-top: 2rem;
  margin-bottom: 2.4rem;
}

.amb-secondary-btn {
  background: #fff;
  color: #0a2540;
  border: 1px solid #cfe4ef;
}

.amb-secondary-btn:hover {
  color: #0a2540;
  border-color: #2bbdee;
}

.amb-hero-panel,
.amb-intro-card,
.amb-workspace,
.amb-planner-aside,
.amb-card,
.amb-email-card,
.amb-diagram-card,
.amb-roadmap-card,
.amb-cost-card,
.amb-cta-card {
  border: 1px solid #dbe8ef;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(10, 37, 64, 0.07);
}

.amb-hero-panel {
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.amb-saas-card {
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(43, 189, 238, 0.22), transparent 42%),
    linear-gradient(135deg, #0a2540 0%, #143b5b 65%, #1d6b92 100%);
  color: #fff;
  padding: 1.5rem;
}

.amb-saas-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.amb-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 1.5rem;
}

.amb-preview-metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 1.05rem;
  color: #ffffff;
}

.amb-preview-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.amb-preview-metric strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.amb-preview-diagram {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.15rem;
}

.amb-node-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.amb-node-row + .amb-node-row {
  margin-top: 0.7rem;
}

.amb-node {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.amb-node-primary {
  background: rgba(43, 189, 238, 0.18);
}

.amb-intro-band {
  padding: 2.1rem 0 5.6rem;
}

.amb-intro-card {
  padding: 2.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcfe 100%);
}

.amb-intro-card h2 {
  margin-bottom: 1.25rem;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.amb-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.amb-intro-item {
  padding: 1.6rem;
  border-radius: 20px;
  background: #f4f9fc;
  border: 1px solid #dfedf4;
}

.amb-intro-item strong,
.amb-planner-aside h3 {
  display: block;
  color: #0a2540;
  margin-bottom: 0.65rem;
}

.amb-intro-item strong {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.amb-planner-wrap {
  padding-bottom: 7.75rem;
}

.amb-planner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
  margin-top: 4.2rem;
  margin-bottom: 4rem;
}

.amb-planner-header h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #0a2540;
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.amb-planner-aside {
  padding: 1.8rem;
  margin-top: 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.amb-planner-header > div > .amb-eyebrow {
  margin-bottom: 1.1rem;
}

.amb-planner-aside h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.amb-planner-aside ul {
  margin-top: 0.35rem;
}

.amb-planner-aside ul,
.amb-architecture-list,
.amb-checklist,
.amb-assumption-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amb-card p + .amb-checklist,
.amb-email-card p + .amb-checklist,
.amb-cost-card p + .amb-checklist,
.amb-cta-card p + .amb-checklist {
  margin-top: 1rem;
}

.amb-side-stack .amb-checklist {
  margin-top: 1.25rem;
}

.amb-planner-aside li,
.amb-architecture-list li,
.amb-checklist li,
.amb-assumption-list li {
  position: relative;
  padding-left: 1.25rem;
}

.amb-planner-aside li + li,
.amb-architecture-list li + li,
.amb-checklist li + li,
.amb-assumption-list li + li {
  margin-top: 0.9rem;
}

.amb-planner-aside li::before,
.amb-architecture-list li::before,
.amb-checklist li::before,
.amb-assumption-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2bbdee;
}

.amb-workspace {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 254, 0.98) 100%),
    linear-gradient(135deg, rgba(43, 189, 238, 0.07), rgba(10, 37, 64, 0.04));
}

.amb-loading-card,
.amb-processing-card {
  padding: 4rem 2rem;
  text-align: center;
  color: #597182;
}

.amb-app-shell {
  padding: 2.35rem;
}

.amb-progress {
  margin-bottom: 2rem;
}

.amb-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #5f788a;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.amb-progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e5eff4;
  overflow: hidden;
}

.amb-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2bbdee 0%, #0a2540 100%);
  transition: width 0.28s ease;
}

.amb-step-card,
.amb-results-shell,
.amb-processing-card {
  border: 1px solid #dbe8ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.06);
}

.amb-step-card,
.amb-results-shell {
  padding: 2.35rem;
}

.amb-step-header,
.amb-summary-topline,
.amb-cost-topline,
.amb-nav,
.amb-results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.amb-step-title {
  margin: 0;
  color: #0a2540;
  font-size: 1.75rem;
  line-height: 1.18;
}

.amb-step-subtitle {
  margin-top: 0.65rem;
  color: #557082;
  line-height: 1.78;
}

.amb-step-badge,
.amb-tier-badge,
.amb-cost-confidence,
.amb-phase-tag,
.amb-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #eef8fc;
  color: #0a2540;
  font-size: 0.84rem;
  font-weight: 600;
}

.amb-field + .amb-field {
  margin-top: 2.1rem;
}

.amb-step-card .amb-field:first-of-type {
  margin-top: 1rem;
}

.amb-step-validation {
  margin-top: 1.35rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 0.95rem;
  border: 1px solid #f1d3b3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9f2 0%, #fffdf9 100%);
  color: #7a4d18;
  box-shadow: 0 10px 22px rgba(122, 77, 24, 0.06);
}

.amb-step-validation:focus {
  outline: 2px solid rgba(43, 189, 238, 0.32);
  outline-offset: 2px;
}

.amb-step-validation strong {
  display: block;
  color: #7a4d18;
  font-weight: 700;
}

.amb-step-validation .amb-checklist {
  margin-top: 0.75rem;
}

.amb-field.is-missing {
  margin-top: 1.4rem;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid #f1d3b3;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.amb-field h3 {
  margin-bottom: 0.45rem;
  color: #0a2540;
  font-size: 1.05rem;
}

.amb-field-error {
  margin: 0 0 0.5rem;
  color: #9a5a14;
  font-size: 0.93rem;
  font-weight: 600;
}

.amb-field p,
.amb-card p,
.amb-email-card p,
.amb-cost-card p,
.amb-cta-card p,
.amb-roadmap-card p {
  color: #567183;
  line-height: 1.72;
}

.amb-field p {
  margin-bottom: 1rem;
}

.amb-option-grid,
.amb-summary-stats,
.amb-architecture-grid,
.amb-roadmap-grid,
.amb-form-grid,
.amb-structure-grid,
.amb-risk-grid,
.amb-mini-metrics,
.amb-alternative-grid {
  display: grid;
  gap: 1rem;
}

.amb-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.amb-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.amb-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amb-option-body {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 124px;
  height: 100%;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 20px;
  border: 1px solid #d8e7ef;
  background: #f8fbfd;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.amb-option-body strong {
  display: block;
  color: #0a2540;
  margin-bottom: 0.65rem;
  line-height: 1.3;
  font-weight: 600;
}

.amb-option-hint {
  display: block;
  color: #5d7688;
  line-height: 1.65;
  font-size: 0.92rem;
}

.amb-option:hover .amb-option-body,
.amb-option input:focus + .amb-option-body {
  transform: translateY(-2px);
  border-color: #2bbdee;
  box-shadow: 0 10px 24px rgba(43, 189, 238, 0.14);
}

.amb-option.is-selected .amb-option-body {
  border-color: #2bbdee;
  background: linear-gradient(180deg, #eef9fd 0%, #ffffff 100%);
  box-shadow: 0 0 0 3px rgba(43, 189, 238, 0.14);
}

.amb-nav-right {
  display: flex;
  gap: 0.75rem;
}

.amb-results-toolbar {
  margin-bottom: 1.2rem;
  align-items: center;
}

.amb-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.amb-nav {
  margin-top: 2.25rem;
}

.amb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amb-btn:hover {
  transform: translateY(-1px);
}

.amb-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.amb-btn-primary {
  background: #0a2540;
  color: #fff;
}

.amb-btn-primary:hover {
  color: #fff;
  background: #082036;
}

.amb-btn-secondary {
  background: #fff;
  color: #0a2540;
  border-color: #d2e4ed;
}

.amb-btn-secondary:hover {
  color: #0a2540;
  border-color: #2bbdee;
}

.amb-spinner {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 4px solid #d9edf7;
  border-top-color: #2bbdee;
  animation: amb-spin 0.8s linear infinite;
}

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

.amb-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 360px;
  gap: 1.5rem;
}

.amb-summary-hero {
  padding: 1.9rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(43, 189, 238, 0.22), transparent 38%),
    linear-gradient(135deg, #0a2540 0%, #153c5b 70%, #1a6f98 100%);
  color: #fff;
}

.amb-summary-hero h3,
.amb-summary-hero p,
.amb-summary-hero .amb-pill,
.amb-summary-hero .amb-stat-card span,
.amb-summary-hero .amb-stat-card strong {
  color: #fff;
}

.amb-summary-hero h3 {
  margin-top: 1.6rem;
  margin-bottom: 1.1rem;
  font-weight: 400;
  line-height: 1.08;
}

.amb-summary-hero p {
  line-height: 1.8;
}

.amb-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  justify-content: center;
  text-align: center;
  font-weight: 600;
  line-height: 1.35;
}

.amb-summary-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.amb-validation-note {
  margin-top: 1rem;
  margin-bottom: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.amb-card > .amb-validation-note {
  color: #5c7688;
  line-height: 1.8;
  margin-bottom: 0;
  padding-bottom: 1.45rem;
}

.amb-stat-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.amb-stat-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.74;
  margin-bottom: 0.55rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  word-break: normal;
}

.amb-stat-card strong {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.amb-side-stack {
  display: grid;
  gap: 1.25rem;
}

.amb-card,
.amb-email-card,
.amb-diagram-card,
.amb-roadmap-card,
.amb-cost-card,
.amb-cta-card {
  padding: 2rem;
  overflow: hidden;
}

.amb-card h3,
.amb-email-card h3,
.amb-diagram-card h3,
.amb-roadmap-card h3,
.amb-cost-card h3,
.amb-cta-card h3 {
  color: #0a2540;
  margin-bottom: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}

.amb-section-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #2bbdee;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.amb-structure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.amb-structure-grid > :first-child {
  grid-column: 1 / -1;
}

.amb-mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.35rem;
  margin-top: 1.35rem;
}

.amb-mini-metric {
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid #deecf4;
  background: #f7fbfd;
}

.amb-mini-metric span {
  display: block;
  margin-bottom: 0.35rem;
  color: #5f788a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.amb-mini-metric strong {
  color: #0a2540;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}

.amb-architecture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
  margin-bottom: 0.85rem;
}

.amb-architecture-item,
.amb-roadmap-phase {
  padding: 1.45rem 1.45rem 1.8rem;
  border-radius: 18px;
  background: #f7fbfd;
  border: 1px solid #deecf4;
}

.amb-architecture-item h4 {
  color: #0a2540;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.amb-diagram-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.amb-diagram-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.amb-diagram-trigger:focus-visible {
  outline: 3px solid rgba(43, 189, 238, 0.35);
  outline-offset: 6px;
  border-radius: 22px;
}

.amb-diagram-hint {
  margin-top: 0.8rem;
  color: #5c7688;
  font-size: 0.94rem;
}

.amb-diagram-caption,
.amb-print-note {
  margin-top: 1rem;
  color: #5c7688;
}

.amb-roadmap-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
}

.amb-roadmap-phase strong {
  display: block;
  color: #0a2540;
  margin-bottom: 0.45rem;
  font-weight: 600;
  line-height: 1.35;
}

.amb-phase-tag {
  margin-bottom: 0.7rem;
  background: #0a2540;
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.amb-cost-topline {
  align-items: end;
  margin-bottom: 1rem;
}

.amb-cost-range {
  color: #0a2540;
  font-size: 1.8rem;
  font-weight: 800;
}

.amb-disclaimer {
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f8fbfd;
  border: 1px solid #dfedf4;
  color: #60798a;
  font-size: 0.94rem;
  line-height: 1.65;
}

.amb-risk-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.35rem;
  margin-bottom: 0.85rem;
}

.amb-risk-item,
.amb-alternative-card {
  padding: 1.35rem 1.35rem 1.75rem;
  border-radius: 18px;
  background: #f7fbfd;
  border: 1px solid #deecf4;
}

.amb-risk-item strong,
.amb-alternative-card strong {
  display: block;
  color: #0a2540;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  font-weight: 600;
}

.amb-risk-item p,
.amb-alternative-card p {
  margin: 0;
  line-height: 1.72;
}

.amb-risk-item p + p,
.amb-alternative-card p + p {
  margin-top: 0.7rem;
}

.amb-alternative-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.2rem;
  margin-bottom: 0.85rem;
}

.amb-side-stack .amb-card p,
.amb-structure-grid .amb-card p,
.amb-risk-item p,
.amb-alternative-card p {
  font-size: 1rem;
  line-height: 1.8;
}

.amb-results-shell > .amb-structure-grid,
.amb-results-shell > section {
  margin-top: 1.8rem !important;
}

.amb-side-stack .amb-card p + p {
  margin-top: 1rem;
}

.amb-results-shell .amb-cta-actions {
  justify-content: center;
  row-gap: 1rem;
  column-gap: 0.95rem;
  margin-top: 1.35rem;
}

.amb-results-shell .amb-btn {
  text-align: center;
  line-height: 1.35;
}

.amb-results-shell .amb-btn-primary,
.amb-results-shell .amb-btn-secondary {
  justify-content: center;
}

.amb-meta-lines {
  margin-top: 1.2rem;
}

.amb-meta-lines p + p {
  margin-top: 0.8rem;
}

.amb-results-toolbar {
  margin-bottom: 1.6rem;
}

.amb-results-toolbar .amb-pill {
  background: #f1f8fc;
  border-color: #d8ebf5;
  color: #0a2540;
}

.amb-results-toolbar .amb-btn {
  min-width: 154px;
}

.amb-side-stack .amb-checklist {
  margin-top: 1.5rem;
}

.amb-diagram-card {
  padding-bottom: 2.4rem;
}

.amb-diagram-card svg {
  margin-top: 1rem;
}

.amb-diagram-caption,
.amb-print-note {
  margin-top: 1.25rem;
  margin-bottom: 0.9rem;
  color: #5c7688;
  line-height: 1.8;
}

.amb-cost-card > p + .amb-assumption-list {
  margin-top: 1.15rem;
}

.amb-disclaimer {
  margin-top: 1.5rem;
  margin-bottom: 0.9rem;
}

.amb-email-card .amb-form-field label,
.amb-email-card .amb-checkbox span {
  font-weight: 600;
  color: #27465f;
}

.amb-email-card .amb-form-field label {
  font-size: 0.95rem;
}

.amb-email-card .amb-checkbox {
  margin-top: 0.8rem;
}

.amb-email-card .amb-email-status,
.amb-email-card .amb-turnstile-error {
  margin-top: 1.15rem;
}

.amb-email-card .amb-btn {
  margin-top: 1.35rem !important;
}

.amb-email-card form {
  margin-top: 1.25rem;
}

.amb-card .amb-checklist,
.amb-card .amb-architecture-list,
.amb-roadmap-phase .amb-checklist,
.amb-risk-item p:last-child,
.amb-alternative-card p:last-child {
  margin-bottom: 0.45rem;
}

.amb-card > .amb-checklist,
.amb-card > .amb-assumption-list,
.amb-cost-card > .amb-assumption-list {
  padding-bottom: 0.8rem;
}

.amb-diagram-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 37, 64, 0.66);
}

.amb-diagram-modal.is-open {
  display: flex;
}

.amb-diagram-modal-dialog {
  width: min(1280px, calc(100vw - 3rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 1.2rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(10, 37, 64, 0.2);
}

.amb-diagram-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.amb-diagram-modal-head h3 {
  margin: 0;
  color: #0a2540;
  font-weight: 500;
}

.amb-diagram-close {
  min-width: 96px;
}

.amb-diagram-modal svg {
  width: 100%;
  height: auto;
  display: block;
}

.amb-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.amb-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.amb-form-field label {
  color: #0a2540;
  font-weight: 700;
  font-size: 0.92rem;
}

.amb-form-field input {
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #d2e4ed;
  font-size: 1rem;
}

.amb-form-field input:focus {
  outline: none;
  border-color: #2bbdee;
  box-shadow: 0 0 0 3px rgba(43, 189, 238, 0.12);
}

.amb-form-field-full {
  grid-column: 1 / -1;
}

.amb-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: start;
  color: #577183;
  line-height: 1.65;
}

.amb-checkbox input {
  margin-top: 0.28rem;
}

.amb-turnstile {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.amb-turnstile-note {
  padding: 0.9rem 1rem;
  border: 1px solid #dbe8ef;
  border-radius: 16px;
  background: #f8fbfd;
  color: #577183;
  line-height: 1.6;
}

.amb-turnstile-error,
.amb-email-status {
  margin-top: 1rem;
  font-weight: 700;
}

.amb-pdf-status {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid #dbe8ef;
  background: #f8fbfd;
  color: #567183;
  line-height: 1.6;
  font-weight: 600;
}

.amb-turnstile-error,
.amb-email-status.is-error,
.amb-pdf-status.is-error {
  color: #b42318;
}

.amb-email-status.is-success,
.amb-pdf-status.is-success {
  color: #0a7c4a;
}

.amb-cta-card {
  background: linear-gradient(135deg, #f7fbfe 0%, #eef8fc 100%);
}

@media (max-width: 1100px) {
  .amb-hero,
  .amb-planner-header,
  .amb-results-grid {
    grid-template-columns: 1fr;
  }

  .amb-intro-grid,
  .amb-architecture-grid,
  .amb-roadmap-grid,
  .amb-structure-grid,
  .amb-risk-grid,
  .amb-mini-metrics,
  .amb-alternative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .amb-hero {
    gap: 2rem;
    padding: 2rem 0 1.5rem;
  }

  .amb-hero-copy .subtitle {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .amb-app-shell,
  .amb-step-card,
  .amb-results-shell,
  .amb-card,
  .amb-email-card,
  .amb-diagram-card,
  .amb-roadmap-card,
  .amb-cost-card,
  .amb-cta-card,
  .amb-planner-aside,
  .amb-intro-card {
    padding: 1.5rem;
  }

  .amb-option-grid,
  .amb-summary-stats,
  .amb-intro-grid,
  .amb-architecture-grid,
  .amb-roadmap-grid,
  .amb-form-grid,
  .amb-structure-grid,
  .amb-risk-grid,
  .amb-mini-metrics,
  .amb-alternative-grid {
    grid-template-columns: 1fr;
  }

  .amb-nav,
  .amb-nav-right,
  .amb-hero-actions,
  .amb-cta-actions,
  .amb-cost-topline,
  .amb-summary-topline,
  .amb-step-header,
  .amb-results-toolbar,
  .amb-toolbar-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .amb-hero-copy .subtitle {
    font-size: 1.08rem;
    line-height: 1.52;
  }

  .amb-eyebrow {
    margin-bottom: 1.1rem;
  }
}
