/* ==========================================================================
   IMAPVIEW MARKETING DESIGN SYSTEM & STYLESHEET
   Clean, plain, and simple styling. No fancy effects, no jumping animations,
   no glowing gradients. High contrast, professional, and fast.
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Brand Colors - Crisp & Solid */
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #f0f9ff;
  --primary-border: #bae6fd;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  
  /* Light Theme (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-subtle: #f8fafc;
  --border-color: #e2e8f0;
  --border-color-focus: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --primary-light: #082f49;
  --primary-border: #0369a1;
  --accent-emerald: #34d399;
  --accent-emerald-light: #064e3b;
  --accent-amber: #fbbf24;
  --accent-amber-light: #451a03;
  
  /* Dark Theme */
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-surface-subtle: #0f172a;
  --border-color: #1f293d;
  --border-color-focus: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 5px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.brand-logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Unified imapView SVG Wordmark */
.imapview-brand-svg {
  height: 1.1em;
  width: auto;
  vertical-align: -0.15em;
  display: inline-block;
  overflow: visible;
  line-height: 1;
}

.brand-logo .imapview-brand-svg {
  height: 1.15rem;
  vertical-align: middle;
}

.imapview-blue-part {
  fill: var(--primary);
}

.imapview-blue-stroke {
  stroke: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Buttons - Plain & Clean */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-surface-elevated);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 1.25rem auto 1.25rem;
  max-width: 900px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Audience Split Grid */
.audience-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

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

.audience-header {
  margin-bottom: 1.25rem;
}

.audience-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.audience-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.audience-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.audience-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.audience-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.45;
}

.audience-features .icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.audience-price-tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.audience-price-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
}

.audience-price-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  max-width: 950px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Showcase Grid */
.section-padding {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-top: 0.65rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

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

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.feature-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Sources Bar */
.sources-bar {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.sources-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.source-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-main);
}

/* Pricing Grid - 4 Columns Equal & Neutral */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease;
}

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

.plan-header {
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.plan-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  min-height: 2.4rem;
  line-height: 1.45;
}

.plan-price-box {
  margin: 1rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.plan-currency {
  font-size: 1.35rem;
  vertical-align: super;
  font-weight: 700;
}

.plan-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.plan-subprice {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.plan-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.65rem;
  border: 1px solid var(--border-color);
}

.plan-features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-main);
}

.plan-feature-item .icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-emerald);
}

/* Plain Top-Up Info Card */
.topup-box {
  margin-top: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.75rem;
}

.topup-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.topup-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topup-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
  text-align: center;
  min-width: 140px;
}

/* PDF & Sharelink Highlight Banner */
.pdf-highlight-banner {
  margin: 3rem 0;
  padding: 2.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.pdf-banner-content {
  flex: 1 1 500px;
}

.pdf-banner-title {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.pdf-banner-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  font-weight: 800;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-chevron {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.35rem 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: none;
}

.faq-card.open .faq-answer {
  display: block;
}

/* Solid CTA Banner - Plain & High Contrast */
.cta-banner-solid {
  background: #0f172a;
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

[data-theme="dark"] .cta-banner-solid {
  background: #0284c7;
}

.cta-banner-solid h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.cta-banner-solid p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-stats-row {
    gap: 1.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
