/* ============================================================
   Engerman — Page-Specific Styles (non-homepage)
   Shared styles for interior pages: sample-output, pricing,
   security, etc. Keeps base.css clean.
   ============================================================ */

@import url('design-tokens.css');

/* ── Page Hero (interior pages) ────────────────────────────── */
.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.page-hero__inner {
  max-width: 680px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: var(--space-4);
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ── Full Memo Layout ──────────────────────────────────────── */
.memo-full {
  max-width: 960px;
  margin: 0 auto;
}

.memo-full .tabs {
  position: sticky;
  top: 64px;
  z-index: var(--z-dropdown);
  background: var(--color-surface-alt);
  padding-top: var(--space-2);
}

.memo-full .tab-panel {
  padding: var(--space-8) 0 var(--space-4);
  min-height: 300px;
}

/* ── Memo Document Chrome ──────────────────────────────────── */
.memo-doc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.memo-doc__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-border-light);
}

.memo-doc__dots {
  display: flex;
  gap: 6px;
}

.memo-doc__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.memo-doc__dots span:nth-child(1) { background: #ef4444; }
.memo-doc__dots span:nth-child(2) { background: #f59e0b; }
.memo-doc__dots span:nth-child(3) { background: #22c55e; }

.memo-doc__title {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-left: var(--space-2);
}

.memo-doc__body {
  padding: var(--space-8);
}

/* Memo section headings inside document */
.memo-doc__body h3 {
  font-size: var(--text-lg);
  color: var(--color-navy-800);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-light);
}

.memo-doc__body h3:first-child {
  margin-top: 0;
}

.memo-doc__body p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
}

.memo-doc__body .table-wrap {
  margin-bottom: var(--space-6);
}

.memo-doc__body .table td,
.memo-doc__body .table th {
  font-size: var(--text-sm);
}

/* Variance detail blocks */
.variance-block {
  background: var(--color-gray-50);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.variance-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.variance-block__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-navy-800);
}

.variance-block__figures {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.variance-block__figures .positive {
  color: var(--color-green-600);
}

.variance-block__figures .negative {
  color: var(--color-red-600);
}

.variance-block p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
}

.variance-block p:last-child {
  margin-bottom: 0;
}

/* Provenance / Audit Trail block */
.provenance {
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-8);
}

.provenance h3 {
  border-bottom: none !important;
  margin-top: 0 !important;
  margin-bottom: var(--space-3) !important;
  padding-bottom: 0 !important;
  font-size: var(--text-base) !important;
  color: var(--color-blue-700) !important;
}

.provenance dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}

.provenance dt {
  font-weight: var(--weight-semibold);
  color: var(--color-navy-800);
  white-space: nowrap;
}

.provenance dd {
  color: var(--color-gray-600);
}

/* ── Sources Panel (full page version) ─────────────────────── */
.evidence-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.evidence-panel__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.evidence-panel__header h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.evidence-panel__header p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.evidence-list {
  display: flex;
  flex-direction: column;
}

.evidence-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.evidence-item:last-child {
  border-bottom: none;
}

.evidence-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-50);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.evidence-item__body h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.evidence-item__body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.evidence-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.evidence-item__meta .text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

/* ── Approval Timeline (full page version) ─────────────────── */
.timeline-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.timeline-panel__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.timeline-panel__header h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.timeline-panel__header p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.timeline-full {
  padding: var(--space-6) var(--space-8);
  position: relative;
}

.timeline-full::before {
  content: '';
  position: absolute;
  left: 47px;
  top: var(--space-8);
  bottom: var(--space-8);
  width: 2px;
  background: var(--color-border);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  position: relative;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-entry__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: var(--color-white);
  flex-shrink: 0;
}

.timeline-entry--done .timeline-entry__icon {
  background: var(--color-green-600);
  color: var(--color-white);
}

.timeline-entry--active .timeline-entry__icon {
  background: var(--color-blue-500);
  color: var(--color-white);
  box-shadow: 0 0 0 4px var(--color-blue-100);
}

.timeline-entry--pending .timeline-entry__icon {
  background: var(--color-white);
  border: 2px solid var(--color-gray-300);
  color: var(--color-gray-400);
}

.timeline-entry__body {
  padding-top: var(--space-2);
}

.timeline-entry__body h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.timeline-entry__body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.timeline-entry__body p:last-child {
  margin-bottom: 0;
}

.timeline-entry__timestamp {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-gray-500);
}

/* ── Page CTA Section ──────────────────────────────────────── */
.page-cta {
  padding: var(--space-16) 0;
  text-align: center;
}

.page-cta h2 {
  margin-bottom: var(--space-4);
}

.page-cta p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-8);
}

.page-cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive (pages) ────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .memo-doc__body {
    padding: var(--space-5);
  }

  .memo-doc__body h3 {
    font-size: var(--text-base);
  }

  .evidence-item {
    grid-template-columns: 40px 1fr;
    gap: var(--space-3);
  }

  .evidence-item__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding-left: calc(40px + var(--space-3));
  }

  .timeline-full {
    padding: var(--space-5);
  }

  .timeline-full::before {
    left: 39px;
  }

  .timeline-entry {
    grid-template-columns: 36px 1fr;
    gap: var(--space-3);
  }

  .timeline-entry__icon {
    width: 36px;
    height: 36px;
  }

  .variance-block__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .provenance dl {
    grid-template-columns: 1fr;
  }

  .provenance dt {
    margin-top: var(--space-2);
  }

  .memo-full .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-cta__buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: var(--space-8) 0 var(--space-6);
  }

  .evidence-item {
    grid-template-columns: 1fr;
  }

  .evidence-item__icon {
    display: none;
  }

  .evidence-item__meta {
    padding-left: 0;
  }
}

