:root {
  --bg: #f6f3ee;
  --bg-2: #edf1f6;
  --surface: #ffffff;
  --panel: #fdf7f1;
  --primary: #2a9d8f;
  --primary-2: #1b7f73;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --text: #1b2430;
  --text-dim: #526273;
  --danger: #d64545;
  --line: rgba(27, 36, 48, 0.12);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.1);
  --glow: 0 0 0 1px rgba(42, 157, 143, 0.24), 0 16px 36px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 6% -8%, rgba(42, 157, 143, 0.18), transparent 60%),
    radial-gradient(900px 520px at 94% 0%, rgba(217, 119, 6, 0.2), transparent 60%),
    radial-gradient(720px 420px at 50% 100%, rgba(64, 124, 150, 0.12), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

a {
  color: var(--primary-2);
  text-decoration-color: rgba(27, 127, 115, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: #0f6b60;
  text-decoration-color: rgba(15, 107, 96, 0.7);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

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

.container {
  width: min(1180px, 100% - 2.4rem);
  margin-inline: auto;
}

p {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #0f6b60;
  background: rgba(42, 157, 143, 0.12);
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.25);
}

.tagline {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

main {
  padding-bottom: 4rem;
  position: relative;
}

section {
  scroll-margin-top: 96px;
}

.hero {
  padding: 5.6rem 0 4.4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.22), transparent 62%);
  opacity: 0.85;
}

.hero::after {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 65%);
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(42, 157, 143, 0.45);
  border-radius: 999px;
  color: #0f6b60;
  background: rgba(42, 157, 143, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.12);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  margin-bottom: 0.7rem;
}

.lead {
  max-width: 820px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0a1f1c;
  background: linear-gradient(135deg, var(--primary), #54d3c3);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-soft);
  filter: brightness(1.02);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: rgba(42, 157, 143, 0.45);
  box-shadow: var(--glow);
}

.section {
  padding: 3rem 0;
}

.panel {
  border: 1px solid rgba(42, 157, 143, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 238, 0.95));
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.7rem);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 157, 143, 0.08), transparent 42%);
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.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));
}

.card {
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 157, 143, 0.32);
  box-shadow: var(--shadow-soft);
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.kpi {
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(27, 36, 48, 0.12);
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.04);
}

.kpi strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.code-box {
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(217, 119, 6, 0.5);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.12), rgba(255, 255, 255, 0.92));
  padding: 1rem;
}

.code-box::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.22), transparent 65%);
  opacity: 0.6;
}

.site-announcement {
  background: linear-gradient(120deg, #2a9d8f 0%, #3f7ca2 52%, #d97706 100%);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-announcement a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lab-cta .panel {
  border-color: rgba(42, 157, 143, 0.28);
  background: linear-gradient(135deg, var(--panel), rgba(42, 157, 143, 0.06));
}

.lab-cta h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.hero-layout {
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 0.85rem;
}

.hero-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dim);
  font-weight: 700;
}

.disclosure {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
}

.check-list li {
  margin-bottom: 0.35rem;
}

