.rag-page .header .landing-navigation {
  display: contents;
}

.rag-page .header .landing-quick-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}

.rag-page .header .landing-mobile-caption,
.rag-page .header .nav-contact,
.rag-page .header .menu-toggle {
  display: none;
}

@media (max-width: 1080px) {
  html:has(.rag-page) {
    scroll-padding-top: 68px;
  }

  .rag-page .header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg);
  }

  .rag-page .header .nav {
    position: static;
    flex-wrap: nowrap;
    min-height: 65px;
    padding-block: 0;
    gap: 10px;
  }

  .rag-page .header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rag-page .header .header-controls {
    flex: none;
    margin: 0;
    gap: 6px;
  }

  .rag-page .header .language-controls [aria-current="page"] {
    display: none;
  }

  .rag-page .header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-height: 44px;
    background: var(--surface);
    color: var(--text);
    font-size: 23px;
    line-height: 1;
  }

  .rag-page .header .landing-navigation {
    display: none;
  }

  .rag-page .header .landing-navigation.open {
    position: absolute;
    inset: 100% 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-height: calc(100dvh - 66px);
    margin: 0;
    padding: 14px max(20px, calc((100% - 1120px) / 2)) 20px;
    overflow: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 12px 28px #0b121829;
  }

  .rag-page .header .audit-section-nav {
    display: block;
    width: auto;
    order: initial;
    margin: 0;
    border: 0;
  }

  .rag-page .header .landing-mobile-caption {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .rag-page .header .landing-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .rag-page .header .audit-section-nav a {
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 7px;
    background: var(--surface);
    white-space: normal;
  }

  .rag-page .header .audit-site-menu > summary {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .rag-page .header .audit-menu-panel {
    position: static;
    width: auto;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .rag-page .header .audit-menu-panel a {
    white-space: normal;
  }

  .rag-page .header .landing-navigation > .nav-contact {
    display: flex;
  }
}

.rag-page .rag-breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.rag-page .rag-breadcrumbs ol,
.rag-page .rag-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rag-page .rag-breadcrumbs li + li::before {
  content: '/';
  margin-inline-end: 12px;
  color: var(--muted);
}

.rag-page .hero h1 {
  max-width: 20ch;
}

.rag-page .kk-stats,
.rag-page .kk-stages,
.rag-page .seo-related__grid,
.rag-page .kk-stack:not(section) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}

.rag-page .kk-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

@media (min-width: 650px) {
  .rag-page .kk-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rag-page .kk-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  align-items: stretch;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}

.rag-page .kk-stats > div,
.rag-page .kk-stack > div:not(.container) {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  color: var(--muted);
  background: var(--card);
}

.rag-page :is(.kk-stats, .kk-stack) b {
  display: block;
  color: var(--accent);
}

.rag-page .rag-section > .container > h2 {
  max-width: 25ch;
  margin-bottom: 22px;
  text-wrap: balance;
}

.rag-page .rag-section > .container > p {
  max-width: 74ch;
  margin-bottom: 12px;
}

.rag-page .rag-section > .container > a:not(.button),
.rag-page .rag-section p > a,
.rag-page .kk-card h3 a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.rag-page :is(.kk-card, .kk-stages > li, .seo-related__card, .ifw-editorial-links__item) {
  display: block;
  min-width: 0;
  margin: 0;
  padding: clamp(17px, 2.8vw, 25px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow-wrap: anywhere;
}

.rag-page :is(.kk-cards, .kk-stages, .seo-related__grid, .kk-stack:not(section), .kk-quote) {
  margin-top: 18px;
}

.rag-page :is(.kk-card, .kk-stages) p,
.rag-page .kk-card ul {
  margin: 9px 0 0;
  color: var(--muted);
}

.rag-page .kk-card ul {
  padding-inline-start: 1.15em;
}

.rag-page .kk-stages {
  padding: 0;
  list-style: none;
  counter-reset: rag-stage;
}

.rag-page .kk-stages > li {
  counter-increment: rag-stage;
}

.rag-page .kk-stages > li::before {
  content: counter(rag-stage, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 9px;
  border: 1px solid var(--audit-accent-line);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.rag-page :is(.kk-tag, .kk-foot, .rag-content-note) {
  color: var(--muted);
  font-size: 14px;
}

.rag-page :is(.kk-tag, .kk-foot) {
  display: block;
  margin-top: 10px;
}

.rag-page .kk-quote {
  max-width: 74ch;
  margin-inline: 0;
  padding: 12px 18px;
  border-inline-start: 2px solid var(--accent);
  background: var(--audit-tint);
}

.rag-page .seo-related__card :is(strong, span:not(.rag-icon)),
.rag-page .ifw-editorial-links__item span {
  display: block;
}

.rag-page .seo-related__card span:not(.rag-icon),
.rag-page .ifw-editorial-links__item span {
  margin-top: 5px;
  color: var(--muted);
}

.rag-page .ifw-editorial-links__item + .ifw-editorial-links__item {
  margin-top: 10px;
}

.rag-page .rag-contact-links {
  column-gap: 10px;
}

.rag-page .rag-contact-links a {
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.rag-page .contact-fields > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--small-radius);
  background: var(--accent);
  color: #0b2624;
  font-weight: 700;
}

html[data-theme="light"] .rag-page .contact-fields > button[type="submit"] {
  color: #fff;
}

.rag-page .contact-fields > :is(label:not(:first-child), button),
.rag-page .contact-alternative {
  margin-top: 12px;
}

.rag-page .contact-error {
  display: block;
  color: #ffd1bd;
  font-size: 13px;
}

html[data-theme="light"] .rag-page .contact-error {
  color: #9b3824;
}

.rag-page .contact-thanks svg {
  width: 42px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.rag-page .rag-footer {
  align-items: start;
  overflow-wrap: anywhere;
}

.rag-page .rag-footer svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rag-page .rag-footer-links {
  min-width: 0;
  max-width: 100%;
}

.rag-page .rag-footer-links summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 767px) {
  .rag-page .kk-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .rag-page .kk-card > p {
    line-height: 1.55;
  }

  .rag-page .rag-price-card .button,
  .rag-page .contact-fields > button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .rag-page .hero h1 {
    font-size: clamp(28px, 8.3vw, 42px);
  }
}

.security-prices.rag-page {
  --section: clamp(36px, 5.8vw, 72px);
  --rag-ink: #c8c4ff;
  --rag-wash: #a698fd13;
  --rag-line: #9486e661;
  --rag-panel: #171c34;
  --rag-shadow: 0 16px 34px #050b2051;
}

html[data-theme="light"] .security-prices.rag-page {
  --rag-ink: #463788;
  --rag-wash: #ece9fa;
  --rag-line: #a598d477;
  --rag-panel: #f7f5ff;
  --rag-shadow: 0 16px 32px #443a7617;
}

.rag-page .hero-panel {
  align-items: center;
  background: radial-gradient(ellipse at 82% 23%, #6654b938, transparent 62%),
    linear-gradient(130deg, #142639, #111b30 56%, #1c1d38);
}

html[data-theme="light"] .rag-page .hero-panel {
  background: radial-gradient(ellipse at 93% 5%, #d4c9fa99, transparent 64%),
    linear-gradient(130deg, #f3f8fe, #edf5f8 54%, #f3efff);
}

.rag-page .hero-description {
  max-width: 58ch;
  padding: 0;
  border: 0;
  background: none;
}

.rag-page .rag-demo {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rag-line);
  border-radius: 15px;
  background: var(--rag-panel);
  box-shadow: var(--rag-shadow);
}

.rag-page .rag-demo figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--rag-line);
  color: var(--rag-ink);
  font-size: 14px;
  font-weight: 700;
}

.rag-page .rag-demo svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--rag-ink);
}

.rag-page .rag-demo-thread {
  display: grid;
  gap: 12px;
  padding: clamp(13px, 2.6vw, 23px);
}

.rag-page .rag-demo-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.rag-page .rag-demo-message p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.rag-page .rag-demo-question {
  margin-inline-start: 13px;
}

.rag-page .rag-demo-answer {
  margin-inline-end: 13px;
  border-color: var(--rag-line);
}

.rag-page .rag-demo-sources {
  padding: 0 10px;
  border: 1px solid var(--rag-line);
  border-radius: 8px;
  background: var(--rag-wash);
}

.rag-page .rag-demo-sources summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  color: var(--rag-ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.rag-page .rag-demo-sources summary::-webkit-details-marker {
  display: none;
}

.rag-page .rag-demo-sources summary::after {
  content: '+';
  margin-inline-start: auto;
  font-size: 18px;
}

.rag-page .rag-demo-sources[open] summary::after {
  content: '−';
}

.rag-page .rag-demo-sources ul {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0 0 10px;
  list-style: none;
}

.rag-page .rag-demo-sources li {
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--card);
  font-size: 12px;
  line-height: 1.5;
}

.rag-page .rag-demo-sources li > * {
  display: block;
}

.rag-page .rag-demo-sources li span {
  color: var(--muted);
}

.rag-page .rag-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--rag-line);
  border-radius: 10px;
  color: var(--rag-ink);
  background: var(--rag-wash);
}

