:root {
  color-scheme: light;
  --paper: #f7fafd;
  --surface: #ffffff;
  --ink: #14161b;
  --muted: #565a63;
  --line: rgba(14, 23, 41, 0.12);
  --brand: #0873d5;
  --brand-strong: #0b69be;
  --brand-soft: rgba(8, 115, 213, 0.07);
  --focus: #0873d5;
  --ribbon-art: url("xelvo-ribbon.webp");
  --content: 74rem;
  --text: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.home-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background-color: var(--brand);
  background-image: var(--ribbon-art);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  width: 100%;
  background: transparent;
}

.header-inner {
  width: min(calc(100vw - 2.5rem), var(--content));
  margin: 0 auto;
}

.identity-row {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-mark {
  flex: 0 0 auto;
  color: var(--surface);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.header-mark:hover {
  color: var(--surface);
}

.site-nav ul,
.footer-nav {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--surface);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--surface);
  color: var(--surface);
}

.page-ribbon {
  width: 100vw;
  max-width: 100vw;
  min-height: 20rem;
  background-color: var(--brand);
  background-image: var(--ribbon-art);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-shell {
  display: grid;
  width: min(calc(100vw - 2.5rem), var(--content));
  margin: -13rem auto 0;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 5rem;
}

.page-main {
  min-width: 0;
  padding: 0 0 6rem;
}

.page-intro {
  min-height: 13rem;
  max-width: var(--text);
  padding: 0 0 2.75rem;
  color: var(--surface);
}

.support-page .page-ribbon {
  min-height: 23rem;
}

.support-page .page-shell {
  margin-top: -16rem;
}

.support-page .page-intro {
  min-height: 16rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 760;
}

.page-intro h1,
.page-intro .eyebrow,
.page-intro .lede,
.page-intro .meta {
  color: var(--surface);
}

.page-intro .eyebrow,
.page-intro .lede,
.page-intro .meta {
  opacity: 0.9;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
  font-weight: 740;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 730;
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

.lede {
  max-width: 44rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-band {
  max-width: var(--text);
  margin: 3.5rem 0 3.25rem;
  padding: 1.5rem 1.6rem;
  border: 0;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(14, 23, 41, 0.07);
}

.summary-band p:last-child,
.summary-band ul:last-child {
  margin-bottom: 0;
}

.content-section {
  max-width: var(--text);
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.content-section > :last-child {
  margin-bottom: 0;
}

.content-section li + li {
  margin-top: 0.55rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.35rem;
}

.service-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.service {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.service p:last-child {
  margin-bottom: 0;
}

.service-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plain-definition {
  margin-bottom: 0;
}

.plain-definition div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.plain-definition div:first-child {
  padding-top: 0;
  border-top: 0;
}

.plain-definition dt {
  font-weight: 730;
}

.plain-definition dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.note {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--surface);
}

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

.toc {
  align-self: start;
  margin-top: 18.5rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  border-left: 1px solid var(--line);
  position: sticky;
  top: 1.5rem;
}

.toc-title {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 0.45rem;
}

.toc a {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-line {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.home-main {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.home-hero {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  align-items: center;
  color: var(--surface);
}

.home-hero-inner {
  min-width: 0;
  max-width: 100%;
  width: min(calc(100vw - 2.5rem), var(--content));
  margin: 0 auto;
  padding: 3rem 0;
  text-align: left;
}

.home-hero h1 {
  max-width: 17ch;
  margin-bottom: 1.1rem;
  color: var(--surface);
  font-size: 3.75rem;
  line-height: 1.08;
}

.product-description {
  max-width: 32rem;
  margin: 0 0 1.75rem;
  color: var(--surface);
  font-size: 1.2rem;
  line-height: 1.55;
  opacity: 0.94;
}

.play-action {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: var(--surface);
  line-height: 0;
  text-decoration: none;
}

.play-action img {
  display: block;
  width: 11.45rem;
  height: auto;
}

.play-action:hover {
  background: var(--paper);
}

.play-action:focus-visible {
  outline-color: var(--surface);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #111923;
}

.home-page .site-header {
  position: relative;
}

.home-page .site-footer {
  border-top: 0;
  background: transparent;
}

.home-page .footer-inner {
  min-height: 5rem;
}

.home-page .footer-copy,
.home-page .footer-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  width: min(calc(100vw - 2.5rem), var(--content));
  min-height: 6.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
}

.footer-nav {
  gap: 1rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}

@media (max-width: 56rem) {
  .identity-row {
    min-height: 4.5rem;
    padding: 0;
  }

  .site-nav {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .site-nav ul {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .site-nav a {
    margin: 0;
    padding: 0.6rem 0.15rem;
    text-align: center;
  }

  .page-shell {
    display: block;
  }

  .page-main {
    padding-top: 0;
  }

  .toc {
    display: none;
  }

}

@media (max-width: 38rem) {
  .header-inner,
  .page-shell,
  .home-hero-inner,
  .footer-inner {
    width: min(calc(100vw - 2rem), var(--content));
  }

  .identity-row {
    gap: 0.75rem;
  }

  .header-mark {
    font-size: 1.3rem;
  }

  .site-nav a {
    margin: 0;
    padding: 0.55rem 0;
    font-size: 0.8rem;
  }

  .page-main {
    padding: 0 0 4.5rem;
  }

  .page-ribbon {
    min-height: 25rem;
    background-position: 42% center;
  }

  .page-shell {
    margin-top: -18rem;
  }

  .page-intro {
    min-height: 18rem;
    padding-bottom: 2rem;
  }

  .support-page .page-ribbon {
    min-height: 30rem;
  }

  .support-page .page-shell {
    margin-top: -23rem;
  }

  .support-page .page-intro {
    min-height: 23rem;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero-inner {
    width: min(calc(100vw - 2rem), var(--content));
    padding: 2.5rem 0;
  }

  .home-hero h1 {
    font-size: 2.5rem;
  }

  .product-description {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 1.35rem;
    font-size: 1.12rem;
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .summary-band {
    margin: 2.5rem 0;
    padding: 1.15rem 1.1rem;
  }

  .content-section {
    padding: 2.25rem 0;
  }

  .service {
    padding: 1rem;
  }

  .footer-inner {
    padding: 1.5rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
  }

  .home-page .footer-inner {
    min-height: 4.5rem;
    padding: 1rem 0;
    align-items: center;
    flex-direction: row;
  }
}

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