:root {
  color-scheme: dark;
  --bg: #080c11;
  --bg-deep: #05080c;
  --surface: #10161d;
  --surface-2: #151c24;
  --surface-3: #1d2631;
  --line: #2d3a48;
  --line-soft: #1d2833;
  --text: #f7f9fc;
  --muted: #9db0c6;
  --muted-2: #718398;
  --red: #b72e31;
  --red-hover: #d13a3d;
  --blue: #2f75ad;
  --blue-hover: #428cc4;
  --yellow: #d3a528;
  --header-height: 78px;
  --shell: 1420px;
  --chapter-copy-gap: 28px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  scrollbar-gutter: stable;
}

html.language-switching {
  scroll-behavior: auto;
  scroll-snap-type: none !important;
}

@media (min-width: 1041px) {
  html.home-page {
    scroll-padding-top: var(--header-height);
    scroll-snap-type: y mandatory;
  }

  html.home-page body[data-page="home"] main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  html.home-page body[data-page="home"] > .site-footer {
    scroll-snap-align: end;
    scroll-snap-stop: always;
  }

  html.home-page body[data-page="home"] :is(
    .tour-section,
    .security-section,
    .pricing-section,
    .faq-section,
    .about-teaser,
    .contact-section
  ) {
    padding-top: clamp(48px, 4vw, 68px);
  }

  html.home-page body[data-page="home"] .tour-section .section-heading {
    align-items: start;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(66, 140, 196, 0.55);
  outline-offset: 3px;
}

.site-shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 12, 17, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  width: calc(100% - 30px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 3px;
}

.primary-nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(8, max-content);
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: 10px;
  color: #d8e0e9;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 2px;
  left: 50%;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease, left 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="location"]::after {
  right: 0;
  left: 0;
}

.primary-nav a[aria-current="location"] {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.language-switcher {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 34px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: #fff;
}

.button-primary:hover {
  background: var(--red-hover);
}

.button-secondary {
  border-color: var(--blue);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--blue-hover);
  background: rgba(47, 117, 173, 0.12);
}

