/* ==========================================================================
   SN FARM SaaS — Public Website & Marketing Landing Page
   Aesthetic: Warm organic paper tones, crisp slate typography, forest & teal accents.
   Supports: Light mode, Dark mode, English & Sinhala typography, PWA offline.
   ========================================================================== */

.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  z-index: 50;
}

html[lang="si"] .landing-page {
  font-family: 'Noto Sans Sinhala', 'DM Sans', sans-serif;
}

/* Container */
.landing-container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

@media (min-width: 1440px) {
  .landing-container {
    width: min(100% - 64px, 1360px);
  }
}

/* --------------------------------------------------------------------------
   Sticky Top Navigation Bar
   -------------------------------------------------------------------------- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 233, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 220, 212, 0.7);
  transition: background 0.25s, border-color 0.25s;
}

html[data-theme="dark"] .landing-header {
  background: rgba(23, 29, 38, 0.88);
  border-bottom: 1px solid rgba(52, 61, 73, 0.7);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.landing-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(25, 30, 53, 0.15);
}

html[data-theme="dark"] .landing-brand .brand-mark {
  background: var(--teal);
  color: #0d1a24;
}

.landing-brand .brand-word {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1.4px;
}

.landing-brand .brand-word span {
  color: var(--teal);
}

.landing-badge-saas {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(21, 157, 157, 0.12);
  color: var(--teal);
  border: 1px solid rgba(21, 157, 157, 0.25);
  text-transform: uppercase;
  margin-left: 3px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  padding: 6px 2px;
}

.landing-nav-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav-actions .preference-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.landing-nav-actions .preference-toggle:hover {
  transform: translateY(-1px);
}

.landing-btn-signin {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.landing-btn-signin:hover {
  background: var(--card);
  border-color: rgba(0, 0, 0, 0.15);
}

.landing-btn-primary {
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: var(--navy);
  padding: 9px 18px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--navy);
  box-shadow: 0 4px 14px rgba(25, 30, 53, 0.16);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.landing-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(25, 30, 53, 0.22);
}

html[data-theme="dark"] .landing-btn-primary {
  background: #dde7e4;
  color: #19232a !important;
  border-color: #dde7e4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.landing-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  place-items: center;
  cursor: pointer;
}

.landing-mobile-menu-btn .icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.landing-hero {
  position: relative;
  padding: clamp(48px, 8vh, 88px) 0 clamp(40px, 6vh, 64px);
  text-align: center;
  overflow: hidden;
}

.landing-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(circle, rgba(21, 157, 157, 0.13) 0%, rgba(56, 148, 108, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}

html[data-theme="dark"] .landing-hero-glow {
  background: radial-gradient(circle, rgba(80, 189, 179, 0.16) 0%, rgba(131, 196, 161, 0.08) 50%, transparent 70%);
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-inline: auto;
}

.landing-announcement {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.landing-announcement .pill-icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.landing-hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 650;
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}

html[lang="si"] .landing-hero h1 {
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.landing-hero h1 .highlight-text {
  background: linear-gradient(135deg, #159d9d 0%, #38946c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .landing-hero h1 .highlight-text {
  background: linear-gradient(135deg, #50bdb3 0%, #83c4a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-lead {
  font-size: clamp(15px, 1.9vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

html[lang="si"] .landing-hero-lead {
  line-height: 1.85;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.landing-btn-large {
  padding: 13px 26px;
  font-size: 14.5px;
  border-radius: 14px;
}

.landing-btn-outline {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 13px 24px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s, border-color 0.15s;
}

.landing-btn-outline:hover {
  transform: translateY(-1.5px);
  border-color: rgba(0, 0, 0, 0.2);
}

.landing-trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}

.landing-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-trust-pill .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Interactive Live Showcase Container
   -------------------------------------------------------------------------- */
.landing-preview-section {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  margin-bottom: 70px;
}

