@import "./fonts.css";
@import "./tabler-icons.min.css";

/* ==========================================================================
   Skedula 2026 Design System
   High-Trust Institutional B2B Financial Architecture
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Neutral Canvas & Surfaces */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  --bg-card: #ffffff;
  --bg-dark: #090d16;
  --bg-dark-card: #0f172a;
  --bg-dark-elevated: #1e293b;
  
  /* High-Gravity Text Palette */
  --text-main: #090d16;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-dark-muted: #cbd5e1;
  
  /* Primary Brand: Authoritative Ink Slate with Precision Sapphire Highlights */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-active: #020617;
  --primary-light: #f1f5f9;
  
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-light: #eff6ff;
  --accent-border: #bfdbfe;
  
  /* Statutory Compliance Green */
  --success: #059669;
  --success-hover: #047857;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #166534;
  
  /* Advisory Amber */
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  
  /* Penalty / Trap Red */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  
  /* Hairline Borders */
  --border: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-dark: #cbd5e1;
  --border-dark-subtle: rgba(255, 255, 255, 0.12);
  
  /* Elevations & Bevels */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.12);
  --bevel-card: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  /* Geometry */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-secondary);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tabular figures for financial and legal precision */
.tabular,
.risk-stat,
.pack-price,
.price-tag-big,
table td,
.trap-col,
.badge-metric {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tabler Icon Helper */
.ti {
  font-size: 1.15em;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.15em;
}

.ti-spin {
  animation: ti-spin 1s infinite linear;
}
@keyframes ti-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  text-decoration: none !important;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-xs);
}

.logo-badge {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}

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

.nav-links a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.2rem;
  transition: all 0.15s;
  position: relative;
}
.nav-links a:hover {
  color: var(--text-main);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--text-main);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -0.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
}

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

.nav-portal-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-portal-link:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
  text-decoration: none;
}

/* Header menu for narrow screens: a native disclosure, so it works without script and from the keyboard */
.nav-menu {
  display: none;
  position: relative;
}
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary::marker {
  content: "";
}
.nav-menu[open] summary {
  background: var(--bg-subtle);
  border-color: #94a3b8;
}
.nav-menu summary:focus-visible,
.nav-menu-panel a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(17rem, calc(100vw - 2rem));
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 110;
}
.nav-menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-menu-panel a i {
  color: var(--text-muted);
}
.nav-menu-panel a:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  text-decoration: none;
}
.nav-menu-panel a.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 750;
}
.nav-menu-panel a.active i {
  color: var(--accent);
}
.nav-portal-link.active {
  color: var(--text-main);
  background: var(--bg-subtle);
}
.nav-menu-panel .nav-menu-cta {
  justify-content: center;
  margin-top: 0.35rem;
  background: var(--primary);
  color: #ffffff;
}
.nav-menu-panel .nav-menu-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(15, 23, 42, 0.15);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-color: var(--border-dark);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: #94a3b8;
  color: var(--text-main);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(0);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.2);
}
.btn-success:hover {
  background-color: var(--success-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-invert {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.16);
}
.btn-invert:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.25);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 85%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 650;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-xs);
}
.hero-pill .pill-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  display: inline-block;
}

.hero h1 {
  font-size: 3.15rem;
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-main);
  max-width: 1020px;
  margin: 0 auto 1.4rem;
}

.hero p {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  font-weight: 450;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs), var(--bevel-card);
}
.trust-badge i {
  color: var(--accent);
  font-size: 1.15rem;
}
.trust-badge strong {
  color: var(--text-main);
  font-weight: 750;
}

/* ==========================================================================
   Persona Navigator Cards
   ========================================================================== */

.persona-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}

.persona-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.65rem 1.5rem;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-xs), var(--bevel-card);
}
.persona-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

