/*
 * Magic RDS 4 — shared stylesheet
 * Edit colours and the overall page width in the variables and .container below.
 * Order: shared styles, homepage, responsive layout, expanded homepage sections,
 * shared empty pages. Later responsive rules intentionally override earlier ones.
 */
/* Theme variables */
:root {
  --blue: #0865d8;
  --ink: #122c4a;
  --muted: #587089;
  --green: #16855c;
  --line: #e0e9f2;
  --light: #f4f8fc;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid #16855c;
  outline-offset: 5px;
}

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

/* Shared layout */
.container {
  width: min(1200px,calc(100% - 64px));
  margin: auto;
}

/* Site header and navigation */
.site-header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 20;
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
  border-left: 1px solid #cad7e4;
  padding-left: 12px;
}

.main-navigation {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
}

.main-navigation a {
  font-size: 14px;
  font-weight: 600;
}

.main-navigation a:hover,.site-footer a:hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s,transform .2s;
}

.button:hover {
  background: #0753b1;
  transform: translateY(-2px);
}

.button.outline {
  background: #fff;
  color: var(--ink);
  border-color: #cbd9e7;
}

.button.outline:hover {
  background: var(--light);
}

.main-navigation .button {
  min-height: 42px;
  padding: 8px 18px;
  color: white;
}

.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
}

/* Homepage hero */
.hero {
  padding: 76px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow:before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green);
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  margin: 17px 0 9px;
}

h1 {
  font-size: clamp(46px,5.4vw,72px);
  line-height: 1.08;
  letter-spacing: -3.5px;
  margin: 0 0 24px;
  font-weight: 750;
}

h1 span {
  color: var(--blue);
}

h1 .green {
  color: var(--green);
}

.hero-copy>p {
  color: var(--muted);
  max-width: 440px;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-details {
  color: var(--muted);
  font-size: 13px;
  margin-top: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.windows {
  display: grid;
  grid-template-columns: 5px 5px;
  gap: 2px;
  transform: skewY(-6deg);
}

.windows i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--muted);
}

.hero-visual {
  position: relative;
  padding: 25px 10px 35px 25px;
}

.visual-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  transform: rotate(-3deg);
  background: #f0f3f3;
}

.app-window {
  position: relative;
  margin: 0 22px 0 0;
  background: white;
  border: 1px solid #bbc6cf;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 1px #b1aeae;
}

.window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.window-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cad7e4;
}

.window-bar span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 9px;
}

.app-window img {
  width: 100%;
  max-height: 325px;
  object-fit: contain;
  padding: 0px;
  background: white;
}

.hero-image-caption {
  position: relative;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.hero-highlight {
  position: absolute;
  right: 0;
  bottom: 8px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px #12375613;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 225px;
}

.hero-highlight svg {
  width: 34px;
  color: var(--green);
}

.hero-highlight small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--green);
  font-weight: 700;
}