.check-list li::marker {
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head .lead {
  margin-bottom: 0;
}

.hero-chip-row {
  margin-top: 1rem;
}

.hero-copy-box {
  max-width: 420px;
  margin-top: 1.4rem;
}

.hero-copy-note {
  margin: 0.75rem 0 0;
}

.hero-score-grid {
  margin-top: 1.4rem;
}

.hero .badge,
.hero .eyebrow {
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.05s;
}

.hero .lead {
  animation: fadeUp 0.75s ease both;
  animation-delay: 0.1s;
}

.hero .hero-meta,
.hero .meta-row {
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.15s;
}

.hero .hero-actions {
  animation: fadeUp 0.85s ease both;
  animation-delay: 0.2s;
}

.hero .hero-chip-row,
.hero .disclosure {
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.25s;
}

.hero .hero-copy-box,
.hero .hero-rail {
  animation: fadeUp 0.95s ease both;
  animation-delay: 0.3s;
}

.hero .hero-score-grid,
.hero .hero-card,
.hero .hero-media {
  animation: fadeUp 1s ease both;
  animation-delay: 0.35s;
}

.hero .panel {
  animation: fadeUp 1.05s ease both;
  animation-delay: 0.4s;
}

.hero-panel-title {
  margin-bottom: 0.85rem;
}

.hero-panel-note {
  margin-top: 0.95rem;
}

.progress-fill.w92 {
  width: 92%;
}

.progress-fill.w88 {
  width: 88%;
}

.progress-fill.w76 {
  width: 76%;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.hero-meta {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.subtle-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(42, 157, 143, 0),
    rgba(42, 157, 143, 0.5),
    rgba(42, 157, 143, 0)
  );
  margin: 0.5rem 0 1.5rem;
}

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

.intent-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.intent-card h3 {
  margin-bottom: 0.4rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dim);
  padding: 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.score-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 238, 0.9));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.score-card b {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.score-card span {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.comparison-note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.progress-list {
  display: grid;
  gap: 0.65rem;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 0.55rem;
  align-items: center;
}

.progress-track {
  height: 0.64rem;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.progress-fill.alt {
  background: linear-gradient(90deg, #3f7ca2, #6bb5d6);
}

.progress-label {
  font-size: 0.86rem;
  color: var(--text-dim);
}

.toc {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.85rem;
}

.toc h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.toc ul {
  margin: 0;
  padding-left: 1rem;
}

.toc li {
  margin: 0.2rem 0;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline-step {
  border-left: 3px solid rgba(42, 157, 143, 0.5);
  padding-left: 0.75rem;
}

.timeline-step b {
  color: var(--text);
}

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

.decision-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.decision-card h3 {
  margin-bottom: 0.45rem;
}

.verdict {
  border: 1px solid rgba(42, 157, 143, 0.28);
  background: linear-gradient(160deg, rgba(42, 157, 143, 0.12), rgba(255, 255, 255, 0.95));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.65rem 0.75rem;
}

.faq-list details[open] {
  border-color: rgba(42, 157, 143, 0.4);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-list summary::after {
  content: "+";
  font-weight: 800;
  color: var(--primary-2);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0.55rem 0 0;
}

.callout {
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
  color: #0f6b60;
}

.table-compact th,
.table-compact td {
  padding: 0.72rem;
}

.copy-code {
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 0.7rem;
  min-height: 56px;
  width: 100%;
  background: linear-gradient(160deg, #f1ede7, #ffffff);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.copy-code:hover {
  transform: translateY(-1px);
  border-color: rgba(42, 157, 143, 0.45);
  box-shadow: var(--glow);
}

.code-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 700;
}

.input-control {
  width: 100%;
  min-height: 42px;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
}

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

.check-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.6rem;
  color: var(--text);
  font-size: 0.88rem;
}

.check-grid input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.small {
  font-size: 0.9rem;
  color: var(--text-dim);
}

ul.clean {
  margin: 0;
  padding-left: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  background: rgba(255, 255, 255, 0.95);
}

table tbody tr:hover {
  background: rgba(42, 157, 143, 0.08);
}

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

th {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.breadcrumb {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.related-links {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.related-links a {
  font-weight: 700;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.related-links a:hover {
  border-color: rgba(42, 157, 143, 0.45);
  box-shadow: var(--glow);
}

.notice {
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  color: #7a4c1e;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  border-top: 1px solid rgba(27, 36, 48, 0.12);
  padding: 2.6rem 0 2rem;
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(246, 243, 238, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}

.footer-brand-block .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand-block .small {
  margin: 0.2rem 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.footer-badges span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.footer-bottom-row {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}

.footer-bottom-row .small {
  margin: 0;
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer-mini-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-mini-links a:hover {
  color: var(--primary-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #231200;
  font-weight: 800;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  display: none;
  z-index: 1200;
}

pre {
  margin: 0;
  padding: 0.9rem;
  border-radius: 0.8rem;
  overflow: auto;
  border: 1px solid var(--line);
  background: #f4f1eb;
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .nav-links {
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .footer-top-grid,
  .intent-grid,
  .decision-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .code-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .hero * {
    animation: none !important;
  }

  .card,
  .copy-code {
    transition: none;
  }
}

/* GitHub lab CTA */
.github-cta {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.08), rgba(217, 119, 6, 0.06));
}

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

.btn-github {
  background: #1b2430;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  white-space: nowrap;
}

.btn-github:hover {
  background: #0f172a;
  color: #f8fafc !important;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.metric {
  text-align: center;
  padding: 0.5rem;
}

.metric strong {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  color: var(--primary-2);
}

.metric span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Benchmark explorer */
.explorer-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
}

.explorer-table td {
  vertical-align: top;
}

.band-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.band-a {
  background: rgba(42, 157, 143, 0.18);
  color: var(--primary-2);
}

.band-b {
  background: rgba(217, 119, 6, 0.15);
  color: #9a5b0a;
}

.band-c {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);
}

.text-danger {
  color: var(--danger);
  font-weight: 700;
}

.catalog-grid .card h3 {
  margin-top: 0;
}

.sitemap-list {
  column-count: 2;
  column-gap: 2rem;
}

.sitemap-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

/* Video facade (affiliate / discount pages) */
.video-facade {
  display: block;
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  max-width: 560px;
}

.video-facade img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(27, 36, 48, 0.45);
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #c4302b;
  font-size: 1.1rem;
  padding-left: 0.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Affiliate funnel pages: lighter hero (homepage uses home.css only) */
.aff-page .hero {
  padding: 2.75rem 0 2.25rem;
}

.aff-page .hero::before,
.aff-page .hero::after {
  display: none;
}

/* Affiliate sticky CTA (mobile conversion) */
body.has-aff-sticky {
  padding-bottom: 4.5rem;
}

.aff-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 247, 241, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.aff-sticky[hidden] {
  display: none;
}

.aff-sticky .btn {
  margin: 0;
  flex: 1 1 auto;
  min-width: 10rem;
  max-width: 20rem;
  text-align: center;
}

.aff-sticky-copy {
  flex: 0 1 auto;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}

@media (max-width: 720px) {
  .sitemap-list {
    column-count: 1;
  }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff !important; color: #000 !important; }
  .site-announcement,
  .aff-sticky,
  .site-toast,
  .nav-links,
  .footer-mini-links,
  .footer-badges,
  .speculation,
  script,
  .skip-link,
  .lab-cta,
  nav,
  .hero-actions,
  .related-links { display: none !important; }
  .site-header,
  .site-footer { border: none !important; padding: 0.25rem 0 !important; }
  .site-header .logo,
  .site-footer .footer-bottom-row { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  a[href^="/"]::after { content: " (https://multilogin-labs.github.io" attr(href) ")"; font-size: 0.85em; }
  main { padding: 0 !important; max-width: none !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .section { page-break-inside: avoid; padding: 0.5rem 0 !important; }
  h1, h2, h3 { page-break-after: avoid; color: #000 !important; }
  .panel, .card, .decision-card, .score-card { box-shadow: none !important; border: 1px solid #ccc !important; background: #fff !important; }
  table { border-collapse: collapse !important; }
  table, th, td { border: 1px solid #999 !important; }
  blockquote { border-left: 3px solid #666 !important; color: #000 !important; }
  .badge { background: none !important; color: #000 !important; border: 1px solid #000 !important; padding: 0 0.25rem; }
  .disclosure { font-style: italic; }
  .breadcrumb { font-size: 0.85em; color: #666 !important; }
  @page { margin: 1.6cm 1.4cm; }
}

.hero-center { text-align: center; }
.hero-center .lead { margin-inline: auto; max-width: 60ch; }
.hero-actions-center { justify-content: center; }
.disclosure-centered { text-align: center; }