.landing-window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(25, 30, 53, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

html[data-theme="dark"] .landing-window {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.landing-window-chrome {
  height: 48px;
  background: rgba(238, 236, 231, 0.6);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

html[data-theme="dark"] .landing-window-chrome {
  background: rgba(28, 35, 47, 0.8);
}

.landing-window-dots {
  display: flex;
  gap: 7px;
}

.landing-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4cfc5;
}

html[data-theme="dark"] .landing-window-dots span {
  background: #444f60;
}

.landing-window-dots span:nth-child(1) { background: #ea7064; }
.landing-window-dots span:nth-child(2) { background: #f4c053; }
.landing-window-dots span:nth-child(3) { background: #60c578; }

.landing-window-title {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.landing-window-title .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.landing-window-tabs {
  display: flex;
  background: rgba(243, 240, 233, 0.4);
  border-bottom: 1px solid var(--line);
  padding: 8px 18px 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-theme="dark"] .landing-window-tabs {
  background: rgba(21, 26, 36, 0.4);
}

.landing-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.landing-tab-btn:hover {
  color: var(--ink);
}

.landing-tab-btn.active {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.02);
}

.landing-tab-btn .icon {
  width: 16px;
  height: 16px;
}

.landing-preview-body {
  padding: clamp(18px, 3vh, 32px);
  min-height: 480px;
}

.landing-demo-view {
  display: none;
}

.landing-demo-view.active {
  display: block;
  animation: landingFade 0.25s ease-out;
}

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

/* --------------------------------------------------------------------------
   POS Demo View Inside Preview
   -------------------------------------------------------------------------- */
.demo-pos-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 22px;
}

@media (max-width: 960px) {
  .demo-pos-grid {
    grid-template-columns: 1fr;
  }
}

.demo-products-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.demo-prod-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-prod-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(21, 157, 157, 0.1);
}

.demo-prod-tag {
  font-size: 9px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
}

.demo-prod-name {
  font-size: 12.5px;
  font-weight: 600;
  margin: 6px 0 2px;
  color: var(--ink);
}

.demo-prod-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-prod-price span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--line);
}

.demo-basket-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.demo-basket-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.demo-basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card);
  font-size: 12px;
}

.demo-basket-item strong {
  font-size: 12px;
}

.demo-pay-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.demo-pay-btn {
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  text-align: center;
}

.demo-pay-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

html[data-theme="dark"] .demo-pay-btn.active {
  background: var(--teal);
  color: #0c1a24;
}

.demo-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 13px;
}

.demo-total-row strong {
  font-size: 22px;
  color: var(--ink);
}

.demo-sale-trigger {
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
}

.demo-sale-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   Khata Demo View
   -------------------------------------------------------------------------- */
.demo-khata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.demo-khata-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.demo-khata-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.demo-khata-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-khata-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e6dfd1;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  color: #55493b;
}

html[data-theme="dark"] .demo-khata-avatar {
  background: #344052;
  color: #c9d7e5;
}

.demo-khata-balance {
  margin: 16px 0;
}

.demo-khata-balance small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.demo-khata-balance strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.demo-limit-bar {
  height: 6px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.demo-limit-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--teal);
}

.demo-limit-fill.warning {
  background: #cf785f;
}