.hero-highlight strong {
  font-size: 14px;
  display: block;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 55px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.hero-bottom strong {
  font-size: 14px;
  color: var(--ink);
}

.hero-bottom span:before {
  content: '✓';
  color: var(--green);
  margin-right: 8px;
  font-weight: 700;
}

.section {
  padding: 80px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 390px;
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

h2 {
  font-size: clamp(28px,3vw,40px);
  letter-spacing: -1.3px;
  line-height: 1.2;
  margin: 12px 0 0;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.4px;
  margin: 21px 0 12px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eaf3ff;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.feature-card:nth-child(2) .feature-icon {
  background: #eaf7f0;
  color: var(--green);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 23px;
}

.feature-tags span {
  font-size: 11px;
  color: #496680;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 7px;
}

/* Screenshot gallery and navigation */
.screenshots-section {
  background: var(--light);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.screenshots-heading {
  align-items: center;
}

.screenshots-controls {
  display: flex;
  gap: 8px;
}

.round-button {
  border: 1px solid #cedde9;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-weight: bold;
}

.round-button:hover {
  background: #eaf3ff;
}

.screenshots-carousel {
  border-radius: 16px;
  border: 1px solid #d8e3ee;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 35px #1237560a;
}

.screenshot-image {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 35px;
}

.screenshot-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.screenshot-caption {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 20px;
}

.screenshot-caption strong {
  font-size: 16px;
}

.screenshot-caption p {
  font-size: 14px;
  color: var(--muted);
  margin: 3px 0 0;
}

.screenshot-counter {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.screenshots-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.screenshot-navigation-button {
  background: transparent;
  border: 1px solid transparent;
  padding: 9px 15px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 7px;
}

.screenshot-navigation-button[aria-current="true"] {
  color: var(--blue);
  background: white;
  border-color: #d4e3f3;
  font-weight: 700;
}

/* Content workflow */
.content-workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: center;
}

.workflow-description p {
  color: var(--muted);
  font-size: 16px;
  max-width: 440px;
}

.workflow-diagram {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.workflow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 14px;
}

.workflow-step small {
  color: var(--muted);
  font-size: 12px;
}

.workflow-step.workflow-step-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 22px #0865d81c;
}

.workflow-step.workflow-step-primary small {
  color: #d8e9ff;
}

.workflow-connector {
  height: 24px;
  width: 1px;
  background: #bfd1e0;
  margin: auto;
  position: relative;
}

.workflow-connector:after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1px solid #89a2b8;
  border-bottom: 1px solid #89a2b8;
  transform: rotate(45deg);
  position: absolute;
  bottom: 1px;
  left: -2px;
}

.workflow-destinations {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.workflow-destinations span {
  text-align: center;
  font-size: 12px;
  padding: 12px 4px;
  border: 1px solid #d4e9df;
  color: var(--green);
  background: #f4faf7;
  border-radius: 6px;
}

.text-link {
  font-size: 14px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Documentation preview */
.documentation-preview {
  padding-top: 0;
}

.documentation-preview-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  gap: 32px;
  padding-top: 28px;
}

.documentation-preview-grid h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.documentation-preview-grid p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 15px;
}

/* Download panel */
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 45px 48px;
  background: linear-gradient(110deg,#edf5ff,#eef9f4);
  border: 1px solid #dbe9ef;
  border-radius: 18px;
}

.download-panel h2 {
  margin: 0;
  font-size: 32px;
}

.download-panel p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 15px;
}

.download-panel .button {
  background: var(--green);
  border-color: var(--green);
  white-space: nowrap;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 27px 0;
  margin-top: 70px;
  color: var(--muted);
  font-size: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
}

/* Full-size screenshot dialog */
dialog {
  border: 0;
  border-radius: 12px;
  padding: 18px;
  width: min(1100px,94vw);
  max-height: 92vh;
  background: white;
  box-shadow: 0 25px 100px #0005;
}

dialog::backdrop {
  background: #112c4bd9;
}

dialog img {
  max-height: 75vh;
  margin: auto;
  object-fit: contain;
}

.image-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

.image-zoom-link {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.screenshot-image button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-in;
}

.js-only {
  display: none;
}

.js .js-only {
  display: block;
}

/* Wide desktop layout */
@media(min-width:1400px) {
  .hero {
    padding-top: 95px;
    padding-bottom: 62px;
  }
  .hero-grid {
    gap: 75px;
  }
  .hero-visual {
    padding-top: 32px;
  }
  .app-window img {
    max-height: 355px;
  }
}

/* Tablet layout */
@media(max-width:1000px) {
  .header-content {
    gap: 20px;
  }
  .main-navigation {
    gap: 18px;
  }
  .brand-description {
    display: none;
  }
  .hero-grid {
    gap: 25px;
  }
  .hero {
    padding-top: 55px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .hero-copy>p {
    font-size: 16px;
  }
  .feature-card {
    padding: 23px;
  }
  .content-workflow {
    gap: 40px;
  }
  .app-window img {
    max-height: 300px;
  }
  .hero-highlight {
    padding: 12px 15px;
  }
  .screenshot-image {
    height: 350px;
  }
}

/* Mobile layout */
@media(max-width:740px) {
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 72px;
  }
  .header-content {
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 25px #122c4a0a;
  }
  .main-navigation.is-open {
    display: flex;
  }
  .main-navigation a {
    padding: 8px 0;
  }
  .main-navigation .button {
    padding: 10px;
  }
  .hero {
    padding: 42px 0 30px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy>p {
    max-width: 500px;
  }
  .product-name {
    margin-top: 14px;
    font-size: 18px;
  }
  h1 {
    font-size: 54px;
  }
  .hero-visual {
    max-width: 540px;
    width: 100%;
    margin: auto;
    padding: 18px 0 36px 14px;
  }
  .app-window {
    margin-right: 16px;
  }
  .app-window img {
    max-height: 280px;
  }
  .hero-bottom {
    margin-top: 35px;
    gap: 13px 22px;
    padding-top: 23px;
  }
  .hero-bottom strong {
    width: 100%;
  }
  .section {
    padding: 50px 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 27px;
  }
  .section-heading p {
    margin-top: 16px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 24px;
  }
  .feature-card h3 {
    margin-top: 14px;
  }
  .feature-tags {
    margin-top: 15px;
  }
  .screenshots-heading {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .screenshots-controls {
    flex-shrink: 0;
  }
  .screenshot-image {
    height: 265px;
    padding: 16px;
  }
  .screenshot-caption {
    padding: 18px;
    align-items: flex-start;
  }
  .screenshot-caption p {
    font-size: 13px;
  }
  .screenshots-navigation {
    gap: 3px;
    margin-top: 17px;
  }
  .screenshot-navigation-button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .content-workflow {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .workflow-diagram {
    padding: 20px;
  }
  .documentation-preview-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .documentation-preview {
    padding-top: 0;
  }
  .download-panel {
    display: block;
    padding: 30px 24px;
  }
  .download-panel h2 {
    font-size: 27px;
  }
  .download-panel .button {
    margin-top: 22px;
  }
  .site-footer {
    margin-top: 45px;
  }
  .footer-content {
    gap: 14px;
  }
  .footer-links {
    gap: 18px;
  }
  .screenshot-caption .image-zoom-link {
    margin-top: 8px;
  }
  .screenshot-counter {
    font-size: 11px;
  }
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none!important;
  }
}

/* Homepage navigation and expanded product sections */
.skip-link {
  position: absolute;
  left: 18px;
  top: -100px;
  z-index: 50;
  background: #fff;
  padding: 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.main-navigation a.navigation-current {
  color: var(--blue);
  position: relative;
}

.main-navigation a.navigation-current:after {
  content: '';
  position: absolute;
  height: 3px;
  bottom: -12px;
  left: 0;
  right: 0;
  border-radius: 2px;
  background: var(--blue);
}

.section-navigation {
  border-bottom: 1px solid #edf2f7;
  background: #fbfdff;
}

.section-navigation .container {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.section-navigation span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-right: auto;
}

.section-navigation a {
  font-size: 13px;
  color: var(--muted);
}

.section-navigation a:hover {
  color: var(--blue);
}

.hero-copy .download-license-note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

.hero {
  padding-top: 64px;
}

.js .screenshots-controls {
  display: flex;
}

.screenshots-controls {
  display: none;
}

.use-cases-section {
  padding-top: 10px;
}

.use-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 76px;
  padding: 45px 0;
  border-bottom: 1px solid var(--line);
}

.use-case:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.use-case.use-case-reversed .use-case-description {
  order: 2;
}

.use-case-label {
  font-size: 12px;
  letter-spacing: 1.7px;
  color: var(--blue);
  font-weight: 700;
}

.use-case-description h3 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 14px 0 18px;
}

.use-case-description>p {
  color: var(--muted);
  font-size: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  color: var(--ink);
  font-size: 14px;
}

.check-list li {
  padding-left: 24px;
  position: relative;
  margin: 8px 0;
}

.check-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.example-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.metadata-example {
  border: 1px solid #d8e7ef;
  border-radius: 18px;
  padding: 32px;
  background: linear-gradient(135deg,#f2f8ff,#f5fcf8);
}

.metadata-example-message {
  padding: 28px 0 22px;
}

.metadata-example-message span {
  font-size: 13px;
  color: var(--green);
}

.metadata-example-message strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -.7px;
  margin-top: 12px;
}

.metadata-example-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metadata-example-destinations span {
  background: white;
  border: 1px solid #d4e4ee;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  color: var(--blue);
}

.metadata-example>p,.network-example>p {
  color: var(--muted);
  font-size: 13px;
  margin: 24px 0 0;
}

.network-example {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--light);
}

.network-center {
  padding: 20px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  max-width: 290px;
  margin: 23px auto 0;
}

.network-center strong {
  font-size: 22px;
  display: block;
}

.network-center span {
  font-size: 12px;
  color: #dfebff;
}

.network-trunk {
  height: 32px;
  width: 1px;
  background: #a6bed4;
  margin: auto;
}

.network-sites {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  position: relative;
}

.network-sites:before {
  content: '';
  position: absolute;
  height: 1px;
  top: 0;
  left: 16.5%;
  right: 16.5%;
  background: #a6bed4;
}

.network-sites>div {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 17px 8px;
  text-align: center;
  position: relative;
}

.network-sites>div:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 1px;
  top: -19px;
  left: 50%;
  background: #a6bed4;
}

