/* One responsive navigation and comparison layout across the preview pages. */
.compact-menu-label { display: none; }

/* Touch browsers can retain hover or focus after a tap. Keep every interaction
   state on the same inversion instead of falling through to legacy highlights. */
  :root body :is(.hero-actions > .button-dark, .site-header .header-cta, .button-dark):is(:hover, :focus, :active) {
    background: var(--brand-parchment);
    border-color: var(--brand-carbon);
    color: var(--brand-carbon);
    --cta-base: var(--brand-carbon);
    --cta-reflection: var(--brand-carbon);
  }
  :root body .closing .button:is(:hover, :focus, :active) {
    background: var(--brand-carbon);
    border-color: var(--brand-parchment);
    color: var(--brand-parchment);
    --cta-base: var(--brand-parchment);
    --cta-reflection: var(--brand-parchment);
  }

@media (max-width: 1100px) {
  :root body .site-header.navigation-ready,
  :root body .site-header.navigation-ready.scrolled {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 32px);
    height: 68px;
    padding: 10px 16px;
    top: 46px;
  }
  :root body .site-header.navigation-ready.scrolled { top: 12px; }
  :root body .site-header.navigation-ready .brand {
    --brand-width: 156px;
    width: 156px;
    min-width: 156px;
    flex: 1 1 auto;
    height: 42px;
  }
  :root body .site-header.navigation-ready .brand .represent-logo-window,
  :root body .site-header.navigation-ready .brand:is(:hover, :focus-visible) .represent-logo-window {
    width: 156px;
  }
  :root body .site-header.navigation-ready > nav {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    margin: 0;
  }
  :root body .site-header.navigation-ready > nav > a { display: none; }
  :root body .site-header.navigation-ready #system-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 80px;
    height: 44px;
    padding: 10px 12px;
    font: 12px/20px var(--mono);
  }
  #system-menu-toggle .desktop-menu-label { display: none; }
  #system-menu-toggle .compact-menu-label { display: inline; }
  :root body .site-header.navigation-ready .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 148px;
    width: 148px;
    min-width: 148px;
    height: 44px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 20px;
    gap: 12px;
  }
  :root body .system-menu.navigation-menu {
    position: fixed;
    top: calc(var(--navigation-clearance, 114px) + 8px);
    width: calc(100% - 32px);
    max-height: calc(100dvh - var(--navigation-clearance, 114px) - 24px);
    padding: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  :root body .system-menu.navigation-menu > .menu-journey-group { grid-column: auto; }
  :root body .system-menu.navigation-menu .menu-destinations {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0 0 16px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  :root body .system-menu.navigation-menu a { min-height: 44px; }
  :root body .system-menu.navigation-menu .menu-destinations a {
    padding: 12px;
    border: 0;
    background: var(--surface-selected);
    border-radius: 4px;
  }

  :root body :is(.hero, .buyer-hero, .services-hero, .commercial-hero, .about-opening) .hero-actions {
    align-items: stretch;
  }
  :root body :is(.hero, .buyer-hero, .services-hero, .commercial-hero, .about-opening) .hero-actions > :is(.button, .text-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    padding: 12px 16px;
    gap: 12px;
    line-height: 20px;
  }
  :root body .hero-actions .cta-label {
    display: inline-block;
    flex: 0 0 auto;
    line-height: 20px;
    margin: 0;
    padding: 0;
    transform: none;
  }
  :root body .hero-actions > :is(.button, .text-link) > [aria-hidden="true"] {
    flex: 0 0 auto;
    line-height: 20px;
    margin: 0;
    transform: none;
  }

  body.pricing-page .commercial-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100svh;
    overflow: hidden;
  }
  body.pricing-page .commercial-hero > div {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
  }
  body.pricing-page .commercial-hero .pricing-value-art {
    position: absolute;
    z-index: 0;
    inset: 15% -8% 5%;
    width: auto;
    height: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    opacity: .42;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 58% 52%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 58% 52%, #000 20%, transparent 72%);
  }
  body.pricing-page .commercial-hero .pricing-value-drawing { width: 100%; height: 100%; }
  body.about-page #faq [data-about-art="compound"] { display: none; }
  body.about-page #faq .about-faq-heading { min-height: 0; }

  /* Each feature is compared vertically; no off-screen columns on touch sizes. */
  :root body #comparison .comparison-scroll-hint { display: none; }
  :root body #comparison .comparison-scroll {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
  }
  :root body #comparison .approach-table,
  :root body #comparison .approach-table :is(thead, tbody) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  :root body #comparison .approach-table colgroup { display: none; }
  :root body #comparison .approach-table thead tr { display: block; }
  :root body #comparison .approach-table thead th { display: none; }
  :root body #comparison .approach-table thead th:first-child {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  :root body #comparison .comparison-toggle {
    display: flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    padding: 0;
  }
  :root body #comparison .approach-table tbody[hidden] { display: none !important; }
  :root body #comparison .approach-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
    padding: 0;
  }
  :root body #comparison .approach-table tbody :is(th, td) {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 20px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }
  :root body #comparison .approach-table tbody th {
    grid-column: 1 / -1;
    padding-top: 28px;
    padding-bottom: 16px;
    background: var(--surface-selected);
    color: var(--brand-carbon);
  }
  :root body #comparison .comparison-feature {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  :root body #comparison .comparison-feature svg {
    flex: 0 0 18px;
    margin: 0;
  }
  :root body #comparison .approach-table tbody td::before {
    content: attr(data-approach);
    display: block;
    margin-bottom: 12px;
    font: 11px/1.5 var(--mono);
    letter-spacing: .03em;
    color: inherit;
    opacity: .75;
  }
  :root body #comparison .approach-table tbody .represent-column {
    grid-column: 1 / -1;
    background: var(--brand-carbon);
    color: var(--brand-parchment);
    border-radius: 0;
  }
  :root body #comparison .approach-table #comparison-summary tr { display: block; }
  :root body #comparison .approach-table #comparison-summary td:first-child { display: none; }
  :root body #comparison #comparison-summary td {
    padding: 24px;
    border-bottom: 1px solid var(--line);
  }
  :root body #comparison #comparison-summary td:last-child { border-bottom: 0; }
  :root body #comparison #comparison-summary strong { font-size: 26px; line-height: 1.2; }
  :root body #comparison #comparison-summary span { font-size: 16px; line-height: 1.55; }
}

