/* ==============================
   PRICING SECTION (Global Standard)
   ============================== */

/* ---------- Header ---------- */
.pricing-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-8);
}

.pricing-title {
  font-size: var(--fs-800);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: var(--brand-ink);
}

.pricing-subtitle {
  font-size: var(--fs-500);
  color: var(--muted);
  line-height: 1.6;
  max-width: 65ch;
  margin-inline: auto;
}

/* ---------- Core Principle (Clean Card) ---------- */
/* ---------- Core Principle (Statement Card) ---------- */
.pricing-principle-card {
  background: linear-gradient(to bottom right, #f8fafc, #ffffff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-accent); /* Accent line for authority */
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-8);
  max-width: 880px;
  margin: 0 auto var(--space-8);
  text-align: left; /* Easier to read for 2 paragraphs */
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-principle-card p {
  color: var(--brand-ink);
  font-size: 1.05rem; /* Slightly larger than base for impact */
  line-height: 1.6;
  margin: 0;
}

.pricing-principle-card strong {
  font-weight: 700;
  color: var(--brand-primary);
}

.pricing-principle-card em {
  font-style: italic;
  color: var(--brand-accent);
  font-weight: 600;
}

/* List Refactoring for Principle Card */
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--brand-ink);
  line-height: 1.5;
}

.principle-list li i {
  color: var(--brand-primary); /* Changed from brand-accent */
  font-size: 1rem;
  margin-top: 4px; /* Optical alignment with text cap-height */
  flex-shrink: 0;
}



/* ---------- Pricing Cards Grid ---------- */
.pricing-tiers-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.pricing-kicker {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: var(--space-2);
}

.pricing-tiers-header h3 {
  font-size: var(--fs-600); /* Reduced from fs-700 for hierarchy */
  color: var(--brand-primary); /* Navy for authority */
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  align-items: stretch; /* Ensures equal height naturally */
}

/* Tablet */
@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* Desktop - Strict Equal Widths */
@media (min-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(4, 1fr); /* Forces exact 25% width per card */
    gap: var(--space-6);
  }
}

/* ---------- Card Component (Global) ---------- */
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6); /* Reduced from space-8 to tighten height */
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
  /* Removed min-height: 320px to prevent awkward tallness */
  justify-content: space-between; 
  box-shadow: var(--shadow-md);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-accent);
}

/* Card Content Wrapper to push price down */
.pricing-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}

/* Pricing Card Icon (New) */
.pricing-card-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-primary);
  font-size: 1.25rem;
}

/* Heading */
.pricing-card h4 {
  font-size: var(--fs-600);
  font-weight: 800;
  margin-bottom: var(--space-1);
  color: var(--brand-ink);
  letter-spacing: -0.02em;
}

/* Audience label */
.pricing-audience {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--space-4); /* Tightened */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 2.5rem;
  line-height: 1.4;
}

/* Room Pill - Modern SaaS Style */
.pricing-rooms {
  background: var(--bg-alt);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px; /* Slightly tighter pill */
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: var(--space-4); /* Reduced from space-6 to tighten card height */
  border: 1px solid transparent; 
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Price - Compact & Professional */
.pricing-price {
  margin-top: auto;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: var(--brand-ink);
  padding-top: var(--space-4); /* Reduced padding */
  border-top: 1px solid var(--border); 
}

/* Currency Symbol */
.pricing-price span[itemprop="priceCurrency"] {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: top;
  position: relative;
  top: -4px;
}

/* The Number: Balanced with Title */
.pricing-price span[itemprop="price"] {
  font-size: 1.875rem; /* ~30px, reduced from 2.25rem */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

/* The Period (/month) */
.pricing-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}

/* Custom Pricing Override - Professional Balance */
.pricing-card .pricing-price.custom-price {
  font-size: 1.5rem; /* Matches fs-600 visually */
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: -0.02em;
  display: block;
  padding-top: 0.5rem;
}

.pricing-note-inline {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
}

/* Featured Card Styling - Premium Weight */
.pricing-card.featured {
  border: 2px solid var(--brand-accent);
  box-shadow: var(--shadow-xl);
  /* Very subtle warm tint */
  background: linear-gradient(to bottom, #fffefc, #fff);
  position: relative; 
  /* slightly larger to stand out? Optional, but keeping size uniform is better for grid */
  z-index: 1; 
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(241, 90, 36, 0.25);
  white-space: nowrap;
}

/* ---------- Included Features Table ---------- */
.features-intro {
  text-align: center;
  max-width: 700px; /* Slightly wider for the longer sentence */
  margin: 0 auto var(--space-8);
}

.features-intro h3 {
  font-size: var(--fs-600); /* Matched to "Plans by Hotel Size" for consistency */
  margin-bottom: var(--space-3);
  color: var(--brand-ink);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.features-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Modern Feature Grid (Div Based) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: List view */
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md); /* Softer, broader shadow */
  overflow: hidden; /* For radius */
  margin-bottom: var(--space-10);
  min-width: 900px; /* Force scroll on mobile for full view */
}

/* Row Layout */
/* Wrapper to handle scroll on small devices */
/* Wrapper for Grid */
.feature-grid-wrapper {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  background: white;
  overflow: hidden; /* Clean corners */
  display: block; /* Explicitly block */
}

/* Mobile Feature List (Hidden by default on Desktop) */
.mobile-feature-list {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: left;
  margin-bottom: var(--space-10); /* Match grid spacing */
}

.mobile-feature-list h4 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--brand-ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.mobile-feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mobile-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--brand-ink);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-feature-list li:last-child {
  border-bottom: none;
}

