/* ====================================
   Marilah - Restaurant POS SaaS Landing Page
   Complete Stylesheet
   ==================================== */

/* --- CSS Variables --- */
:root {
  --primary: #F97316;
  --primary-dark: #EA580C;
  --primary-light: #FDBA74;
  --dark: #111827;
  --dark-secondary: #1F2937;
  --white: #FFFFFF;
  --light: #F9FAFB;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  padding-top: 72px;
}

img {
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 96px 0;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  height: 72px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 52px;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- Features Dropdown --- */
.nav-item {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  z-index: 1100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}

/* 悬停桥接：鼠标从 Features 移向下拉菜单时不会断掉 hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--dark);
}

.dropdown-menu a:hover {
  background: #FFF7ED;
  color: var(--primary);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hamburger Active Animation --- */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(to bottom, #FFF7ED, white);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 0 0 45%;
  max-width: 480px;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 14px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-features li {
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: 14px;
}

.hero-cta .btn-primary {
  padding: 14px 32px;
  font-size: 0.9375rem;
}

.hero-image {
  flex: 0 0 52%;
  background: var(--white);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* --- Features Section --- */
.features {
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #FFF7ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

.feature-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-card-link:hover .card-more {
  text-decoration: underline;
}

/* --- POS System Section --- */
.pos-system {
  background: var(--white);
}

.pos-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.pos-text {
  flex: 1;
}

.pos-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
}

.pos-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pos-list li {
  font-size: 1rem;
  color: var(--dark);
  padding-left: 32px;
  position: relative;
  font-weight: 500;
}

.pos-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: #FEF2C8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.pos-image {
  flex: 1;
}

.pos-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* --- Showcase Section --- */
.showcase {
  background: var(--light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: center;
  background: white;
  display: block;
}

/* QR 菜单图：保持原来的裁切+偏移（能看到下面一点） */
.showcase-img-bottom {
  object-fit: cover;
  object-position: center 57%;
}

.showcase-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 20px 20px 8px;
}

.showcase-card p {
  font-size: 0.875rem;
  color: var(--gray);
  padding: 0 20px 24px;
  line-height: 1.6;
}

/* --- Hardware Comparison Section --- */
.hardware-comparison {
  background: var(--light);
}

.comparison-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  flex: 1;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.comparison-card.traditional {
  background: #f8fafc;
  border: 1px solid var(--border);
}

.comparison-card.traditional h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--gray);
  font-weight: 700;
}

.comparison-card.marilah {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  position: relative;
}

.comparison-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 24px;
  width: fit-content;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.0625rem;
  font-weight: 500;
}

.comparison-list li > div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.price-tag {
  font-weight: 700;
  color: #DC2626;
  font-size: 0.9375rem;
}

