* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a4d4d;
  --primary-light: #e8f5f0;
  --primary-border: #4a9d8c;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --border-color: #d2d2d7;
  --background: #ffffff;
  --surface: #f5f5f7;
  --radius: 12px;
  --radius-lg: 18px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 40px 20px;
}

.page-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section cards */
.section-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.section-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Toggle cards (side by side) */
.toggle-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.toggle-card {
  background: var(--background);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-card:hover {
  border-color: var(--primary-border);
}

.toggle-card.selected {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.toggle-card .check-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.toggle-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.toggle-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toggle-price {
  font-size: 14px;
  color: var(--primary-border);
  font-weight: 600;
}

/* Card bullets */
.card-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 14px 0;
}

.card-bullets {
  list-style: none;
  text-align: left;
  padding: 0 4px;
}

.card-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  position: relative;
  padding-left: 14px;
}

.card-bullets li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

.card-bullets li.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.card-bullets li.highlight::before {
  color: var(--primary-border);
}

.toggle-price.included {
  color: var(--primary-border);
  font-weight: 600;
}

/* Details link */
.details-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.details-link:hover {
  opacity: 0.7;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--background);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalIn 0.2s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--border-color);
}

.modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

/* Header */
.compare-table thead th {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4f;
  padding: 0 16px 16px;
}

.compare-table thead th:last-child {
  color: var(--primary-color);
  background: #ecfdf5;
  border-radius: 12px 12px 0 0;
  padding-top: 12px;
  font-size: 14px;
}

/* Section groups */
.compare-table .section-group tr {
  border-bottom: 1px solid #eee;
}

.compare-table .section-group tr:last-child {
  border-bottom: none;
}

.compare-table .section-group.alt td:last-child {
  background: #e4f9ed;
}

/* Cells */
.compare-table td {
  padding: 12px 16px;
  text-align: center;
  color: #4a4a4f;
  vertical-align: middle;
}

.compare-table td:nth-child(2),
.compare-table td:first-child {
  color: #2a2a2f;
  font-weight: 400;
}

/* Section label in left column */
.compare-table td.section-label {
  font-size: 11px;
  font-weight: 700;
  color: #5a5a5f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  text-align: left;
  padding-right: 16px;
  width: 90px;
  background: transparent !important;
}

/* Advantage Plus column highlight */
.compare-table td:last-child {
  background: #ecfdf5;
}

.compare-table .section-group:last-child tr:last-child td:last-child {
  border-radius: 0 0 12px 12px;
}

/* Check & dash icons */
.check-mark {
  color: var(--primary-border);
  font-size: 18px;
  font-weight: 600;
}

.dash {
  color: var(--border-color);
  font-size: 18px;
}

.plus-val {
  color: var(--primary-color);
  font-weight: 600;
}
.compare-table td.section-selling-point {
  text-align: left;
}

@media (max-width: 768px) {
  .modal {
    padding: 28px 20px;
  }
  .compare-table td,
  .compare-table th {
    padding: 12px 10px;
  }
  .compare-table td.section-label {
    width: 70px;
    font-size: 11px;
    padding-right: 12px;
  }
}

/* Info section below license cards */
.section-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.section-info + .section-info {
  margin-top: 16px;
}

.info-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 2px;
}

.section-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-info p strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Highlighted info box (free first year — clickable) */
.info-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  background: #e8e8ed;
  border: none;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}

.info-highlight:hover {
  background: #dddde2;
}

.info-highlight-content {
  flex: 1;
}

.info-highlight-content p {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

.info-highlight-content p strong {
  font-weight: 600;
  color: var(--text-primary);
}

.info-highlight-icon {
  flex-shrink: 0;
  color: var(--text-primary);
  opacity: 0.7;
  margin-top: 2px;
}

.info-highlight + .section-info {
  margin-top: 16px;
}

/* Actions */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  flex: 1;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(26, 77, 77, 0.05);
}

/* Cart sidebar */
.cart-sidebar {
  position: sticky;
  top: 40px;
}

.cart-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Top row: toggle + reset */
.cart-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 0;
  margin-bottom: 28px;
}

/* iOS-style sliding toggle switch */
.cart-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 980px;
  padding: 6px 16px;
}

.cart-switch-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  user-select: none;
}

.cart-switch-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.cart-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #d2d2d7;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.cart-switch.on {
  background: var(--text-primary);
}

.cart-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cart-switch.on .cart-switch-knob {
  transform: translateX(20px);
}

.cart-reset {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cart-reset:hover {
  background: var(--surface);
}

/* Total section */
.cart-total-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 28px;
  margin-bottom: 4px;
}

.cart-total-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.cart-total-prices {
  text-align: right;
}

.cart-total-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: block;
}

.cart-total-original {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: line-through;
  display: block;
  margin-top: -2px;
}

.cart-divider {
  height: 1px;
  background: var(--border-color);
  margin: 20px 28px;
}

/* Cart rows */
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  margin-bottom: 16px;
}

.cart-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.cart-row-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Seat stepper */
.cart-seat-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.cart-seat-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 16px;
  border-right: 1px solid var(--border-color);
}

.cart-seat-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s ease;
}

.cart-seat-btn:hover {
  background: var(--surface);
}

.cart-seat-btn + .cart-seat-btn {
  border-left: 1px solid var(--border-color);
}

/* Per seat price */
.cart-per-seat {
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  color: var(--primary-border);
  text-align: right;
  padding: 0 28px;
  margin-top: 8px;
}

/* Cart footer with gray background */
.cart-footer {
  display: flex;
  gap: 10px;
  padding: 24px 28px;
  margin-top: 24px;
  background: #f5f5f7;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .section-card {
    padding: 28px 20px;
  }

  .toggle-cards {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column-reverse;
  }
}
