/* ==========================================================================
   CHECK PLEASE! - MODERN B2B FINTECH COMPONENTS
   Subtle micro-radius on cards, sharp badges, fluid responsive typography
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
  padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 88px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-medium);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 85%);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-intro {
  max-width: 1080px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  padding-top: clamp(12px, 3.5vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  font-weight: 500;
  line-height: 1.22;
  color: var(--text-dark);
  margin-bottom: clamp(16px, 3vw, 24px);
  letter-spacing: -0.03em;
  text-align: center;
  word-break: break-word;
}

.hero-title i {
  font-style: italic;
  font-weight: 400;
}

.hero-title .highlight-navy {
  color: var(--app-navy-primary);
  font-size: clamp(1.65rem, 4.6vw, 3.2rem);
  font-weight: 500;
  display: inline-block;
  margin-top: clamp(8px, 1.8vw, 14px);
  position: relative;
  border-bottom: none;
  padding-bottom: 8px;
}

.hero-title .highlight-navy::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 0px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 20' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M4 13 C 60 5, 160 15, 316 7 C 230 12, 120 7, 10 14' stroke='%23f59e0b' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 14.5 C 90 8, 210 14, 310 9' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(24px, 4vw, 32px);
  text-align: center;
  padding: 0 4px;
}

.hero-subtitle strong {
  color: var(--text-dark);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

/* Stat Blocks */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 28px;
  margin-bottom: 0;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 22px);
  text-align: left;
  transition: all var(--transition-fast);
}

.metric-card:hover {
  background: #ffffff;
  border-color: var(--app-navy-primary);
  box-shadow: var(--shadow-elevated);
}

.metric-value {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--app-navy-primary);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- The F&B Dilemma Comparison --- */
.dilemma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dilemma-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-card);
}

.dilemma-card.enterprise {
  border-top: 4px solid var(--accent-red);
}

.dilemma-card.retail {
  border-top: 4px solid #f59e0b;
}

.dilemma-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.dilemma-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
}

.dilemma-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dilemma-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(0.85rem, 1.8vw, 0.92rem);
  color: var(--text-body);
  line-height: 1.55;
}

.dilemma-list li .bullet-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 0 !important;
}

.dilemma-list li strong {
  color: var(--text-dark);
}

/* --- 4 Fatal Gaps Grid --- */
.gaps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gap-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: clamp(18px, 3.5vw, 24px) clamp(16px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-flat);
  transition: all var(--transition-fast);
}

.gap-card:hover {
  border-color: var(--app-navy-primary);
  box-shadow: var(--shadow-card);
}

.gap-code {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.gap-card h4 {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.gap-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* --- Detailed Comparison Matrix --- */
.matrix-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.matrix-table th, .matrix-table td {
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 20px);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.matrix-table th {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--app-navy-primary);
  line-height: 1.3;
}

.matrix-table th .th-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.matrix-table th .th-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-main);
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  letter-spacing: 0.03em;
  border-radius: 0 !important;
}

.matrix-table th.highlight-col, .matrix-table td.highlight-col {
  background: #f0f9ff;
  border-left: 2px solid var(--app-navy-primary);
  border-right: 2px solid var(--app-navy-primary);
}

.matrix-table th.highlight-col {
  background: #1e3a5f;
  color: #ffffff;
  border-top: 3px solid #38bdf8;
}

.matrix-table th.highlight-col .th-badge {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  border-radius: 0 !important;
}

.matrix-table tbody tr:hover td {
  background-color: #f8fafc;
}

.matrix-table tbody tr:hover td.highlight-col {
  background-color: #e0f2fe;
}

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

.matrix-table td strong {
  color: var(--text-dark);
}

.status-badge-fin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.status-badge-fin.good {
  color: var(--accent-green);
}

.status-badge-fin.bad {
  color: var(--accent-red);
}

.status-badge-fin.neutral {
  color: #d97706;
}

.status-badge-fin.info {
  color: #2563eb;
}

.status-subtext {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 3px;
}

/* --- Core Workflows (Sharp Modern Feature Cards) --- */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.workflow-card:hover {
  border-color: var(--app-navy-primary);
  box-shadow: var(--shadow-elevated);
}

