/* ============================================
   FADA THEME SYSTEM — Dark + Light (Blue/White)
   ============================================ */

/* DARK THEME (default) */
:root,
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-soft: #111111;
  --bg-card: #161616;
  --border: #232323;
  --border-hover: #3a3a3a;
  --text: #F5F5F5;
  --text-dim: #A0A0A0;
  --text-muted: #666666;
  --accent: #FF3D00;
  --accent-hover: #FF5722;
  --accent-soft: rgba(255, 61, 0, 0.1);
  --success: #00E676;
  --warning: #FFAB00;
  --danger: #FF1744;
  --gradient: linear-gradient(135deg, #FF3D00 0%, #FF1744 100%);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  --grid-line: rgba(255, 61, 0, 0.04);
  --hero-glow-1: rgba(255, 61, 0, 0.15);
  --hero-glow-2: rgba(255, 23, 68, 0.10);
}

/* LIGHT THEME — Blue/White Clean */
:root[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-soft: #FFFFFF;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --text: #0F172A;
  --text-dim: #475569;
  --text-muted: #94A3B8;
  --accent: #0066FF;
  --accent-hover: #0052CC;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --gradient: linear-gradient(135deg, #0066FF 0%, #00B8D9 100%);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --grid-line: rgba(0, 102, 255, 0.05);
  --hero-glow-1: rgba(0, 102, 255, 0.10);
  --hero-glow-2: rgba(0, 184, 217, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
body.lang-en { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; }
.lang-en-only, .lang-th-only { display: none !important; }
body.lang-en .lang-en-only { display: revert !important; }
body.lang-th .lang-th-only { display: revert !important; }

/* NAV */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(12px);
}
:root[data-theme="dark"] .nav { background: rgba(10, 10, 10, 0.85); }
:root[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.85); }

.logo { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: 28px; letter-spacing: 0.05em; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }

.toggle-group { display: flex; gap: 8px; align-items: center; }

.theme-toggle {
  background: var(--bg-card); border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text); font-size: 16px;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }

.lang-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; display: flex; }
.lang-toggle button { background: transparent; border: none; color: var(--text-dim); padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 999px; font-family: 'JetBrains Mono', monospace; transition: all 0.2s; }
.lang-toggle button.active { background: var(--accent); color: white; }

