/*
 * PulseOps marketing site — aligned with app shell (monitor/frontend app.css)
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

/* ========== Design tokens (match app) ========== */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #f1f5f9;
  --color-border-strong: #e2e8f0;
  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-muted: #64748b;
  --color-muted-light: #94a3b8;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-success: #22c55e;
  --color-focus-ring: rgba(59, 130, 246, 0.25);

  --container-width: 1200px;
  --container-max: 1200px;
  --container-pad: 24px;
  --container-pad-tablet: 20px;
  --container-pad-mobile: 16px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;

  --section-gap: 64px;
  --section-gap-tablet: 56px;
  --section-gap-mobile: 48px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 4px 16px rgba(15, 23, 42, 0.08);

  /* Marketing navbar (dark bar; body stays light) */
  --navbar-bg: #0f172a;
  --navbar-border: rgba(148, 163, 184, 0.14);
  --navbar-link: #94a3b8;
  --navbar-link-hover: #f1f5f9;
  --navbar-link-active: #93c5fd;
  --navbar-ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --navbar-focus-ring: rgba(96, 165, 250, 0.45);

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --text-hero: clamp(2rem, 4vw, 2.75rem);
  --text-h2: clamp(1.5rem, 3vw, 2rem);
  --text-h3: 1.125rem;
  --text-body: 16px;
  --text-small: 14px;
  --line-tight: 1.25;
  --line-body: 1.55;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-body);
  line-height: var(--line-body);
  font-family: var(--font-body);
}

/* Shell placeholders before components load */
#site-navbar {
  min-height: 64px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
}
#site-footer {
  min-height: 140px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-top: 48px;
  padding-bottom: 48px;
}

.section--cta {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, rgba(248, 250, 252, 0) 100%);
  border-top: 1px solid var(--color-border);
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero {
  padding-top: 80px;
  padding-bottom: 64px;
}

.hero-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-light);
  font-size: var(--text-small);
  text-align: center;
  border-style: dashed !important;
  border-color: var(--color-border-strong) !important;
  background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
}

.hero-visual--product {
  padding: 0;
  border-style: solid !important;
  border-color: #dbe6f5 !important;
  overflow: hidden;
}

.hero-product-image {
  display: block;
  width: 100%;
  height: auto;
}

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

h1, h2, h3, p { margin: 0 0 var(--space-sm) 0; }
h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--line-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--line-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}
h2 + p {
  margin-bottom: 24px;
}
h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--line-tight);
  color: var(--color-text);
}
p {
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--color-text-secondary);
}
.text-small { font-size: var(--text-small); color: var(--color-muted); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-body);
  max-width: 100%;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-muted-light);
  color: var(--color-text);
}
.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border: 1px solid transparent;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg);
}
.btn-nav {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}
.btn:focus { outline: none; }

/* Cards */
.card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: #e2e8f0;
}
.card:focus-within {
  box-shadow: var(--shadow-card-hover);
}
.card-title { margin-bottom: var(--space-xs); }
.card-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: var(--line-body);
}
.card a {
  color: var(--color-text);
  text-decoration: none;
}
.card a:hover .card-title {
  color: var(--color-primary);
}

.grid-2 > *,
.grid-3 > * { min-width: 0; }
.grid-2 > .card,
.grid-3 > .card { height: 100%; }
.card { overflow-wrap: break-word; }

main .section .container > p,
main .section .container > .text-muted {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.hero-actions--center {
  justify-content: center;
  margin-top: var(--space-md);
}

input, textarea, select { max-width: 100%; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Contact / embedded forms */
main .card form p {
  margin: 0 0 var(--space-sm) 0;
}
main .card form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 4px;
}
main .card form input[type="text"],
main .card form input[type="email"],
main .card form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
}
main .card form textarea {
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
}

