/* ==========================================================================
   nextxch.com Product Website Stylesheet (iqmeta GmbH)
   Brand Palette: #575757, #5B9BEA, #2563B0, #1E4F8F
   Dark Mode: Pure Visual Studio Code Neutral Dark Grey (#181818 / #1E1E1E / #252526)
   ========================================================================== */

:root {
  --sm-slate: #575757;
  --sm-amber: #5B9BEA;
  --sm-flame: #2563B0;
  --sm-crimson: #1E4F8F;
  --nx-logo: #2563B0;

  --bg: #FAFAFA;
  --bg-alt: #F3F3F3;
  --panel: #FFFFFF;
  --panel-2: #EFEFEF;
  --ink: #181818;
  --body: #3B3B3B;
  --muted: #575757;
  --border: #E2E2E2;
  --border-strong: #CCCCCC;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 22px 48px -12px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.05);
  --glow: radial-gradient(640px circle at 78% 22%, rgba(91, 155, 234, 0.16), rgba(37, 99, 176, 0.08) 45%, transparent 72%);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.dark {
  --nx-logo: #7FB2F0;
  --bg: #1E1E1E;
  --bg-alt: #181818;
  --panel: #252526;
  --panel-2: #2D2D30;
  --ink: #F3F3F3;
  --body: #CCCCCC;
  --muted: #9D9D9D;
  --border: #333333;
  --border-strong: #454545;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 26px 56px -12px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --glow: radial-gradient(680px circle at 76% 22%, rgba(37, 99, 176, 0.16), rgba(91, 155, 234, 0.08) 42%, transparent 72%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.16;
  margin: 0 0 0.65rem;
}

h1 { font-size: clamp(1.47rem, 2.87vw, 2.38rem); font-weight: 800; }
h2 { font-size: clamp(1.12rem, 1.96vw, 1.65rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--sm-flame); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--sm-crimson); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.14em 0.4em;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--border);
}

.wrap {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
}

.sec { padding: 4.5rem 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sm-flame);
  margin-bottom: 0.65rem;
}
html.dark .eyebrow { color: var(--sm-amber); }

.lead {
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 790px;
  margin-bottom: 2.25rem;
}

/* ==========================================================================
   Clean Architectural Top Navigation Bar
   ========================================================================== */
.gh {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
  border-bottom: 1px solid var(--border);
}

.gh-bar {
  max-width: 1260px;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gh-bar { padding: 0 2rem; }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-lockup:hover { color: var(--ink); }
/* Logo symbol from /img/brand/brand.svg: "next" and ".com" follow currentColor, "xch" uses --nx-logo */
.brand-logo { height: 50px; width: auto; display: block; }
.site-footer .brand-logo { height: 60px; }

.gh-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) {
  .gh-nav { display: inline-flex; }
}

.gh-l {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.44rem 0.82rem;
  border-radius: 7px;
  font-size: 0.855rem;
  font-weight: 580;
  line-height: 1.2;
  color: var(--body);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.gh-l:hover,
.gh-dd.is-open > .gh-dd-btn {
  color: var(--ink);
  background: var(--panel-2);
}
.gh-l[aria-current="page"],
.gh-dd-btn[data-active="true"] {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--sm-flame) 0%, var(--sm-crimson) 100%) !important;
  font-weight: 650;
}

.gh-chev {
  opacity: 0.72;
  transition: transform 0.16s ease, opacity 0.16s ease;
  flex-shrink: 0;
}
.gh-dd.is-open > .gh-dd-btn .gh-chev {
  transform: rotate(180deg);
  opacity: 1;
}

.gh-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  flex-shrink: 0;
}
html.dark .gh-live-dot {
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}
.gh-l[aria-current="page"] .gh-live-dot {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* Desktop Mega-Menu & Compact Dropdown Panels */
.gh-dd {
  position: static;
  display: inline-flex;
}
.gh-dd-compact {
  position: relative;
}

.gh-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.15s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s;
  z-index: 90;
}
.gh-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.gh-dd.is-open > .gh-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.gh-mega {
  width: min(690px, calc(100vw - 2rem));
  padding: 0.9rem;
}
.gh-panel-sm {
  width: 345px;
  padding: 0.55rem;
  display: grid;
  gap: 0.2rem;
}

.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.mega-heading {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  color: var(--muted);
  padding: 0.25rem 0.62rem 0.35rem;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.6rem 0.66rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--body);
  text-decoration: none;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.mega-link:hover {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--ink);
}
.mega-link[aria-current="page"] {
  background: rgba(37, 99, 176, 0.07);
  border-color: rgba(37, 99, 176, 0.28);
}
html.dark .mega-link[aria-current="page"] {
  background: rgba(91, 155, 234, 0.1);
  border-color: rgba(91, 155, 234, 0.3);
}

.mega-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: color 0.13s ease, border-color 0.13s ease, background 0.13s ease;
}
.mega-link:hover .mega-ico,
.mega-link[aria-current="page"] .mega-ico {
  color: var(--sm-flame);
  border-color: rgba(37, 99, 176, 0.32);
  background: rgba(37, 99, 176, 0.08);
}
html.dark .mega-link:hover .mega-ico,
html.dark .mega-link[aria-current="page"] .mega-ico {
  color: var(--sm-amber);
  border-color: rgba(91, 155, 234, 0.34);
  background: rgba(91, 155, 234, 0.12);
}

.mega-txt {
  display: block;
  min-width: 0;
}
.mega-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 680;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.16rem;
}
.mega-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: rgba(37, 99, 176, 0.11);
  color: var(--sm-flame);
  letter-spacing: 0.02em;
}
html.dark .mega-pill {
  background: rgba(91, 155, 234, 0.16);
  color: var(--sm-amber);
}
.mega-desc {
  display: block;
  font-size: 0.765rem;
  line-height: 1.38;
  color: var(--muted);
  font-weight: 450;
  white-space: normal;
}

.mega-foot {
  margin-top: 0.65rem;
  padding: 0.65rem 0.82rem;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.mega-foot-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
}
.mega-foot-copy strong {
  color: var(--ink);
  font-weight: 680;
}
.mega-foot-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.mega-foot-links a {
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.24rem 0.56rem;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
}
.mega-foot-links a:hover {
  border-color: var(--sm-flame);
  color: var(--sm-flame);
}

.gh-act {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language switcher: code of the current language, menu with code + native name for all ten languages */
.gh-lang {
  position: relative;
  font-size: 0.73rem;
  font-weight: 700;
}
.gh-lang > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--body);
  cursor: pointer;
  user-select: none;
}
.gh-lang > summary::-webkit-details-marker { display: none; }
.gh-lang > summary:hover, .gh-lang[open] > summary { color: var(--ink); border-color: var(--border-strong); }
.gh-lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.gh-lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.6rem;
  border-radius: 6px;
  color: var(--body);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}
.gh-lang-menu a:hover { background: var(--panel-2); color: var(--ink); }
.gh-lang-menu a[aria-current="true"] { background: var(--panel-2); color: var(--ink); font-weight: 700; }
.gh-lang-code { min-width: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--muted); }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.icon-btn:hover {
  border-color: var(--sm-flame);
  color: var(--sm-flame);
}

.mob-toggle { display: inline-flex; }
@media (min-width: 960px) { .mob-toggle { display: none; } }

.mnav {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: 0.85rem 1.25rem 1.25rem;
}
.mnav-inner {
  display: grid;
  gap: 0.45rem;
}
.mnav-direct {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 680;
}
.mnav-direct:hover { border-color: var(--sm-flame); color: var(--sm-flame); }
.mnav-acc {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  overflow: hidden;
}
.mnav-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}
.mnav-acc > summary::-webkit-details-marker { display: none; }
.mnav-acc[open] > summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mnav-acc[open] > summary .gh-chev { transform: rotate(180deg); }
.mnav-sub {
  display: grid;
  gap: 0.18rem;
  padding: 0.45rem;
}
.mnav-sub a {
  padding: 0.5rem 0.68rem;
  border-radius: 7px;
  color: var(--body);
  font-size: 0.85rem;
  font-weight: 580;
}
.mnav-sub a:hover { background: var(--panel-2); color: var(--sm-flame); }

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; border-radius: 7px; }