.cta-nav { background: var(--accent); color: white !important; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.cta-nav:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* HERO */
.hero { min-height: 90vh; padding: 140px 32px 80px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before {
  content:''; position: absolute; top:0; left:0; right:0; bottom:0;
  background-image: radial-gradient(circle at 30% 40%, var(--hero-glow-1) 0%, transparent 50%), radial-gradient(circle at 75% 60%, var(--hero-glow-2) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner { max-width: 1280px; width: 100%; margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); border: 1px solid var(--accent); padding: 8px 16px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 24px; font-weight: 500; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 24px; }
body.lang-en .hero h1 { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: clamp(40px, 5.5vw, 72px); }
.hero h1 .accent { color: var(--accent); }
.hero h1 .highlight { background: var(--accent-soft); padding: 0 12px; border-radius: 8px; color: var(--accent); }

.hero p.subtitle { font-size: 19px; color: var(--text-dim); margin-bottom: 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.btn-primary { background: var(--accent); color: white; padding: 18px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 12px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px var(--accent-soft); }
.btn-secondary { background: transparent; color: var(--text); padding: 18px 32px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 12px; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--text); }

.trust-row { display: flex; gap: 24px; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span::before { content: '✓'; color: var(--success); }

.mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mock::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.mock-header { display: flex; align-items: center; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #FF5F57; } .mock-dot.yellow { background: #FEBC2E; } .mock-dot.green { background: #28C840; }
.mock-title { margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.mock-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-stat { background: var(--bg); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.mock-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.mock-stat-value { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: 24px; color: var(--accent); line-height: 1; }
.mock-row { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-radius: 6px; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; border: 1px solid var(--border); }
.mock-row .label { color: var(--text-dim); }
.mock-row .value { color: var(--text); font-weight: 600; }
.mock-row .badge { padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.mock-row .badge.success { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.mock-row .badge.warn { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.mock-row .badge.danger { background: rgba(255, 23, 68, 0.15); color: var(--danger); }
:root[data-theme="light"] .mock-row .badge.success { background: rgba(5, 150, 105, 0.12); color: var(--success); }
:root[data-theme="light"] .mock-row .badge.warn { background: rgba(217, 119, 6, 0.12); color: var(--warning); }
:root[data-theme="light"] .mock-row .badge.danger { background: rgba(220, 38, 38, 0.12); color: var(--danger); }

section { padding: 100px 32px; position: relative; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-tag { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.section-title { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; margin-bottom: 24px; letter-spacing: -0.01em; }
body.lang-en .section-title { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: clamp(36px, 4.5vw, 56px); }
.section-subtitle { font-size: 18px; color: var(--text-dim); max-width: 700px; margin-bottom: 64px; }

/* Value cards (replaces "pain cards") */
.values-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; overflow: hidden; transition: all 0.2s; }
.value-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.value-card::before { content: attr(data-num); position: absolute; right: 12px; top: -8px; font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: 80px; color: var(--bg); -webkit-text-stroke: 1px var(--border); pointer-events: none; }
.value-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; position: relative; }
.value-card p { color: var(--text-dim); font-size: 14px; position: relative; }

/* COMPARISON TABLE */
.comparison-section { background: var(--bg-soft); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; min-width: 800px; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.comparison-table th { background: var(--bg); font-weight: 600; font-size: 12px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.comparison-table th.fada-col { background: var(--accent-soft); color: var(--accent); }
.comparison-table td.highlight { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--success); font-weight: 700; }
.partial { color: var(--warning); font-weight: 700; }
.dash { color: var(--text-muted); }

.comparison-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
}

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; position: relative; display: flex; flex-direction: column; transition: all 0.2s; }
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(135deg, var(--bg-card), var(--accent-soft)); transform: scale(1.03); }
.pricing-card.featured::before { content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 4px 16px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.pricing-mode { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.pricing-name { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: 36px; letter-spacing: 0.02em; margin-bottom: 12px; line-height: 1; }
body.lang-en .pricing-name { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 28px; }
.pricing-tagline { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; min-height: 44px; }
.pricing-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pricing-amount .currency { font-size: 18px; color: var(--text-dim); font-weight: 600; }
.pricing-amount .number { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: 56px; line-height: 1; color: var(--text); }
body.lang-en .pricing-amount .number { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: 44px; }
.pricing-amount .period { color: var(--text-dim); font-size: 14px; }
.pricing-note { color: var(--text-muted); font-size: 12px; margin-bottom: 24px; font-family: 'JetBrains Mono', monospace; }
.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; }
.pricing-features li { padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-cta { width: 100%; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; display: block; }
.pricing-cta.primary { background: var(--accent); color: white; }
.pricing-cta.primary:hover { background: var(--accent-hover); }
.pricing-cta.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.pricing-cta.secondary:hover { border-color: var(--text); }

.features-section { background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: all 0.3s; }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h4 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 14px; }

.cta-section { background: var(--bg); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 60%); pointer-events: none; }
.cta-box { background: var(--gradient); border-radius: 24px; padding: 64px 48px; text-align: center; position: relative; z-index: 1; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cta-box h2 { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-size: clamp(36px, 5vw, 56px); line-height: 1; margin-bottom: 20px; position: relative; color: white; }
body.lang-en .cta-box h2 { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 44px); }
.cta-box p { font-size: 17px; margin-bottom: 32px; opacity: 0.95; position: relative; color: white; }
.cta-box .btn-primary { background: white; color: var(--accent); }
.cta-box .btn-primary:hover { background: #f5f5f5; }
.cta-box .btn-secondary { border-color: rgba(255,255,255,0.4); color: white; }
.cta-box .btn-secondary:hover { border-color: white; }
.cta-box .hero-cta { justify-content: center; margin-bottom: 0; }

.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 48px 32px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--text-dim); }
.footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text); }

/* Existing breakpoints replaced — see comprehensive responsive system at bottom */

/* ============================================
   INDEX HUB PAGE STYLES
   ============================================ */

.hero h1 .accent { color: var(--accent); }
.hero h1 .strike { text-decoration: line-through; color: var(--text-muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
body.lang-en .stat-num { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: 36px; }
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* When only 2 cards — make them BIG and premium */
.products-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.products-grid-2 .product-card {
  padding: 48px 40px;
  border-radius: 20px;
  min-height: 380px;
}
.products-grid-2 .product-icon {
  font-size: 56px;
  margin-bottom: 24px;
}
.products-grid-2 .product-title {
  font-size: 36px !important;
  line-height: 1.1;
  margin-bottom: 16px;
}
body.lang-en .products-grid-2 .product-title {
  font-size: 32px !important;
}
.products-grid-2 .product-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.products-grid-2 .product-price {
  font-size: 15px;
}
.products-grid-2 .product-arrow {
  font-size: 22px;
}
.products-grid-2 .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
:root[data-theme="dark"] .products-grid-2 .product-card:hover {
  box-shadow: 0 16px 40px rgba(255, 61, 0, 0.15);
}

/* Subtle accent stripe on top of each big card */
.products-grid-2 .product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 20px 20px 0 0;
  opacity: 0.8;
}

/* Responsive: stack on tablet+ */
@media (max-width: 900px) {
  .products-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 560px;
  }
  .products-grid-2 .product-card {
    padding: 36px 28px;
    min-height: auto;
  }
  .products-grid-2 .product-title {
    font-size: 28px !important;
  }
  body.lang-en .products-grid-2 .product-title {
    font-size: 26px !important;
  }
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.product-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.product-title {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1;
  color: var(--text);
}
body.lang-en .product-title { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 700; font-size: 22px; }
.product-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
  flex: 1;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.product-arrow {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.product-card:hover .product-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* SAVINGS / OUTCOMES GRID */
.savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.savings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.2s;
}
.savings-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-soft));
}
.savings-card:hover { transform: translateY(-4px); }
.savings-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.savings-value {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}
body.lang-en .savings-value { font-family: 'DM Sans', 'Noto Sans Thai', sans-serif; font-weight: 800; font-size: 44px; }
.savings-card.highlight .savings-value { color: var(--accent); }
.savings-detail {
  color: var(--text-dim);
  font-size: 13px;
}

/* FOOTER COLUMNS */
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 36px; }
  .savings-grid { grid-template-columns: 1fr; }
}


/* ============================================
   FONT WEIGHT REFINEMENTS — Enterprise Style
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero h1 {
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  font-size: clamp(40px, 6vw, 76px) !important;
}
body.lang-en .hero h1 {
  font-size: clamp(40px, 6vw, 76px) !important;
}
.section-title {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(32px, 4vw, 52px) !important;
}
body.lang-en .section-title {
  font-size: clamp(32px, 4vw, 52px) !important;
}
.cta-box h2 {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: clamp(32px, 4vw, 44px) !important;
}
body.lang-en .cta-box h2 {
  font-size: clamp(32px, 4vw, 44px) !important;
}
.product-title {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-size: 22px !important;
}
body.lang-en .product-title {
  font-size: 22px !important;
}
.pricing-name {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-size: 24px !important;
}
body.lang-en .pricing-name {
  font-size: 24px !important;
}
.pricing-amount .number {
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  font-size: 44px !important;
}
body.lang-en .pricing-amount .number {
  font-size: 44px !important;
}
.stat-num {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: 36px !important;
}
body.lang-en .stat-num {
  font-size: 36px !important;
}
.savings-value {
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  font-size: 40px !important;
}
body.lang-en .savings-value {
  font-size: 40px !important;
}
.mock-stat-value {
  font-weight: 700 !important;
  font-size: 22px !important;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
body {
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.subtitle {
  font-size: 17px !important;
  line-height: 1.65 !important;
  font-weight: 400;
}
.section-subtitle {
  font-size: 17px !important;
  line-height: 1.65 !important;
  font-weight: 400;
}

/* ============================================
   DUAL PRICE OPTIONS (Monthly + Yearly)
   ============================================ */
.price-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.price-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s;
}
.price-option.recommended {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.price-option-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-option.recommended .price-option-label {
  color: var(--accent);
}
.save-tag {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}
.price-option-amount {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}
.price-option-amount .currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.price-option-amount .period {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 2px;
}

/* ============================================
   SECONDARY SERVICES GRID
   ============================================ */
.services-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: inline-block;
}
.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 600;
}
.service-title {
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.service-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .services-secondary-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 22px 20px; }
}