@media (max-width: 599px) {
  :root body .site-header.navigation-ready,
  :root body .site-header.navigation-ready.scrolled {
    width: calc(100% - 24px);
    height: 64px;
    padding: 10px 12px;
    gap: 8px;
  }
  :root body .site-header.navigation-ready .brand {
    --brand-width: 248px;
    width: 28px;
    min-width: 28px;
    flex: 1 1 auto;
  }
  :root body .site-header.navigation-ready .brand .represent-logo-window,
  :root body .site-header.navigation-ready .brand:is(:hover, :focus-visible) .represent-logo-window { width: calc(var(--brand-width) * .091); }
  :root body .site-header.navigation-ready #system-menu-toggle { min-width: 68px; padding-inline: 8px; gap: 8px; }
  :root body .site-header.navigation-ready .header-cta { width: 140px; min-width: 140px; flex-basis: 140px; gap: 10px; }
  :root body .system-menu.navigation-menu {
    width: calc(100% - 24px);
    padding: 20px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  :root body .system-menu.navigation-menu .menu-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root body .system-menu.navigation-menu .menu-journey-group a { padding-block: 12px; }
  :root body .hero-actions > :is(.button, .text-link) { font-size: 11px; gap: 8px; }
  :root body #comparison .approach-table tbody tr { grid-template-columns: minmax(0, 1fr); }
  :root body #comparison .approach-table tbody td:last-child { border-top: 1px solid var(--line); }
}