.rag-page .rag-icon svg {
  width: 21px;
  height: 21px;
}

.rag-page .kk-stats b {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.rag-page .kk-stats .rag-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 7px;
}

.rag-page .kk-stats .rag-icon svg {
  width: 16px;
  height: 16px;
}

.rag-page .rag-heading-icon,
.rag-page .rag-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.rag-page .rag-card-heading {
  align-items: center;
  overflow-wrap: break-word;
}

.rag-page .rag-heading-icon .rag-icon {
  margin-block-start: 2px;
}

.rag-page .kk-cards > .kk-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border-top-color: var(--rag-line);
  background: linear-gradient(155deg, var(--rag-wash), transparent 55%), var(--card);
}

.rag-page .kk-cards > .kk-card:nth-child(even) {
  background: linear-gradient(155deg, var(--audit-tint), transparent 55%), var(--card);
}

.rag-page .kk-cards > .kk-card:nth-child(even) .rag-icon {
  color: var(--accent);
  border-color: var(--audit-accent-line);
  background: var(--audit-tint);
}

.rag-page .kk-cards > .kk-card > :is(p, ul) {
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line);
  margin: 0;
}

.rag-page .kk-cards > .kk-card > ul {
  padding-inline-start: 1em;
  line-height: 1.55;
}