.icon-x {
  color: #EF4444;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-check {
  color: var(--primary);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.comparison-divider {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.comparison-divider svg {
  width: 32px;
  height: 32px;
}

/* --- Pricing Section --- */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: super;
}

.period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 0.9375rem;
  color: var(--dark);
  padding-left: 28px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-features li.excluded {
  color: var(--gray);
}

.pricing-features li.excluded::before {
  content: "✕";
  color: #DC2626;
}

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

/* --- Trial Card --- */
.trial-card {
  background: linear-gradient(135deg, var(--primary), #EA580C);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  color: white;
}

.trial-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.trial-card p {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.trial-card ul {
  margin-bottom: 24px;
}

.trial-card li {
  font-size: 0.9375rem;
  padding: 6px 0;
}

.trial-card .btn {
  background: white;
  color: var(--primary);
  border-color: white;
}

.trial-card .btn:hover {
  background: transparent;
  color: white;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 40px;
}

/* --- Modal Styles --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

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

.modal-card {
  background: white;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s;
}

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

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--gray);
  font-size: 0.9375rem;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-option-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.modal-option-btn:hover {
  border-color: var(--primary);
  background: #fffaf0;
  transform: translateX(4px);
}

.modal-option-btn.whatsapp:hover {
  border-color: #25D366;
  background: #f0fff4;
}

.option-icon {
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.whatsapp .option-icon {
  color: #25D366;
}

.option-text {
  flex: 1;
}

.option-text strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 2px;
}

.option-text span {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .modal-card {
    padding: 30px 20px;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    overflow-y: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column h4 img {
  vertical-align: middle;
  height: 200px;
  width: auto;
}

.footer-column p {
  font-size: 0.9375rem;
  color: var(--gray-light);
  line-height: 1.7;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column ul a {
  font-size: 0.9375rem;
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-column ul a:hover {
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--dark-secondary);
  background: var(--dark-secondary);
  color: white;
  font-size: 0.875rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--gray-light);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   Responsive Design
   ==================================== */

/* --- Tablet (768px - 1023px) --- */
@media (max-width: 1023px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }

  /* Features dropdown in mobile: expand inline */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu a {
    padding: 8px 12px;
  }

  /* Hero */
  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-image {
    flex: 1 1 auto;
    max-width: 100%;
  }

  /* Section */
  .section {
    padding: 64px 0;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* POS Content */
  .pos-content {
    flex-direction: column;
  }

  /* Showcase Grid */
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing Grid */
    .pricing-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    /* Hardware Comparison Responsive */
    .comparison-grid {
      flex-direction: column;
      align-items: center;
    }
    .comparison-card {
      width: 100%;
      max-width: 500px;
    }
    .comparison-divider {
      transform: rotate(90deg);
      margin: 10px 0;
    }

    /* Footer Grid */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile (<768px) --- */
@media (max-width: 767px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }

  /* Hero */
  .hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-image {
    flex: 1 1 auto;
    max-width: 100%;
  }

  /* Section */
  .section {
    padding: 48px 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* POS Content */
  .pos-content {
    flex-direction: column;
  }

  /* Showcase Grid */
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   POS System Page
   ==================================== */

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* --- POS Page Hero --- */
.pos-page-hero {
  background: linear-gradient(to bottom, #FFF7ED, white);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.pos-page-hero-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.pos-page-hero-content {
  flex: 0 0 45%;
  max-width: 480px;
}

.pos-page-label {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.pos-page-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.pos-page-hero-desc {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 28px;
}

.pos-page-hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.pos-page-hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.pos-page-hero-highlights li {
  font-size: 0.875rem;
  color: var(--dark);
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}

.pos-page-hero-highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pos-page-hero-image {
  flex: 0 0 52%;
}

.pos-page-mockup {
  background: var(--white);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pos-page-mockup img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* --- Challenges --- */
.pos-page-challenges {
  background: var(--light);
}

.pos-page-challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pos-page-challenge-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.pos-page-challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pos-page-challenge-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #FFF7ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-page-challenge-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.pos-page-challenge-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- POS Features --- */
.pos-page-features {
  background: var(--white);
}

.pos-page-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pos-page-feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.pos-page-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pos-page-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #FFF7ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-page-feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pos-page-feature-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

.pos-page-feature-card-highlight {
  grid-column: 1 / -1;
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, #FFF7ED, white);
  padding: 40px 32px;
}

.pos-page-feature-icon-star {
  background: var(--primary);
}

.pos-page-feature-icon-star .feature-icon-svg {
  color: white;
}

.pos-page-feature-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* --- Workflow --- */
.pos-page-workflow {
  background: var(--light);
}

.pos-page-workflow-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pos-page-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.pos-page-workflow-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  transition: var(--transition);
}

.pos-page-workflow-step:hover .pos-page-workflow-icon {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pos-page-workflow-step span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  white-space: nowrap;
}

.pos-page-workflow-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: -28px;
}

.pos-page-workflow-arrow .feature-icon-svg {
  width: 28px;
  height: 28px;
}

/* --- Showcase --- */
.pos-page-showcase {
  background: var(--white);
}

.pos-page-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pos-page-showcase-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.pos-page-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pos-page-showcase-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.pos-page-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Receipt 图：完整显示，比例不足时补白边 */
.pos-page-showcase-receipt {
  background: white;
}

.pos-page-showcase-receipt img {
  object-fit: contain;
  background: white;
}

.pos-page-showcase-placeholder {
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-page-showcase-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-light);
}

.pos-page-showcase-placeholder-inner .feature-icon-svg {
  width: 40px;
  height: 40px;
  color: var(--gray-light);
}

.pos-page-showcase-placeholder-inner span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray);
}

.pos-page-showcase-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 16px 16px 20px;
  text-align: center;
}

/* --- Advantage --- */
.pos-page-advantage {
  background: var(--light);
}

.pos-page-advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pos-page-advantage-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.pos-page-advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pos-page-advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #FFF7ED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-page-advantage-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pos-page-advantage-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Comparison --- */
.pos-page-comparison {
  background: var(--white);
}

.pos-page-comparison-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.pos-page-comparison-card {
  flex: 1;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pos-page-comparison-traditional {
  background: var(--light);
  border: 1px solid var(--border);
}

.pos-page-comparison-traditional h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--gray);
}

.pos-page-comparison-traditional ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pos-page-comparison-traditional li {
  font-size: 1rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-page-comparison-x {
  width: 20px;
  height: 20px;
  color: #EF4444;
  stroke-width: 2.5;
}

.pos-page-comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.pos-page-comparison-divider .feature-icon-svg {
  width: 36px;
  height: 36px;
}

.pos-page-comparison-marilah {
  background: linear-gradient(135deg, #FFF7ED, white);
  border: 2px solid var(--primary);
  position: relative;
}

.pos-page-comparison-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pos-page-comparison-marilah ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pos-page-comparison-marilah li {
  font-size: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.pos-page-comparison-check {
  width: 20px;
  height: 20px;
  color: var(--primary);
  stroke-width: 2.5;
}

/* --- Final CTA --- */
.pos-page-cta {
  background: var(--light);
}

.pos-page-cta-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.pos-page-cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pos-page-cta-card p {
  font-size: 1.0625rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.pos-page-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- POS Page Responsive: Tablet --- */
@media (max-width: 1023px) {
  .pos-page-hero-container {
    flex-direction: column;
  }

  .pos-page-hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .pos-page-hero-image {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .pos-page-hero-title {
    font-size: 2.25rem;
  }

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

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

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

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

  .pos-page-workflow-flow {
    gap: 8px;
  }

  .pos-page-workflow-step {
    min-width: 90px;
  }
}

/* --- POS Page Responsive: Mobile --- */
@media (max-width: 767px) {
  .pos-page-hero-title {
    font-size: 1.75rem;
  }

  .pos-page-hero-highlights {
    gap: 8px 16px;
  }

  .pos-page-hero-cta {
    flex-direction: column;
  }

  .pos-page-challenges-grid {
    grid-template-columns: 1fr;
  }

  .pos-page-features-grid {
    grid-template-columns: 1fr;
  }

  .pos-page-showcase-grid {
    grid-template-columns: 1fr;
  }

  .pos-page-advantage-grid {
    grid-template-columns: 1fr;
  }

  .pos-page-comparison-grid {
    flex-direction: column;
    gap: 24px;
  }

  .pos-page-comparison-divider {
    transform: rotate(90deg);
  }

  .pos-page-cta-card {
    padding: 40px 24px;
  }

  .pos-page-cta-card h2 {
    font-size: 1.5rem;
  }

  .pos-page-cta-buttons {
    flex-direction: column;
  }

  .pos-page-workflow-step {
    min-width: 80px;
  }

  .pos-page-workflow-icon {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   QR Ordering Page (/features/qr-ordering)
   ============================================================ */

.qr-page-hero {
  background: linear-gradient(to bottom, #FFF7ED, white);
}

.qr-page-hero .pos-page-hero-container {
  gap: 24px;
}

/* 左内容 48%，与首页 hero 一样从容器左边缘开始 */
.qr-page-hero .pos-page-hero-content {
  flex: 0 0 48%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 标题两行各自饱满，避免出现孤词 */
.qr-page-hero .pos-page-hero-title {
  font-size: 2.5rem;
}

/* 右侧视觉 52%：手机 mockup 是主要视觉焦点 */
.qr-page-hero-visual {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.qr-page-hero-visual img {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
}

/* --- Hero: quick benefits --- */
.qr-page-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

.qr-page-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  list-style: none;
}

.qr-page-benefits li .feature-icon-svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Why section uses 4 cards -> override 3-col grid to 4-col */
#why .pos-page-challenges-grid {
  grid-template-columns: repeat(4, 1fr);
}

.qr-page-phone {
  position: relative;
  width: 250px;
  height: 520px;
  background: #111827;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(17, 24, 39, 0.35);
  border: 3px solid #1F2937;
  flex-shrink: 0;
}

.qr-page-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #111827;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.qr-page-phone-screen {
  width: 100%;
  height: 100%;
  background: #F9FAFB;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- Phone screen UI elements --- */
.qr-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 14px 10px;
  background: white;
  font-size: 0.8rem;
  color: var(--dark);
}

.qr-screen-back {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1;
}

.qr-screen-lang {
  font-size: 0.65rem;
  font-weight: 700;
  background: #FFF7ED;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 100px;
}

.qr-screen-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 14px 12px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.qr-screen-tab {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray);
  padding: 5px 12px;
  border-radius: 100px;
  background: #F3F4F6;
}

.qr-screen-tab.active {
  background: var(--primary);
  color: white;
}

.qr-screen-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border-bottom: 1px solid #F3F4F6;
}

.qr-screen-item-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.qr-img-coffee { background: #FEF3C7; }
.qr-img-food { background: #FEE2E2; }
.qr-img-tea { background: #FFEDD5; }

.qr-screen-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.qr-screen-item-info strong {
  font-size: 0.78rem;
  color: var(--dark);
}

.qr-screen-item-info span {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 600;
}

.qr-screen-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-screen-cartbar {
  margin-top: auto;
  margin: auto 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: white;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.qr-screen-cartbar-total {
  font-weight: 800;
}

/* Food detail screen */
.qr-screen-detail-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  flex-shrink: 0;
}

.qr-screen-detail-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.qr-screen-detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qr-screen-detail-title strong {
  font-size: 0.95rem;
  color: var(--dark);
}

.qr-screen-detail-title span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.qr-screen-detail-mod {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qr-screen-mod-chip {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--gray);
  background: white;
}

.qr-screen-mod-chip.active {
  border-color: var(--primary);
  background: #FFF7ED;
  color: var(--primary);
}

.qr-screen-detail-note span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--dark);
}

.qr-screen-note-input {
  margin-top: 5px;
  font-size: 0.65rem;
  color: var(--gray);
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
}

.qr-screen-addcart {
  margin-top: auto;
  background: var(--primary);
  color: white;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 11px;
  border-radius: 10px;
}

/* Cart screen */
.qr-screen-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid #F3F4F6;
}

.qr-screen-cart-info {
  display: flex;
  flex-direction: column;
}

.qr-screen-cart-info strong {
  font-size: 0.78rem;
  color: var(--dark);
}

.qr-screen-cart-info span {
  font-size: 0.68rem;
  color: var(--gray);
}

.qr-screen-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}

.qr-screen-qty span:not(.qr-screen-qty-num) {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gray);
}

.qr-screen-qty-num {
  min-width: 14px;
  text-align: center;
}

.qr-screen-cart-totals {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--gray);
  border-bottom: 1px solid #F3F4F6;
}

.qr-screen-cart-totals strong {
  color: var(--dark);
  font-size: 0.78rem;
}

/* Order status screen */
.qr-screen-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 14px 14px;
  background: white;
}

.qr-screen-status-head strong {
  font-size: 0.85rem;
  color: var(--dark);
}

.qr-screen-status-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.qr-screen-status-badge.preparing {
  background: #FFF7ED;
  color: var(--primary);
}

.qr-screen-status-steps {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-screen-status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
}

.qr-screen-status-step.active {
  background: #FFF7ED;
}

.qr-status-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--dark);
  flex-shrink: 0;
}