.mobile-feature-list li i {
  color: #10b981; /* Emerald Green */
  font-size: 1rem;
}

/* Responsive Split View Logic */
@media (max-width: 900px) {
  /* Hide the Complex Grid */
  .feature-grid {
    display: none !important;
  }
  
  /* Show the Simple List */
  .mobile-feature-list {
    display: block !important;
  }
}

/* Row Layout - Original Simple Grid */
.feature-grid-header,
.feature-grid-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; /* Feature name gets more space */
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Row Styling */
.feature-grid-row {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent; /* Prepare for hover accent */
  position: relative; /* For z-index lift */
}

.feature-grid-row:last-child {
  border-bottom: none;
}

/* Ensure sticky header stays above sticky column */
.feature-grid-header {
  background: var(--bg-alt);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1); 
}

/* Plan Badges (Restored) */
.plan-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Proper gap */
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-weight: 700;
}

.plan-header-badge i {
  color: var(--brand-primary);
  font-size: 0.8rem;
}

/* The Professional Check Badge (Restored) */
.check-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
}

.check-badge i {
  color: #10b981 !important; /* Force Emerald Green */
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

/* Feature Name Icons (Restored) */
.feature-icon {
  color: var(--brand-ink);
  margin-right: 12px; /* Proper spacing */
  font-size: 1rem;
  width: 20px;
  text-align: center;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.feature-col-name {
  display: flex;
  align-items: center;
  text-align: left;
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 0.95rem;
}

/* Fix background for hover */
.feature-grid-row:hover {
  background-color: white; /* Clean white canvas */
  transform: scale(1.01) translateY(-1px); /* Subtle lift */
  z-index: 5; /* Pop above siblings */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
  border-left-color: var(--brand-accent); /* Orange highlight */
  border-radius: 4px; /* Smooth corners on lift */
}

/* Icon Animation on Row Hover */
.feature-grid-row:hover .feature-icon {
  transform: scale(1.1);
  color: var(--brand-accent); /* "Activate" with Orange on hover */
  opacity: 1;
  transition: all 0.2s ease;
}

/* Removing old Table CSS artifacts */
.pricing-table-wrapper, .pricing-table {
  display: none; 
}

/* ---------- Differentiation Section (Context) ---------- */
.pricing-differences {
  margin-bottom: var(--space-8);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.diff-intro {
  text-align: center;
  margin-bottom: var(--space-6);
}

.diff-kicker {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  margin-bottom: var(--space-2);
}

.diff-intro h3 {
  font-size: var(--fs-600);
  color: var(--brand-ink);
  margin-bottom: var(--space-3);
}

.diff-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.diff-intro strong {
  color: var(--brand-primary);
}

/* The Value Cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5); /* Slightly tighter padding */
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.diff-icon {
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--brand-accent);
  font-size: 1.1rem;
}

.diff-card h4 {
  font-size: 1rem;
  color: var(--brand-ink);
  margin-bottom: var(--space-4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Concise List Styles */
.diff-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diff-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.diff-list li i {
  color: #10b981 !important; /* Force Emerald Green */
  font-size: 0.8rem;
  opacity: 1;
}

/* ---------- Footer (Commercial & Legal) ---------- */
.pricing-footer {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-guarantee {
  display: inline-flex;
  flex-direction: row; /* Horizontal again */
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--brand-ink);
  margin-bottom: var(--space-4); /* Tighter gap */
  padding: var(--space-3) var(--space-5); /* Tighter padding */
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.footer-guarantee i {
  color: var(--brand-accent);
  font-size: 1.2rem;
  /* Ensure icon line-height doesn't mess it up */
  line-height: 1;
}

.footer-guarantee p {
  margin: 0; /* Remove default margins to fix vertical center */
}

.footer-action {
  margin-bottom: var(--space-3); /* Tighter gap */
}

.pricing-cta {
  /* Standard button size inheritance */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Inherit dimensions from .button class */
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-cta:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand-accent) 90%, black) !important;
  box-shadow: var(--shadow-lg);
  color: white;
}

.pricing-legal {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.7;
  max-width: 650px;
  margin-top: var(--space-3); /* Closer disclaimer */
}

/* ---------- Tooltip Styling ---------- */
.tooltip-trigger {
  position: relative;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  color: var(--muted);
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background-color: var(--brand-ink);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 14px;
  position: absolute;
  z-index: 100;
  bottom: 125%; /* Position above the text */
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

/* Tooltip Arrow */
.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--brand-ink) transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Plan Highlights (Enterprise Weight) ---------- */
.plan-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0; /* Add bottom margin to separate from price */
  text-align: left;
  /* Removed border-top since Price footer handles the divider */
}

.plan-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--brand-ink);
  margin-bottom: 8px; /* Slightly looser */
  font-weight: 500;
}

.plan-highlights li i {
  color: #10b981 !important; /* Force Emerald Green */
  font-size: 0.8rem;
}