:root {
  --ink: #111014;
  --paper: #faf7f2;
  --white: #ffffff;
  --burgundy-dark: #64182b;
  --burgundy: #931f3f;
  --burgundy-glint: #b84a63;
  --burgundy-light: #c86a80;
  --muted: #655d62;
  --muted-light: #c1b7bc;
  --surface-dark: #1b181c;
  --line: #ded5d8;
  --line-dark: rgba(250, 247, 242, 0.16);
  --shadow: 0 28px 70px rgba(65, 20, 38, 0.14);
  --max: 1280px;
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 5.6vw, 5.9rem);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.4vw, 4.3rem);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 11px;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

em {
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 16, 20, 0.08);
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--burgundy-dark);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--burgundy);
  border-radius: 13px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--burgundy-glint) 0%, var(--burgundy) 48%, var(--burgundy-dark) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 8px 22px rgba(100, 24, 43, 0.14);
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--burgundy-dark);
  color: var(--paper);
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

.button.small {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 11px;
}

.hero {
  overflow: hidden;
  padding: clamp(42px, 5vw, 70px) 0 clamp(68px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--burgundy-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 3px;
  background: var(--burgundy);
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.hero-actions {
  max-width: 610px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.text-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--burgundy-dark);
  color: var(--burgundy-dark);
  background: var(--white);
  transform: translateY(-2px);
}

.text-link span {
  margin-left: 4px;
  color: var(--burgundy);
}

.benefit-list {
  max-width: 610px;
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.benefit-list li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.8rem;
  font-weight: 720;
  text-align: center;
}

.workflow-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(17, 16, 20, 0.08);
  border-radius: 34px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.workflow-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border: 26px solid var(--burgundy-dark);
  border-radius: 28px;
  content: "";
  transform: rotate(18deg);
  opacity: 0.6;
}

.workflow-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.workflow-intro {
  max-width: 360px;
  margin: 28px 0 25px;
  font-size: 1.35rem;
  font-weight: 690;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.workflow-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
}