.network-sites b {
  font-size: 12px;
  color: var(--green);
  display: block;
}

.network-sites strong {
  display: block;
  font-size: 13px;
  margin: 4px 0;
}

.network-sites span {
  font-size: 11px;
  color: var(--muted);
}

.recorder-preview {
  margin: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--light);
}

.recorder-preview img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  margin: 20px auto;
  //background: white;
  border-radius: 4px;
  box-shadow: 0 10px 25px #122c4a10;
}

.recorder-preview figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.tools-section {
  background: var(--light);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 36px 40px;
}

.tool-index {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}

.tools-grid h3 {
  font-size: 18px;
  margin: 9px 0 10px;
}

.tools-grid p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.section-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 33px 0 0;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compatibility-card {
  padding: 30px;
  border: 1px solid #cfe7dc;
  background: #fbfefc;
  border-radius: 16px;
}

.compatibility-card.licensed {
  border-color: #d6e4f5;
  background: #fcfdff;
}

.compatibility-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.licensed .compatibility-label {
  color: var(--blue);
}

.compatibility-card h3 {
  font-size: 24px;
  margin: 13px 0;
}

.compatibility-card p {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
}

.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 23px 0;
}

.device-chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
}

.protocol-strip {
  display: flex;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.protocol-strip strong {
  color: var(--ink);
  font-size: 13px;
  margin-right: auto;
}

.documentation-preview {
  padding-bottom: 0;
}

.download-section {
  padding-bottom: 0;
}

.installation-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
  margin: 35px 0 27px;
}

