@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Ultra-Modern SaaS 2026 Tokens */
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --paper: #FFFFFF;
  --paper-glass: rgba(255, 255, 255, 0.85);

  --ink: #0B132B;
  --ink-secondary: #2C3E50;
  --ink-soft: #64748B;
  --ink-muted: #94A3B8;

  --primary: #0F766E;
  --primary-hover: #115E59;
  --primary-glow: rgba(15, 118, 110, 0.25);
  --primary-light: #F0FDFA;
  --primary-border: #99F6E4;

  --accent: #F59E0B;
  --accent-light: #FFFBEB;
  --accent-border: #FDE68A;

  --indigo: #4F46E5;
  --indigo-light: #EEF2FF;
  --indigo-border: #C7D2FE;

  --emerald: #059669;
  --emerald-light: #ECFDF5;
  --emerald-border: #A7F3D0;

  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #0D9488;

  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', Menlo, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px -3px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 25px -4px rgba(15, 118, 110, 0.18);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-secondary);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -12%, rgba(15, 118, 110, 0.08), transparent 75%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(245, 158, 11, 0.05), transparent 60%),
    radial-gradient(circle at 10% 70%, rgba(79, 70, 229, 0.03), transparent 50%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Frosted Glass Header ---- */
header.site {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--dur-fast) ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.035em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3);
  color: #FFFFFF;
}

.brand-badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Nav links with hover pills */
nav.links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav.links a {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) ease;
}

nav.links a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

nav.links a.nav-pill-active,
nav.links a[href="guides.html"].active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
  }

  nav.links.is-open { display: flex; }

  nav.links a {
    padding: 12px 16px;
    font-size: 0.94rem;
  }
}

/* ---- Modern Hero Section with Live Pill ---- */
.hero {
  padding: 60px 0 36px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-pill-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-pill-count {
  color: var(--primary);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero h1 .text-highlight {
  background: linear-gradient(135deg, #0F766E 0%, #0369A1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ---- Instant Search Bar in Hero ---- */
.search-box-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 0 24px;
}

.search-input-box {
  width: 100%;
  padding: 14px 48px 14px 44px;
  font-family: var(--sans);
  font-size: 1.02rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast) ease;
}

.search-input-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-md);
  outline: none;
}

.search-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}

.search-shortcut-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  box-shadow: var(--shadow-xs);
}

.filter-btn:hover {
  border-color: #94A3B8;
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* ---- Modern Instrument Panel (Console) ---- */
.panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0F766E 0%, #0D9488 50%, #F59E0B 100%);
}

.panel-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-label-tag {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Quick presets chips */
.preset-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preset-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.preset-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--ink);
  transition: all var(--dur-fast) ease;
}

.field input:hover, .field select:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.field input:focus, .field select:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .row-2 { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--ink);
  color: #FFFFFF;
  border: 1px solid transparent;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast) ease;
}

.btn:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}

/* ---- Sleek Obsidian Readout ---- */
.readout {
  margin-top: 24px;
  background: radial-gradient(circle at top left, #1E293B, #0F172A 80%);
  color: #FFFFFF;
  font-family: var(--mono);
  border-radius: var(--radius);
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px -4px rgba(15, 23, 42, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.readout-content {
  flex: 1;
}

.readout .r-label {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.readout .r-value {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: #34D399;
  margin-top: 4px;
  min-height: 1.3em;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.copy-result-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.copy-result-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* ---- Bento Grid Tool Cards with Category Accents ---- */
.grid-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0 52px;
}

.tool-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--dur-fast) ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.tool-card:hover::before {
  background: var(--primary);
}

/* Category card top badge row */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tool-card .code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.tool-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arrow-link {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--dur-fast) ease;
  color: var(--primary);
}

.tool-card:hover .arrow-link {
  opacity: 1;
  transform: translateX(0);
}

.tool-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

/* ---- Section Headers ---- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.section-subtitle {
  color: var(--ink-soft);
  margin: 4px 0 0;
  font-size: 0.95rem;
}

/* ---- Guides Hub & Editorial Styling ---- */
.featured-guide-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
  position: relative;
}

.featured-guide-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-lg);
}

.guide-pill-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid var(--indigo-border);
}

/* Article Styling */
article.copy {
  max-width: 74ch;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

article.copy h2 {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

article.copy h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

article.copy table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 0.94rem;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

article.copy th, article.copy td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-secondary);
}

article.copy tr:last-child td { border-bottom: none; }

article.copy th {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--bg-subtle);
}

article.copy .disclaimer {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 22px;
  font-size: 0.94rem;
  color: #78350F;
  margin: 28px 0;
}

.callout-calc {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.callout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.callout-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--primary-border);
}

.callout-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.formula-block {
  background: #0B132B;
  color: #F8FAFC;
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 26px 0;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}

.formula-title {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 8px;
}

.formula-block code {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: #38BDF8;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* Recent Widget */
.recent-widget {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-xs);
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.recent-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
}

.recent-clear {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.76rem;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
}

.recent-clear:hover { color: #EF4444; }

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.recent-item:last-child { border-bottom: none; }

/* Ad Slot Layout */
.ad-slot-wrapper {
  margin: 36px 0;
  padding: 16px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius);
  text-align: center;
}

.ad-slot-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.ad-slot {
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 16px;
  margin: 32px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 40px 0 48px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: #FFFFFF;
}

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

footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--ink); }

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(11, 19, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #F8FAFC;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.35);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  transform: translateY(0);
  transition: transform 0.3s var(--ease);
}

#cookie-banner.hidden {
  transform: translateY(150%);
  pointer-events: none;
}

#cookie-banner p { margin: 0; line-height: 1.45; color: #CBD5E1; }
#cookie-banner a { color: #38BDF8; text-decoration: underline; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

#cookie-accept {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

#cookie-accept:hover { background: #0D9488; }

#cookie-decline {
  background: transparent;
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

@media (max-width: 600px) {
  #cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }
  .cookie-actions { justify-content: flex-end; }
  .cookie-actions button { flex: 1; }
}