.button-quiet {
  min-height: 42px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.button-block {
  width: 100%;
}

.header-cta {
  width: 191px;
  height: 48px;
  min-height: 48px;
  padding-block: 0;
  padding-inline: 17px;
  white-space: nowrap;
}

.hero {
  position: relative;
  padding: clamp(52px, 4.8vw, 78px) 0 clamp(48px, 4vw, 64px);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: 0;
  bottom: 0;
  left: 42%;
  width: 1px;
  background: var(--line-soft);
  opacity: 0.58;
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(640px, 1.36fr);
  align-items: start;
  gap: clamp(42px, 5vw, 88px);
}

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

.hero-product {
  width: calc(100% + max(0px, (100vw - var(--shell)) / 2 - max(52px, calc(11vw - 160px))));
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #e95a5d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.legal-hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 4.25vw, 70px);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.accent-text {
  margin-top: 4px;
  color: #e34b4f;
}

.split-heading {
  text-wrap: balance;
}

.split-heading > span {
  display: block;
  white-space: nowrap;
}

.split-heading > .heading-accent {
  margin-top: 0.06em;
}

.heading-accent-red {
  color: #e34b4f;
}

.heading-accent-blue {
  color: #62a9de;
}

.about-teaser .heading-accent-graphite {
  color: #080c11;
}

.hero-lead {
  max-width: 560px;
  margin: var(--chapter-copy-gap) 0 0;
  color: #c8d3df;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: grid;
  width: min(100%, 520px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .button {
  width: 100%;
  height: 58px;
  min-width: 0;
  min-height: 58px;
  padding-inline: 16px;
}

.app-window {
  overflow: hidden;
  border: 1px solid #3a4653;
  border-radius: 12px;
  background: #080b0f;
  box-shadow: var(--shadow);
}

.app-window-hero {
  transform: perspective(1800px) rotateY(-2.5deg);
  transform-origin: center right;
}

.window-bar {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #2b3540;
  background: #10151b;
  color: #d9e1ea;
  font-size: 10px;
}

.window-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.window-brand img {
  width: 17px;
  height: 17px;
  border-radius: 2px;
}

.window-controls {
  color: #7f8c9a;
  letter-spacing: 0.35em;
}

.app-window > img,
.tour-window > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #080b0f;
}

.section {
  padding: clamp(82px, 9vw, 138px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.section h2 {
  font-size: clamp(34px, 4vw, 60px);
}

.section-lead,
.section-heading > p,
.section-heading > div > p,
.showcase-copy > p,
.about-teaser p,
.pricing-copy > p,
.contact-copy > p,
.faq-grid > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

p.body-lead,
a.body-lead,
.contact-links.body-lead-links a {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
}

.intro-section {
  padding-block: 92px;
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 40px 90px;
}

.intro-grid h2 {
  max-width: 760px;
  font-size: clamp(36px, 4vw, 58px);
}

.intro-grid .section-lead {
  margin: 0;
}

.stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-row > div {
  display: flex;
  min-height: 122px;
  align-items: center;
  gap: 18px;
  padding: 22px 32px;
  border-right: 1px solid var(--line);
}

.stat-row > div:last-child {
  border-right: 0;
}

.stat-row strong {
  color: #e74c50;
  font-size: 44px;
  line-height: 1;
}

.stat-row span {
  max-width: 180px;
  color: #c1cbd6;
  font-size: 13px;
}

.tour-section {
  background: var(--bg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading > p {
  margin: 0;
}

.section-heading > div > .body-lead {
  max-width: 660px;
  margin: var(--chapter-copy-gap) 0 0;
}

.narrow-heading {
  max-width: 1140px;
}

.tour-layout {
  display: block;
}

.tour-nav {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.tour-nav-label {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-button {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #171e26;
  color: #dfe6ee;
  text-align: left;
}

.tour-button span {
  color: var(--muted-2);
  font-size: 10px;
}

.tour-button b {
  font-size: 12px;
  font-weight: 600;
}

.tour-button:hover,
.tour-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.tour-button.is-active span,
.tour-button:hover span {
  color: #f7c9ca;
}

.settings-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.settings-list summary {
  color: #dce5ef;
  font-size: 11px;
  font-weight: 700;
  list-style-position: inside;
}

.settings-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.settings-buttons button {
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #0d1319;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.settings-buttons button:hover,
.settings-buttons button.is-active {
  border-color: var(--blue);
  background: rgba(47, 117, 173, 0.14);
  color: #fff;
}

.tour-viewer {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0c1117;
}

.tour-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 3px 3px 22px;
}

.tour-viewer-head .button {
  flex: 0 0 210px;
  width: 210px;
}

.viewer-index {
  margin: 0 0 6px;
  color: #e55154;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tour-viewer h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 40px);
  letter-spacing: -0.035em;
}

.tour-viewer-head p:last-child {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 3px 14px;
  padding: 11px 12px;
  border: 1px solid rgba(47, 117, 173, 0.45);
  border-radius: 9px;
  background: rgba(47, 117, 173, 0.09);
}

.demo-toolbar-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.demo-toolbar-copy > i {
  flex: 0 0 auto;
  color: #57a7e8;
  font-size: 19px;
}

.demo-toolbar-copy > div {
  display: grid;
  gap: 2px;
}

.demo-toolbar-copy strong {
  color: #f3f7fb;
  font-size: 12px;
}

.demo-toolbar-copy span {
  color: #91a7bd;
  font-size: 10px;
  line-height: 1.45;
}

.demo-hints-button {
  display: inline-flex;
  width: 174px;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #34516b;
  border-radius: 7px;
  background: #101923;
  color: #cbd8e5;
  font-size: 10px;
  font-weight: 700;
  justify-content: center;
}

.demo-hints-button:hover,
.demo-hints-button:focus-visible,
.demo-hints-button[aria-pressed="true"] {
  border-color: #4f9bd8;
  background: rgba(47, 117, 173, 0.18);
  color: #fff;
}

.tour-window {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.demo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05080b;
  line-height: 0;
}

.demo-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05080b;
  pointer-events: none;
  user-select: none;
}

.demo-hotspots {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.demo-hotspot {
  position: absolute;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.demo-hints-on .demo-hotspot {
  border-color: rgba(80, 163, 226, 0.34);
  background: rgba(47, 117, 173, 0.035);
  box-shadow: inset 0 0 0 1px rgba(4, 11, 18, 0.22);
}

.demo-hotspot:hover,
.demo-hotspot:focus-visible {
  z-index: 3;
  border-color: #62b2ee;
  outline: 0;
  background: rgba(47, 117, 173, 0.2);
  box-shadow: 0 0 0 2px rgba(47, 117, 173, 0.28), 0 0 22px rgba(47, 117, 173, 0.22);
}

.demo-hotspot[data-tone="red"]:hover,
.demo-hotspot[data-tone="red"]:focus-visible {
  border-color: #f05b60;
  background: rgba(196, 48, 53, 0.2);
  box-shadow: 0 0 0 2px rgba(196, 48, 53, 0.24), 0 0 22px rgba(196, 48, 53, 0.2);
}

.demo-status {
  margin: 11px 0 0;
  padding: 9px 11px;
  border-left: 2px solid #4a9ddd;
  background: rgba(47, 117, 173, 0.08);
  color: #aec7dc;
  font-size: 11px;
  line-height: 1.45;
}

.viewer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.feature-section {
  padding-top: clamp(48px, 4vw, 68px);
  background: var(--surface);
}

.feature-heading {
  margin-bottom: 30px;
}

.feature-group + .feature-group {
  margin-top: 42px;
}

.feature-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-group-heading > span {
  display: inline-flex;
  min-width: 34px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(227, 75, 79, 0.55);
  border-radius: 7px;
  color: #ef686c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-group-heading h3 {
  margin: 0;
  color: #eef3f8;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-item {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #111820;
}

.feature-item > span {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #536172;
  font-size: 10px;
  font-weight: 700;
}

.feature-item > i {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 12px;
  color: #5f9fd1;
  font-size: 24px;
}

.feature-item h3 {
  margin: 34px 0 11px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.showcase-section {
  background: var(--bg-deep);
}

.showcase-alt {
  background: var(--bg);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(45px, 7vw, 110px);
}

.showcase-row.reverse {
  grid-template-columns: minmax(320px, 0.65fr) minmax(0, 1.55fr);
}

.showcase-row.reverse .showcase-media {
  grid-column: 2;
  grid-row: 1;
}

.showcase-row.reverse .showcase-copy {
  grid-column: 1;
  grid-row: 1;
}

.showcase-media {
  min-width: 0;
}

.showcase-copy h2 {
  font-size: clamp(34px, 3.8vw, 54px);
}

.showcase-copy > p {
  margin: 24px 0 0;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line-soft);
  color: #d2dbe5;
  font-size: 13px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--red);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #6ca7d4;
  font-size: 13px;
  font-weight: 700;
}

.text-link i {
  transition: transform 160ms ease;
}

.text-link:hover i {
  transform: translateX(4px);
}

.security-section {
  background: var(--surface);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(55px, 8vw, 130px);
  align-items: start;
}

.security-grid .section-lead {
  margin: var(--chapter-copy-gap) 0 32px;
}

.security-grid > div:first-child > .button {
  width: 300px;
  max-width: 100%;
  min-height: 58px;
}

.security-points {
  border-top: 1px solid var(--line);
}

.security-points article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.security-points i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #5c9bcc;
  font-size: 22px;
}

.security-points h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.security-points p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pricing-section {
  background: var(--bg-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 0.9fr);
  align-items: center;
  gap: clamp(60px, 9vw, 140px);
}

.pricing-copy > p {
  margin: var(--chapter-copy-gap) 0 0;
}

.tier-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tier-list span {
  display: grid;
  gap: 3px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
}

.tier-list span:last-child {
  border-right: 0;
}

.tier-list b,
.tier-list small,
p.pricing-footnote {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
}

.tier-list small {
  color: var(--muted);
}

.calculator {
  padding: clamp(26px, 3.2vw, 46px);
  border: 1px solid #3c4856;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.calculator-head > span {
  font-size: 13px;
  font-weight: 700;
}

.calculator-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.calculator-badges strong {
  box-sizing: border-box;
  width: 124px;
  padding: 7px 10px;
  border: 1px solid #2d5f84;
  border-radius: 7px;
  color: #7abeff;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.calculator-badges strong.is-active {
  border-color: #8f2a2c;
  color: #f17b7d;
}

.calculator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 24px 0;
}

.calculator label,
.contact-form label {
  display: grid;
  gap: 8px;
  color: #cbd5e0;
  font-size: 11px;
  font-weight: 600;
}

.calculator input,
.calculator select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a1016;
  color: var(--text);
  transition: border-color 160ms ease;
}

.calculator input,
.calculator select,
.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 13px;
}

.select-shell {
  position: relative;
  display: block;
  width: 100%;
}

.number-shell {
  position: relative;
  display: block;
  width: 100%;
}

.number-shell input {
  appearance: textfield;
  padding-right: 58px;
}

.number-shell input::-webkit-inner-spin-button,
.number-shell input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.number-steppers {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 44px;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
}

.number-stepper {
  display: grid;
  min-width: 44px;
  min-height: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: #111820;
  color: #d5dce5;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.number-stepper:first-child {
  border-bottom: 1px solid var(--line);
}

.number-stepper:hover,
.number-stepper:focus-visible {
  background: #172738;
  color: #7abeff;
}

.number-stepper:active {
  background: #1d3348;
}

.number-stepper .bi {
  font-size: 14px;
  line-height: 1;
}

.select-shell select {
  appearance: none;
  padding-right: 48px;
}

.select-shell .bi {
  position: absolute;
  top: 50%;
  right: 20px;
  color: #d5dce5;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-form textarea {
  min-height: 126px;
  padding: 13px;
  resize: vertical;
}

.calculator input:focus,
.calculator select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.price-breakdown {
  margin: 0;
  padding: 2px 0 18px;
}

.price-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.price-breakdown dt {
  color: var(--muted);
}

.price-breakdown dd {
  margin: 0;
  color: #dae3ed;
  font-weight: 700;
}

.calculator-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
}

.calculator-total span {
  color: var(--muted);
  font-size: 12px;
}

.calculator-total strong {
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.05em;
}

#licenseMeta {
  margin: 5px 0 22px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: right;
}

.about-teaser {
  background: var(--red);
}

.about-teaser .section-kicker,
.about-teaser p,
.about-teaser .text-link {
  color: #fff;
}

.about-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.about-teaser h2 {
  max-width: 780px;
}

.about-teaser p {
  margin: 0 0 26px;
  opacity: 0.88;
}

.about-teaser-grid > div:first-child > p.body-lead {
  max-width: 700px;
  margin-top: var(--chapter-copy-gap);
}

.faq-section {
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(520px, 1fr);
  align-items: start;
  gap: clamp(60px, 9vw, 140px);
}

.faq-grid > div:first-child > p.body-lead:last-child {
  margin: var(--chapter-copy-gap) 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 48px 23px 0;
  color: #e9eef5;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 4px;
  color: #e55356;
  font-size: 24px;
  font-weight: 400;
}

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

.faq-list details p {
  margin: -6px 0 22px;
  padding-right: 38px;
  color: var(--muted);
  font-size: 12px;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(580px, 1fr);
  align-items: stretch;
  gap: clamp(60px, 8vw, 120px);
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-copy h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.contact-copy > p {
  margin: var(--chapter-copy-gap) 0 0;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #dce4ed;
  font-size: 13px;
}

.contact-links i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 9px;
  color: #68a4d1;
}

.contact-form {
  position: relative;
  padding: clamp(25px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0d1319;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
}

.form-footer .button {
  flex: 0 0 190px;
  width: 190px;
}

.form-footer p {
  max-width: 430px;
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.form-footer p a {
  color: #77acd4;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: #83b8df;
  font-size: 11px;
}

.form-status.is-error {
  color: #ee7476;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (min-width: 1041px) {
  .contact-grid .contact-form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: 0;
    padding: 16px clamp(18px, 2vw, 28px);
  }

  .contact-grid .form-grid {
    gap: 10px 18px;
    margin-bottom: 10px;
  }

  .contact-grid .contact-form label {
    gap: 6px;
  }

  .contact-grid .contact-form input,
  .contact-grid .contact-form select {
    height: 44px;
  }

  .contact-grid .contact-form > label {
    grid-template-rows: auto minmax(60px, 1fr);
  }

  .contact-grid .contact-form textarea {
    height: 100%;
    min-height: 60px;
  }

  .contact-grid .form-footer {
    margin-top: 10px;
  }

  .contact-grid .form-footer .button {
    height: 48px;
  }

  .contact-grid .form-status {
    min-height: 16px;
    margin-top: 4px;
  }
}

.site-footer {
  padding: 44px 0 18px;
  background: #05080c;
}

.footer-legal {
  padding-bottom: 0;
}

.footer-legal h2 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.footer-legal-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-legal-links > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.footer-legal-links > * + * {
  border-left: 1px solid var(--line);
}

.footer-legal-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
}

.footer-contact-links {
  gap: 14px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 17px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-social-links a:hover {
  border-color: var(--blue);
  background: rgba(78, 166, 232, 0.08);
  transform: translateY(-1px);
}

.footer-social-links a[href*="wa.me"]:hover {
  color: #25d366;
}

.footer-social-links a[href*="instagram.com"]:hover {
  color: #e4405f;
}

.footer-social-links a[href*="tiktok.com"]:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Change log */
.changelog-page {
  min-height: calc(100svh - var(--header-height));
  background: var(--bg);
}

.changelog-hero {
  padding: 86px 0 58px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.changelog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  align-items: end;
  gap: clamp(54px, 7vw, 110px);
}

.changelog-intro h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-size: clamp(50px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.changelog-intro > p:last-child {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.65;
}

.changelog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.changelog-stats article {
  display: grid;
  grid-template-rows: max-content 42px;
  align-content: center;
  min-height: 128px;
  padding: 24px 20px;
  text-align: center;
}

.changelog-stats article + article {
  border-left: 1px solid var(--line);
}

.changelog-stats span {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.changelog-stats small {
  align-self: start;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.changelog-journal {
  padding: 48px 0 110px;
}

.changelog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.release-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.release-filter,
.release-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: 160ms ease;
}

.release-filter:hover,
.release-expand:hover {
  color: var(--text);
  background: var(--surface-2);
}

.release-filter.is-active {
  border-color: #3c4c5d;
  background: var(--surface-3);
  color: var(--text);
}

.release-filter.is-new.is-active {
  border-color: rgba(72, 158, 222, 0.7);
  color: #69b8f2;
}

.release-filter.is-improved.is-active {
  border-color: rgba(221, 166, 67, 0.7);
  color: #e3b55f;
}

.release-filter.is-fixed.is-active {
  border-color: rgba(77, 184, 132, 0.7);
  color: #64c99a;
}

.release-expand {
  flex: 0 0 auto;
  min-width: 150px;
  border-color: var(--line);
  background: var(--surface);
}

.release-status {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.release-status.is-error {
  border-color: rgba(183, 46, 49, 0.7);
  color: #ec7476;
}

.release-list {
  display: grid;
  gap: 16px;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.14);
}

.release-card.is-current {
  border-color: #40556b;
  box-shadow: 0 20px 60px rgba(19, 60, 93, 0.16);
}

.release-summary {
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(180px, 1fr) minmax(190px, auto) 36px;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
}

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

.release-summary:hover {
  background: rgba(255, 255, 255, 0.018);
}

.release-version-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.release-version-label,
.release-date-label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.release-version {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.release-current-badge {
  padding: 6px 9px;
  border: 1px solid rgba(209, 58, 61, 0.7);
  border-radius: 7px;
  color: #ed6769;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-summary-counts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.release-count-chip {
  --chip-color: #91a3b6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--chip-color) 42%, transparent);
  border-radius: 8px;
  color: var(--chip-color);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.release-count-chip.is-new {
  --chip-color: #69b8f2;
}

.release-count-chip.is-improved {
  --chip-color: #e3b55f;
}

.release-count-chip.is-fixed {
  --chip-color: #64c99a;
}

.release-date-block {
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
}

.release-date {
  color: #c4cfdb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.release-summary-chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.release-card[open] .release-summary-chevron {
  transform: rotate(180deg);
  border-color: #486079;
  color: #fff;
}

.release-card-body {
  display: grid;
  gap: 12px;
  padding: 0 24px 24px;
  border-top: 1px solid var(--line-soft);
}

.release-category {
  --category-color: #91a3b6;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
}

.release-category + .release-category {
  border-top: 1px solid var(--line-soft);
}

.release-category.is-new {
  --category-color: #69b8f2;
}

.release-category.is-improved {
  --category-color: #e3b55f;
}

.release-category.is-fixed {
  --category-color: #64c99a;
}

.release-category-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  align-content: start;
  gap: 10px;
  color: var(--category-color);
}

.release-category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--category-color) 46%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--category-color) 8%, transparent);
}

.release-category-heading h3 {
  margin: 0;
  color: var(--category-color);
  font-size: 13px;
  line-height: 1.25;
}

.release-category-count {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
}

.release-note-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.release-note-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: #b9c7d5;
  font-size: 13px;
  line-height: 1.65;
}

.release-note-list li > i {
  margin-top: 3px;
  color: var(--category-color);
  font-size: 15px;
}

@media (max-width: 1040px) {
  .changelog-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .changelog-stats {
    max-width: 660px;
  }

  .changelog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .release-expand {
    align-self: flex-end;
  }

  .release-summary {
    grid-template-columns: minmax(220px, 1fr) auto 36px;
    gap: 18px;
  }

  .release-summary-counts {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .release-date-block {
    grid-column: 2;
    grid-row: 1;
  }

  .release-summary-chevron {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .changelog-hero {
    padding: 62px 0 42px;
  }

  .changelog-intro h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .changelog-intro > p:last-child {
    margin-top: 22px;
    font-size: 16px;
  }

  .changelog-stats article {
    min-height: 104px;
    padding: 18px 10px;
  }

  .changelog-stats span {
    font-size: 22px;
  }

  .changelog-stats small {
    font-size: 9px;
  }

  .changelog-journal {
    padding: 30px 0 74px;
  }

  .release-filters {
    grid-template-columns: 1fr 1fr;
  }

  .release-filter {
    justify-content: flex-start;
    padding-inline: 13px;
  }

  .release-expand {
    align-self: stretch;
  }

  .release-summary {
    grid-template-columns: minmax(0, 1fr) 36px;
    min-height: 0;
    padding: 18px;
  }

  .release-version-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .release-version-label {
    display: none;
  }

  .release-date-block {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    text-align: left;
  }

  .release-summary-counts {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .release-summary-chevron {
    grid-column: 2;
    grid-row: 1;
  }

  .release-card-body {
    padding: 0 18px 18px;
  }

  .release-category {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
  }

  .release-category-heading {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
}

.screen-dialog {
  width: min(96vw, 1760px);
  max-width: none;
  max-height: 96vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #445160;
  border-radius: 14px;
  background: #080c11;
  color: var(--text);
  box-shadow: 0 40px 120px #000;
}

.screen-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.dialog-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.dialog-head > div {
  display: grid;
}

.dialog-head strong {
  font-size: 14px;
}

.dialog-head span {
  color: var(--muted);
  font-size: 10px;
}

.dialog-head .dialog-demo-status {
  margin-top: 3px;
  color: #74b6e8;
}

.dialog-head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1117;
  color: #fff;
}

.dialog-demo-stage {
  width: min(100%, calc((96vh - 65px) * 1.6));
  max-height: calc(96vh - 65px);
  margin-inline: auto;
}

/* Shared inner pages */
.page-hero,
.legal-hero {
  padding: 102px 0 78px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 60px;
}

.page-hero-grid > * {
  min-width: 0;
}

.page-hero h1,
.legal-hero h1 {
  max-width: 950px;
  font-size: clamp(44px, 6vw, 82px);
}

.page-hero p:last-child,
.legal-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.content-section {
  padding: 90px 0;
  border-bottom: 1px solid var(--line-soft);
}

.content-grid-2,
.content-grid-3 {
  display: grid;
  gap: 28px;
}

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

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

.content-block {
  padding: 30px;
  border-top: 2px solid var(--blue);
  background: var(--surface);
}

.content-block h2,
.content-block h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.content-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  justify-content: center;
  gap: 70px;
  padding: 78px 0 110px;
}

.legal-nav {
  position: sticky;
  top: 110px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.legal-nav a:hover {
  background: #1a222c;
  color: #fff;
}

.legal-article section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--line-soft);
}

.legal-article h2 {
  margin: 0 0 13px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.legal-article p,
.legal-article li {
  color: #aebdcd;
  font-size: 13px;
}

.legal-article ul {
  padding-left: 19px;
}

.legal-updated {
  margin-top: 20px !important;
  color: var(--muted-2) !important;
  font-size: 11px !important;
}

.contact-page-section {
  padding-block: 90px 120px;
}

/* Keep the main page geometry stable while localized copy changes. */
@media (min-width: 1041px) {
  .primary-nav a:nth-child(1) { width: 70px; }
  .primary-nav a:nth-child(2) { width: 96px; }
  .primary-nav a:nth-child(3) { width: 127px; }
  .primary-nav a:nth-child(4) { width: 97px; }
  .primary-nav a:nth-child(5) { width: 50px; }
  .primary-nav a:nth-child(6) { width: 28px; }
  .primary-nav a:nth-child(7) { width: 81px; }
  .primary-nav a:nth-child(8) { width: 66px; }
}

@media (min-width: 1401px) {
  .header-inner {
    grid-template-columns:
      70px minmax(0, 1fr)
      96px minmax(0, 1fr)
      127px minmax(0, 1fr)
      97px minmax(0, 1fr)
      50px minmax(0, 1fr)
      28px minmax(0, 1fr)
      81px minmax(0, 1fr)
      66px minmax(0, 1fr)
      191px minmax(0, 1fr) 150px;
    gap: 0;
  }

  .primary-nav,
  .header-actions {
    display: contents;
  }

  .primary-nav a {
    grid-row: 1;
  }

  .primary-nav a:nth-child(1) { grid-column: 1; }
  .primary-nav a:nth-child(2) { grid-column: 3; }
  .primary-nav a:nth-child(3) { grid-column: 5; }
  .primary-nav a:nth-child(4) { grid-column: 7; }
  .primary-nav a:nth-child(5) { grid-column: 9; }
  .primary-nav a:nth-child(6) { grid-column: 11; }
  .primary-nav a:nth-child(7) { grid-column: 13; }
  .primary-nav a:nth-child(8) { grid-column: 15; }

  .header-actions > .header-cta {
    grid-column: 17;
    grid-row: 1;
  }

  .header-actions > .language-switcher {
    grid-column: 19;
    grid-row: 1;
  }
}

@media (min-width: 1261px) {
  .hero { min-height: max(clamp(653px, calc(319px + 26.1vw), 820px), calc(100svh - var(--header-height))); }
  .feature-section { min-height: max(1814px, calc(100svh - var(--header-height))); }
  .tour-section { min-height: max(clamp(1590px, calc(1150px + 34.4vw), 1810px), calc(100svh - var(--header-height))); }
  .security-section { min-height: max(clamp(844px, calc(678px + 13vw), 927px), calc(100svh - var(--header-height))); }
  .pricing-section { min-height: max(clamp(869px, calc(707px + 12.7vw), 950px), calc(100svh - var(--header-height))); }
  .faq-section { min-height: max(clamp(646px, calc(554px + 7.2vw), 692px), calc(100svh - var(--header-height))); }
  .about-teaser { min-height: max(clamp(449px, calc(301px + 11.75vw), 526px), calc(100svh - var(--header-height))); }
  .contact-section { min-height: max(clamp(855px, calc(775px + 6.25vw), 895px), calc(100svh - var(--header-height))); }

  .hero-lead { min-height: 104px; }
  .section-heading { min-height: 232px; }
  #features .section-heading { min-height: 300px; }
  .feature-item { min-height: 260px; }
  .tour-viewer-head { min-height: 161px; }
  .security-grid .section-lead { min-height: 173px; }
  .pricing-copy > .body-lead { min-height: 104px; }
  .about-teaser p.body-lead { min-height: 139px; }
  .about-teaser .text-link { width: 340px; }
  .contact-copy > .body-lead { min-height: 139px; }
  .form-footer .button { height: 58px; }
}

@media (min-width: 1600px) {
  .feature-section { min-height: max(1882px, calc(100svh - var(--header-height))); }
  .pricing-section { min-height: max(954px, calc(100svh - var(--header-height))); }
}

@media (min-width: 1261px) and (max-width: 1599px) {
  .feature-section { min-height: max(1843px, calc(100svh - var(--header-height))); }
  .feature-item {
    height: 287px;
    min-height: 287px;
  }
  .security-section { min-height: max(892px, calc(100svh - var(--header-height))); }
  .security-grid .section-lead { min-height: 184px; }
  .pricing-section { min-height: max(966px, calc(100svh - var(--header-height))); }
  .pricing-copy > .body-lead { min-height: 138px; }
  .contact-section { min-height: max(953px, calc(100svh - var(--header-height))); }
}

@media (min-width: 1041px) and (max-width: 1260px) {
  .hero { min-height: max(calc(348px + 24.7vw), calc(100svh - var(--header-height))); }
  .feature-section { min-height: max(1879px, calc(100svh - var(--header-height))); }
  .tour-section { min-height: max(calc(356px + 97.3vw), calc(100svh - var(--header-height))); }
  .security-section { min-height: max(calc(581px + 20.7vw), calc(100svh - var(--header-height))); }
  .pricing-section { min-height: max(950px, calc(100svh - var(--header-height))); }
  .faq-section { min-height: max(calc(416px + 18vw), calc(100svh - var(--header-height))); }
  .about-teaser { min-height: max(calc(129px + 26.7vw), calc(100svh - var(--header-height))); }
  .contact-section { min-height: max(calc(795px + 2.7vw), calc(100svh - var(--header-height))); }
  .site-footer { min-height: 285px; }

  .hero-lead { min-height: 86px; }
  .section-heading { min-height: 193px; }
  .feature-item {
    height: 327px;
    min-height: 327px;
  }
  .tour-viewer-head { min-height: 148px; }
  .security-grid .section-lead { min-height: 196px; }
  .pricing-copy > .body-lead { min-height: 168px; }
  .about-teaser p.body-lead { min-height: 140px; }
  .about-teaser .text-link { width: 340px; }
  .contact-copy > .body-lead { min-height: 115px; }
  .form-footer .button { height: 58px; }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .feature-section { min-height: 2717px; }
  .tour-section { min-height: calc(820px + 58.6vw); }
  .security-section { min-height: calc(835px + 13.7vw); }
  .pricing-section { min-height: calc(1046px + 14.5vw); }
  .about-teaser { min-height: 495px; }
  .contact-section { min-height: calc(1072px + 16.4vw); }
  .site-footer { min-height: 285px; }

  .section-heading { min-height: 222px; }
  .feature-item {
    height: 260px;
    min-height: 260px;
  }
  .tour-viewer-head { min-height: 156px; }
  .security-grid .section-lead { min-height: 84px; }
  .pricing-copy > .body-lead { min-height: 84px; }
  .about-teaser p.body-lead { min-height: 84px; }
  .about-teaser .text-link { width: 268px; }
  .contact-copy > .body-lead { min-height: 56px; }
  .form-footer .button { height: 58px; }
}

@media (min-width: 1261px) and (max-width: 1399px) {
  .site-footer { min-height: 263px; }
}

@media (max-width: 1400px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1260px) {
  :root {
    --header-height: 72px;
  }

  .site-shell {
    width: min(var(--shell), calc(100% - 44px));
  }

  .header-inner {
    width: calc(100% - 30px);
    gap: 20px;
  }

  .primary-nav {
    gap: 0;
  }

  .primary-nav a {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(330px, 0.7fr) minmax(560px, 1.3fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(40px, 4.6vw, 62px);
  }
}

@media (max-width: 1040px) {
  .site-header {
    backdrop-filter: none;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    position: fixed;
    z-index: 1;
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    max-height: none;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 28px 96px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #080c11;
    overscroll-behavior: contain;
  }

  .nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 17px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 18px;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-actions {
    position: fixed;
    z-index: 2;
    right: 28px;
    bottom: max(20px, env(safe-area-inset-bottom));
    display: none;
  }

  .nav-open .header-actions {
    display: flex;
  }

  .nav-open .header-cta {
    display: inline-flex;
  }

  .hero-grid,
  .intro-grid,
  .section-heading,
  .showcase-row,
  .showcase-row.reverse,
  .security-grid,
  .pricing-grid,
  .about-teaser-grid,
  .faq-grid,
  .contact-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .security-grid > *,
  .pricing-grid > *,
  .faq-grid > *,
  .contact-grid > * {
    min-width: 0;
  }

  .hero::before {
    left: 50%;
  }

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

  .hero-product {
    width: 100%;
  }

  .app-window-hero {
    transform: none;
  }

  .showcase-row.reverse .showcase-media,
  .showcase-row.reverse .showcase-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .showcase-row.reverse .showcase-media {
    order: 0;
  }

  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .tour-nav-label,
  .settings-list {
    grid-column: 1 / -1;
  }

  .tour-button {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 64px;
    margin: 0;
    text-align: center;
  }

  .settings-buttons {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .security-grid,
  .pricing-grid {
    gap: 60px;
  }

  .faq-grid,
  .contact-grid {
    gap: 55px;
  }

}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, var(--shell));
  }

  .header-inner {
    width: calc(100% - 30px);
  }

  .brand {
    font-size: 18px;
  }

  .header-actions {
    right: 15px;
    left: 15px;
    justify-content: center;
  }

  .header-actions .header-cta {
    flex: 1;
  }

  .hero {
    min-height: clamp(879px, calc(776px + 26.4vw), 966px);
    padding-top: 68px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .hero-actions .button {
    width: 100%;
    height: 48px;
    min-height: 48px;
  }

  .window-bar {
    height: 28px;
  }

  .section {
    padding-block: 76px;
  }

  .feature-section { min-height: clamp(4301px, calc(5586px - 178.5vw), 4890px); }
  .tour-section { min-height: auto; }
  .security-section { min-height: auto; }
  .pricing-section { min-height: auto; }
  .faq-section { min-height: clamp(761px, calc(1005px - 33.9vw), 873px); }
  .about-teaser { min-height: auto; }
  .contact-section { min-height: clamp(1490px, calc(1782px - 40.6vw), 1624px); }
  .site-footer { min-height: auto; }

  .section h2 {
    font-size: 36px;
  }

  .page-hero h1,
  .legal-hero h1 {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.05;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero-lead { min-height: 84px; }
  .contact-section { min-height: 1627px; }
  .section-heading { min-height: 345px; }
  #features .section-heading { min-height: 348px; }
  .tour-viewer-head { min-height: 226px; }
  .demo-toolbar { min-height: 140px; }
  .security-grid .section-lead { min-height: 196px; }
  .pricing-copy > .body-lead { min-height: 140px; }
  .about-teaser p.body-lead { min-height: 0; }
  .contact-copy > .body-lead { min-height: 112px; }
  .about-teaser .text-link { width: 268px; }
  .faq-list summary {
    display: flex;
    min-height: 91px;
    align-items: center;
  }
  .form-footer p { min-height: 29px; }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-row > div,
  .stat-row > div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-row > div:last-child {
    border-bottom: 0;
  }

  .tour-nav {
    grid-template-columns: 1fr 1fr;
    order: 2;
  }

  .tour-viewer {
    order: 1;
  }

  .tour-button:last-of-type {
    grid-column: 1 / -1;
  }

  .settings-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .tour-viewer {
    padding: 12px;
  }

  .tour-viewer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .tour-viewer-head > * {
    min-width: 0;
  }

  .tour-viewer-head > div:first-child {
    min-height: 110px;
  }

  .tour-viewer-head .button {
    flex-basis: auto;
    width: 100%;
  }

  .demo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-hints-button {
    width: 100%;
    justify-content: center;
  }

  .feature-grid,
  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr;
  }

  .feature-item {
    height: 260px;
    min-height: 260px;
  }

  .tier-list {
    grid-template-columns: 1fr 1fr;
  }

  .tier-list span:nth-child(2) {
    border-right: 0;
  }

  .tier-list span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .calculator-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .calculator-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculator-badges {
    justify-content: flex-start;
  }

  .form-footer,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-footer .button {
    flex-basis: auto;
    width: 100%;
  }

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

  .footer-legal-links > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-contact-links {
    min-height: 68px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 360px) {
  .header-actions {
    gap: 8px;
  }

  .language-switcher button {
    min-width: 28px;
  }
}

/* Keep every localized two-part chapter heading on exactly two visual lines. */
@media (min-width: 1041px) {
  .hero h1,
  .section h2.split-heading {
    font-size: clamp(30px, 3.3vw, 52px);
  }
}

@media (max-width: 1040px) {
  .hero h1,
  .section h2.split-heading {
    font-size: clamp(22px, 6.9vw, 36px);
  }
}

@media (max-width: 300px) {
  .hero h1,
  .section h2.split-heading {
    font-size: 18px;
  }

  .about-teaser .text-link {
    width: 100%;
    max-width: 268px;
    min-width: 0;
  }

  .contact-page-section .contact-copy h2 {
    font-size: 30px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .contact-links.body-lead-links a {
    min-width: 0;
    gap: 9px;
    font-size: 14px;
  }

  .contact-links a span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-links i {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .release-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-filter {
    min-width: 0;
    justify-content: flex-start;
  }
}

.contact-page-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.contact-page-hero-copy {
  display: flex;
  max-width: 1120px;
  flex-direction: column;
  align-items: flex-start;
}

.contact-page-hero h1 {
  max-width: none;
  font-size: clamp(36px, 4.6vw, 68px);
}

.contact-page-hero p.contact-page-hero-lead:last-child {
  max-width: 720px;
  margin: var(--chapter-copy-gap) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .contact-page-hero h1 {
    font-size: clamp(18px, 5.6vw, 36px);
  }
}

@media (max-width: 300px) {
  .contact-page-hero h1 {
    font-size: 16px;
  }
}

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

  html.home-page {
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