/* ============================================
   SERVICE CARD AS LINK
   ============================================ */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.service-meta .service-price {
  padding-top: 0;
  border-top: none;
}
.service-arrow {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.2s, color 0.2s;
}
a.service-card:hover .service-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* ============================================
   NAV DROPDOWN — Articles menu
   ============================================ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  padding: 6px 0;
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  opacity: 0.7;
}
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(-180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}
:root[data-theme="light"] .nav-dropdown-menu {
  box-shadow: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* invisible bridge so hover doesn't drop off in the gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--accent-soft);
}
.dropdown-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.dropdown-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2px;
}
.dropdown-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Mobile: turn dropdown into inline list */
@media (max-width: 968px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 4px 16px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown::after { display: none; }
  .dropdown-arrow { display: none; }
}

/* ============================================
   FOOTER GRID — better column layout
   ============================================ */
.footer-inner {
  display: grid !important;
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr !important;
  gap: 40px !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 32px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block !important;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--accent);
}

@media (max-width: 968px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}
@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   PROMO PRICING — strikethrough + discount
   ============================================ */
.price-old {
  font-family: 'JetBrains Mono', monospace;
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  color: var(--text-muted);
  font-size: 0.7em;
  margin-right: 8px;
  opacity: 0.7;
}
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--danger), #FF6B6B);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  animation: pulse-promo 2s infinite;
}
@keyframes pulse-promo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.promo-banner::before {
  content: '🔥';
  font-size: 14px;
}
.promo-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,23,68,0.3);
}
.pricing-card { position: relative; }
.free-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}
:root[data-theme="light"] .free-trial-badge {
  background: rgba(5, 150, 105, 0.12);
}
.free-trial-badge::before {
  content: '🎁';
  font-size: 14px;
}
.global-promo-strip {
  background: linear-gradient(90deg, var(--danger), #FF6B6B);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.global-promo-strip strong {
  font-weight: 800;
}

/* ============================================
   PROMO STRIP — Shift nav down
   ============================================ */
body { padding-top: 0; }  /* reset */
.global-promo-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
}
.nav {
  top: 38px !important;  /* shift nav down to make space for promo strip (~38px) */
}
/* push hero/main down too since nav and promo are both fixed */
.hero, main > section:first-of-type, .article-hero {
  padding-top: 130px !important;
}
@media (max-width: 768px) {
  .global-promo-strip { font-size: 11px; padding: 8px 12px; line-height: 1.3; }
  .nav { top: 50px !important; }  /* strip wraps to 2 lines on mobile */
  .hero, main > section:first-of-type, .article-hero {
    padding-top: 150px !important;
  }
}