.persona-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-xs);
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.persona-title {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.persona-arrow {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.persona-card:hover .persona-arrow {
  color: var(--text-main);
  transform: translateX(3px);
}

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

/* ==========================================================================
   Quantified Risk & Enforcement Section
   ========================================================================== */

.risk-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

.risk-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-xs), var(--bevel-card);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  align-self: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.risk-card.danger .risk-tag {
  color: var(--danger-text);
  background: var(--danger-bg);
  border-color: var(--danger-border);
}
.risk-card.warning .risk-tag {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.risk-card.primary .risk-tag {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.risk-stat {
  font-size: 2.4rem;
  font-weight: 850;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.risk-title {
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.risk-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.risk-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.6rem;
  opacity: 0.85;
}

/* ==========================================================================
   SME Packs
   ========================================================================== */

.catalog-section {
  padding: 4.5rem 0;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.pack-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm), var(--bevel-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pack-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

/* Shared note under a pack grid: keeps Excel requirements and filing scope in one clear place */
.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.35rem;
  margin: -1.75rem 0 2.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  box-shadow: var(--shadow-xs);
}
.scope-note i {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.scope-note strong {
  color: var(--text-main);
}

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

.pack-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pack-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.pack-price {
  font-size: 2rem;
  font-weight: 850;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.85rem 0;
}
.pack-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.pack-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.pack-features {
  list-style: none;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
}
.pack-features li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  line-height: 1.55;
}
.pack-features li i.feature-check {
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--success);
  font-size: 1.05rem;
}

/* Each pack's rule: when the job comes up */
.pack-rule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.9rem;
  line-height: 1.4;
  min-height: 3.6rem;
}
.pack-rule i {
  color: var(--accent);
  flex-shrink: 0;
}

/* Which packs to buy */
.pack-guide {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0 2rem;
  box-shadow: var(--shadow-sm), var(--bevel-card);
}
.pack-guide h2 {
  font-size: 1.45rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pack-guide h2 i {
  color: var(--accent);
}
.pack-guide > p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.pack-guide-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.pack-guide-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pack-guide-list a {
  color: var(--text-main);
}
.pack-guide-list span {
  font-size: 0.9rem;
  color: var(--text-body);
}
.pack-guide .pack-guide-sum {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}
.pack-guide .pack-guide-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.pack-guide-note i {
  color: var(--accent);
}

/* A card's main text and its price column, side by side until they wrap */
.flex-main {
  flex: 1;
  min-width: min(320px, 100%);
}
.flex-side {
  text-align: right;
  min-width: min(220px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The Home Pack, where business editions are listed */
.home-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem;
  box-shadow: var(--shadow-sm), var(--bevel-card);
}
.home-strip-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.home-strip-text {
  flex: 1;
  min-width: min(280px, 100%);
}
.home-strip-text h3 {
  font-size: 1.3rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.home-strip-price {
  font-size: 1.15rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.home-strip-text p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Home Pack Page
   ========================================================================== */

.home-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: -1rem 0 1rem;
}
.home-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
}
.home-fact i {
  color: var(--success);
}
.home-fact-price {
  font-weight: 850;
  color: var(--text-main);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.home-h2 {
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 0.5rem;
  text-align: center;
}
.home-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 1.75rem;
}
.home-q-group + .home-q-group {
  margin-top: 2rem;
}
.home-q-group-head {
  margin-bottom: 1rem;
}
.home-q-group-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  line-height: 1.55;
  max-width: 760px;
}
.home-q-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.25rem;
}
.home-q {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-xs), var(--bevel-card);
  display: flex;
  flex-direction: column;
}
.home-q .persona-icon-wrap {
  margin-bottom: 1rem;
}
.home-q h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.home-q p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 0;
}
.home-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 1.25rem auto 0;
}
.home-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}
.home-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2rem;
  box-shadow: var(--shadow-xs);
}
.home-panel h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-panel h3 i {
  color: var(--accent);
}
.home-panel p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-body);
}
.home-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.home-ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-body);
}
.home-ticks li i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--success);
}
.home-limits {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.home-limits ol {
  list-style: none;
  counter-reset: limit;
  display: grid;
  gap: 1.1rem;
}
.home-limits li {
  counter-increment: limit;
  position: relative;
  padding-left: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}
.home-limits li::before {
  content: counter(limit);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-limits li strong {
  color: var(--text-main);
}
.home-indep {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}
.home-indep i {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-top: 0.1rem;
}
.home-buy {
  margin: 3.5rem 0 0;
}
.home-buy form,
.home-buy .btn {
  width: 100%;
}
.home-buy-small {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.85rem;
  line-height: 1.55;
  text-align: left;
}
.home-buy-small a {
  color: #e2e8f0;
  text-decoration: underline;
}
.full-pack-banner .home-buy-small {
  margin-bottom: 0;
}
.home-faq {
  max-width: 760px;
  margin: 0 auto;
}
.home-faq h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.5rem 0 0.35rem;
}
.home-faq p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ==========================================================================
   Full Pack Feature Banner (Obsidian Institutional Canvas)
   ========================================================================== */

.full-pack-banner {
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #090d16 100%);
  color: #ffffff;
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.full-pack-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.full-pack-banner h3 {
  font-size: 2.25rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #ffffff;
}
.full-pack-banner p {
  color: #94a3b8;
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.zero-penalty-callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}
.zero-penalty-title {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  font-weight: 750;
}
.zero-penalty-callout p {
  font-size: 0.88rem;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}
.zero-penalty-callout p strong {
  color: #ffffff;
}

.full-pack-pricing {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
}
.price-tag-big {
  font-size: 3.4rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.price-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   B2B & Engineering Editions
   ========================================================================== */

.b2b-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 1.75rem;
}

/* Under the B2B grid: an existing holder upgrades in the portal, not through a Payment Link */
.b2b-upgrade-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.25rem 0 0;
}
.b2b-upgrade-note i {
  color: var(--accent);
}

.b2b-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm), var(--bevel-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.b2b-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}
.b2b-card .btn,
.pack-card .btn {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
}

