/**
 * Seopod Unified Design Tokens & Core Component Styles
 * Baseline: pricing.html & Tuntasin aesthetic (warm limestone canvas #F7F6F3, zinc #18181B, emerald #00805A)
 */

:root {
  /* Canvas & Surfaces */
  --color-canvas: #F7F6F3;
  --bg: #F7F6F3;
  --canvas: #F7F6F3;
  --canvas-alt: #F7F6F3;
  --color-surface-card: #FFFFFF;
  --surface: #FFFFFF;
  --color-surface-subtle: #FAFAFA;
  --surface-subtle: #FAFAFA;
  --color-surface-muted: #F4F4F5;
  --surface-muted: #F4F4F5;
  --color-surface-active: #F0FDF4;

  /* Border Tokens */
  --color-border-subtle: #E4E4E7;
  --border: #E4E4E7;
  --border-light: #F4F4F5;
  --color-border-strong: #D4D4D8;
  --border-dark: #D4D4D8;
  --color-border-focus: #00805A;
  --color-border-accent: #A7F3D0;
  --primary-soft-border: #A7F3D0;

  /* Primary Brand: Emerald / Forest Green */
  --color-primary: #00805A;
  --primary: #00805A;
  --color-primary-hover: #006847;
  --primary-hover: #006847;
  --color-primary-soft: #ECFDF5;
  --primary-soft: #ECFDF5;
  --color-primary-text: #065F46;

  /* Neutral Text Hierarchy */
  --color-text-primary: #18181B;
  --text: #18181B;
  --text-ink: #18181B;
  --color-text-secondary: #52525B;
  --text-secondary: #52525B;
  --color-text-muted: #71717A;
  --text-muted: #71717A;
  --text-soft: #A1A1AA;
  --color-text-inverse: #FFFFFF;
  --zinc-badge: #F4F4F5;

  /* Status Colors */
  --danger: #EF4444;
  --danger-soft: #FEF2F2;
  --danger-border: #FECACA;
  --danger-ink: #991B1B;
  --warning: #F59E0B;
  --warning-soft: #FFFBEB;
  --warning-border: #FDE68A;
  --warning-ink: #92400E;

  /* Typography Scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  /* Shadows (Flat, clean elevation) */
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Reset / Base body styling */
body {
  background-color: var(--color-canvas) !important;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}

/* ==========================================================================
   Unified Header Navigation Bar
   ========================================================================== */
#nav, .site-navbar, .navbar, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
  width: 100%;
}

.nav-inner, .site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo, .site-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark, .site-navbar-brand-mark {
  width: 28px;
  height: 28px;
  background-color: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-links, .site-navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a, .site-navbar-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active,
.site-navbar-menu a:hover, .site-navbar-menu a.active {
  color: var(--primary);
  font-weight: 600;
}

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

.nav-toggle, .site-navbar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-links, .site-navbar-menu {
    display: none;
  }
  .nav-links.open, .site-navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-dropdown);
  }
  .nav-toggle, .site-navbar-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .nav-actions, .site-navbar-actions {
    gap: 0.35rem;
  }
  .nav-actions .btn, .site-navbar-actions .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Unified Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border-subtle);
}

.btn-secondary:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-border-strong);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ==========================================================================
   Unified Footer System
   ========================================================================== */
.site-footer-common {
  background-color: var(--color-canvas);
  border-top: 1px solid var(--color-border-subtle);
  padding: 32px 0;
  width: 100%;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.site-footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   Pricing Advantage Section Component Styles
   ========================================================================== */
.cost-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.usage-driver {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-left: 4px solid #00805A;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #18181B;
}

.usage-driver p {
  margin: 0;
  color: #18181B;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.cost-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-subtle, 0 1px 2px rgba(0, 0, 0, 0.04));
  display: flex;
  flex-direction: column;
}

.cost-legacy {
  border-top: 4px solid #991B1B;
}

.cost-seopod {
  border-top: 4px solid #00805A;
  background: #FFFFFF;
  position: relative;
}

.cost-card-header {
  margin-bottom: 1.25rem;
}

.cost-badge {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.cost-badge-danger {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.cost-badge-primary {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.cost-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #18181B;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.cost-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: #71717A;
}

.cost-summary {
  font-size: 0.88rem;
  color: #71717A;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F4F4F5;
}

.cost-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #52525B;
}

.cost-features li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.cost-features li strong {
  color: #18181B;
}

.cost-legacy .cost-features li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  top: 0;
  color: #991B1B;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.cost-seopod .cost-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #00805A;
  font-weight: 700;
}

.estimator-callout {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0, 0, 0, 0.04));
}

.estimator-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #18181B;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.estimator-desc {
  font-size: 0.95rem;
  color: #71717A;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.estimator-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.estimator-microcopy {
  font-size: 0.78rem;
  color: #A1A1AA;
  max-width: 520px;
  line-height: 1.4;
}

.cost-card,
.usage-driver,
.estimator-callout {
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Button Large variant */
.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .cost-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .cost-wrap {
    padding: 0;
  }
  .usage-driver {
    padding: 0.85rem 1rem;
  }
  .cost-card {
    padding: 1.5rem 1.25rem;
  }
  .cost-amount {
    font-size: 1.35rem;
  }
  .cost-period {
    display: inline;
  }
  .estimator-callout {
    padding: 1.5rem 1rem;
  }
  .estimator-title {
    font-size: 1.2rem;
  }
  .estimator-desc {
    font-size: 0.9rem;
  }
  .estimator-action .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 320px) {
  .usage-driver {
    padding: 0.75rem 0.75rem;
    font-size: 0.88rem;
  }
  .cost-card {
    padding: 1.25rem 0.75rem;
  }
  .cost-amount {
    font-size: 1.2rem;
  }
  .estimator-callout {
    padding: 1.25rem 0.75rem;
  }
  .cost-features li {
    padding-left: 1rem;
    font-size: 0.84rem;
  }
}


