:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #d8dee9;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0b1f3a;
  --primary-2: #143a66;
  --accent: #b08d57;
  --accent-2: #f1e8d6;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius: 10px;
  --radius-sm: 8px;
}

.theme-dark {
  --bg: #0b1220;
  --card: #0f1b2d;
  --border: #1f2a3a;
  --text: #e5e7eb;
  --muted: #a1a1aa;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --accent: #94a3b8;
  --accent-2: #1f2937;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  padding-bottom: 96px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary-2);
}

img {
  max-width: 100%;
  height: auto;
}

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: #f8f9fc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.theme-dark .section-muted {
  background: #0f1b2d;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.hero {
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.05), rgba(246, 247, 251, 0.9));
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card-header {
  margin-bottom: 0.75rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #f4f6fb;
  color: var(--text);
}

.badge-accent {
  background: var(--accent-2);
  color: #6a4f2a;
  border-color: transparent;
}

.badge-neutral {
  background: #f4f6fb;
  color: var(--text);
}

.badge-icon {
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.tab {
  padding: 0.3rem 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-active,
.tab:hover {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.input,
.select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
}

.heading-xl {
  font-size: clamp(2.1rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: 1.2rem;
  font-weight: 700;
}

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

.text-accent {
  color: var(--accent);
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navbar {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 70;
}

.theme-dark .navbar {
  background: rgba(11, 18, 32, 0.96);
}

.nav-inner,
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
  min-height: 64px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.navlinks,
.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.navlink,
.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.navlink-active,
.nav-links a.is-active {
  color: var(--text);
  font-weight: 600;
}

.navlink-active::after,
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-drawer {
  display: none;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.35);
  border: none;
  z-index: 50;
}

.nav-backdrop.is-open {
  display: block;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.drawer-panel.is-open {
  transform: translateX(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-actions {
  display: grid;
  gap: 0.6rem;
}

.drawer-close {
  align-self: flex-end;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  padding-right: 2rem;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details[open] {
  background: #f9fafc;
}

.details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.2rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.details[open] summary::after {
  content: "–";
}

.package-grid {
  display: grid;
  gap: 1.5rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f9fafc;
  border: 1px solid var(--border);
}

.inline-list {
  padding-left: 1.1rem;
  margin: 0;
}

.inline-list li {
  margin-bottom: 0.4rem;
}

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.noscript-nav {
  position: sticky;
  top: 0;
  z-index: 10;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .navlinks,
  .nav-links {
    display: none;
  }
  .brand-tagline {
    display: none;
  }
  .nav-secondary {
    display: none;
  }
  .nav-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }
  .nav-drawer {
    display: inline-flex;
  }
  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 110px;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .tabs {
    display: none;
  }
  .filter-select {
    display: block;
  }
  .floating-cta {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 0.78rem;
  }
  .btn {
    min-height: 42px;
  }
}