/* Which edition: how it is used (workbooks or code) against whose payroll it serves */
.edition-map {
  margin: 0 0 2.5rem;
}
.edition-map h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.edition-map h3 i {
  color: var(--accent);
}
.edition-map .table-wrap {
  margin: 1rem 0 0.75rem;
}
.edition-grid th[scope="row"] {
  width: 22%;
  background: var(--bg-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
}
.edition-grid td {
  width: 39%;
  vertical-align: top;
}
.edition-map-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* The title of /changes/, the first line of CHANGES.md rendered as Markdown */
.changes-title h1 {
  font-size: 2.75rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

/* An edition's support, and the fence it is licensed within, stated before its buy button */
.edition-support {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-body);
}
.edition-support-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.edition-support p {
  margin: 0 0 0.45rem;
}
.edition-support p:last-child {
  margin-bottom: 0;
}
.edition-fence {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin: 0;
}
.edition-fence i {
  color: var(--accent);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Markdown Prose in Section Pages
   ========================================================================== */

.content-body > h2,
.prose-narrow > h2 {
  margin: 2.5rem 0 0.75rem;
}
.content-body > h3,
.prose-narrow > h3 {
  margin: 1.75rem 0 0.4rem;
}
.content-body > h2:first-child,
.content-body > h3:first-child,
.prose-narrow > h2:first-child {
  margin-top: 0;
}
.content-body > ul,
.content-body > ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
th {
  background: var(--bg-secondary);
  font-weight: 750;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: rgba(248, 250, 252, 0.6);
}

/* ==========================================================================
   Benchmark Traps Cards
   ========================================================================== */

.trap-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-xs), var(--bevel-card);
}

.trap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  font-size: 0.74rem;
  font-weight: 750;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trap-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.trap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.trap-col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.trap-col.bad {
  border-left: 4px solid var(--danger);
  background: #fffcfc;
}
.trap-col.good {
  border-left: 4px solid var(--success);
  background: #fbfdfc;
}

.trap-status-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
  margin-bottom: 0.5rem;
}
.trap-col.bad .trap-status-header {
  color: var(--danger-text);
}
.trap-col.good .trap-status-header {
  color: var(--success-text);
}

/* ==========================================================================
   Customer Portal Cards & Controls
   ========================================================================== */

.portal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-sm), var(--bevel-card);
}

.portal-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}
.portal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* ==========================================================================
   Inline Single-Case Reference Calculators & Guides Grid
   ========================================================================== */

.calc-box {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem;
  box-shadow: var(--shadow-sm), var(--bevel-card);
}
.calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.calc-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-head h3 i {
  color: var(--accent);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.calc-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
}
.calc-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.calc-metric-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.calc-metric-value {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.calc-metric-value.accent {
  color: var(--accent);
}
.calc-metric-value.danger {
  color: var(--danger-text);
}
.calc-metric-value.success {
  color: var(--success-text);
}
.calc-metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.calc-alert {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
}
.calc-alert.good {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}
.calc-alert.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}
.calc-foot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.calc-trace {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}
.calc-trace-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.calc-trace-title i {
  color: var(--accent);
}
.calc-trace-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.calc-trace-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.87rem;
  color: var(--text-body);
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border);
}
.calc-trace-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.calc-trace-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}
.calc-trace-source {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.calc-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.calc-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.calc-tab.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}
.calc-details {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
}
.calc-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}
.calc-details[open] summary {
  margin-bottom: 0.85rem;
}

.guides-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.15rem;
}
.guide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.18s ease;
}
.guide-card:hover {
  background: #ffffff;
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.guide-card-tag {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.guide-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}
.guide-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2.5rem;
  margin-top: 5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-dark-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.footer-col a {
  color: #94a3b8;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* The header keeps to one row. It has no room for the logo's badge beside four links and three
   actions (the footer keeps it); the menu takes over the links, then the evaluation button, the
   portal label and the suite button give way to it in turn */
.site-header .logo-badge {
  display: none;
}

@media (max-width: 1240px) {
  .nav-links {
    display: none;
  }
  .nav-menu {
    display: block;
  }
}

@media (max-width: 960px) {
  .nav-cta-free {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-portal-text {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .full-pack-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .trap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .btn {
    white-space: normal;
  }
  .btn-lg {
    padding: 0.85rem 1.25rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .full-pack-banner {
    padding: 2rem 1.5rem;
  }
  .flex-side {
    text-align: center;
  }
  .pack-guide,
  .home-limits,
  .home-panel {
    padding: 1.5rem 1.25rem;
  }
  .home-strip {
    padding: 1.5rem 1.25rem;
  }
  .b2b-card {
    padding: 1.75rem 1.25rem;
  }
  .edition-grid th,
  .edition-grid td {
    padding: 0.75rem 0.6rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .nav-cta-suite {
    display: none;
  }
}