.btn-pri {
  background: linear-gradient(135deg, var(--sm-flame) 0%, var(--sm-crimson) 100%);
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 176, 0.48);
}
.btn-pri:hover {
  background: linear-gradient(135deg, var(--sm-amber) 0%, var(--sm-flame) 55%, var(--sm-crimson) 100%);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-sec {
  background: var(--panel);
  color: var(--ink) !important;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-sec:hover {
  border-color: var(--sm-flame);
  color: var(--sm-flame) !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.3rem 0.68rem;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
}
.chip b { color: var(--ink); font-weight: 700; }

.save-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(91, 155, 234, 0.16);
  color: #B45309;
  border: 1px solid rgba(91, 155, 234, 0.45);
}
html.dark .save-pill {
  background: rgba(91, 155, 234, 0.16);
  color: var(--sm-amber);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 1.5rem 0 3rem;
  background-image: var(--glow);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .hero { padding: 2rem 0 3.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.75rem; }
}

.hero-sub {
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
  color: var(--body);
  max-width: 630px;
}

.hero-sovereignty {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  max-width: 630px;
  margin-top: 1.05rem;
  padding: 0.78rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(22, 163, 74, 0.34);
  border-inline-start: 4px solid #16A34A;
  background: rgba(22, 163, 74, 0.06);
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--body);
}
html.dark .hero-sovereignty {
  border-color: rgba(34, 197, 94, 0.34);
  border-inline-start-color: #22C55E;
  background: rgba(34, 197, 94, 0.08);
}
.hero-sovereignty-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(22, 163, 74, 0.14);
  color: #15803D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
html.dark .hero-sovereignty-ico {
  background: rgba(34, 197, 94, 0.18);
  color: #4ADE80;
}
.hero-sovereignty strong {
  color: var(--ink);
  font-weight: 750;
}

.grad-text {
  background: linear-gradient(120deg, var(--sm-flame) 0%, var(--sm-crimson) 48%, var(--sm-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.55rem;
}

.hero-stage { position: relative; }
.browser-frame {
  border-radius: 10px;
  overflow: hidden;
  background: #181818;
  border: 1px solid #3C3C3C;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: #252526;
  border-bottom: 1px solid #333333;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9D9D9D;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dots i:nth-child(1) { background: #2563B0; }
.dots i:nth-child(2) { background: #5B9BEA; }
.dots i:nth-child(3) { background: #22C55E; }

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.float-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.fstat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-sm);
}
.fstat b {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--sm-flame);
}
html.dark .fstat b { color: var(--sm-amber); }
.fstat span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ==========================================================================
   VS Code Dark Grey Code Window
   ========================================================================== */
.code-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 980px) {
  .code-split { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 2.25rem; }
}

.hwin {
  background: #1E1E1E;
  color: #CCCCCC;
  border-radius: 10px;
  border: 1px solid #3C3C3C;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hwin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  background: #252526;
  border-bottom: 1px solid #333333;
}
.code-tabs {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.code-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #9D9D9D;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.24rem 0.62rem;
  border-radius: 5px;
  cursor: pointer;
}
.code-tab[aria-selected="true"] {
  background: rgba(37, 99, 176, 0.18);
  border-color: rgba(37, 99, 176, 0.48);
  color: #FFFFFF;
}
.hwin pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #D4D4D4;
}
.hwin .k { color: #5B9BEA; }
.hwin .s { color: #86EFAC; }
.hwin .c { color: #767676; }
.hwin .f { color: #FCA5A5; }

/* ==========================================================================
   Cards, At-a-Glance & Capability Grids
   ========================================================================== */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.glance-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
@media (min-width: 680px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .glance-grid { grid-template-columns: repeat(3, 1fr); } }

.glance-cell {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-inline-end: 1px solid var(--border);
}
.glance-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(91, 155, 234, 0.16), rgba(37, 99, 176, 0.16));
  border: 1px solid rgba(37, 99, 176, 0.24);
  color: var(--sm-flame);
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
html.dark .glance-ico { color: var(--sm-amber); border-color: rgba(91, 155, 234, 0.28); }
.glance-cell h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.glance-cell p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Screenshot Switcher */
.shot-tabs, .guide-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 9px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 1.35rem;
}
.shot-tab, .guide-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.82rem;
  padding: 0.46rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shot-tab[aria-selected="true"], .guide-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--sm-flame), var(--sm-crimson));
  color: #FFFFFF;
}

.shot-caption {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* 4-Pillar & Deep-Dive Capability Cards */
.caps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 900px) {
  .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cap-card header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.cap-card header p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.cap-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.89rem;
}
.cap-card li {
  position: relative;
  padding-inline-start: 1.15rem;
}
.cap-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--sm-amber), var(--sm-flame));
}
.cap-card li b { color: var(--ink); }

/* ==========================================================================
   Performance Benchmarks & Memory Bars
   ========================================================================== */
.bench-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 680px) { .bench-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bench-grid { grid-template-columns: repeat(4, 1fr); } }

.bench-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem;
}
.bench-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sm-flame);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
html.dark .bench-val { color: var(--sm-amber); }
.bench-lbl {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.bench-sub {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0;
}

.mem-bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.mem-row {
  display: grid;
  gap: 0.3rem;
}
.mem-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.mem-meta span:last-child { font-family: var(--font-mono); color: var(--muted); }
.bar-track {
  height: 10px;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 3px;
}
.bar-fill-sm { background: linear-gradient(90deg, var(--sm-flame), var(--sm-amber)); }
.bar-fill-alt { background: #737373; }

/* ==========================================================================
   Cloud, OS, Container & Installation Guides Matrix
   ========================================================================== */
.cloud-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .cloud-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cloud-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
}
.cloud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--ink);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.guide-card {
  min-width: 0;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-margin-top: 84px;
}
.guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.guide-tag {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 0.2rem 0.52rem;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.guide-steps {
  margin: 0;
  padding-inline-start: 1.2rem;
  font-size: 0.86rem;
  display: grid;
  gap: 0.42rem;
  color: var(--body);
}
.guide-steps b { color: var(--ink); }
.guide-pre {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #181818;
  border: 1px solid #333333;
  color: #D4D4D4;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  overflow-x: auto;
}

/* ==========================================================================
   Interactive Domain DNS / SPF / DKIM / DMARC / rDNS Generator & Advisory
   ========================================================================== */
.dns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .dns-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

.dns-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.dns-out-box {
  background: #181818;
  color: #CCCCCC;
  border: 1px solid #3C3C3C;
  border-radius: 12px;
  padding: 1.45rem;
  box-shadow: var(--shadow-lg);
}

.dns-score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333333;
}
.dns-score-num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: #4ADE80;
}

