:root {
  --blue: #1769e8;
  --blue-dark: #0f4fba;
  --navy: #101828;
  --green: #13b981;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --muted: #667085;
  --line: #e4e7ec;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button, input):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 251, 0.9);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand span { font-size: 1.125rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 105, 232, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover { color: var(--navy); border-color: #c8d0dc; }
.btn-ghost { color: var(--navy); background: transparent; }

/* Hero — one composition */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(23, 105, 232, 0.18), transparent 55%),
    radial-gradient(900px 420px at 0% 100%, rgba(19, 185, 129, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  color: var(--navy);
}
.hero-lead {
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, #0f4fba 0%, #1769e8 45%, #13b981 130%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16,24,40,.2), transparent 45%);
}
.hero-panel {
  position: absolute;
  inset: 1.5rem;
  z-index: 1;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-panel h3 { color: #fff; font-size: 1rem; margin: 0; }
.chat-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.chat-bubble {
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.875rem;
  max-width: 85%;
}
.chat-bubble.out {
  margin-left: auto;
  background: #dcf8c6;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface); }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(16,24,40,0.02);
}
.section.alt .feature { background: var(--bg); }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature p { margin: 0; font-size: 0.95rem; }

.platform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price-card.featured {
  border-color: rgba(23, 105, 232, 0.45);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card .plan { font-weight: 700; font-size: 1.1rem; }
.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.6rem 0 0.2rem;
}
.price-card .amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  flex: 1;
}
.price-card li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.plan-note { margin-top: 1.25rem; font-size: 0.9rem; }

.page-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #eef3fb, var(--bg));
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 48rem;
}
.prose h2 { margin-top: 1.6rem; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }

/* —— About page —— */
.about-page {
  --about-ink: #0b1f3a;
  --about-sea: #0d6e6e;
  --about-mist: #e8eef8;
}
.about-brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--about-ink);
}
.about-brand-sm {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 3.75rem;
  background:
    radial-gradient(900px 420px at 92% 8%, rgba(13, 110, 110, 0.16), transparent 55%),
    radial-gradient(780px 380px at 0% 100%, rgba(23, 105, 232, 0.14), transparent 50%),
    linear-gradient(165deg, #f4f7fc 0%, #eef5f4 48%, var(--bg) 100%);
}
.about-hero-glow {
  position: absolute;
  inset: auto -10% -35% 35%;
  height: 55%;
  background: radial-gradient(closest-side, rgba(23, 105, 232, 0.12), transparent 70%);
  pointer-events: none;
}
.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}
.about-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  color: var(--about-ink);
  margin-bottom: 1rem;
  max-width: 18ch;
}
.about-hero-lead {
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: #4b5b73;
}
.about-hero-visual { min-height: 360px; }
.about-orbit {
  position: relative;
  height: 100%;
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, #0b1f3a 0%, #134f8a 48%, #0d6e6e 120%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.22), transparent 42%),
    radial-gradient(circle at 86% 78%, rgba(19, 185, 129, 0.28), transparent 46%);
}
.about-orbit-ring {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  animation: about-orbit-spin 28s linear infinite;
}
.about-orbit-ring-outer {
  inset: 10%;
  border-color: rgba(255,255,255,0.1);
  animation-duration: 42s;
  animation-direction: reverse;
}
.about-orbit-ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #9fe8d8;
  box-shadow: 0 0 0 6px rgba(159, 232, 216, 0.18);
}
.about-signal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.12);
  z-index: 1;
  animation: about-signal-pulse 3.2s ease-in-out infinite;
}
.about-signal-a { top: 18%; left: 16%; animation-delay: 0s; }
.about-signal-b { top: 28%; right: 18%; animation-delay: 0.7s; }
.about-signal-c { bottom: 22%; left: 28%; animation-delay: 1.4s; }
.about-orbit-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(8px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 700;
  z-index: 2;
}
.about-orbit-core img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}
.about-orbit-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-story-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 16ch;
}
.about-story-copy p { font-size: 1.05rem; color: #536278; }
.about-story-close {
  color: var(--about-ink) !important;
  font-weight: 560;
}

.about-people-list {
  display: grid;
  gap: 1.75rem;
}
.about-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.about-person:last-child { border-bottom: 1px solid var(--line); }
.about-person-mark,
.about-person-photo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.about-person-mark {
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, #134f8a, #1769e8);
}
.about-person-photo {
  object-fit: cover;
  object-position: center 20%;
}
.about-person h3 { margin-bottom: 0.2rem; font-size: 1.25rem; }
.about-role {
  margin: 0 0 0.75rem;
  color: var(--about-sea);
  font-weight: 650;
  font-size: 0.95rem;
}
.about-person p:last-child { margin-bottom: 0; }
.about-portfolio-link {
  color: var(--about-sea);
  font-weight: 650;
  text-underline-offset: 0.2em;
}
.about-portfolio-name {
  color: inherit;
  font-weight: inherit;
}
.about-portfolio-link:hover,
.about-portfolio-link:focus-visible {
  color: var(--about-sea);
  text-decoration: underline;
}
.about-portfolio-icon {
  color: var(--about-sea);
  margin-inline-start: 0.15em;
  vertical-align: -0.08em;
}

.about-compass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 0.5rem 0;
}
.about-compass-grid > div {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(13, 110, 110, 0.35);
}
.about-compass-grid h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
}
.about-compass-grid p {
  margin: 0;
  font-size: 1.05rem;
  color: #536278;
  max-width: 34rem;
}