.workflow-number {
  color: var(--burgundy-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.workflow-list strong,
.workflow-list small {
  display: block;
}

.workflow-list strong {
  margin-bottom: 3px;
  font-size: 1rem;
}

.workflow-list small {
  color: var(--muted-light);
  font-size: 0.82rem;
  line-height: 1.42;
}

.workflow-result {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid var(--burgundy);
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--burgundy-glint) 0%, var(--burgundy) 52%, var(--burgundy-dark) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
  font-weight: 820;
}

.workflow-result span {
  margin-right: 7px;
}

.section {
  padding: clamp(68px, 7vw, 96px) 0;
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-card {
  min-height: 238px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.process-card > span {
  display: block;
  margin-bottom: 28px;
  color: var(--burgundy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.process-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.process-card:hover {
  border-color: var(--burgundy);
  box-shadow: 0 18px 38px rgba(65, 20, 38, 0.12);
  transform: translateY(-8px);
}

.process-card.accent-card {
  border-color: var(--burgundy-dark);
  color: var(--paper);
  background: linear-gradient(145deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
}

.process-card.accent-card:hover {
  border-color: var(--burgundy);
  box-shadow: 0 18px 38px rgba(65, 20, 38, 0.2);
}

.process-card.accent-card > span,
.process-card.accent-card p {
  color: var(--paper);
}

.process-card.accent-card .text-link {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.54);
}

.process-card.accent-card .text-link:hover,
.process-card.accent-card .text-link:focus-visible {
  color: var(--burgundy-dark);
  border-color: var(--paper);
  background: var(--paper);
}

.diagnostic-section {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.diagnostic-section .container {
  position: relative;
  z-index: 1;
}

.diagnostic-heading {
  margin-bottom: 32px;
}

.diagnostic-heading > p:last-child {
  color: var(--muted-light);
}

.diagnostic-heading em,
.product-card em {
  color: var(--burgundy-light);
}

.diagnostic-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.diagnostic-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(184, 74, 99, 0.28);
  border-radius: 26px;
  background: #151217;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 28px 60px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.diagnostic-visual::before,
.diagnostic-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66%;
  height: 34%;
  border: 1px solid rgba(184, 74, 99, 0.3);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}

.diagnostic-visual::after {
  width: 49%;
  height: 48%;
  border-color: rgba(250, 247, 242, 0.13);
  transform: translate(-50%, -50%) rotate(32deg);
}

#diagnostic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 300ms ease;
}

.diagnostic-section.has-webgl #diagnostic-canvas {
  opacity: 1;
}

.diagnostic-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 1px solid rgba(184, 74, 99, 0.72);
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(145deg, #21171d 0%, #111014 55%, #2d121b 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 0 0 13px rgba(147, 31, 63, 0.08), 0 0 54px rgba(147, 31, 63, 0.32);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.diagnostic-core span,
.diagnostic-core strong {
  display: block;
  line-height: 1;
}

.diagnostic-core span {
  margin-bottom: 5px;
  color: var(--muted-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.diagnostic-core strong {
  color: var(--burgundy-glint);
  font-size: 1.62rem;
  letter-spacing: -0.05em;
}

.diagnostic-controls {
  display: contents;
}

.diagnostic-node {
  position: absolute;
  z-index: 3;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(27, 24, 28, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.diagnostic-node:hover,
.diagnostic-node:focus-visible,
.diagnostic-node.is-active {
  border-color: var(--burgundy-glint);
  color: var(--paper);
  background: linear-gradient(135deg, var(--burgundy-glint) 0%, var(--burgundy) 52%, var(--burgundy-dark) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22), 0 12px 28px rgba(100, 24, 43, 0.28);
  transform: scale(1.04);
}

.node-one {
  top: 14%;
  left: 9%;
}

.node-two {
  top: 14%;
  right: 8%;
}

.node-three {
  bottom: 15%;
  left: 8%;
}

.node-four {
  right: 7%;
  bottom: 15%;
}

.diagnostic-hint {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  margin: 0;
  color: var(--muted-light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.diagnostic-panel {
  display: block;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(184, 74, 99, 0.22);
  border-radius: 26px;
  background: var(--surface-dark);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 28px 60px rgba(0, 0, 0, 0.18);
}

.diagnostic-panel.is-updating > * {
  animation: diagnostic-content-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.diagnostic-panel-measure {
  position: fixed !important;
  top: 0 !important;
  left: -200vw !important;
  z-index: -1 !important;
  height: auto !important;
  min-height: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes diagnostic-content-in {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diagnostic-panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.diagnostic-kicker {
  margin: 28px 0 5px;
  color: var(--burgundy-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diagnostic-panel h3 {
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.diagnostic-details {
  margin: 0;
}

.diagnostic-details div {
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
}

.diagnostic-details dt {
  margin-bottom: 5px;
  color: var(--muted-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diagnostic-details dd {
  margin: 0;
  color: var(--paper);
  line-height: 1.48;
}

.repair-command {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(184, 74, 99, 0.48);
  border-radius: 18px;
  background: rgba(147, 31, 63, 0.1);
}

.repair-command span {
  display: block;
  margin-bottom: 8px;
  color: var(--burgundy-light);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.repair-command p {
  margin: 0;
  color: var(--paper);
  font-size: 0.94rem;
  line-height: 1.5;
}

.diagnostic-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 20px;
}

.diagnostic-copy {
  width: 100%;
}

.diagnostic-copy-status {
  min-height: 1.45em;
  margin: 0;
  color: var(--muted-light);
  font-size: 0.82rem;
}

.diagnostic-product-link {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration-color: var(--burgundy-light);
  text-underline-offset: 4px;
}

.diagnostic-product-link:hover,
.diagnostic-product-link:focus-visible {
  color: var(--burgundy-light);
}

.diagnostic-product-link[hidden] {
  display: none;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 34px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.eyebrow.light {
  color: var(--muted-light);
}

.product-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted-light);
  font-size: 1.08rem;
}

.product-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.product-points li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line-dark);
}

.product-points li::before {
  position: absolute;
  left: 0;
  color: var(--burgundy);
  content: "✓";
  font-weight: 900;
}

.product-action {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: var(--surface-dark);
}

.product-label {
  display: block;
  margin-bottom: 19px;
  color: var(--muted-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.light-button {
  width: 100%;
}

.product-action small {
  display: block;
  margin-top: 15px;
  color: var(--muted-light);
  line-height: 1.45;
}

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

.faq-grid {
  display: block;
}

.faq-list {
  width: min(100%, 980px);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

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

summary {
  padding: 24px 46px 24px 18px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 760;
  list-style-position: outside;
  transition: color 160ms ease, background-color 160ms ease;
}

summary:hover,
summary:focus-visible {
  color: var(--burgundy-dark);
  background: rgba(147, 31, 63, 0.07);
}

details p {
  max-width: 660px;
  padding: 0 34px 24px 18px;
  margin: 0 auto 0 0;
  color: var(--muted);
}

.faq-final-cta {
  width: min(100%, 780px);
  margin: clamp(48px, 7vw, 76px) auto 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.faq-final-cta .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.faq-final-cta h3 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.faq-final-cta > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 34px;
  align-items: center;
}

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

.footer-links {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--burgundy-dark);
  color: var(--paper);
  background: var(--burgundy-dark);
  transform: translateY(-3px);
}

.social-links svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.social-links rect,
.social-links circle:not(.social-dot) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links .social-dot {
  fill: currentColor;
}

.social-links .social-play {
  fill: var(--paper);
}

.footer-email {
  font-size: 0.82rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
  font-size: 0.8rem;
}

.legal-page main {
  padding: clamp(48px, 7vw, 92px) 0;
}

.legal-shell {
  width: min(calc(100% - 48px), 860px);
  margin-inline: auto;
}

.legal-header {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
}

.legal-header p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-notice {
  margin-bottom: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(147, 31, 63, 0.28);
  border-radius: 18px;
  background: rgba(147, 31, 63, 0.06);
}

.legal-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--burgundy-dark);
}

.legal-content {
  display: grid;
  gap: 32px;
}

.legal-content section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin-top: 22px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--burgundy-dark);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .product-card,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .diagnostic-shell {
    grid-template-columns: 1fr;
  }

  .diagnostic-panel {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .workflow-card {
    width: min(100%, 760px);
    margin-inline: auto;
  }

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

}

@media (min-width: 541px) and (max-width: 1100px) {
  .hero-copy {
    width: min(100%, 900px);
    margin-inline: auto;
    text-align: center;
  }

  .hero-copy .eyebrow {
    justify-content: center;
  }

  .hero-copy h1 {
    max-width: 13ch;
    margin-inline: auto;
  }

  .hero-copy .lead,
  .hero-actions,
  .benefit-list {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    min-height: 70px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .diagnostic-visual {
    min-height: 420px;
  }

  .process-card > span {
    margin-bottom: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-links {
    justify-items: start;
  }

  .legal-links {
    justify-content: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .legal-shell {
    width: min(calc(100% - 28px), 860px);
  }

  .nav-shell {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 0.82rem;
  }

  .site-nav .button {
    min-height: 40px;
    padding: 9px 8px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(3rem, 14.6vw, 4.55rem);
  }

  h2 {
    font-size: clamp(2.25rem, 11.5vw, 3.35rem);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .text-link {
    text-align: center;
  }

  .benefit-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .workflow-card,
  .product-card {
    border-radius: 24px;
  }

  .workflow-card::after {
    right: -56px;
    bottom: -56px;
  }

  .product-card {
    padding: 26px;
  }

  .product-action {
    padding: 20px;
  }

  .diagnostic-section {
    background: var(--ink);
  }

  .diagnostic-visual {
    min-height: 360px;
    border-radius: 24px;
  }

  .diagnostic-core {
    top: 36%;
    width: 96px;
  }

  .diagnostic-controls {
    position: absolute;
    right: 14px;
    bottom: 38px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .diagnostic-node {
    position: static;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .diagnostic-node:hover,
  .diagnostic-node:focus-visible,
  .diagnostic-node.is-active {
    transform: none;
  }

  .diagnostic-hint {
    bottom: 14px;
    font-size: 0.61rem;
  }

  .diagnostic-panel {
    padding: 25px 21px;
    border-radius: 24px;
  }

  .faq-final-cta {
    padding: 26px 20px;
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* SEO-1: poradnik o stalym profilu i kontekscie */

.article-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(147, 31, 63, 0.08), transparent 27rem),
    var(--paper);
}

.article-page .article-hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
}

.article-page .article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1040px);
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
  justify-content: center;
}

.article-page .article-hero-copy {
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
}

.article-page .article-hero-copy .eyebrow {
  justify-content: center;
}

.article-page .article-hero h1 {
  max-width: 1040px;
  margin: 0 auto 30px;
  font-size: clamp(3.3rem, 5.4vw, 5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.article-page .article-title-short {
  display: none;
}

.article-page .article-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.08rem;
  text-align: center;
}

.article-page .article-lead {
  margin-bottom: 14px;
  color: var(--ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.48rem) !important;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.article-page .article-cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.article-page .article-cta-inline small {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.45;
}

.article-page .article-summary {
  position: relative;
  overflow: hidden;
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 48px);
  color: var(--paper);
  border: 1px solid rgba(200, 106, 128, 0.32);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.article-page .article-summary::after {
  position: absolute;
  right: -82px;
  bottom: -98px;
  width: 230px;
  height: 230px;
  border: 38px solid rgba(184, 74, 99, 0.18);
  border-radius: 50%;
  content: "";
}

.article-page .article-summary-label,
.article-page .article-info-card > span,
.article-page .article-output > span,
.article-page .article-context-card > span {
  display: block;
  margin-bottom: 22px;
  color: var(--burgundy-light);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.article-page .article-summary-label {
  text-align: center;
}

.article-page .article-summary ol {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-page .article-summary li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 19px 0;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.article-page .article-summary li:last-child {
  padding-bottom: 0;
}

.article-page .article-summary strong {
  color: var(--white);
}

.article-page .article-summary span {
  color: var(--muted-light);
}

.article-page .article-summary li.is-sequence-pending,
.article-page .article-steps li.is-sequence-pending {
  opacity: 0;
  transform: translateY(12px);
}

.article-page .article-summary li.is-sequence-visible,
.article-page .article-steps li.is-sequence-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 440ms ease var(--sequence-delay, 0ms),
    transform 440ms ease var(--sequence-delay, 0ms);
}

.article-page .article-layout {
  width: min(calc(100% - 48px), 960px);
}

.article-page .article-content {
  padding: 22px 0 96px;
}

.article-page .article-content > section {
  padding: clamp(68px, 8vw, 102px) 0;
  border-bottom: 1px solid var(--line);
}

.article-page .article-content h2 {
  max-width: 17ch;
  position: relative;
  margin: 0 auto 28px;
  padding-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  text-align: center;
  text-wrap: balance;
}

.article-page .article-content > section > h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--burgundy);
  content: "";
  transform: translateX(-50%);
}

.article-page .article-content > section > h2.is-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

.article-page .article-content > section > h2.is-reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.article-page .article-content h3 {
  margin-top: 32px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.article-page .article-content p,
.article-page .article-content li {
  font-size: 1.08rem;
}

.article-page .article-content p {
  max-width: 760px;
}

.article-page .article-section-number {
  margin: 0 auto 16px;
  color: var(--burgundy);
  font-size: 0.76rem !important;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-align: center;
}

.article-page .article-content > section > p:not(.article-section-number):not(.article-note) {
  margin-inline: auto;
  text-align: center;
}

.article-page .article-check-list li,
.article-page .article-info-card p,
.article-page .article-info-card li,
.article-page .article-output p,
.article-page .article-output li,
.article-page .article-context-card p,
.article-page .article-context-card li,
.article-page .article-steps p,
.article-page .article-faq p,
.article-page .article-sources li {
  text-align: left;
}

.article-page .article-check-list {
  display: grid;
  gap: 13px;
  max-width: 760px;
  margin: 30px 0 34px;
  padding: 0;
  list-style: none;
}

.article-page .article-check-list li {
  position: relative;
  padding-left: 32px;
}

.article-page .article-check-list li::before {
  position: absolute;
  top: 0.12em;
  left: 0;
  color: var(--burgundy);
  font-weight: 900;
  content: "✓";
}

.article-page .article-check-list-centered {
  width: min(100%, 720px);
  max-width: 720px;
  margin-inline: auto;
}

.article-page .article-check-list-centered li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding-left: 0;
  text-align: left;
}

.article-page .article-check-list-centered li::before {
  position: static;
  margin-top: 0.12em;
  text-align: center;
}

.article-page .article-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.article-page .article-block-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-page .article-info-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.article-page .article-info-card > span {
  color: var(--burgundy);
}

.article-page .article-info-card h3 {
  margin-top: 0;
}

.article-page .article-info-card ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.article-page .article-info-card.is-dark {
  color: var(--paper);
  border-color: rgba(200, 106, 128, 0.28);
  background: var(--ink);
}

.article-page .article-info-card.is-dark p,
.article-page .article-info-card.is-dark li {
  color: var(--muted-light);
}

.article-page .article-info-card.is-dark > span {
  color: var(--burgundy-light);
}

.article-page .article-info-card.is-dark .text-link {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.28);
}

.article-page .article-info-card.is-dark .text-link:hover,
.article-page .article-info-card.is-dark .text-link:focus-visible {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.article-page blockquote {
  max-width: 800px;
  margin: 24px auto;
  padding: 24px 26px;
  color: var(--ink);
  border-left: 4px solid var(--burgundy);
  background: rgba(147, 31, 63, 0.06);
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: left;
}

.article-page .article-disclosure,
.article-page .article-warning,
.article-page .article-note {
  max-width: 800px;
  margin: 32px 0;
  padding: 22px 24px;
  border: 1px solid rgba(147, 31, 63, 0.22);
  border-radius: 18px;
  background: rgba(147, 31, 63, 0.06);
}

.article-page .article-disclosure strong,
.article-page .article-warning strong {
  display: block;
  margin-bottom: 7px;
  color: var(--burgundy);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page .article-disclosure p,
.article-page .article-warning p,
.article-page p.article-note {
  margin-bottom: 0;
}

.article-page .article-demo-section > h3,
.article-page .article-demo-section > blockquote,
.article-page .article-demo-section .article-disclosure,
.article-page .article-demo-section .article-output,
.article-page .article-demo-section .article-context-card {
  text-align: center;
}

.article-page .article-demo-section > h3,
.article-page .article-demo-section > blockquote,
.article-page .article-demo-section .article-disclosure {
  margin-inline: auto;
}

.article-page .article-demo-section blockquote,
.article-page .article-demo-section .article-output p,
.article-page .article-demo-section .article-context-card h3,
.article-page .article-demo-section .article-context-card p {
  text-align: center;
}

.article-page .article-note-centered,
.article-page .article-warning-centered,
.article-page .article-warning-centered p {
  margin-inline: auto;
  text-align: center;
}

.article-page .article-comparison {
  display: grid;
  gap: 18px;
  margin-top: 46px;
}

.article-page .article-output,
.article-page .article-context-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-page .article-output > span,
.article-page .article-context-card > span {
  color: var(--burgundy);
}

.article-page .article-output blockquote,
.article-page .article-context-card blockquote {
  margin-inline: 0;
}

.article-page .article-output.is-after {
  border-color: rgba(200, 106, 128, 0.36);
  box-shadow: 0 24px 58px rgba(100, 24, 43, 0.11);
}

.article-page .article-context-card {
  color: var(--paper);
  border-color: rgba(200, 106, 128, 0.3);
  background: var(--ink);
}

.article-page .article-context-card > span {
  color: var(--burgundy-light);
}

.article-page .article-context-card h3 {
  color: var(--white);
}

.article-page .article-context-card blockquote {
  color: var(--paper);
  border-left-color: var(--burgundy-light);
  background: rgba(200, 106, 128, 0.09);
}

.article-page .article-steps {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin: 42px auto 0;
  padding: 0;
  list-style: none;
}

.article-page .article-steps li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
}

.article-page .article-steps li > span {
  color: var(--burgundy);
  font-size: 0.8rem;
  font-weight: 850;
}

.article-page .article-steps h3 {
  margin: 0 0 6px;
}

.article-page .article-steps li > div {
  min-width: 0;
}

.article-page .article-steps p {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.article-page .article-steps-centered li {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-height: 170px;
  align-content: center;
  padding: 30px clamp(22px, 4vw, 42px);
  text-align: center;
}

.article-page .article-steps-centered li > div {
  width: min(100%, 780px);
  margin-inline: auto;
}

.article-page .article-steps-centered li > span,
.article-page .article-steps-centered h3,
.article-page .article-steps-centered p {
  text-align: center;
}

.article-page .article-faq {
  max-width: 780px;
  margin: 16px auto 0;
  border-top: 1px solid var(--line);
}

.article-page .article-content > .article-faq-section {
  padding: clamp(38px, 5vw, 56px) 0;
}

.article-page .article-faq-section h2 {
  margin-bottom: 12px;
  padding-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-page .article-faq details {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.article-page .article-faq summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.article-page .article-faq p {
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.article-page .article-content > .article-final-cta {
  margin-top: 84px;
  padding: clamp(34px, 6vw, 64px);
  color: var(--paper);
  border: 1px solid rgba(200, 106, 128, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 74, 99, 0.24), transparent 18rem),
    var(--ink);
  text-align: center;
}

.article-page .article-final-cta h2 {
  color: var(--white);
}

.article-page .article-final-cta h2::after {
  background: var(--burgundy-light);
}

.article-page .article-final-cta p {
  margin-inline: auto;
  color: var(--muted-light);
}

.article-page .article-final-cta .button {
  margin-top: 18px;
}

.article-page .article-content > .article-sources {
  max-width: 920px;
  margin-inline: auto;
  padding: 24px 20px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(147, 31, 63, 0.035);
  text-align: center;
}

.article-page .article-sources h2 {
  margin-bottom: 8px;
  padding-bottom: 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.article-page .article-sources ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, 720px);
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
}

.article-page .article-sources p,
.article-page .article-sources li {
  margin-inline: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

.article-page .article-sources li {
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-page .article-sources li:last-child {
  border-bottom: 0;
}

.article-page .article-sources a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  color: var(--burgundy);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: left;
}

.article-page .article-sources a::after {
  content: "↗";
}

.article-page .article-copy-action {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.article-page .article-copy-button {
  min-width: 220px;
}

.article-page .article-copy-status {
  min-height: 1.45em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem !important;
  text-align: center;
}

.article-page .article-example-copy-action {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.article-page .article-example-copy-button {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.article-page .article-example-copy-button:hover,
.article-page .article-example-copy-button:focus-visible {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.article-page .article-context-card .article-copy-status {
  color: var(--muted-light);
}

.article-page .article-byline {
  padding-top: 18px;
  color: var(--muted);
  text-align: center;
}

.article-page .article-byline p {
  margin: 0 auto 4px;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 900px) {
  .article-page .article-hero {
    padding-top: 62px;
  }

  .article-page .article-hero-grid,
  .article-page .article-block-grid {
    grid-template-columns: 1fr;
  }

  .article-page .article-summary {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .article-page .container,
  .article-page .article-layout {
    width: min(calc(100% - 28px), var(--max));
  }

  .article-page .article-nav {
    display: none;
  }

  .article-page .article-hero {
    padding: 46px 0 54px;
  }

  .article-page .article-hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 2.75rem);
  }

  .article-page .article-title-long {
    display: none;
  }

  .article-page .article-title-short {
    display: inline;
  }

  .article-page .article-cta-inline {
    display: grid;
  }

  .article-page .article-cta-inline .button,
  .article-page .article-final-cta .button,
  .article-page .article-example-copy-button {
    width: 100%;
  }

  .article-page .article-summary li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .article-page .article-content {
    padding-bottom: 64px;
  }

  .article-page .article-content > section {
    padding: 60px 0;
  }

  .article-page .article-content > .article-faq-section {
    padding: 36px 0;
  }

  .article-page .article-content p,
  .article-page .article-content li,
  .article-page blockquote {
    font-size: 1rem;
  }

  .article-page .article-check-list li,
  .article-page .article-info-card p,
  .article-page .article-info-card li,
  .article-page .article-output p,
  .article-page .article-output li,
  .article-page .article-context-card p,
  .article-page .article-context-card li,
  .article-page .article-steps p,
  .article-page .article-faq p,
  .article-page .article-sources li {
    text-align: left;
  }

  .article-page .article-info-card,
  .article-page .article-output,
  .article-page .article-context-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .article-page blockquote {
    padding: 20px;
  }

  .article-page .article-steps li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 22px 20px;
  }

  .article-page .article-check-list-centered li,
  .article-page .article-demo-section blockquote,
  .article-page .article-demo-section .article-output p,
  .article-page .article-demo-section .article-context-card h3,
  .article-page .article-demo-section .article-context-card p,
  .article-page .article-steps-centered p,
  .article-page .article-faq p,
  .article-page .article-sources li {
    text-align: center;
  }

  .article-page .article-check-list-centered li,
  .article-page .article-sources li,
  .article-page .article-sources a {
    text-align: left;
  }

  .article-page .article-steps {
    grid-auto-rows: auto;
  }

  .article-page .article-steps-centered li {
    min-height: 0;
  }

  .article-page .article-content > .article-final-cta {
    margin-top: 60px;
    padding: 34px 22px;
    border-radius: 24px;
  }
}

@media (min-width: 900px) {
  .article-page .article-hero-copy > p.article-single-line,
  .article-page .article-content > section > p.article-single-line {
    max-width: none;
    font-size: 0.96rem;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page .article-content > section > h2.is-reveal-pending,
  .article-page .article-content > section > h2.is-reveal-visible,
  .article-page .article-summary li.is-sequence-pending,
  .article-page .article-summary li.is-sequence-visible,
  .article-page .article-steps li.is-sequence-pending,
  .article-page .article-steps li.is-sequence-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