.dns-adv-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.dns-adv {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.45;
  border: 1px solid #333333;
  background: #252526;
}
.dns-adv.ok { border-inline-start: 3px solid #22C55E; color: #D4D4D4; }
.dns-adv.warn { border-inline-start: 3px solid #5B9BEA; color: #FDE68A; }
.dns-adv.err { border-inline-start: 3px solid #2563B0; color: #FCA5A5; }

.dns-records {
  display: grid;
  gap: 0.7rem;
}
.dns-rec {
  background: #252526;
  border: 1px solid #333333;
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
}
.dns-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dns-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(37, 99, 176, 0.18);
  color: #FCA5A5;
  border: 1px solid rgba(37, 99, 176, 0.38);
}
.dns-host {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: #5B9BEA;
  word-break: break-all;
}
.dns-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #E5E5E5;
  background: #1E1E1E;
  border: 1px solid #333333;
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
  word-break: break-all;
  margin-top: 0.25rem;
}
.dns-note {
  font-size: 0.74rem;
  color: #9D9D9D;
  margin-top: 0.32rem;
}
.copy-btn {
  background: #2D2D30;
  color: #CCCCCC;
  border: 1px solid #3C3C3C;
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--sm-flame); color: #FFFFFF; }

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}
.cmp-table th, .cmp-table td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
}
.cmp-table thead th {
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 750;
  font-size: 0.83rem;
}
.cmp-table th.hl, .cmp-table td.hl {
  background: rgba(37, 99, 176, 0.06);
}
html.dark .cmp-table th.hl, html.dark .cmp-table td.hl {
  background: rgba(37, 99, 176, 0.11);
}
.cmp-table thead th.hl {
  color: var(--sm-flame);
  border-bottom: 2px solid var(--sm-flame);
}
html.dark .cmp-table thead th.hl { color: var(--sm-amber); }
.yes { color: #16A34A; font-weight: 700; }
html.dark .yes { color: #4ADE80; }
.part { color: #D97706; font-weight: 600; }
html.dark .part { color: var(--sm-amber); }
.no { color: var(--muted); }
.unk { color: var(--muted); font-style: italic; font-weight: 400; }

/* System comparison page: product matrix, gaps table, per-competitor cards */
.cmp-table.cmp-matrix { min-width: 1560px; font-size: 0.78rem; }
.cmp-table.cmp-matrix th, .cmp-table.cmp-matrix td { padding: 0.55rem 0.6rem; vertical-align: top; }
.cmp-table.cmp-matrix th:first-child, .cmp-table.cmp-matrix td:first-child {
  position: sticky; inset-inline-start: 0; z-index: 2; min-width: 150px; background: var(--panel);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
}
.cmp-table.cmp-matrix thead th:first-child { background: var(--panel-2); z-index: 3; }
.cmp-table.cmp-matrix td.hl:first-child { background: var(--panel); }
.cmp-table.cmp-matrix td a { color: var(--ink); text-decoration: none; }
.cmp-table.cmp-matrix td a:hover { color: var(--sm-flame); }
.cmp-sub { color: var(--muted); font-size: 0.74rem; }
.cmp-table.cmp-gaps { min-width: 760px; }
.cmp-table.cmp-gaps td { vertical-align: top; }
.cmp-table.cmp-gaps td:first-child { width: 22%; }
@media (max-width: 700px) {
  .cmp-table.cmp-gaps { min-width: 0; }
  .cmp-table.cmp-gaps thead { display: none; }
  .cmp-table.cmp-gaps tr { display: block; border-bottom: 1px solid var(--border); padding: 0.55rem 0; }
  .cmp-table.cmp-gaps td,
  .cmp-table.cmp-gaps td:first-child {
    display: block; width: auto; max-width: none; position: static; box-shadow: none; border: 0; padding: 0.3rem 0.85rem;
  }
  .cmp-table.cmp-gaps td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em;
  }
}
.cmp-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.5; max-width: 980px; }
.vs-toc, .vs-jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.vs-jump { margin: 0 0 1.5rem; }
.vs-toc a, .vs-jump a {
  display: inline-block; padding: 0.32rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); color: var(--ink); font-size: 0.82rem; text-decoration: none;
}
.vs-toc a:hover, .vs-jump a:hover { border-color: var(--sm-flame); color: var(--sm-flame); }
.fit-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 900px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-card { justify-content: flex-start; }
.fit-card h3 { margin-top: 0; }
.fit-yes { border-top: 3px solid #16A34A; }
.fit-no { border-top: 3px solid #D97706; }
.vs-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem; margin-bottom: 1.2rem; scroll-margin-top: 7rem;
}
.vs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; margin-bottom: 0.9rem; }
.vs-head h3 { margin: 0; font-size: 1.1rem; }
.vs-edition { color: var(--muted); font-size: 0.84rem; }
.vs-status { margin: 0 0 0.9rem; padding: 0.55rem 0.8rem; border-inline-start: 3px solid #D97706; background: var(--panel-2); font-size: 0.86rem; }
.vs-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 900px) { .vs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vs-col h4 { margin: 0 0 0.55rem; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.vs-them h4 { color: #D97706; }
.vs-ours h4 { color: #16A34A; }
.vs-price h4 { color: var(--sm-flame); }
html.dark .vs-them h4 { color: var(--sm-amber); }
html.dark .vs-ours h4 { color: #4ADE80; }
.vs-col ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.vs-price-big { margin: 0 0 0.5rem; font-weight: 750; color: var(--ink); }
.vs-src { margin: 1rem 0 0; font-size: 0.76rem; color: var(--muted); overflow-wrap: anywhere; }
.vs-src a { color: var(--muted); }

/* ==========================================================================
   Interactive Pricing Calculator (From €1.50, 25% to 28% cheaper vs Stalwart)
   ========================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 980px) {
  .calc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.tier-list { display: grid; gap: 0.45rem; }
.tier-row {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.25fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.86rem;
}
.tier-row.active {
  border-color: var(--sm-flame);
  background: rgba(37, 99, 176, 0.06);
}
.strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.8rem;
}
.price-strong {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.96rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--sm-flame);
  height: 8px;
  cursor: pointer;
}

.calc-box {
  background: #181818;
  color: #F3F3F3;
  border-radius: 12px;
  padding: 1.65rem;
  border: 1px solid #3C3C3C;
  box-shadow: var(--shadow-lg);
}
.calc-box h3, .calc-box strong { color: #FFFFFF; }
.calc-total {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--sm-amber);
  line-height: 1.15;
}

/* ==========================================================================
   CTA Banner, FAQ, Forms & 3-Column Clean Footer
   ========================================================================== */
.cta-banner {
  border-radius: 14px;
  padding: 2.35rem 2rem;
  background: linear-gradient(135deg, #181818 0%, #252526 60%, #2B1B1A 100%);
  border: 1px solid #3C3C3C;
  color: #FFFFFF;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-banner {
    padding: 2.75rem 3rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.cta-banner h2 { color: #FFFFFF; margin-bottom: 0.45rem; }
.cta-banner p { color: #CCCCCC; margin: 0; max-width: 640px; }

.faq-list { display: grid; gap: 0.7rem; max-width: 920px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--sm-flame);
  font-size: 1.2rem;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin: 0.7rem 0 0; font-size: 0.91rem; color: var(--body); }

.form-grid { display: grid; gap: 0.9rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--sm-flame);
  border-color: transparent;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 840px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--sm-flame); }
.legal-row {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.legal-links a { color: var(--muted); font-weight: 560; }
.legal-links a:hover { color: var(--sm-flame); }

/* ==========================================================================
   Official Made & Hosted in Germany SVG + exali Liability Seal + Feature Shots
   ========================================================================== */
.trust-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin-top: 1.05rem;
}
.mhg-badge img {
  display: block;
  width: 146px;
  height: auto;
}
.mhg-d { display: none !important; }
html.dark .mhg-l { display: none !important; }
html.dark .mhg-d { display: block !important; }

.exali-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.exali-badge:hover {
  border-color: var(--sm-flame);
  color: var(--ink);
  text-decoration: none;
}
.exali-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.feat-shots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (min-width: 860px) {
  .feat-shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.feat-shot-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.feat-shot-card .browser-bar {
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
}
.feat-shot-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}
.feat-shot-body {
  padding: 1rem 1.2rem 1.15rem;
}
.feat-shot-body h3 {
  font-size: 0.98rem;
  margin: 0 0 0.3rem;
}
.feat-shot-body p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Responsive Form Grids, Pricing Helpers & Mobile-First Refinements
   ========================================================================== */
.card-pad {
  padding: 2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
}

.dns-domain-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 520px) {
  .dns-domain-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.dns-score-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.calc-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.calc-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.calc-num-input {
  width: 120px;
  flex-shrink: 0;
  background: #252526;
  color: #FFFFFF;
  border-color: #3C3C3C;
  font-weight: 700;
}
.calc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
}

/* Mobile Menu Enhancements */
.mnav {
  max-height: calc(100dvh - 58px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mnav-sub a[aria-current="page"],
.mnav-direct[aria-current="page"] {
  background: rgba(37, 99, 176, 0.1);
  color: var(--sm-flame);
  font-weight: 680;
}
html.dark .mnav-sub a[aria-current="page"],
html.dark .mnav-direct[aria-current="page"] {
  background: rgba(91, 155, 234, 0.14);
  color: var(--sm-amber);
}
.mnav-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 520px) {
  .mnav-actions { grid-template-columns: 1fr 1fr; }
}

/* Prevent long URLs in browser bars from overflowing narrow viewports */
.browser-bar {
  gap: 0.55rem;
}
.browser-bar > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.browser-bar > span:last-child {
  flex-shrink: 0;
}

.mem-meta {
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
}

.guide-card-head {
  flex-wrap: wrap;
}

/* Tablet & Smartphone Touch-Scroll Pill Bars (< 820px) */
@media (max-width: 820px) {
  .shot-tabs,
  .guide-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 0.32rem;
  }
  .shot-tabs::-webkit-scrollbar,
  .guide-tabs::-webkit-scrollbar,
  .hwin-bar::-webkit-scrollbar {
    display: none;
  }
  .shot-tab,
  .guide-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    min-height: 38px;
  }
  .hwin-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .code-tabs {
    flex-wrap: nowrap;
  }
  .code-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 32px;
  }
}

/* Pricing Tier Rows: Clean 2-Row Card Layout on Mobile & Small Tablets (< 740px) */
@media (max-width: 740px) {
  .tier-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tier save"
      "sharp stalwart";
    gap: 0.3rem 0.65rem;
    padding: 0.75rem 0.85rem;
  }
  .tier-row > div:nth-child(1) { grid-area: tier; }
  .tier-row > div:nth-child(4) { grid-area: save; justify-self: end; }
  .tier-row > div:nth-child(3) { grid-area: sharp; }
  .tier-row > div:nth-child(2) { grid-area: stalwart; justify-self: end; text-align: end; }
}

/* Glance Grid 1-Column Clean Borders (< 680px) */
@media (max-width: 679px) {
  .glance-cell {
    border-inline-end: 0;
    padding: 1.15rem 1.2rem;
  }
  .glance-cell:last-child {
    border-bottom: 0;
  }
}

/* Core Smartphone Breakpoint (< 640px) */
@media (max-width: 639px) {
  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .gh-bar {
    height: 58px;
    padding-left: max(0.95rem, env(safe-area-inset-left));
    padding-right: max(0.95rem, env(safe-area-inset-right));
    gap: 0.5rem;
  }
  .gh-cta {
    display: none;
  }
  .gh-act {
    gap: 0.4rem;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .brand-lockup {
    gap: 0.48rem;
  }
  .brand-logo {
    height: 44px;
  }

  h1 {
    font-size: clamp(1.2rem, 4.9vw, 1.58rem);
    line-height: 1.15;
  }
  h2 {
    font-size: clamp(0.97rem, 3.9vw, 1.3rem);
    line-height: 1.2;
  }
  .hero {
    padding: 1.25rem 0 2.2rem;
  }
  .hero-grid {
    gap: 1.75rem;
  }
  .sec {
    padding: 2.85rem 0;
  }
  .lead {
    font-size: 0.98rem;
    margin-bottom: 1.45rem;
  }

  .card-pad,
  .cap-card,
  .guide-card,
  .dns-panel,
  .dns-out-box,
  .calc-box {
    padding: 1.15rem;
  }
  .cta-banner {
    padding: 1.5rem 1.2rem;
    gap: 1.15rem;
  }

  /* Prevent iOS Safari zoom on input focus */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    min-height: 42px;
  }

  .dns-score-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .dns-score-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Comparison Table: Sticky 1st Column & Touch Scroll */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .cmp-table {
    font-size: 0.81rem;
    min-width: 620px;
  }
  .cmp-table th,
  .cmp-table td {
    padding: 0.68rem 0.75rem;
  }
  .cmp-table th:first-child,
  .cmp-table td:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    max-width: 158px;
    background: var(--panel);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
  }
  .cmp-table thead th:first-child {
    background: var(--panel-2);
    z-index: 3;
  }

  .hwin pre,
  .guide-pre {
    padding: 0.85rem 0.9rem;
    font-size: 0.74rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Narrow Smartphone Polish (< 560px) */
@media (max-width: 560px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .float-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .fstat {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.68rem 0.85rem;
  }

  .hwin-bar .dots {
    display: none;
  }
  .browser-bar > span:nth-child(3) {
    display: none;
  }
  .browser-bar > span:nth-child(2) {
    text-align: start;
  }

  .trust-badges {
    gap: 0.75rem;
  }
  .exali-badge {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .gh-lang > summary {
    padding: 0 0.4rem;
  }
}


/* =========================================================================
   LEGAL HUB & LEGAL DOCUMENTS (/legal/, /legal/{slug}/)
   ========================================================================= */
.legal-hero { padding-bottom: 1.5rem; }
.legal-hero h1 { font-size: clamp(1.23rem, 2.1vw, 1.68rem); font-weight: 750; }
.legal-cat { margin-bottom: 2.75rem; }
.legal-cat-head h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.legal-cat-head p { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.95rem; }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .legal-grid { grid-template-columns: repeat(3, 1fr); } }
.legal-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.35rem 1.4rem; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); box-shadow: var(--shadow-sm); color: var(--body);
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.legal-card:hover { border-color: var(--sm-flame); transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.legal-card-ico { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); color: var(--sm-flame); }
.legal-card-ico svg { width: 20px; height: 20px; }
html.dark .legal-card-ico { color: var(--sm-amber); }
.legal-card-title { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.legal-card-desc { font-size: 0.9rem; line-height: 1.5; flex: 1; }
.legal-card-meta { font-size: 0.76rem; color: var(--muted); font-family: var(--font-mono); }
.legal-cta {
  display: grid; gap: 1.5rem; padding: 2rem; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg-alt);
}
@media (min-width: 840px) { .legal-cta { grid-template-columns: 2fr 1fr; align-items: center; } }
.legal-cta h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.legal-cta p { margin: 0; }
.legal-cta-addr { font-size: 0.92rem; line-height: 1.6; }

.legal-doc { padding-top: 2.25rem; }
.legal-doc h1 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 0.35rem; }
.legal-crumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.legal-crumb a { color: var(--muted); }
.legal-meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 1rem; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.25rem; }
.legal-note { border-inline-start: 3px solid var(--sm-amber); background: var(--bg-alt); padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.5rem; }
.legal-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
@media (min-width: 980px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.legal-toc { align-self: start; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; background: var(--panel); }
@media (min-width: 980px) { .legal-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
.legal-toc-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 0.5rem; font-weight: 700; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.legal-toc a { color: var(--body); font-size: 0.87rem; text-decoration: none; display: block; padding: 0.15rem 0; }
.legal-toc a:hover { color: var(--sm-flame); }
.legal-toc a span { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }
.legal-body { max-width: 780px; }
.legal-sec { scroll-margin-top: 90px; margin-bottom: 2rem; }
.legal-sec { margin-bottom: 1.6rem; }
.legal-sec h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.005em; line-height: 1.35; margin: 0 0 0.5rem; }
.legal-sec h3 { font-size: 0.95rem; font-weight: 650; letter-spacing: 0; margin: 1rem 0 0.35rem; }
.legal-sec p, .legal-sec li { font-size: 0.95rem; }
.legal-num { color: var(--sm-flame); font-family: var(--font-mono); margin-inline-end: 0.25rem; }
html.dark .legal-num { color: var(--sm-amber); }
.legal-sec p, .legal-sec li { line-height: 1.7; }
.legal-sec ul, .legal-sec ol { padding-inline-start: 1.3rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: start; vertical-align: top; }
.legal-table th { background: var(--bg-alt); color: var(--ink); }
.legal-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }

@media print {
  .site-header, header, .site-footer, .legal-actions, .legal-toc, .legal-crumb { display: none !important; }
  .legal-layout { display: block; }
  .legal-body { max-width: none; }
  body { background: #fff; color: #000; }
  .legal-sec { break-inside: avoid-page; }
  .legal-sec a { color: #000; text-decoration: underline; }
}

/* Hero screenshots open the live demos */
.browser-frame-link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.browser-frame-link:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(37, 99, 176, .18); }
.browser-frame-link:focus-visible { outline: 2px solid var(--sm-flame, #2563B0); outline-offset: 4px; }
.hero-webmail-frame { margin-top: 18px; }

/* ==========================================================================
   Landing page (/ and /de/, HomePage.cs), concept "A + C": calm iOS-like style.
   Light colours map to the theme tokens in dark mode; the "how it works" band,
   the demo cards and the closing CTA stay dark/blue in both modes.
   ========================================================================== */
.lp-page {
  --lp-ground: #F5F5F7;
  --lp-card: #FFFFFF;
  --lp-line: #E2E2E2;
  --lp-ink: #1D1D1F;
  --lp-body: #3B3B3B;
  --lp-muted: #575757;
  --lp-blue: #2563B0;
  --lp-blue-hover: #1E4F8F;
  --lp-blue-soft: #EAF1FB;
  --lp-seg: #E8E8ED;
  --lp-navy: #0E1B2E;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  background: var(--lp-ground);
  color: var(--lp-ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
html.dark .lp-page {
  --lp-ground: var(--bg);
  --lp-card: var(--panel);
  --lp-line: var(--border);
  --lp-ink: var(--ink);
  --lp-body: var(--body);
  --lp-muted: var(--muted);
  --lp-blue: #7FB2F0;
  --lp-blue-hover: #A9CBF5;
  --lp-blue-soft: rgba(127, 178, 240, 0.12);
  --lp-seg: var(--panel-2);
}
.lp-page h1, .lp-page h2, .lp-page h3 { color: var(--lp-ink); letter-spacing: -0.02em; }
.lp-page h1 { font-size: clamp(2.1rem, 5.2vw, 3rem); line-height: 1.08; font-weight: 800; margin: 0; }
.lp-page h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); line-height: 1.15; font-weight: 800; margin: 0; }
.lp-page a { color: var(--lp-blue); }
.lp-page a:hover { color: var(--lp-blue-hover); }
.lp-page :focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 3px; }
.lp-w { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .lp-w { padding-left: 24px; padding-right: 24px; } }
.lp-sec { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.lp-sec-tight { padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.lp-sub { margin: 0; text-align: center; color: var(--lp-muted); font-size: 16px; }
.lp-sub-left { text-align: start; }
.lp-small { font-size: 14px; color: var(--lp-body); margin: 0; }
.lp-tiny { font-size: 12px; color: var(--lp-muted); }
.lp-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-blue); }
.lp-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-row-center { justify-content: center; }
.lp-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.lp-more::after { content: ""; width: 0.42em; height: 0.42em; margin-left: 0.5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* Pill buttons */
.lp-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 980px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background 0.15s ease, transform 0.15s ease; }
.lp-page .lp-pill-pri { background: #2563B0; color: #FFFFFF; }
.lp-page .lp-pill-pri:hover { background: #1E4F8F; color: #FFFFFF; }
.lp-page .lp-pill-sec { background: var(--lp-card); color: var(--lp-ink); border-color: var(--border-strong); }
.lp-page .lp-pill-sec:hover { border-color: var(--lp-blue); color: var(--lp-ink); }
.lp-page .lp-pill-outline { background: var(--lp-card); color: var(--lp-blue); border-color: var(--lp-blue); }
.lp-page .lp-pill-white { background: #FFFFFF; color: #0E1B2E; }
.lp-page .lp-pill-white:hover { background: #E6EDF7; color: #0E1B2E; }
@media (max-width: 479px) { .lp-hero2 .lp-pill, .lp-gallery .lp-pill { flex: 1 1 100%; } }

/* Header CTA as a pill on every page (home page style) */
.gh-pill { border-radius: 980px !important; }

/* Hero */
.lp-hero2 { padding: 32px 0 36px; }
.lp-hero2-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .lp-hero2-grid { grid-template-columns: 0.9fr 1.1fr; gap: 40px; } .lp-hero2 { padding: 40px 0 40px; } }
.lp-hero2-copy { display: flex; flex-direction: column; gap: 18px; }
.lp-eyebrow2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-blue); }
.lp-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--lp-body); max-width: 520px; }
.lp-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-blue); animation: lpPulse 1.8s ease-out infinite; }
.lp-live-green { background: #9FF0B4; }
.lp-frame { margin: 0; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 27, 46, 0.16); }
.lp-frame img { display: block; width: 100%; height: auto; }
/* Screenshot pairs: show the file that matches the site theme */
html:not(.dark) img.shot-d, html.dark img.shot-l { display: none !important; }
.lp-frame-bar { height: 32px; background: var(--panel-2); border-bottom: 1px solid var(--lp-line); display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 13px; color: var(--lp-muted); }
.lp-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D9D9; }
html.dark .lp-frame-bar i { background: #4A4A4A; }
.lp-frame-bar span { margin-inline-start: 10px; }
.lp-frame-wide { width: 100%; max-width: 1040px; align-self: center; }

/* Live demo cards */
.lp-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; padding-bottom: 28px; }
.lp-page .lp-demo { text-decoration: none; background: #2563B0; color: #FFFFFF; border-radius: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 14px 34px rgba(37, 99, 176, 0.28); }
.lp-page .lp-demo:hover { color: #FFFFFF; }
.lp-demo-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; }
.lp-demo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lp-demo-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #CFE0F7; }
.lp-demo-title { font-weight: 800; font-size: 20px; line-height: 1.2; }
.lp-demo-text { font-size: 14px; line-height: 1.45; color: #DCE8F8; }
.lp-demo-go { flex: none; font-weight: 700; font-size: 14px; background: #FFFFFF; color: #2563B0; border-radius: 980px; padding: 9px 15px; }
@media (max-width: 479px) { .lp-demo { flex-wrap: wrap; } .lp-demo-go { width: 100%; text-align: center; } }

/* Compatibility, sovereignty, trust badges */
.lp-compat2 { padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.lp-compat-line { margin: 0; text-align: center; font-size: 15px; color: var(--lp-muted); letter-spacing: 0.02em; }
.lp-sov { background: #EEF5EF; border: 1px solid #BFDCC4; border-inline-start: 5px solid #4E9F5B; border-radius: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.lp-sov p { margin: 0; font-size: 16px; line-height: 1.55; color: #1D2B20; }
.lp-sov-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #DCEBDE; color: #3E7F49; display: flex; align-items: center; justify-content: center; }
html.dark .lp-sov { background: rgba(78, 159, 91, 0.12); border-color: rgba(78, 159, 91, 0.35); border-inline-start-color: #4E9F5B; }
html.dark .lp-sov p { color: var(--ink); }
html.dark .lp-sov-ico { background: rgba(78, 159, 91, 0.2); color: #8FD39B; }
.lp-compat2 .trust-badges { justify-content: center; }

/* Screenshot gallery */
.lp-gallery { align-items: center; padding-top: 16px; }
.lp-gallery h2 { text-align: center; }
.lp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 26px; }
.lp-tab { min-height: 44px; border: 1px solid transparent; border-radius: 980px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--lp-card); color: var(--lp-body); }
.lp-shot-in { animation: lpFade 0.45s ease both; }

/* Sticky audience toggle zone (no overflow: hidden on any ancestor, or sticky breaks) */
.lp-zone { position: relative; }
.lp-sticky { position: sticky; top: calc(var(--lp-sticky-offset, 81px) + 29px); z-index: 30; height: 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.lp-switch-ring { pointer-events: auto; transform: translateY(-50%); padding: 1.5px; border-radius: 980px; background: linear-gradient(135deg, #7FB2F0, #2563B0 45%, #9FF0B4); box-shadow: 0 14px 40px rgba(14, 27, 46, 0.28); max-width: calc(100vw - 24px); }
.lp-switch { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-radius: 980px; background: rgba(14, 27, 46, 0.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); min-width: min(380px, calc(100vw - 27px)); }
.lp-switch button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 980px; padding: 10px 16px; min-height: 44px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; background: transparent; color: #C9D6E8; transition: color 0.3s ease; white-space: nowrap; }
@media (max-width: 420px) { .lp-switch button { padding: 10px 8px; font-size: 13px; gap: 5px; } .lp-switch button svg { width: 15px; height: 15px; } }
.lp-zone[data-lp-mode="biz"] .lp-tech, .lp-zone[data-lp-mode="tech"] .lp-biz { display: none !important; }

/* Dark "how it works" band */
.lp-dark { background: #0E1B2E; color: #E6EDF7; }
.lp-dark-inner { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.lp-dark-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.lp-page .lp-dark h2 { color: #FFFFFF; }
.lp-dark-head p { margin: 0; color: #C9D6E8; }
.lp-steps { display: grid; gap: 20px; }
@media (min-width: 860px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.lp-step { display: flex; flex-direction: column; gap: 10px; padding-inline-end: 8px; }
.lp-step-head { display: flex; align-items: center; }
.lp-step-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #132239; border: 1px solid #22365A; color: #7FB2F0; display: flex; align-items: center; justify-content: center; }
.lp-flow { flex: 1; height: 2px; background: #22365A; position: relative; margin: 0 16px; }
.lp-flow i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #7FB2F0; animation: lpFlow 2.4s linear infinite; }
.lp-flow i:nth-child(2) { animation-delay: 0.8s; }
.lp-flow i:nth-child(3) { animation-delay: 1.6s; }
.lp-step-title { font-weight: 700; font-size: 19px; color: #FFFFFF; }
.lp-step-text { font-size: 15px; line-height: 1.5; color: #C9D6E8; max-width: 320px; }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.lp-fact { background: #132239; border: 1px solid #22365A; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; color: #C9D6E8; }
.lp-fact-big { font-weight: 800; font-size: 22px; color: #7FB2F0; }

/* Six cards */
.lp-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.lp-cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.lp-card2 { text-align: start; cursor: pointer; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 20px; padding: 22px; color: var(--lp-ink); font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
.lp-card2-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--lp-blue-soft); color: var(--lp-blue); display: flex; align-items: center; justify-content: center; }
.lp-card2-title { font-weight: 700; font-size: 19px; }
.lp-card2-text { font-size: 15px; line-height: 1.5; color: var(--lp-body); }
.lp-card2-more { margin-top: auto; padding-top: 2px; font-size: 14px; font-weight: 600; color: var(--lp-blue); }
.lp-lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lp-lift:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 27, 46, 0.1); }

/* Dialogs */
.lp-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--lp-line); border-radius: 22px; background: var(--lp-card); color: var(--lp-body); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
@media (min-width: 640px) { .lp-dialog { padding: 28px; } }
.lp-dialog[open] { animation: lpFade 0.3s ease both; }
.lp-dialog::backdrop { background: rgba(5, 10, 20, 0.6); }
.lp-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.lp-dialog-head h3 { margin: 6px 0 0; font-weight: 800; font-size: 24px; }
.lp-dialog p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.lp-dialog-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--panel-2); color: var(--lp-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
body.lp-dialog-open { overflow: hidden; }

/* Quick start */
.lp-qs { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 22px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.lp-qs-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.lp-page .lp-qs-head h2 { font-size: 26px; }
.lp-page .lp-qs-card { flex: 1 1 220px; text-decoration: none; color: var(--lp-ink); background: var(--lp-ground); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.lp-qs-card span, .lp-tool span { font-size: 14px; color: var(--lp-muted); line-height: 1.45; }

/* Cost calculator */
.lp-cost { background: var(--lp-card); border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-cost-grid { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .lp-cost-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }
.lp-cost-copy { display: flex; flex-direction: column; gap: 14px; }
.lp-cost-copy p { margin: 0; color: var(--lp-body); }
.lp-calc2 { background: var(--lp-ground); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lp-calc2-count { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--lp-body); }
.lp-calc2-count output { font-weight: 800; font-size: 21px; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-calc2 input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: #2563B0; cursor: pointer; }
.lp-seg { display: flex; background: var(--lp-seg); border-radius: 980px; padding: 4px; gap: 4px; }
.lp-seg button { flex: 1; border: 0; border-radius: 980px; padding: 10px 12px; min-height: 44px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; background: transparent; color: var(--lp-body); }
.lp-calc2-result { display: flex; flex-direction: column; gap: 2px; }
.lp-calc2-big { font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
.lp-calc2-big small { font-size: 16px; font-weight: 600; color: var(--lp-muted); letter-spacing: 0; }
.lp-calc2-save { border-top: 1px solid var(--lp-line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--lp-body); }

/* Price teaser */
.lp-tiers2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.lp-page .lp-tier2 { text-decoration: none; background: var(--lp-card); color: var(--lp-muted); border: 1px solid var(--lp-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lp-tier2 b { font-size: 18px; color: var(--lp-ink); }
.lp-tier2-price { font-weight: 800; font-size: 30px; color: var(--lp-ink); }
.lp-page .lp-tier2-dark { background: #0E1B2E; border-color: #0E1B2E; color: #C9D6E8; }
.lp-tier2-dark b, .lp-tier2-dark .lp-tier2-price { color: #FFFFFF; }
html.dark .lp-page .lp-tier2-dark { border-color: #22365A; }

/* Tools and FAQ */
.lp-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.lp-page .lp-tool { text-decoration: none; color: var(--lp-ink); background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.lp-faqs { display: flex; flex-direction: column; gap: 10px; }
.lp-faq { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 14px; padding: 0 20px; }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; color: var(--lp-ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-chev { flex: none; transition: transform 0.2s ease; }
.lp-faq[open] .lp-chev { transform: rotate(180deg); }
.lp-faq p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--lp-body); }

/* Closing CTA */
.lp-end { background: #0E1B2E; color: #FFFFFF; }
.lp-end-row { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.lp-page .lp-end h2 { color: #FFFFFF; margin-bottom: 8px; }
.lp-end p { margin: 0; color: #C9D6E8; }
html.dark .lp-end { border-top: 1px solid #22365A; }

/* Motion: fade-up on load, floating hero image, flowing dots, pulse, cross-fade (all off for reduced motion) */
@keyframes lpUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lpFlow { from { left: 0%; } to { left: 100%; } }
@keyframes lpFade { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: none; } }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(127, 178, 240, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(127, 178, 240, 0); } }
.lp-up { opacity: 0; animation: lpUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.lp-d1 { animation-delay: 0.1s; } .lp-d2 { animation-delay: 0.25s; } .lp-d3 { animation-delay: 0.4s; } .lp-d4 { animation-delay: 0.55s; }
.lp-float { animation: lpUp 0.9s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both, lpFloat 7s 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .lp-up, .lp-float, .lp-flow i, .lp-live, .lp-shot-in, .lp-dialog[open] { animation: none !important; opacity: 1 !important; }
  .lp-lift, .lp-lift:hover { transition: none; transform: none; }
}
/* Facts of the former home page, kept compact: hero stats, technical summary, gallery captions, tool bullets, operations block */
.lp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.lp-stats li { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--lp-muted); }
.lp-stats b { font-size: 15px; color: var(--lp-ink); }
.lp-hero-more { font-size: 14px; color: var(--lp-body); }
.lp-hero-more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--lp-blue); cursor: pointer; }
.lp-hero-more p { margin: 6px 0 0; line-height: 1.55; }
.lp-shot-caption { margin: 0; max-width: 1040px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--lp-muted); min-height: 3em; }
.lp-tool-list { margin: 8px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--lp-body); }
.lp-tool-list b { color: var(--lp-ink); }
.lp-more-ops summary { font-size: 15px; }
.lp-more-ops .glance-grid { margin: 4px 0 16px; }
.lp-more-ops #encrypted-file-share-teaser { margin: 0 0 18px !important; }
.lp-dialog-detail { font-size: 14px !important; color: var(--lp-muted); border-top: 1px solid var(--lp-line); padding-top: 10px; }

/* ==========================================================================
   Pricing page (PricingPage.cs) in the home page style: hero chips, tier cards,
   info rows next to the calculator, staffel lists, grouped matrix, notes.
   ========================================================================== */
.lp-pr-hero { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-pr-hero h1 { max-width: 900px; }
.lp-pr-sub { margin: 0; font-size: 19px; font-weight: 600; color: var(--lp-ink); }
.lp-pr-hero .lp-lead { max-width: 820px; }
.lp-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 980px; background: var(--lp-card); border: 1px solid var(--lp-line); font-size: 14px; font-weight: 600; color: var(--lp-ink); }
.lp-ico-yes { flex: none; color: #2E9E5B; }
html.dark .lp-ico-yes { color: #6FD39A; }
.lp-ico-no { flex: none; color: var(--lp-muted); opacity: 0.7; }

/* Tier cards */
.lp-tc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.lp-tc { position: relative; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--lp-body); }
.lp-tc-name { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lp-blue); }
.lp-tc-price { font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; color: var(--lp-ink); }
.lp-tc-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lp-muted); }
.lp-tc-plus { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--lp-ink); }
.lp-tc-cta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tc-cta .lp-pill { flex: 1 1 auto; }
.lp-page .lp-tc-hl { background: #0E1B2E; border-color: #2563B0; color: #C9D6E8; box-shadow: 0 24px 50px -18px rgba(37, 99, 176, 0.55); }
.lp-tc-hl .lp-tc-name { color: #7FB2F0; }
.lp-tc-hl .lp-tc-price, .lp-tc-hl .lp-tc-plus { color: #FFFFFF; }
.lp-tc-hl .lp-tc-desc { color: #C9D6E8; }
.lp-tc-hl .lp-feat li { color: #E6EDF7; }
.lp-tc-hl .lp-feat-more summary { color: #7FB2F0; }
.lp-tc-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #0E1B2E; background: #9FF0B4; border-radius: 980px; padding: 4px 10px; }
.lp-page .lp-pill-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.lp-page .lp-pill-ghost:hover { color: #FFFFFF; border-color: #FFFFFF; }
.lp-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-feat li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--lp-body); }
.lp-feat li svg { margin-top: 1px; }
.lp-feat-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--lp-blue); cursor: pointer; list-style: none; }
.lp-feat-more summary::-webkit-details-marker { display: none; }
.lp-feat-more[open] .lp-chev { transform: rotate(180deg); }
.lp-note { margin-top: 16px; background: var(--lp-card); border: 1px solid var(--lp-line); border-inline-start: 5px solid #2563B0; border-radius: 16px; padding: 16px 20px; font-size: 15px; line-height: 1.55; color: var(--lp-body); }
.lp-note strong { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-ink); }
.lp-note p { margin: 6px 0 0; }
html.dark .lp-note { border-inline-start-color: #7FB2F0; }

/* Info rows next to the calculator, extra calculator fields */
.lp-info { display: flex; flex-direction: column; gap: 8px; }
.lp-info-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; background: var(--lp-ground); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.lp-info-row > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.lp-info-row span { font-size: 13px; color: var(--lp-muted); line-height: 1.4; }
.lp-info-row b { color: var(--lp-ink); }
.lp-info-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: var(--lp-ink); text-align: end; }
.lp-info-price small { font-weight: 500; font-size: 12px; color: var(--lp-muted); }
.lp-info-price em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--lp-blue); }
.lp-num { width: 110px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--lp-card); color: var(--lp-ink); font: inherit; font-weight: 800; font-size: 19px; text-align: end; }
.lp-calc2-cmp { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.lp-calc2-cmp div { display: flex; flex-direction: column; gap: 1px; }
.lp-calc2-cmp dt { color: var(--lp-muted); }
.lp-calc2-cmp dd { margin: 0; font-weight: 600; color: var(--lp-ink); }
.lp-calc2-order { display: flex; flex-direction: column; gap: 8px; }
.lp-calc2-order .lp-pill { width: 100%; text-align: center; }

/* Staffel lists */
.lp-st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.lp-st-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.lp-page .lp-st-card h3 { margin: 0; font-size: 17px; }
.lp-st-head { margin: 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lp-muted); }
.lp-staffel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lp-staffel li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lp-line); }
.lp-st-from, .lp-st-price { display: flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--lp-ink); }
.lp-st-price { align-items: flex-end; text-align: end; font-size: 18px; }
.lp-staffel small { font-weight: 500; font-size: 12px; color: var(--lp-muted); }

/* Feature matrix */
.lp-mx-wrap { overflow-x: auto; }
.lp-mx { width: 100%; border-collapse: collapse; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; font-size: 14px; }
.lp-mx th, .lp-mx td { padding: 10px 12px; text-align: center; border-top: 1px solid var(--lp-line); color: var(--lp-body); }
.lp-mx th:first-child, .lp-mx td:first-child { text-align: start; width: 52%; }
.lp-mx thead th { border-top: 0; font-size: 13px; color: var(--lp-muted); font-weight: 700; }
.lp-mx .lp-mx-hl { background: var(--lp-blue-soft); }
.lp-mx svg { vertical-align: middle; }
.lp-mx-group { padding: 0 12px; }
.lp-mx-group summary { font-size: 15px; }
.lp-mx-group .lp-mx-wrap { margin-bottom: 12px; }
@media (max-width: 479px) { .lp-mx th, .lp-mx td { padding: 8px 6px; font-size: 13px; } .lp-mx th:first-child, .lp-mx td:first-child { width: 46%; } }

/* What the price includes */
.lp-inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.lp-inc-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.lp-page .lp-inc-card h3 { margin: 0; font-size: 17px; }
.lp-page .lp-end-link { color: #A9CBF5; }
.lp-calc2-count { flex-wrap: wrap; gap: 8px; }
@media (max-width: 479px) { .lp-mx { table-layout: fixed; } .lp-mx td:first-child, .lp-mx th:first-child { overflow-wrap: anywhere; hyphens: auto; } .lp-mx th:not(:first-child), .lp-mx td:not(:first-child) { width: 18%; } }

/* ==========================================================================
   Segmented control (nx-seg): one pattern for every toggle and tab group.
   site.js measures the active item (aria-pressed / aria-selected / .is-active)
   and slides .nx-seg-thumb to it with a springy curve; labels cross-fade.
   Variants: --light (light sections), --accent (brand blue thumb),
   --dark (code windows), --glass (dark glass with gradient border, home page).
   ========================================================================== */
.nx-seg { position: relative; isolation: isolate; }
.nx-seg-thumb {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.4, 1), width 0.45s cubic-bezier(0.3, 1.4, 0.4, 1), height 0.45s cubic-bezier(0.3, 1.4, 0.4, 1), opacity 0.2s ease;
}
.nx-seg.nx-seg-instant .nx-seg-thumb { transition: none; }
.nx-seg > :not(.nx-seg-thumb) {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: color 0.3s ease;
}
.nx-seg > :not(.nx-seg-thumb):focus-visible { outline: 2px solid var(--sm-flame); outline-offset: 2px; }
html.dark .nx-seg > :not(.nx-seg-thumb):focus-visible { outline-color: #7FB2F0; }
.nx-seg-native { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* light: grey track, white thumb */
.nx-seg--light { background: #E8E8ED; border-radius: 980px; padding: 4px; }
.nx-seg--light .nx-seg-thumb { background: #FFFFFF; box-shadow: 0 1px 3px rgba(14, 27, 46, 0.14), 0 4px 12px rgba(14, 27, 46, 0.08); }
.nx-seg--light > :not(.nx-seg-thumb) { color: var(--body) !important; }
.nx-seg--light > [aria-pressed="true"], .nx-seg--light > [aria-selected="true"], .nx-seg--light > .is-active { color: var(--ink) !important; }
html.dark .nx-seg--light { background: var(--panel-2); }
html.dark .nx-seg--light .nx-seg-thumb { background: #3A3D41; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

/* accent: grey track, brand blue thumb, white active label */
.nx-seg--accent { background: #E8E8ED; border: 1px solid transparent; }
.nx-seg--accent .nx-seg-thumb { background: linear-gradient(135deg, #2563B0, #1E4F8F); box-shadow: 0 4px 14px rgba(37, 99, 176, 0.35); }
.nx-seg--accent > :not(.nx-seg-thumb) { color: var(--body) !important; }
.nx-seg--accent > [aria-pressed="true"], .nx-seg--accent > [aria-selected="true"], .nx-seg--accent > .is-active { color: #FFFFFF !important; }
html.dark .nx-seg--accent { background: var(--panel-2); border-color: var(--border); }
html.dark .nx-seg--accent > :not(.nx-seg-thumb) { color: var(--muted) !important; }
html.dark .nx-seg--accent > [aria-pressed="true"], html.dark .nx-seg--accent > [aria-selected="true"], html.dark .nx-seg--accent > .is-active { color: #FFFFFF !important; }

/* dark: code windows (always dark) */
.nx-seg--dark .nx-seg-thumb { background: rgba(37, 99, 176, 0.32); box-shadow: inset 0 0 0 1px rgba(127, 178, 240, 0.55); }
.nx-seg--dark > :not(.nx-seg-thumb) { color: #9D9D9D !important; }
.nx-seg--dark > [aria-pressed="true"], .nx-seg--dark > [aria-selected="true"], .nx-seg--dark > .is-active { color: #FFFFFF !important; }

/* glass: dark glass pill with gradient border (home page audience toggle) */
.nx-seg--glass .nx-seg-thumb { background: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.nx-seg--glass > :not(.nx-seg-thumb) { color: #C9D6E8 !important; }
.nx-seg--glass > [aria-pressed="true"], .nx-seg--glass > [aria-selected="true"], .nx-seg--glass > .is-active { color: #0E1B2E !important; }

@media (prefers-reduced-motion: reduce) {
  .nx-seg-thumb, .nx-seg > :not(.nx-seg-thumb) { transition: none !important; }
}
/* HA guide calculator: segmented fields built from the native selects */
.ha-seg { display: flex; flex-wrap: wrap; gap: 2px; }
.ha-seg button { flex: 1 1 auto; border: 0; border-radius: 980px; padding: 8px 12px; min-height: 44px; font: inherit; font-weight: 600; font-size: 0.78rem; line-height: 1.25; cursor: pointer; }
/* Hero link to the calculator, trial CTA under the calculator result, highlight when the calculator is opened by link */
.lp-pill-ico { gap: 8px; }
.lp-pill-ico svg { flex: none; }
.lp-page .lp-pill-trial { background: #EEF5EF; color: #1F6B33; border: 1.5px solid #4E9F5B; font-weight: 700; }
.lp-page .lp-pill-trial:hover { background: #DCEBDE; color: #1F6B33; }
html.dark .lp-page .lp-pill-trial { background: rgba(78, 159, 91, 0.16); color: #8FD39B; border-color: #4E9F5B; }
.lp-trial-hint { margin: -2px 0 0; text-align: center; }
@keyframes lpFlash { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 176, 0.55); } 40% { box-shadow: 0 0 0 10px rgba(37, 99, 176, 0.18); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 176, 0); } }
.lp-calc2.lp-flash { animation: lpFlash 1.6s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .lp-calc2.lp-flash { animation: none; outline: 3px solid #2563B0; outline-offset: 4px; } }

/* Calculator: "auf Anfrage" badge on the Enterprise request button */
.lp-onreq { margin-inline-start: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 980px; font-size: 0.72rem; font-weight: 600; background: rgba(255, 255, 255, 0.22); }
.lp-calc2-order [hidden] { display: none !important; }

/* =========================================================================
   LANGUAGES: suggestion banner, notice pages, scripts and right-to-left
   ========================================================================= */
.lang-suggest {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  background: var(--panel);
  color: var(--body);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}
.lang-suggest p { margin: 0; flex: 1 1 220px; }
.lang-suggest .btn { white-space: nowrap; }
.lang-suggest-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0.3rem 0.4rem;
}
.i18n-notice-page h1 { margin-bottom: 1rem; }
.i18n-notice-page .i18n-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.25rem 0; }
.i18n-legal-list { padding-inline-start: 1.2rem; line-height: 1.9; }

/* No web fonts for these scripts: Inter covers Latin, the system supplies CJK, Devanagari and Arabic glyphs */
:root:lang(zh) {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', 'Segoe UI', sans-serif;
}
:root:lang(ja) {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans CJK JP', 'Noto Sans JP', 'Segoe UI', sans-serif;
}
:root:lang(hi) {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Kohinoor Devanagari', 'Nirmala UI', 'Mangal', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
}
:root:lang(ar) {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Geeza Pro', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Inter', sans-serif;
}
:root:lang(zh) body, :root:lang(ja) body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:root:lang(zh) h1, :root:lang(zh) h2, :root:lang(ja) h1, :root:lang(ja) h2, :root:lang(ar) h1, :root:lang(ar) h2, :root:lang(hi) h1, :root:lang(hi) h2 { letter-spacing: 0; }
:root:lang(hi) body, :root:lang(ar) body { line-height: 1.75; }

/* Right-to-left (Arabic): code, commands, addresses and diagrams stay left-to-right */
[dir="rtl"] pre, [dir="rtl"] code, [dir="rtl"] kbd, [dir="rtl"] samp, [dir="rtl"] .mermaid, [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"] {
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] pre { text-align: left; }
[dir="rtl"] .lp-more::after { margin-inline-start: 0.5em; margin-left: 0; transform: rotate(-135deg); }
[dir="rtl"] .gh-chev, [dir="rtl"] .brand-logo { direction: ltr; }
[dir="rtl"] .lp-frame-bar, [dir="rtl"] .shot-l, [dir="rtl"] .shot-d { direction: ltr; }


/* Line icons from the shared sprite (/shared/icons.svg), same as admin and webmail; without this rule they render at full SVG size */
.ico{display:inline-block;width:1.05em;height:1.05em;vertical-align:-0.15em;flex-shrink:0;stroke:currentColor;fill:none}