.workflow-header-bar {
  background: #f8fafc;
  color: var(--text-dark);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 8px;
}

.workflow-header-bar .wf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0 !important;
}

.workflow-header-bar .wf-tag.speed {
  background: #dbeafe;
  color: #1e40af;
}

.workflow-header-bar .wf-tag.menu {
  background: #fef3c7;
  color: #92400e;
}

.workflow-header-bar .wf-tag.insights {
  background: #dcfce7;
  color: #166534;
}

.workflow-header-bar .wf-metric {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workflow-body {
  padding: clamp(18px, 3.5vw, 24px) clamp(16px, 3vw, 22px);
}

.workflow-body h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  margin-bottom: 10px;
  color: var(--text-dark);
}

.workflow-body p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- 4-Step Onboarding Stepper --- */
.stepper-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: clamp(18px, 3.5vw, 24px) clamp(16px, 3vw, 20px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.step-card:hover {
  background: #ffffff;
  border-color: var(--app-navy-primary);
  box-shadow: var(--shadow-elevated);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  background: #0f172a;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
  border-radius: 0 !important;
}

.step-card h4 {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Pricing Architecture (3-Tier Layout) --- */
#pricing .container {
  max-width: 1200px;
}

.pricing-grid-4,
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-plan-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.5vw, 34px) clamp(18px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.pricing-plan-card:hover {
  box-shadow: var(--shadow-elevated);
}

.pricing-plan-card.featured {
  border: 2px solid var(--app-navy-primary);
  box-shadow: 0 16px 36px -4px rgba(30, 58, 95, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  position: relative;
  background: #ffffff;
}

@media (min-width: 992px) {
  .pricing-plan-card.featured {
    transform: translateY(-6px);
  }

  .pricing-plan-card.featured:hover {
    transform: translateY(-9px);
    box-shadow: 0 22px 42px -4px rgba(30, 58, 95, 0.22);
  }
}

.pricing-top-tag {
  background: var(--app-navy-primary);
  color: #ffffff;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
  align-self: flex-start;
  border-radius: 0 !important;
}

.pricing-plan-card h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
  min-height: 48px;
}

.pricing-cost-row {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-big-val {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(2rem, 4.2vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-big-val span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--app-navy-primary);
  letter-spacing: normal;
}

.pricing-period-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 8px;
  line-height: 1.35;
}

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

.pricing-expand-btn {
  display: none;
}

.pricing-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-card-footer {
  margin-top: auto;
  width: 100%;
}

.pricing-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
}

.pricing-checklist li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* --- ROI & Savings Calculator --- */
.roi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 40px);
  max-width: 920px;
  margin: 0 auto;
  box-shadow: var(--shadow-elevated);
}

.roi-slider-group {
  margin: 20px 0;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.roi-slider-label {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 0.92rem);
  color: var(--text-dark);
}

.roi-slider-val {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  color: var(--app-navy-primary);
}

.roi-slider-group select {
  background-color: #f8fafc;
  padding: 8px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  transition: all var(--transition-fast);
}

.roi-slider-group select:focus {
  border-color: var(--app-navy-primary);
}

.roi-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--app-navy-primary);
  border: 2px solid #ffffff;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: background var(--transition-fast);
}

.roi-slider::-webkit-slider-thumb:hover {
  background: var(--app-navy-dark);
}

.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--app-navy-primary);
  border: 2px solid #ffffff;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.roi-result-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: clamp(16px, 3vw, 24px) clamp(14px, 2.5vw, 20px);
  text-align: center;
  box-shadow: var(--shadow-flat);
  transition: all var(--transition-fast);
}

.roi-result-card.savings {
  background: #ecfdf5;
  border: 2px solid var(--accent-green);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.roi-result-val {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.roi-result-card.savings .roi-result-val {
  color: var(--accent-green);
}

.roi-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Institutional Footer --- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 3px solid var(--app-navy-primary);
  padding: clamp(40px, 6vw, 60px) 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  margin-bottom: clamp(32px, 5vw, 50px);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 360px;
  color: #94a3b8;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 6px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Modal Overlay & Dialog --- */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pdf-modal-overlay.active {
  display: flex !important;
}

.pdf-modal-container {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
  }
}