/* ============================================
   FEATURED SERVICE CARD — Compliance Bundle
   ============================================ */
.service-card-featured {
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card)) !important;
  border-color: var(--accent) !important;
  border-width: 1.5px !important;
}
:root[data-theme="dark"] .service-card-featured {
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.08), var(--bg-card)) !important;
}
.service-card-featured:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0,102,255,0.15) !important;
}
:root[data-theme="dark"] .service-card-featured:hover {
  box-shadow: 0 12px 24px rgba(255, 61, 0, 0.2) !important;
}
.service-badge-new {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'DM Sans', 'Noto Sans Thai', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,102,255,0.3);
}
:root[data-theme="dark"] .service-badge-new {
  box-shadow: 0 2px 8px rgba(255, 61, 0, 0.4);
}

/* Make featured card span full width on mobile and emphasize on desktop */
@media (min-width: 769px) {
  /* Span 2 columns on wider screens for visual prominence */
  .services-secondary-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}


/* ============================================================
   ============================================================
   COMPREHENSIVE RESPONSIVE SYSTEM (v2)
   Breakpoints:
     • XL  ≥ 1280px  — Desktop large (default styles apply)
     • LG  1024–1279 — Desktop standard
     • MD  768–1023  — Tablet landscape / small desktop
     • SM  481–767   — Tablet portrait / large phone
     • XS  ≤ 480     — Phone
   ============================================================
   ============================================================ */