.about-build-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.about-build-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-build-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.about-build-list li:first-child { border-top: 1px solid var(--line); }
.about-build-list strong {
  color: var(--about-ink);
  font-size: 1.02rem;
}
.about-build-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.about-values li {
  padding: 1rem 0.85rem;
  text-align: center;
  font-weight: 700;
  color: var(--about-ink);
  border-top: 2px solid rgba(23, 105, 232, 0.35);
  background: linear-gradient(180deg, rgba(23, 105, 232, 0.06), transparent 70%);
}

.about-close {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(700px 280px at 15% 0%, rgba(23, 105, 232, 0.12), transparent 60%),
    radial-gradient(600px 260px at 90% 100%, rgba(13, 110, 110, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), #e8eef6);
}
.about-close-inner {
  max-width: 40rem;
  text-align: left;
}
.about-close h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.85rem;
}
.about-tagline {
  margin: 1.25rem 0 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--about-ink);
}

.about-hero-copy,
.about-hero-visual {
  animation: about-hero-in 0.7s ease both;
}
.about-hero-visual { animation-delay: 0.12s; }
@keyframes about-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes about-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes about-signal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d0d5dd;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer a { color: #eaecf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; margin: 0 0 0.8rem; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .platform,
  .pricing-grid,
  .feature-grid,
  .footer-grid,
  .contact-grid,
  .about-hero-grid,
  .about-story-grid,
  .about-compass-grid,
  .about-build-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding-block: 0.65rem; }
  .nav-links { flex-wrap: wrap; gap: 0.3rem 1rem; }
  .nav-cta { flex-wrap: wrap; }
  .nav[data-collapsible] .nav-toggle { display: inline-flex; align-items: center; }
  .nav[data-collapsible]:not(.open) :is(.nav-links, .nav-cta) { display: none; }
  .nav.open {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-content: flex-start;
  }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav.open .nav-links a { display: flex; align-items: center; min-height: 44px; }
  .nav.open .nav-cta .btn { justify-content: flex-start; }
  .hero-grid,
  .platform,
  .pricing-grid,
  .feature-grid,
  .footer-grid,
  .contact-grid,
  .about-hero-grid,
  .about-story-grid,
  .about-compass-grid,
  .about-build-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .about-hero { padding-top: 2.75rem; }
  .about-hero-visual { min-height: 300px; }
  .about-orbit { min-height: 300px; }
  .about-person { grid-template-columns: 1fr; gap: 0.85rem; }
  .about-values { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .about-orbit-ring,
  .about-signal,
  .about-hero-copy,
  .about-hero-visual { animation: none !important; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}

/* —— Cookie consent UI (marketing site only) —— */
.mf-cookie-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  pointer-events: none;
}
.mf-cookie-root > * {
  pointer-events: auto;
}
.mf-cookie-banner {
  margin: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.mf-cookie-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.mf-cookie-copy {
  flex: 1 1 240px;
  min-width: 0;
}
.mf-cookie-copy strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}
.mf-cookie-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #cbd5e1;
}
.mf-cookie-copy a,
.mf-cookie-panel a {
  color: #93c5fd;
  text-decoration: underline;
}
.mf-cookie-actions,
.mf-cookie-panel-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.mf-cookie-banner .btn,
.mf-cookie-panel .btn {
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
}
.mf-cookie-banner .btn-ghost,
.mf-cookie-panel .btn-ghost {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.35);
  background: transparent;
}
.mf-cookie-banner .btn-ghost:hover,
.mf-cookie-panel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.mf-cookie-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.42);
}
.mf-cookie-panel-card {
  width: min(440px, 100%);
  max-height: min(90vh, 560px);
  overflow: auto;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
  padding: 1rem 1.05rem 1.05rem;
}
.mf-cookie-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.mf-cookie-panel-head strong {
  font-size: 1rem;
}
.mf-cookie-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}
.mf-cookie-close:hover,
.mf-cookie-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}
.mf-cookie-panel-lead {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.mf-cookie-cats {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.mf-cookie-cat {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.mf-cookie-cat-text {
  min-width: 0;
}
.mf-cookie-cat-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.mf-cookie-cat-text span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #94a3b8;
}
.mf-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}
.mf-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.mf-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #475569;
  position: relative;
  transition: background 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}