.pdf-modal-header {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--app-navy-primary);
}

.pdf-modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
}

.pdf-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.pdf-close-btn:hover {
  color: #ffffff;
}

/* Form inputs in Modal */
#demo-modal input, #demo-modal select {
  border-radius: var(--radius-input);
}

/* Mobile & Tablet Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dilemma-grid { grid-template-columns: 1fr; }
  .gaps-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .workflows-grid { grid-template-columns: 1fr; gap: 18px; }
  .stepper-container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pricing-grid-4,
  .pricing-grid-3 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Remove Comparison Matrix section on mobile */
  #competitive-matrix {
    display: none !important;
  }

  /* Remove How Much You Can Save (Savings Calculator) section on mobile */
  #roi-calc {
    display: none !important;
  }

  /* Pricing Grid Single Column on Mobile */
  .pricing-grid-4,
  .pricing-grid-3 {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    gap: 16px !important;
  }

  /* Expandable / Collapsible Plan Cards on Mobile */
  .pricing-plan-card {
    padding: 20px 18px !important;
    border-radius: var(--radius-card) !important;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    border: 1.5px solid var(--border-medium);
    box-shadow: var(--shadow-flat);
    background: #ffffff;
    -webkit-tap-highlight-color: transparent;
  }

  .pricing-plan-card:active {
    background: #f8fafc;
  }

  .pricing-plan-card.featured {
    border: 2px solid var(--app-navy-primary) !important;
    transform: none !important;
  }

  .pricing-plan-card.expanded {
    box-shadow: var(--shadow-elevated);
    border-color: var(--app-navy-primary);
  }

  .pricing-plan-card.featured.expanded {
    border-color: var(--app-navy-primary) !important;
  }

  .pricing-card-header {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .pricing-top-tag {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
    margin-bottom: 10px !important;
  }

  .pricing-plan-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 6px !important;
  }

  .pricing-plan-desc {
    font-size: 0.82rem !important;
    min-height: auto !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
  }

  .pricing-cost-row {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px dashed var(--border-light) !important;
  }

  .pricing-big-val {
    font-size: 2.1rem !important;
    letter-spacing: -0.02em !important;
  }

  .pricing-big-val span {
    font-size: 0.88rem !important;
  }

  .pricing-period-badge {
    font-size: 0.74rem !important;
    margin-top: 4px !important;
  }

  .pricing-expand-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 2px;
    border-top: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--app-navy-primary);
  }

  .pricing-expand-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--app-navy-primary);
  }

  .pricing-expand-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--app-navy-primary);
    flex-shrink: 0;
  }

  .pricing-card-body {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease, visibility 0.4s;
    margin-top: 0;
  }

  .pricing-plan-card.expanded .pricing-card-body {
    max-height: 1600px;
    opacity: 1;
    visibility: visible;
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
  }

  .pricing-plan-card.expanded .pricing-expand-icon {
    transform: rotate(180deg);
  }

  .pricing-plan-card.expanded .pricing-expand-label {
    color: var(--app-navy-light);
  }

  .pricing-checklist {
    gap: 10px;
    margin-bottom: 0;
  }

  .pricing-checklist li {
    font-size: 0.82rem;
    line-height: 1.35;
    gap: 8px;
  }

  .pricing-checklist li svg {
    width: 14px;
    height: 14px;
  }

  .pricing-card-footer {
    display: none;
  }

  .pricing-plan-card.expanded .pricing-card-footer {
    display: block;
    margin-top: 18px;
    width: 100%;
  }

  .pricing-card-footer .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .hero-actions .btn { width: 100%; max-width: 360px; }
  .roi-slider-group select { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 640px) {
  .hero-metrics-grid { grid-template-columns: 1fr; }
  .gaps-grid { grid-template-columns: 1fr; }
  .stepper-container { grid-template-columns: 1fr; }
  .roi-results-grid { grid-template-columns: 1fr; gap: 12px; }
}