.qr-screen-status-step.done .qr-status-dot {
  background: #22C55E;
  border-color: #22C55E;
  color: white;
}

.qr-screen-status-step.active .qr-status-dot {
  border-color: var(--primary);
  color: var(--primary);
  animation: qrPulse 1.5s infinite;
}

@keyframes qrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.15); }
}

.qr-screen-status-step div {
  display: flex;
  flex-direction: column;
}

.qr-screen-status-step strong {
  font-size: 0.72rem;
  color: var(--dark);
}

.qr-screen-status-step small {
  font-size: 0.6rem;
  color: var(--gray);
}

.qr-screen-status-note {
  margin: auto 12px 12px;
  font-size: 0.6rem;
  color: var(--gray);
  background: #F9FAFB;
  border-radius: 10px;
  padding: 10px;
  line-height: 1.5;
}

/* --- QR stand mockup --- */
.qr-page-stand {
  position: absolute;
  right: 4%;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  transform: rotate(4deg);
  filter: drop-shadow(0 20px 25px rgba(17, 24, 39, 0.2));
}

.qr-page-stand-card {
  background: white;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.qr-page-stand-code {
  width: 86px;
  height: 86px;
}

.qr-page-stand-card strong {
  font-size: 0.72rem;
  color: var(--dark);
  font-weight: 800;
}

.qr-page-stand-card span {
  font-size: 0.6rem;
  color: var(--gray);
}

.qr-page-stand-base {
  width: 150px;
  height: 30px;
  margin-top: -2px;
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 20px 20px;
}

/* --- Workflow (vertical for 7-step, horizontal for integration) --- */
.qr-page-workflow {
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

.qr-page-workflow .pos-page-workflow-arrow {
  margin: 2px 0;
}

.qr-page-integration-flow {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-page-integration-flow .pos-page-workflow-arrow {
  margin: 0 12px;
}

.qr-page-integration {
  background: linear-gradient(to bottom, white, #FFF7ED);
}

.qr-page-integration-points {
  list-style: none;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.qr-page-integration-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.qr-page-integration-check {
  width: 22px;
  height: 22px;
  color: white;
  background: var(--primary);
  border-radius: 50%;
  padding: 4px;
  flex-shrink: 0;
}

/* --- Screens section --- */
.qr-page-screens {
  background: #F9FAFB;
}

.qr-page-screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.qr-page-screen-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-page-screen-col .qr-page-phone {
  transform: scale(0.9);
  transform-origin: top center;
  margin-bottom: -18px;
}

.qr-page-screen-col h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 8px;
}

.qr-page-screen-col p {
  font-size: 0.875rem;
  color: var(--gray);
  max-width: 220px;
  line-height: 1.6;
}

/* --- Stats section --- */
.qr-page-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qr-page-stat-card {
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.qr-page-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.qr-page-stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: #FFF7ED;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-page-stat-icon .feature-icon-svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
}

.qr-page-stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 10px;
}

.qr-page-stat-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.qr-page-stat-card p {
  font-size: 0.875rem;
  color: var(--gray);
}

/* --- FAQ --- */
.qr-page-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qr-page-faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.qr-page-faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.qr-page-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.qr-page-faq-item summary::-webkit-details-marker {
  display: none;
}

.qr-page-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF7ED;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.qr-page-faq-item[open] .qr-page-faq-icon {
  transform: rotate(45deg);
}

.qr-page-faq-item p {
  padding: 0 24px 22px;
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- QR page responsive --- */
@media (max-width: 1024px) {
  #why .pos-page-challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qr-page-screens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

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

@media (max-width: 768px) {
  .qr-page-hero .pos-page-hero-content {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .qr-page-hero-visual {
    flex: 1 1 auto;
    max-width: 100%;
    justify-content: center;
  }

  .qr-page-hero-visual img {
    max-height: 420px;
  }

  .qr-page-workflow {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  #why .pos-page-challenges-grid {
    grid-template-columns: 1fr;
  }

  .qr-page-benefits li {
    white-space: normal;
  }

  .qr-page-screens-grid {
    grid-template-columns: 1fr;
  }

  .qr-page-stats-grid {
    grid-template-columns: 1fr;
  }
}