.mf-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.mf-switch input:checked + .mf-switch-ui {
  background: #2563eb;
}
.mf-switch input:checked + .mf-switch-ui::after {
  transform: translateX(18px);
}
.mf-switch input:focus-visible + .mf-switch-ui {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.mf-switch.is-locked {
  cursor: default;
  opacity: 0.85;
}
.mf-switch.is-locked .mf-switch-ui {
  background: #1d4ed8;
}
.mf-cookie-panel-actions {
  justify-content: flex-end;
}
.mf-cookie-settings {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
}
.mf-cookie-settings:hover,
.mf-cookie-settings:focus-visible {
  opacity: 1;
  outline: none;
}
@media (max-width: 760px) {
  .mf-cookie-banner {
    margin: 0.5rem;
    padding: 0.8rem 0.85rem;
  }
  .mf-cookie-actions,
  .mf-cookie-panel-actions {
    width: 100%;
  }
  .mf-cookie-actions .btn,
  .mf-cookie-panel-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .mf-cookie-panel {
    place-items: end stretch;
  }
  .mf-cookie-panel-card {
    width: 100%;
  }
}

/* —— Legal policy page (Privacy / Terms) —— */
.legal-page {
  --legal-max: 44rem;
  --legal-rail: 15rem;
  --legal-accent: var(--blue);
  --legal-surface: var(--surface);
  --legal-ink: var(--navy);
  --legal-muted: var(--muted);
  --legal-line: var(--line);
  --legal-soft: #e8eef8;
}

.legal-hero-block {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--legal-line);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(23, 105, 232, 0.08), transparent 55%),
    radial-gradient(70% 60% at 100% 0%, rgba(19, 185, 129, 0.06), transparent 50%),
    var(--bg);
}

.legal-hero-block .eyebrow { margin-bottom: 0.55rem; }
.legal-hero-block h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  letter-spacing: -0.03em;
  color: var(--legal-ink);
}
.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--legal-muted);
}
.legal-hero-meta a { font-weight: 600; }
.legal-hero-lead {
  margin: 0;
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--legal-muted);
}
.legal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.legal-hero-actions .btn { min-height: 2.35rem; }

.legal-status-banner {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed #d97706;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.55;
}
.legal-status-banner strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #92400e;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-body-section {
  padding: 1.5rem 0 3.5rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: var(--legal-rail) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.legal-toc-wrap {
  position: sticky;
  top: 5.1rem;
  max-height: calc(100vh - 5.75rem);
  overflow: auto;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--legal-line);
  border-radius: 14px;
  background: var(--legal-surface);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}
.legal-toc-wrap > strong {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--legal-muted);
}
.legal-toc-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  appearance: none;
  border: 1px solid var(--legal-line);
  border-radius: 12px;
  background: var(--legal-surface);
  color: var(--legal-ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  margin-bottom: 0.65rem;
}
.legal-toc-toggle:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 2px;
}
.legal-toc-toggle-icon {
  font-size: 0.85rem;
  color: var(--legal-muted);
}
.legal-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.legal-toc a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: var(--legal-ink);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
}
.legal-toc a:hover {
  background: color-mix(in srgb, var(--legal-soft) 80%, transparent);
  color: var(--legal-accent);
  text-decoration: none;
}
.legal-toc a.is-active {
  background: color-mix(in srgb, var(--legal-soft) 90%, transparent);
  border-left-color: var(--legal-accent);
  color: var(--legal-accent);
  font-weight: 650;
}