.step-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.installation-steps h3 {
  font-size: 18px;
  margin: 13px 0 8px;
}

.installation-steps p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.update-instructions {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 20px;
}

.update-instructions summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.update-instructions>div {
  border-top: 1px solid var(--line);
  padding: 4px 0 12px;
}

.update-instructions p {
  font-size: 14px;
  color: var(--muted);
}

.update-instructions strong {
  color: var(--ink);
}

.support-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.support-links p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.download-panel .eyebrow {
  margin-bottom: 12px;
}

.download-panel .button {
  flex-shrink: 0;
}

.feature-tags span {
  font-size: 12px;
}

@media(max-width:1000px) {
  .use-case {
    gap: 35px;
  }
  .tools-grid {
    gap: 25px;
  }
  .network-example {
    padding: 23px;
  }
  .network-sites {
    gap: 7px;
  }
  .network-sites span {
    font-size: 10px;
  }
  .compatibility-card {
    padding: 24px;
  }
  .section-navigation .container {
    gap: 20px;
  }
  .section-navigation span {
    margin-right: 12px;
  }
}

@media(max-width:740px) {
  .main-navigation a.navigation-current:after {
    bottom: 0;
    width: 28px;
    right: auto;
  }
  .section-navigation .container {
    flex-wrap: wrap;
    gap: 7px 19px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .section-navigation span {
    display: none;
  }
  .section-navigation a {
    font-size: 12px;
  }
  .hero {
    padding-top: 37px;
  }
  .use-case {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0;
  }
  .use-case.use-case-reversed .use-case-description {
    order: 0;
  }
  .use-case-description h3 {
    font-size: 27px;
  }
  .metadata-example {
    padding: 26px;
  }
  .metadata-example-message strong {
    font-size: 25px;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 22px;
  }
  .tools-grid h3 {
    font-size: 17px;
  }
  .tools-grid p {
    font-size: 14px;
  }
  .compatibility-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .compatibility-card {
    padding: 25px;
  }
  .protocol-strip strong {
    width: 100%;
  }
  .installation-steps {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .installation-steps article {
    padding-left: 45px;
    position: relative;
  }
  .step-number {
    position: absolute;
    left: 0;
    top: 0;
  }
  .installation-steps h3 {
    margin-top: 0;
  }
  .download-panel .eyebrow {
    font-size: 11px;
  }
  .documentation-preview {
    padding-bottom: 0;
  }
  .download-section {
    padding-bottom: 0;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .network-sites span {
    font-size: 11px;
  }
}

@media(max-width:380px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .network-example {
    padding: 18px;
  }
  .network-sites strong {
    font-size: 12px;
  }
  .network-sites span {
    font-size: 10px;
  }
  .use-case-description h3 {
    font-size: 25px;
  }
}

/* Shared pages and progressive enhancement */
.site-logo  {
  display: block;
  flex: 0 0 auto;
  width: 180px;
  height: 60px;
}

.screenshot-slide  {
  margin: 0;
}

.screenshot-slide[hidden]  {
  display: none;
}

.visually-hidden  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.empty-page  {
  min-height: 55vh;
  padding: 68px 0;
}

.empty-page h1  {
  font-size: clamp(36px, 5vw, 54px);
  margin-bottom: 0;
}

.screenshots-carousel:focus-visible  {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

@media (max-width: 740px)  {
  html:not(.js) .site-header  {
    height: auto;
  }
  html:not(.js) .header-content  {
    flex-wrap: wrap;
    padding-top: 15px;
  }
  html:not(.js) .main-navigation  {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: none;
    border: 0;
    padding: 8px 0 14px;
    width: 100%;
  }
  html:not(.js) .menu-toggle  {
    display: none;
  }
  html:not(.js) .navigation-current::after  {
    display: none;
  }
}

/* Documentation page: introduction, readable description and reference panel */
.documentation-introduction {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}
.documentation-introduction h1 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -2px;
  margin: 14px 0 18px;
}
.documentation-introduction p {
  max-width: 660px;
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}
.documentation-overview {
  padding-top: 55px;
}
.documentation-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 70px;
  align-items: start;
}
.documentation-description {
  max-width: 790px;
  min-width: 0;
}
.documentation-description p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}
.documentation-description .documentation-lead {
  color: var(--ink);
  font-size: 18px;
}
.documentation-topic {
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.documentation-topic h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 0 0 18px;
}
.documentation-general-purpose {
  padding: 30px;
  border: 1px solid #cfe7dc;
  border-radius: 14px;
  background: #f5fbf7;
  margin-top: 35px;
}
.documentation-topic-label {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.documentation-example-list {
  padding-left: 20px;
  color: var(--muted);
  margin: 20px 0;
}
.documentation-example-list li {
  margin: 13px 0;
  line-height: 1.7;
}
.documentation-example-list strong {
  color: var(--ink);
}
.documentation-at-a-glance {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
}
.documentation-at-a-glance h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.documentation-facts {
  margin: 0;
}
.documentation-facts > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.documentation-facts dt {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}
.documentation-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.documentation-at-a-glance > p {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
}
.documentation-at-a-glance > a {
  display: block;
  margin-top: 15px;
}

/* PDF guide catalogue: each document is one editable HTML article */
.documentation-guides {
  background: var(--light);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.document-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 26px;
}
.document-category {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.document-card h3 {
  font-size: 20px;
  margin: 13px 0 14px;
}
.document-card h3 a:hover {
  color: var(--blue);
}
.document-card > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.document-link {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.document-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.document-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.documentation-guide-note {
  font-size: 14px;
  color: var(--muted);
  margin: 26px 0 0;
}

/* FAQ: native details elements work with keyboard and without JavaScript */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.faq-item summary::marker {
  color: var(--blue);
}
.faq-item[open] summary {
  color: var(--blue);
}
.faq-answer {
  max-width: 860px;
  padding: 0 8px 23px 28px;
}
.faq-answer p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 12px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.documentation-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 30px;
  margin-top: 40px;
  background: #f5fbf7;
  border: 1px solid #d6e9df;
  border-radius: 14px;
}
.documentation-support h3 {
  margin: 0 0 8px;
}
.documentation-support p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 1000px) {
  .documentation-overview-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 35px;
  }
  .documentation-at-a-glance {
    padding: 22px;
  }
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .documentation-introduction {
    padding: 38px 0 30px;
  }
  .documentation-introduction h1 {
    letter-spacing: -1px;
  }
  .documentation-introduction p {
    font-size: 16px;
  }
  .documentation-overview-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .documentation-topic h3 {
    font-size: 22px;
  }
  .documentation-general-purpose {
    padding: 23px;
  }
  .document-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .document-card {
    padding: 23px;
  }
  .faq-item summary {
    font-size: 16px;
    padding: 20px 4px;
  }
  .faq-answer {
    padding-left: 20px;
    padding-right: 4px;
  }
  .documentation-support {
    padding: 25px;
  }
}

/* Licensing: forms, options, backend results and purchasing instructions */
.license-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 50px;
  align-items: start;
}
.license-form-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.license-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.license-form label, .license-type-label {
  font-size: 14px;
  font-weight: 700;
}
.license-form input:not([type="checkbox"]):not([type="hidden"]),
.license-form textarea, .license-form select, #id_license_type {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7d7e5;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
.license-form textarea { resize: vertical; }
.license-form input:focus-visible, .license-form textarea:focus-visible, #id_license_type:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 16px;
}
.form-label-row .text-link { font-size: 13px; }
.form-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}
.license-form .button { align-self: flex-start; margin-top: 8px; }
.button:disabled {
  background: #edf2f7;
  border-color: #d6e0e9;
  color: #5e7287;
  cursor: default;
  transform: none;
}
.license-key-result {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #cfe7dc;
  border-radius: 9px;
  background: #f5fbf7;
  overflow-wrap: anywhere;
}
.license-key-result input {
  max-width: 100%;
  padding: 10px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.license-instructions h3 { font-size: 22px; margin: 0 0 20px; }
.license-instructions > p { color: var(--muted); font-size: 14px; }
.license-steps { padding-left: 23px; margin: 0 0 22px; }
.license-steps li { margin-bottom: 16px; padding-left: 6px; color: var(--muted); font-size: 15px; }
.license-steps strong { color: var(--ink); }
.license-steps li::marker { color: var(--blue); font-weight: 700; }
.licensing-preview-notice {
  margin: 0 0 26px;
  padding: 16px;
  border-left: 3px solid var(--blue);
  background: var(--light);
  font-size: 14px;
}
.licensing-preview-notice p { margin: 0 0 9px; color: var(--muted); }
.license-purchase-section {
  background: var(--light);
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}
.license-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.license-option {
  padding: 28px;
  border: 1px solid #d4e2f3;
  border-radius: 14px;
  background: #fff;
}
.license-option-full { border-color: #cde4d9; }
.license-option h3 { margin: 10px 0 15px; font-size: 24px; }
.license-price { font-size: 38px; line-height: 1.2; letter-spacing: -1px; color: var(--blue); font-weight: 700; }
.license-option-full .license-price { color: var(--green); }
.license-price span { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.license-option p { margin: 15px 0; color: var(--muted); font-size: 15px; }
.license-duration { font-size: 13px; color: var(--muted); }
.license-comparison-link { margin: 22px 0 32px; }
.license-type-label { display: block; margin-bottom: 9px; }
#id_license_type { margin-bottom: 24px; }
.vat-checkbox-row { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; }
.vat-checkbox-row input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.vat-entry-row { display: flex; gap: 9px; align-items: center; margin-top: 9px; }
.vat-entry-row #countryCombobox { width: 85px; flex-shrink: 0; }
.vat-entry-row #VATNumber { min-width: 0; }
.vat-entry-row .button { margin: 0; align-self: auto; padding: 11px 14px; }
.vat-entry .form-help { margin-top: 10px; }
.vat-confirmation { padding: 12px; border-radius: 6px; color: var(--green); background: #f0faf4; font-size: 14px; }
.license-status { color: var(--ink); padding: 14px; background: var(--light); border: 1px solid var(--line); border-radius: 7px; font-size: 14px; overflow-wrap: anywhere; }
.paypal-payment:empty { display: none; }
.paypal-payment { margin-top: 22px; }
.license-recovery-form { max-width: 530px; margin-top: 20px; }

.license-option[data-license-type] {
  cursor: pointer;
}

.license-option[data-license-type].is-selected {
  outline: 2px solid #1672c4;
  outline-offset: 3px;
}

.license-option[data-license-type]:focus-visible {
  outline: 3px solid #1672c4;
  outline-offset: 5px;
}

.license-duration a {
  color: #1672c4;
  text-decoration: underline;
}

img.image-zoom {
  cursor: zoom-in;
}

img.image-zoom:focus-visible {
  outline: 2px solid #1672c4;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .license-layout { gap: 30px; }
  .license-form-card { padding: 25px; }
}
@media (max-width: 740px) {
  .license-layout { grid-template-columns: 1fr; gap: 28px; }
  .license-option-grid { grid-template-columns: 1fr; gap: 15px; }
  .license-form-card { padding: 23px; }
  .vat-entry-row { flex-wrap: wrap; }
  .vat-entry-row #VATNumber { flex: 1; }
}
