:root {
  --ink: #251018;
  --muted: #765c65;
  --line: #eadde1;
  --surface: #ffffff;
  --soft: #fbf7f8;
  --burgundy: #7a1730;
  --burgundy-dark: #4f0f20;
  --burgundy-soft: #f5e8ec;
  --rose: #b83d5b;
  --gold: #d6a64a;
  --shadow: 0 20px 60px rgba(79, 15, 32, 0.14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7eef2;
  --muted: #d7bcc7;
  --line: #4f2635;
  --surface: #1d1117;
  --soft: #120a0f;
  --burgundy: #d75a7b;
  --burgundy-dark: #f08aa2;
  --burgundy-soft: #351823;
  --rose: #f28aa3;
  --gold: #e6bd68;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  letter-spacing: 0;
  transition: filter 160ms ease, transform 160ms ease;
}

.brand:hover {
  filter: drop-shadow(0 12px 22px rgba(122, 23, 48, 0.18));
  transform: translateY(-2px) scale(1.025);
}

.brand-mark {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.brand-mark img {
  display: block;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-size: 31px;
  font-weight: 900;
}

.brand-tagline {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 750;
  margin-left: 108px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transition: clip-path 260ms ease;
  white-space: nowrap;
}

.brand:hover .brand-tagline {
  animation: tagline-reveal 620ms ease both;
}

@keyframes tagline-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

.nav {
  color: var(--muted);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin-left: auto;
}

.nav a {
  align-items: center;
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav a:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  box-shadow: 0 12px 26px rgba(122, 23, 48, 0.22);
  transform: translateY(-2px) scale(1.035);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  min-width: 190px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 30;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  background: var(--surface);
  border-color: transparent;
  color: var(--ink);
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 12px;
  transform: none;
}

.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--burgundy);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 42px;
}

.theme-toggle:hover {
  background: var(--burgundy-soft);
  border-color: var(--burgundy);
  box-shadow: 0 12px 26px rgba(122, 23, 48, 0.18);
  transform: translateY(-2px) scale(1.035);
}

.theme-toggle svg {
  display: block;
  height: 20px;
  width: 20px;
}

.theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.nav-menu a:hover {
  background: var(--burgundy-soft);
  border-color: var(--burgundy-soft);
  box-shadow: none;
  color: var(--burgundy);
  transform: none;
}

.hero {
  align-items: center;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--burgundy) 12%, transparent), transparent 42%),
    var(--soft);
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  min-height: calc(100vh - 68px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 56px) 40px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 9px;
}

.lead {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 30px;
}

.hero-actions,
.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.tab {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.primary-btn {
  background: var(--burgundy);
  color: #fff;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-btn:hover {
  background: var(--burgundy-dark);
  box-shadow: 0 14px 34px rgba(122, 23, 48, 0.24);
  transform: translateY(-3px) scale(1.045);
}

.secondary-btn {
  background: var(--ink);
  color: #fff;
}

.whatsapp-btn {
  background: #128c4a;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.whatsapp-btn:hover {
  background: #0d713b;
  box-shadow: 0 14px 34px rgba(18, 140, 74, 0.24);
  transform: translateY(-3px) scale(1.045);
}

.ghost-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--burgundy);
}