.rag-page .kk-cards > .kk-card li + li {
  margin-block-start: 3px;
}

.rag-page .kk-cards > .kk-card li::marker {
  color: var(--accent);
}

.rag-page .seo-related__card {
  position: relative;
  padding-inline-end: 53px;
}

.rag-page .seo-related__card .rag-icon {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 29px;
  height: 29px;
  margin: 0;
}

.rag-page .seo-related__card .rag-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.rag-page .rag-project-cta {
  margin-top: 14px;
}

html[data-theme="dark"] .rag-page .rag-project-cta.button.primary {
  background: #087f6a;
  border-color: #087f6a;
  color: #fff;
}

html[data-theme="dark"] .rag-page .rag-project-cta.button.primary:hover {
  background: #066855;
  border-color: #066855;
}

.rag-page .seo-related__card:hover {
  border-color: var(--rag-ink);
}

.rag-page .rag-pricing {
  border-block: 1px solid var(--line);
  background: linear-gradient(145deg, var(--rag-wash), transparent 70%), var(--surface);
}

.rag-page :is(.rag-price-grid, #cases .seo-related__grid, .rag-business-tasks) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 650px) {
  .rag-page :is(.rag-price-grid, #cases .seo-related__grid, .rag-business-tasks) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rag-page .rag-business-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rag-page .rag-business-tasks li {
  padding: 16px;
  border-inline-start: 2px solid var(--rag-ink);
  background: var(--card);
  color: var(--muted);
}

.rag-page .rag-business-tasks strong {
  color: var(--text);
}

.rag-page .seo-related__card .rag-case-link {
  margin-top: 12px;
  color: var(--rag-ink);
  font-weight: 700;
}

.rag-page #cases .rag-related-note {
  margin-top: 16px;
}

.rag-page .rag-price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: clamp(16px, 2.8vw, 24px);
  border: 1px solid var(--rag-line);
  border-radius: var(--radius);
  background: var(--card);
}

.rag-page .rag-price {
  color: var(--rag-ink);
  font-size: clamp(22px, 3vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.rag-page .rag-price-card .button {
  margin-top: auto;
  max-width: 100%;
  text-align: center;
}

.rag-page #pricing .rag-price-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rag-line);
}

.rag-page .rag-faq {
  display: grid;
  gap: 10px;
}

.rag-page .rag-faq details {
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  background: var(--card);
}

.rag-page .rag-faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
}

.rag-page .rag-faq summary::marker {
  color: var(--rag-ink);
}

.rag-page .rag-faq details p {
  max-width: 78ch;
  padding: 0 16px 16px;
}