/* ========================================
   HAMBURGER MENU (hidden on desktop)
   ======================================== */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   LG: 1024–1279 (small desktop / tablet landscape)
   ======================================== */
@media (max-width: 1279px) {
  .hero-inner { gap: 48px; }
  .hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
  .nav-links { gap: 18px; }
  .section-inner { padding: 0 24px; }
}

/* ========================================
   MD: 768–1023 (tablet)
   ======================================== */
@media (max-width: 1023px) {
  /* Reveal hamburger, hide horizontal nav links */
  .hamburger { display: flex; }

  .nav { padding: 14px 24px; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 88px 24px 32px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    z-index: 99;
  }
  :root[data-theme="dark"] .nav-links { box-shadow: -8px 0 24px rgba(0,0,0,0.5); }
  .nav-links.open { right: 0; }

  .nav-links .nav-link {
    font-size: 16px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  /* Dropdown becomes inline group on mobile */
  .nav-dropdown {
    width: 100%;
    display: block;
  }
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 8px 0 8px 16px;
    min-width: 0;
    width: 100%;
  }
  .nav-dropdown::after { display: none; }
  .dropdown-arrow { display: inline; }

  /* Toggle group: keep visible but spread out */
  .toggle-group {
    width: 100%;
    justify-content: flex-start;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .cta-nav {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  /* Backdrop overlay when nav open */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
    backdrop-filter: blur(2px);
  }

  /* Hero adjustments */
  .hero { padding: 110px 24px 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(28px, 5vw, 42px); }
  .subtitle { font-size: 16px; }
  .mock { max-width: 480px; margin: 0 auto; }

  /* Section spacing */
  section { padding: 64px 24px; }
  .section-inner { padding: 0; }

  /* Grids reduce columns */
  .values-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 20px;
  }
  .pricing-card.featured {
    transform: none;
  }

  /* Stats */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Product cards on hub */
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .services-secondary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comparison table — make scrollable */
  .comparison-table-wrapper,
  .penalty-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 600px; }

  /* Section titles */
  .section-title { font-size: clamp(28px, 4.5vw, 40px); }

  /* Promo strip & nav offset */
  .nav { top: 38px !important; }
  .hero, main > section:first-of-type, .article-hero {
    padding-top: 130px !important;
  }
}

/* ========================================
   SM: 481–767 (large phone / small tablet)
   ======================================== */