@media (max-width: 1024px) {
  .container {
    padding-left: var(--container-pad-tablet);
    padding-right: var(--container-pad-tablet);
  }
  .section { padding: var(--section-gap-tablet) 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .navbar-container,
  .footer-container {
    padding-left: var(--container-pad-tablet);
    padding-right: var(--container-pad-tablet);
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
  }
  .section { padding: var(--section-gap-mobile) 0; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .navbar-container {
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
    flex-wrap: nowrap;
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
  }
  .site-navbar { height: auto; min-height: 64px; overflow: visible; }
  .navbar-logo { height: auto; min-height: 40px; }
  .navbar-logo__img { height: 32px; max-height: 32px; }
  .navbar-toggle { display: inline-flex; margin-left: auto; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--container-pad-mobile);
    right: var(--container-pad-mobile);
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: #111827;
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
    padding: 12px;
  }
  .site-navbar.is-open .navbar-menu { display: flex; }
  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(2) { opacity: 0; }
  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navbar-links {
    width: 100%;
    margin-left: 0;
    gap: 8px 10px;
    justify-content: flex-start;
    flex: 0;
  }
  .navbar-links li { flex: 1 1 calc(33.333% - 8px); min-width: 96px; }
  .navbar-links a {
    display: block;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
  }
  .navbar-links a:hover { background: rgba(255, 255, 255, 0.1); }
  .navbar-cta {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--navbar-border);
  }
  .navbar-cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer-container {
    flex-direction: column;
    gap: var(--space-md);
    padding-left: var(--container-pad-mobile);
    padding-right: var(--container-pad-mobile);
  }
}

@media (max-width: 420px) {
  .navbar-links li { flex-basis: calc(50% - 8px); }
  .navbar-cta { flex-direction: column; align-items: stretch; }
  .navbar-cta .btn { width: 100%; }
}

#page-content {
  min-height: 40vh;
}

/* ========== Navbar (dark bar; logo tuned for dark backgrounds) ========== */
.site-navbar {
  min-height: 64px;
  height: 64px;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.navbar-logo {
  color: var(--navbar-link-hover);
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
}
.navbar-logo__img {
  max-width: none;
  height: 36px;
  max-height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.navbar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navbar-border);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--navbar-focus-ring);
}
.navbar-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar-menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.navbar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-start;
  margin-left: 8px;
}
.navbar-links a {
  color: var(--navbar-link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.navbar-links a:hover { color: var(--navbar-link-hover); }
.navbar-links a.active {
  color: var(--navbar-link-active);
  font-weight: 600;
}
.navbar-links a:focus-visible {
  box-shadow: 0 0 0 3px var(--navbar-focus-ring);
  border-radius: 4px;
}
.navbar-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.site-navbar .navbar-cta .btn-ghost {
  color: #cbd5e1;
  border-color: transparent;
}
.site-navbar .navbar-cta .btn-ghost:hover {
  color: var(--navbar-link-hover);
  background: var(--navbar-ghost-hover-bg);
}
.site-navbar .navbar-cta .btn:focus-visible {
  box-shadow: 0 0 0 3px var(--navbar-focus-ring);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  min-height: 140px;
}
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: var(--space-lg);
}
.footer-column h4 {
  margin: 0 0 var(--space-sm) 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li:last-child { margin-bottom: 0; }
.footer-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-small);
  display: inline-block;
  font-weight: 500;
}
.footer-column a:hover { color: var(--color-primary); }
.footer-column a:focus-visible {
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  border-radius: 4px;
}

/* ========== Pricing ========== */
.pricing-hero-support {
  margin: 0 auto;
  font-size: var(--text-small);
  color: var(--color-muted);
  max-width: 560px;
}
.pricing-section {
  padding-top: var(--space-md);
  padding-bottom: var(--section-gap);
}
.pricing-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-comparison-title {
  margin-top: 0;
  margin-bottom: var(--space-xs);
}
.pricing-comparison-intro {
  margin-bottom: var(--space-md);
}