.hero-media {
  border: 1px solid rgba(122, 23, 48, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hero-media:hover {
  box-shadow: 0 26px 70px rgba(79, 15, 32, 0.22);
  transform: translateY(-8px) scale(1.015);
}

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

.metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
}

.metrics div {
  border-left: 3px solid var(--burgundy);
  padding-left: 13px;
}

.metrics dt {
  font-size: 28px;
  font-weight: 900;
}

.metrics dd {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

section:not(.hero) {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-head {
  margin-bottom: 30px;
  max-width: 760px;
}

.section-head p:last-child,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.step-grid,
.feature-grid,
.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-grid article,
.feature-grid article,
.product-card,
.lead-form,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.step-grid span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 28px;
}

.step-grid p,
.feature-grid p,
.product-card p,
.product-card li {
  color: var(--muted);
  line-height: 1.55;
}

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

.feature-grid article {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.feature-grid article:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-6px) scale(1.025);
}

.feature-grid article:hover p {
  color: #fff;
}

.feature-icon {
  align-items: center;
  background: var(--burgundy);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 38px;
}

.feature-grid article:hover .feature-icon {
  background: #fff;
  color: var(--burgundy);
  box-shadow: 0 12px 26px rgba(122, 23, 48, 0.22);
  transform: translateY(-2px) scale(1.08);
}

.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-list span {
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 850;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.case-list span:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  box-shadow: 0 12px 26px rgba(122, 23, 48, 0.22);
  transform: translateY(-2px) scale(1.035);
}

.products {
  background: var(--surface);
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.product-card.highlight {
  border-color: var(--burgundy);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.product-badge {
  align-items: center;
  background: var(--burgundy);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 30px;
  padding: 0 12px;
}

.product-audience {
  color: var(--burgundy);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.product-card:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-6px) scale(1.025);
}

.product-card:hover p,
.product-card:hover li,
.product-card:hover .price {
  color: #fff;
}

.product-card:hover .product-badge {
  background: #fff;
  color: var(--burgundy);
}

.product-card:hover .product-audience {
  color: #fff;
}

.product-card:hover li::before {
  color: var(--gold);
}

.product-card:hover .secondary-btn {
  background: #fff;
  color: var(--burgundy);
}

:root[data-theme="dark"] .product-card:hover .secondary-btn {
  color: #111;
}

:root[data-theme="dark"] .product-card .secondary-btn {
  background: #fff;
  color: #111;
}

.price {
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  margin: 14px 0;
}

.product-card ul {
  flex: 1;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.product-card .secondary-btn {
  margin-top: auto;
}

.product-card li {
  margin-bottom: 10px;
}

.product-card li::before {
  color: var(--burgundy);
  content: "✓";
  font-weight: 900;
  margin-right: 9px;
}

.comparison-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  max-width: 1060px;
  overflow: hidden;
  width: 100%;
}

.comparison-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  text-align: center;
}

.comparison-head span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.comparison-table {
  display: grid;
}

.comparison-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.82fr 1fr 1.32fr;
  padding: 16px 22px;
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.comparison-row span:first-child,
.comparison-title span {
  color: var(--ink);
  font-weight: 900;
}

.comparison-title {
  background: var(--burgundy-soft);
}

.comparison-row span:last-child {
  color: var(--ink);
  font-weight: 900;
}

.comparison-note {
  background: var(--burgundy-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--burgundy);
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  margin-left: 8px;
  min-height: 24px;
  padding: 0 9px;
  vertical-align: middle;
  align-items: center;
}

.why-labcode {
  background: var(--soft);
}

.why-grid,
.trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-grid article,
.trust-grid article,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.why-grid article:hover,
.trust-grid article:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  box-shadow: var(--shadow);
  color: #fff;
  transform: translateY(-6px) scale(1.025);
}

.why-grid span {
  align-items: center;
  background: var(--burgundy);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-bottom: 16px;
  width: 44px;
}

.why-grid article:hover span {
  background: #fff;
  color: var(--burgundy);
}

.why-grid p,
.trust-grid p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.why-grid article:hover p,
.trust-grid article:hover p {
  color: #fff;
}

.trust {
  background: var(--surface);
}

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

.faq {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.45;
  list-style: none;
  padding: 24px 28px;
}

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

.faq-list summary::after {
  color: var(--burgundy);
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

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

.faq-list p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 18px 28px 24px;
}

.contact {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
}

.lead-form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 820;
  gap: 7px;
}

input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(122, 23, 48, 0.12);
  outline: none;
}

input[type="checkbox"] {
  height: 18px;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

label:has(input[type="checkbox"]) {
  align-items: center;
  display: flex;
  gap: 10px;
}

.full {
  width: 100%;
}

small {
  color: var(--muted);
  font-weight: 650;
}

.admin-page {
  background: var(--surface);
}

.admin-locked {
  height: 100vh;
  overflow: hidden;
}

.admin-locked > .topbar,
.admin-locked > .admin-shell {
  display: none;
}

.admin-login {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(122, 23, 48, 0.96), rgba(37, 16, 24, 0.94)),
    var(--burgundy-dark);
  display: flex;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 56px);
}

.admin-login[hidden] {
  display: none;
}

.admin-login-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 440px;
  padding: clamp(22px, 4vw, 34px);
  width: 100%;
}

.admin-login-card h1 {
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 10px;
}

.admin-login-card p {
  color: var(--muted);
  margin: 0;
}

.admin-shell {
  padding: clamp(28px, 5vw, 56px);
}

.admin-hero {
  background: var(--burgundy-dark);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 24px;
  padding: clamp(26px, 5vw, 48px);
}

.admin-hero .eyebrow,
.admin-hero .lead {
  color: #f7dce4;
}

.admin-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 760px;
}

.admin-hero .lead {
  max-width: 760px;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 0;
}

.admin-sidebar {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
  position: sticky;
  top: 88px;
}

.tab {
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  min-height: 42px;
  text-align: left;
  padding: 0 12px;
}

.tab.active {
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(79, 15, 32, 0.08);
  color: var(--burgundy);
}

.panel-section {
  display: none;
  gap: 14px;
}

.panel-section.active {
  display: grid;
}

.two-col {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.product-editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
}