.demo-khata-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-khata-actions button {
  flex: 1;
  font-size: 11px;
  font-weight: 550;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Stock Demo View
   -------------------------------------------------------------------------- */
.demo-stock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.demo-stock-table th {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.demo-stock-table td {
  padding: 14px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.demo-stock-table tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Reports Demo View
   -------------------------------------------------------------------------- */
.demo-report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.demo-report-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.demo-report-card small {
  font-size: 11px;
  color: var(--muted);
}

.demo-report-card strong {
  display: block;
  font-size: 24px;
  font-weight: 650;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.demo-chart-bars {
  display: flex;
  align-items: flex-end;
  height: 140px;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.demo-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.demo-bar {
  width: 100%;
  max-width: 42px;
  border-radius: 6px 6px 0 0;
  background: var(--line);
  height: var(--bar-height, 40%);
  transition: height 0.3s, background 0.2s;
}

.demo-bar.highlight {
  background: linear-gradient(180deg, #f8d8b1 0%, #159d9d 100%);
}

.demo-bar-lbl {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Stats / Social Proof Strip
   -------------------------------------------------------------------------- */
.landing-stats-strip {
  padding: 30px 0 70px;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .landing-stats-grid {
    grid-template-columns: 1fr;
  }
}

.landing-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.landing-stat-val {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.landing-stat-lbl {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Core Features Grid (6 High-Impact Cards)
   -------------------------------------------------------------------------- */
.landing-section {
  padding: 70px 0;
  position: relative;
}

.landing-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.landing-section-tag {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.landing-section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.landing-section-head p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

.landing-feat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.landing-feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 157, 157, 0.4);
  box-shadow: 0 10px 30px rgba(21, 157, 157, 0.08);
}

.landing-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(21, 157, 157, 0.1);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.landing-feat-icon .icon {
  width: 24px;
  height: 24px;
}

.landing-feat-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}

.landing-feat-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  flex: 1;
}

.landing-feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
}

.landing-feat-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-feat-list .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Comparison Table Section
   -------------------------------------------------------------------------- */
.landing-comparison-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.landing-compare-table th,
.landing-compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.landing-compare-table th {
  background: rgba(243, 240, 233, 0.5);
  font-weight: 650;
  color: var(--muted);
}

html[data-theme="dark"] .landing-compare-table th {
  background: rgba(26, 33, 44, 0.7);
}

.landing-compare-table th.col-highlight,
.landing-compare-table td.col-highlight {
  background: rgba(21, 157, 157, 0.05);
  font-weight: 600;
  color: var(--ink);
}

.landing-compare-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
}

.landing-compare-cross {
  color: #c9715a;
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.landing-pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 100px;
  margin: 0 auto 40px;
}

.landing-toggle-btn {
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 100px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.landing-toggle-btn.active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(25, 30, 53, 0.15);
}

html[data-theme="dark"] .landing-toggle-btn.active {
  background: #dde7e4;
  color: #19232a;
}

.landing-save-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green);
  background: rgba(56, 148, 108, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.landing-price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-price-card.popular {
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(21, 157, 157, 0.12);
  transform: scale(1.02);
}

@media (max-width: 960px) {
  .landing-price-card.popular {
    transform: none;
  }
}

.landing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(21, 157, 157, 0.3);
}

.landing-price-plan {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.landing-price-val {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1.1;
  margin: 10px 0 6px;
}

.landing-price-val span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}

.landing-price-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 40px;
}

.landing-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.landing-price-features li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.landing-price-features .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

.landing-price-btn {
  width: 100%;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .landing-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.landing-test-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-test-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: italic;
}

.landing-test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ede6d9;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #635342;
  font-size: 13px;
}

html[data-theme="dark"] .landing-test-avatar {
  background: #313d4f;
  color: #cfdbe8;
}

.landing-test-meta strong {
  font-size: 13px;
  display: block;
}

.landing-test-meta small {
  font-size: 11px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.landing-faq-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.landing-faq-item.active {
  border-color: var(--teal);
}

.landing-faq-question {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.landing-faq-question .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.landing-faq-item.active .landing-faq-question .icon {
  transform: rotate(180deg);
  color: var(--teal);
}

.landing-faq-answer {
  padding: 0 22px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  display: none;
}

.landing-faq-item.active .landing-faq-answer {
  display: block;
  animation: landingFade 0.2s ease-out;
}

/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.landing-cta-banner {
  margin: 60px 0 40px;
  border-radius: 30px;
  background: var(--navy);
  color: #fff;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(25, 30, 53, 0.25);
}

html[data-theme="dark"] .landing-cta-banner {
  background: #111724;
  border: 1px solid rgba(80, 189, 179, 0.2);
}

.landing-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(21, 157, 157, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.landing-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.landing-cta-banner h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

.landing-cta-banner p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

.landing-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-btn-white {
  background: #fff !important;
  color: #191e35 !important;
  font-weight: 600;
  border: 1px solid #fff;
}

.landing-btn-white:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.landing-btn-trans {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.landing-btn-trans:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 40px;
  background: rgba(243, 240, 233, 0.5);
  font-size: 13px;
  color: var(--muted);
}

html[data-theme="dark"] .landing-footer {
  background: rgba(21, 26, 36, 0.6);
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 840px) {
  .landing-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 500px) {
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }
}

.landing-footer-col h4 {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.landing-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer-col a:hover {
  color: var(--ink);
}

.landing-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--green);
  background: rgba(56, 148, 108, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 14px;
}

.landing-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: landingPulse 2s infinite;
}

@keyframes landingPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 148, 108, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 148, 108, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 148, 108, 0); }
}

.landing-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Back to Landing navigation in Onboarding Gate
   -------------------------------------------------------------------------- */
.cloud-back-to-landing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.cloud-back-to-landing:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .cloud-back-to-landing:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cloud-back-to-landing .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer (When expanded)
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
  .landing-nav-links {
    display: none;
  }
  .landing-mobile-menu-btn {
    display: grid;
  }
  .landing-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 16px;
    z-index: 99;
  }
}