/* Currency selector (pricing) */
.pricing-currency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 auto var(--space-md);
  padding: var(--space-sm) var(--space-md);
  max-width: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.pricing-currency__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.pricing-currency__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pricing-currency__inner::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-muted);
  pointer-events: none;
}
.pricing-currency__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 200px;
  max-width: 100%;
  padding: 10px 38px 10px 14px;
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pricing-currency__select:hover {
  border-color: var(--color-muted-light);
  background: var(--color-surface);
}
.pricing-currency__select:focus {
  outline: none;
}
.pricing-currency__select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}
@media (max-width: 480px) {
  .pricing-currency {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }
  .pricing-currency__inner { width: 100%; }
  .pricing-currency__select {
    width: 100%;
    min-width: 0;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card .pricing-price {
  margin: var(--space-sm) 0 var(--space-xs) 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}
.pricing-card .pricing-addl {
  margin: 0 0 var(--space-sm) 0;
  font-size: 13px;
}
.pricing-card .btn { margin-top: auto; }
.pricing-trust {
  margin: var(--space-xs) 0 0 0;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}
.pricing-label {
  display: inline-block;
  margin-bottom: var(--space-xs);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
}
.pricing-highlight {
  background: rgba(59, 130, 246, 0.06);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.pricing-highlight .pricing-label {
  background: var(--color-primary);
  color: #fff;
}

.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-small);
  table-layout: fixed;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-table .col-feature { width: 32%; }
.pricing-table .col-plan { width: 17%; }
.pricing-table th,
.pricing-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.pricing-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
  position: sticky;
  top: 0;
  z-index: 1;
}
.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
  text-align: center;
}
.pricing-table tbody tr:not(.feature-category):not(.pricing-addl-hosts):nth-child(even) {
  background: rgba(248, 250, 252, 0.8);
}
.pricing-table .feature-category td {
  background: #f1f5f9;
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
  padding: 10px 18px;
  border-bottom: 1px solid var(--color-border-strong);
}
.pricing-table .feature-category td strong {
  color: var(--color-text);
}
.pricing-table td:first-child {
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-left: 18px;
}
.pricing-table .pricing-included {
  color: var(--color-primary);
  font-weight: 600;
}
.pricing-table .pricing-excluded {
  color: #dc2626;
}
.pricing-table .pricing-addl-hosts td {
  background: var(--color-bg);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.pricing-table .pricing-addl-hosts td:first-child {
  color: var(--color-muted);
  font-size: 0.95em;
}
.pricing-table thead th {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-strong);
  font-size: 0.95rem;
  background: var(--color-bg);
}
.pricing-table thead th:first-child { min-width: 0; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-table-wrapper {
    margin: 0 calc(-1 * var(--container-pad-mobile));
    padding: 8px var(--container-pad-mobile) 12px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    /* Wider min-width below — scroll horizontally instead of squashing columns */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
  /* Keep table wide enough for readable columns; no layout squashing */
  .pricing-table {
    min-width: 940px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .pricing-plan-header th:not(:first-child) {
    min-width: 152px;
  }
  .pricing-table td:first-child {
    min-width: 200px;
  }
}

.pricing-cta-row td {
  text-align: center;
  padding: 20px 10px;
}

.btn-table {
  font-size: 13px;
  padding: 0 14px;
  min-height: 36px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-table:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.pricing-plan-header th { vertical-align: top; }
.pricing-plan-header th:first-child { padding: 20px 18px; }
.pricing-plan-header th:not(:first-child) {
  min-width: 0;
  padding: 20px 16px;
  width: 16%;
}

.plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 210px;
  height: auto;
  padding: 0;
}
.plan-header .btn-table { margin-top: auto; }
.plan-header .plan-hosts:first-of-type {
  min-height: 38px;
}
.plan-header .btn-table {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
  padding: 8px 10px;
  min-height: 40px;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (min-width: 769px) {
  .plan-header .btn-table {
    white-space: nowrap;
    max-width: 160px;
    padding: 0 14px;
    min-height: 36px;
    hyphens: manual;
    overflow-wrap: normal;
  }
}

.pricing-plan-header th:not(.plan-highlight) .plan-header::before {
  content: "";
  display: block;
  height: 28px;
  margin-bottom: 2px;
}

.plan-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.plan-price {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
  line-height: 1.3;
}
.plan-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted);
}
.plan-hosts {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.plan-highlight {
  background: rgba(59, 130, 246, 0.04);
  border: 2px solid var(--color-primary);
  border-bottom: none;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.pricing-table tbody td:nth-child(3) {
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
}
.pricing-table tbody tr:last-child td:nth-child(3) {
  border-bottom: 2px solid var(--color-primary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.pricing-table tbody tr:not(.feature-category):not(.pricing-addl-hosts):hover td {
  background: rgba(59, 130, 246, 0.04);
}

/* ===== Navbar mobile dropdown overrides (placed last to avoid load-order regressions) ===== */
.navbar-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle-label {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1;
}

@media (min-width: 769px) {
  .navbar-toggle { display: none !important; }
  .navbar-menu {
    position: static !important;
    display: flex !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .site-navbar { overflow: visible !important; }

  .navbar-container {
    position: relative;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .navbar-toggle {
    display: inline-flex !important;
    width: auto;
    min-width: 76px;
    padding: 8px 10px;
    gap: 6px;
  }

  .navbar-toggle-label {
    display: inline-block;
  }

  .navbar-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px);
    left: var(--container-pad-mobile);
    right: var(--container-pad-mobile);
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: #111827;
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
    padding: 12px;
  }

  .site-navbar.is-open .navbar-menu {
    display: flex !important;
  }

  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .site-navbar.is-open .navbar-toggle .navbar-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navbar-links {
    margin-left: 0 !important;
  }
}