.admin-actions {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.purchase-shell {
  padding: clamp(32px, 7vw, 80px) clamp(18px, 4vw, 56px);
}

.purchase-card {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(24px, 5vw, 46px);
}

.purchase-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.legal-shell {
  padding: clamp(32px, 7vw, 80px) clamp(18px, 4vw, 56px);
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(79, 15, 32, 0.08);
  margin: 0 auto;
  max-width: 980px;
  padding: clamp(22px, 4vw, 40px);
}

.legal-document h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-document .lead {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.legal-document h2 {
  font-size: clamp(17px, 2vw, 22px);
  margin-bottom: 4px;
  margin-top: 14px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 0.95;
}

.legal-document p {
  margin-bottom: 3px;
}

.legal-document section {
  margin-top: 0;
  padding: 0;
}

.legal-document ul {
  display: grid;
  gap: 1px;
  margin: 0 0 4px;
  padding-left: 20px;
}

.legal-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0 18px;
  overflow-x: auto;
}

.legal-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.4;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--burgundy-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.form-note {
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  margin: 0;
}

.site-footer {
  background: var(--burgundy-dark);
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(34px, 6vw, 64px) clamp(18px, 4vw, 56px);
}

.site-footer .brand-mark {
  background: #fff;
}

.site-footer .brand-name,
.site-footer .brand-tagline {
  color: #fff;
}

.site-footer .brand-tagline {
  margin-left: 76px;
}

.footer-brand p {
  color: #f4dce3;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 420px;
}

.footer-links {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-links div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 6px;
}

.footer-links a,
.footer-links span {
  color: #f4dce3;
  font-size: 14px;
  line-height: 1.5;
}

.footer-links a:hover {
  color: #fff;
}

.cookie-banner {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  margin: 0 auto;
  max-width: 960px;
  padding: 14px 16px;
  position: fixed;
  right: 18px;
  z-index: 80;
}

.cookie-banner[hidden],
.cookie-modal-shell[hidden] {
  display: none;
}

.cookie-banner-copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.cookie-banner-copy p,
.cookie-modal p,
.cookie-category p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner-copy p {
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner-actions,
.cookie-modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner .primary-btn,
.cookie-banner .secondary-btn,
.cookie-banner .ghost-btn {
  font-size: 13px;
  min-height: 38px;
  padding: 0 12px;
}

.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal-shell {
  inset: 0;
  position: fixed;
  z-index: 90;
}

.cookie-modal-backdrop {
  background: rgba(37, 16, 24, 0.52);
  inset: 0;
  position: absolute;
}

.cookie-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  left: 50%;
  max-height: min(760px, calc(100vh - 36px));
  max-width: 720px;
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 36px);
}

.cookie-modal h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 10px;
}

.cookie-modal-close {
  align-items: center;
  background: var(--burgundy-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--burgundy);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
}

.cookie-preference-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cookie-category {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.cookie-category h3 {
  margin-bottom: 6px;
}

.cookie-switch {
  display: inline-flex;
}

.cookie-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.cookie-switch span {
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  padding: 3px;
  transition: background 160ms ease;
  width: 54px;
}

.cookie-switch span::before {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 16, 24, 0.18);
  content: "";
  height: 24px;
  transition: transform 160ms ease;
  width: 24px;
}

.cookie-switch input:checked + span {
  background: var(--burgundy);
}

.cookie-switch input:checked + span::before {
  transform: translateX(24px);
}

.cookie-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.72;
}

.cookie-switch input:focus-visible + span,
.cookie-modal-close:focus-visible,
.cookie-banner button:focus-visible,
.cookie-modal button:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, #fff);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero,
  .contact,
  .admin-layout,
  .purchase-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .admin-sidebar {
    position: static;
  }

  .step-grid,
  .feature-grid,
  .product-grid,
  .why-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    margin-left: 0;
    overflow: auto;
    width: 100%;
  }

  .nav-dropdown {
    flex: 0 0 auto;
  }

  .nav-menu {
    left: 0;
    right: auto;
  }

  .metrics,
  .step-grid,
  .feature-grid,
  .product-grid,
  .why-grid,
  .trust-grid,
  .footer-links,
  .two-col {
    grid-template-columns: 1fr;
  }

  .comparison-head,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-head {
    align-items: start;
    display: grid;
  }

  .comparison-row {
    gap: 6px;
  }

  .comparison-note {
    margin-left: 0;
    margin-top: 6px;
  }

  h1 {
    font-size: 42px;
  }

  .cookie-banner {
    bottom: 10px;
    grid-template-columns: 1fr;
    left: 10px;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 12px;
    right: 10px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-banner button,
  .cookie-modal-actions button {
    width: 100%;
  }

  .cookie-category {
    grid-template-columns: 1fr;
  }
}