.legal-doc {
  min-width: 0;
  max-width: calc(var(--legal-max) + 2rem);
  padding: 0.25rem 0 0;
}
.legal-doc > section {
  scroll-margin-top: 5.5rem;
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--legal-line);
}
.legal-doc > section:last-child { border-bottom: 0; }
.legal-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
}
.legal-heading h2 {
  margin: 0;
  flex: 1;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--legal-ink);
}
.legal-doc h3 {
  margin: 1.05rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--legal-ink);
}
.legal-doc p,
.legal-doc li {
  margin: 0 0 0.7rem;
  line-height: 1.7;
  color: var(--legal-ink);
  font-size: 0.98rem;
}
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}
.legal-doc a { color: var(--legal-accent); font-weight: 500; }
.legal-copy-link {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--legal-muted);
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0.55;
}
.legal-heading:hover .legal-copy-link,
.legal-copy-link:focus-visible {
  opacity: 1;
  border-color: var(--legal-line);
  background: var(--legal-surface);
  outline: none;
}
.legal-copy-link.is-copied {
  color: var(--green);
  opacity: 1;
}

.legal-callout,
.legal-placeholder {
  margin: 0.9rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--legal-line);
  background: color-mix(in srgb, var(--legal-soft) 55%, var(--legal-surface));
  color: var(--legal-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.legal-placeholder {
  border-style: dashed;
  background: color-mix(in srgb, #f59e0b 8%, var(--legal-surface));
}
.legal-placeholder strong { color: #92400e; }

.legal-glance {
  display: grid;
  gap: 0.75rem;
  margin: 0.85rem 0 0.25rem;
}
.legal-glance dt {
  margin: 0;
  font-weight: 700;
  color: var(--legal-ink);
  font-size: 0.95rem;
}
.legal-glance dd {
  margin: 0.2rem 0 0.55rem;
  color: var(--legal-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-back-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  border: 1px solid var(--legal-line);
  background: var(--legal-surface);
  color: var(--legal-ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.legal-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.legal-back-top:focus-visible {
  outline: 2px solid var(--legal-accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc-wrap {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .legal-toc-toggle { display: inline-flex; }
  .legal-toc-panel {
    display: none;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--legal-line);
    border-radius: 12px;
    background: var(--legal-surface);
  }
  .legal-toc-panel.is-open { display: block; }
  .legal-toc-wrap > strong { display: none; }
}

@media (max-width: 640px) {
  .legal-hero-block { padding-top: 1.75rem; }
  .legal-body-section { padding-bottom: 2.75rem; }
  .legal-doc > section { scroll-margin-top: 4.75rem; }
  .legal-back-top { right: 0.75rem; bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .legal-back-top { transition: none !important; }
}

@media (prefers-color-scheme: dark) {
  body.legal-page {
    --blue: #60a5fa;
    --blue-dark: #93c5fd;
    --navy: #e8eef8;
    --bg: #0f172a;
    --surface: #152033;
    --muted: #9aa8bc;
    --line: #2a3a52;
    --legal-surface: #152033;
    --legal-ink: #e8eef8;
    --legal-muted: #9aa8bc;
    --legal-line: #2a3a52;
    --legal-soft: #1c2b44;
    background: #0f172a;
    color: #e8eef8;
  }
  body.legal-page .site-header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(42, 58, 82, 0.9);
  }
  body.legal-page .brand,
  body.legal-page .brand span { color: #e8eef8; }
  body.legal-page .nav-toggle {
    background: #152033;
    color: #e8eef8;
    border-color: #2a3a52;
  }
  body.legal-page .btn-ghost {
    color: #e8eef8;
    border-color: #2a3a52;
  }
  .legal-hero-block {
    background:
      radial-gradient(90% 80% at 0% 0%, rgba(23, 105, 232, 0.16), transparent 55%),
      radial-gradient(70% 60% at 100% 0%, rgba(19, 185, 129, 0.1), transparent 50%),
      #0f172a;
  }
  .legal-status-banner {
    background: #3b2a12;
    border-color: #b45309;
    color: #fde68a;
  }
  .legal-status-banner strong { color: #fbbf24; }
  .legal-placeholder {
    background: color-mix(in srgb, #f59e0b 12%, var(--legal-surface));
  }
  .legal-placeholder strong { color: #fbbf24; }
  body.legal-page .site-footer {
    background: #0b1220;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc-wrap,
  .legal-hero-actions,
  .legal-back-top,
  .legal-copy-link,
  .mf-cookie-root { display: none !important; }
  .legal-doc { max-width: none; }
  .legal-doc > section { break-inside: avoid; border: 0; }
  body { background: #fff; color: #000; }
  .legal-page { --legal-ink: #000; --legal-muted: #333; }
}