@media (max-width: 767px) {
  /* Tighter padding everywhere */
  .nav { padding: 10px 16px; }
  .logo { font-size: 22px; }
  section { padding: 48px 16px; }
  .hero { padding: 110px 16px 48px; }

  /* Hero text sizing */
  .hero h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.2; }
  .subtitle { font-size: 15px; }
  .hero-badge { font-size: 10px; padding: 6px 12px; }
  .breadcrumb { font-size: 11px; margin-bottom: 16px; }

  /* CTA buttons full-width stacked */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Trust row wraps neatly */
  .trust-row {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  /* Section title */
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .section-subtitle { font-size: 14px; }
  .section-tag { font-size: 10px; }

  /* Grids → single column */
  .values-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .value-card { padding: 20px; }
  .feature-card { padding: 20px; }

  /* Services hub */
  .services-secondary-grid {
    grid-template-columns: 1fr;
  }
  .service-card { padding: 20px; }

  /* Stats: 2 cols still ok */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11px; }

  /* Pricing card adjustments */
  .pricing-card { padding: 24px 20px; }
  .pricing-amount {
    font-size: 32px;
    flex-wrap: wrap;
  }
  .pricing-amount .number { font-size: 36px; }
  .pricing-amount .currency { font-size: 18px; }
  .pricing-amount .price-old { font-size: 18px; }
  .pricing-features { font-size: 13px; }

  /* Mockup */
  .mock { padding: 16px; font-size: 12px; }
  .mock-header { font-size: 11px; }
  .mock-title { font-size: 10px; }
  .mock-row { padding: 6px 0; font-size: 11px; }

  /* Promo banner & strip */
  .promo-banner { font-size: 11px; padding: 5px 12px; }
  .free-trial-badge { font-size: 11px; padding: 5px 12px; }
  .global-promo-strip {
    font-size: 11px;
    padding: 8px 12px;
    line-height: 1.4;
  }
  .nav { top: 48px !important; }  /* strip wraps 2 lines */
  .hero, main > section:first-of-type, .article-hero {
    padding-top: 140px !important;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 40px 16px 24px;
  }
  .footer-col h4 { margin-bottom: 12px; }

  /* Tables: smaller text + horizontal scroll */
  .penalty-table,
  table {
    font-size: 12px;
    min-width: 540px;
  }
  .penalty-table th, .penalty-table td,
  table th, table td {
    padding: 8px 10px;
  }

  /* Article body */
  .article-hero { padding: 110px 16px 40px; }
  .article-body { padding: 40px 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .article-body p,
  .article-body ul,
  .article-body ol { font-size: 15px; }
  .toc { padding: 20px; }
  .info-box { padding: 16px 18px; }
  .case-card { padding: 20px; }
  .bottom-cta { padding: 28px 20px; }
  .bottom-cta h3 { font-size: 20px; }
  .bottom-cta p { font-size: 14px; }
  .rights-grid { grid-template-columns: 1fr; }

  /* Diagrams need horizontal centering */
  .diagram-container { padding: 16px; }
  .diagram-container svg { max-width: 100%; height: auto; }
}

/* ========================================
   XS: ≤ 480 (small phone)
   ======================================== */
@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .hamburger { width: 36px; height: 36px; }
  .nav { padding: 8px 12px; }

  /* Hero — even tighter */
  .hero { padding: 100px 12px 40px; }
  .hero h1 {
    font-size: clamp(22px, 8vw, 30px);
    line-height: 1.25;
  }
  .subtitle { font-size: 14px; line-height: 1.6; }
  section { padding: 40px 12px; }

  /* Stats: single column on tiny screens */
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat-num { font-size: 24px; }

  /* Pricing — extra compact */
  .pricing-card { padding: 20px 16px; }
  .pricing-amount .number { font-size: 30px; }
  .pricing-name { font-size: 20px; }
  .pricing-tagline { font-size: 13px; }

  /* Promo strip more compact */
  .global-promo-strip { font-size: 10px; padding: 7px 8px; }

  /* Section titles */
  .section-title { font-size: clamp(22px, 7vw, 28px); }

  /* Cards padding */
  .value-card { padding: 16px; }
  .feature-card { padding: 16px; }
  .service-card { padding: 16px; }

  /* Mobile nav drawer width */
  .nav-links { width: 100%; max-width: 100%; }

  /* Mockup */
  .mock { padding: 12px; }
}

/* ========================================
   FLUID TYPOGRAPHY — Smooth scaling
   ======================================== */
:root {
  --fluid-h1: clamp(26px, 5vw, 58px);
  --fluid-h2: clamp(22px, 4vw, 42px);
  --fluid-h3: clamp(18px, 3vw, 26px);
  --fluid-body: clamp(14px, 1.1vw, 16px);
}

/* ========================================
   PREVENT HORIZONTAL SCROLL ON ANY VIEWPORT
   ======================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
img, video, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* ========================================
   TOUCH-FRIENDLY TAP TARGETS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Make all interactive elements ≥44x44px (Apple HIG / WCAG) */
  a, button, .nav-link, .nav-dropdown-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .lang-toggle button {
    min-height: 36px;
    padding: 8px 14px;
  }
}

/* ========================================
   PRINT STYLES (bonus — clean printing)
   ======================================== */
@media print {
  .nav, .global-promo-strip, .hero-cta, .cta-section, footer { display: none; }
  body { color: black; background: white; }
  .hero { padding-top: 20px; }
  a { color: black; text-decoration: underline; }
}