/* ============================================================
   Pricing Page — Specific Styles
   ============================================================ */

/* ── Pricing Cards ─────────────────────────────────────── */
.pricing-grid {
  align-items: start;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card__header {
  margin-bottom: var(--space-4);
}

.pricing-card__header h3 {
  margin-bottom: var(--space-1);
}

.pricing-card__header p {
  margin-bottom: 0;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.pricing-card__amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy-800);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-card__period {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: var(--weight-normal);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5l-3-3 1-1 2 2 5-5 1 1-6 6z' fill='%2316803c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Featured / recommended tier */
.pricing-card--featured {
  border: 2px solid var(--color-blue-600);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured::before {
  content: "Most Popular";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-1) var(--space-3);
  background: var(--color-blue-600);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-card .btn {
  width: 100%;
}

/* ── Enterprise Banner ─────────────────────────────────── */
.enterprise-banner {
  background: var(--color-navy-800);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.enterprise-banner__content {
  flex: 1;
}

.enterprise-banner__content h3 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.enterprise-banner__content p {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.enterprise-banner__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-4);
}

.enterprise-banner__features li {
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  position: relative;
  padding-left: var(--space-5);
}

.enterprise-banner__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5l-3-3 1-1 2 2 5-5 1 1-6 6z' fill='%2393ade2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.enterprise-banner__cta {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.enterprise-banner__price {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1;
}

.enterprise-banner__price span {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-gray-400);
}

/* ── What Drives Price ─────────────────────────────────── */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.driver-item {
  text-align: center;
  padding: var(--space-4);
}

.driver-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.driver-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.driver-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ── Comparison Table ──────────────────────────────────── */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 640px;
}

.comparison-table thead th {
  background: var(--color-gray-50);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--weight-semibold);
  text-align: center;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-navy-800);
  white-space: nowrap;
}

.comparison-table thead th:first-child {
  text-align: left;
  min-width: 180px;
}

.comparison-table thead th.th--featured {
  background: var(--color-blue-50);
  color: var(--color-blue-700);
}

.comparison-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  text-align: center;
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: var(--weight-medium);
  color: var(--color-navy-800);
}

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

.comparison-table .check {
  color: var(--color-green-600);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

.comparison-table .dash {
  color: var(--color-gray-300);
}

/* ── FAQ Accordion ─────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-navy-800);
  gap: var(--space-4);
  line-height: var(--leading-snug);
}

.faq-trigger:hover {
  color: var(--color-blue-600);
}

.faq-trigger__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--color-gray-500);
}

.faq-trigger[aria-expanded="true"] .faq-trigger__icon {
  transform: rotate(45deg);
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}

.faq-panel[aria-hidden="false"] {
  max-height: 500px;
}

.faq-panel__inner {
  padding-bottom: var(--space-5);
}

.faq-panel__inner p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-panel__inner p:last-child {
  margin-bottom: 0;
}

/* ── Evaluation Form ───────────────────────────────────── */
.eval-section {
  background: var(--color-navy-800);
  color: var(--color-white);
}

.eval-section h2 {
  color: var(--color-white);
}

.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.eval-info p {
  color: var(--color-gray-300);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.eval-info__note {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  border-left: 3px solid var(--color-blue-500);
}

.eval-info__note p {
  color: var(--color-gray-300);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.eval-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group:last-of-type {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-navy-800);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px var(--color-blue-100);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ── Pricing Page Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .enterprise-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }

  .enterprise-banner__features {
    justify-content: center;
  }

  .enterprise-banner__cta {
    width: 100%;
    align-items: center;
  }

  .eval-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .drivers-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   How It Works Page — Specific Styles
   ============================================================ */

/* ── Workflow Step Cards ─────────────────────────────────── */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.hiw-step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base);
}

.hiw-step:hover {
  box-shadow: var(--shadow-md);
}

.hiw-step__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hiw-step__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-50);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.hiw-step__number {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue-600);
}

.hiw-step h3 {
  font-size: var(--text-xl);
  color: var(--color-navy-800);
  margin-bottom: var(--space-3);
}

.hiw-step__desc {
  font-size: var(--text-base);
  color: var(--color-gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.hiw-step__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.hiw-step__details li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-normal);
}

.hiw-step__details li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Integration Checklist ───────────────────────────────── */
.hiw-checklist {
  max-width: 560px;
  margin: 0 auto;
}

.hiw-checklist__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: 0;
  margin: 0;
}

.hiw-checklist__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-fast);
}

.hiw-checklist__list li:hover {
  box-shadow: var(--shadow-sm);
}

.hiw-checklist__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Inputs / Outputs Section ────────────────────────────── */
.hiw-io {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

.hiw-io__col {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.hiw-io__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.hiw-io__label h3 {
  font-size: var(--text-lg);
  color: var(--color-navy-800);
  margin-bottom: 0;
}

.hiw-io__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.hiw-io__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  line-height: var(--leading-normal);
}

.hiw-io__list li svg {
  flex-shrink: 0;
}

.hiw-io__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-top: var(--space-10);
}

/* ── How It Works Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .hiw-step {
    padding: var(--space-6);
  }

  .hiw-io {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hiw-io__arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .hiw-checklist__list li {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .hiw-step {
    padding: var(--space-5);
  }

  .hiw-step__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
