/* Mobile product showcases 01-05.
   Desktop layouts remain owned by their individual section stylesheets. */

.vrdv-market-overlay {
  display: none;
}

@media (max-width: 768px) {
  :is(
    .vrpt-terminal-showcase,
    .vrai-showcase,
    .vrid-showcase,
    .vrdv-showcase,
    .vrma-showcase
  ) {
    width: 100%;
    padding: 3.25rem 1rem 3.5rem;
    overflow: hidden;
  }

  :is(
    .vrpt-terminal-masthead,
    .vrai-masthead,
    .vrid-masthead,
    .vrdv-masthead,
    .vrma-masthead
  ) {
    width: 100%;
    margin: 0 0 1.35rem;
  }

  :is(
    .vrpt-terminal-masthead h2,
    .vrai-masthead h2,
    .vrid-masthead h2,
    .vrdv-masthead h2,
    .vrma-masthead h2
  ) {
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: .11em;
  }

  :is(
    .vrpt-terminal-masthead-index,
    .vrai-masthead-index,
    .vrid-masthead-index,
    .vrdv-masthead-index,
    .vrma-masthead-index
  ) {
    min-width: 2rem;
    height: 1.5rem;
    padding: 0 .42rem;
    font-size: .62rem;
  }

  :is(
    .vrpt-terminal-inner,
    .vrai-inner,
    .vrid-inner,
    .vrdv-inner,
    .vrma-inner
  ) {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  :is(
    .vrpt-terminal-cta,
    .vrai-cta,
    .vrid-cta,
    .vrdv-cta,
    .vrma-cta
  ) {
    width: 100%;
    min-height: 4rem;
    padding: .9rem 1.25rem;
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .18em;
  }

  /* 01 / Trading Terminal */
  .vrpt-terminal-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .vrpt-terminal-copy {
    display: contents;
  }

  .vrpt-terminal-visual {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 0 !important;
    aspect-ratio: auto;
  }

  .vrpt-terminal-visual picture,
  .vrpt-terminal-visual img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 8 / 5;
    object-fit: contain;
    object-position: center;
  }

  .vrpt-terminal-features,
  .vrid-features,
  .vrma-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .vrpt-terminal-features {
    order: 2;
    margin: 0;
  }

  .vrpt-terminal-features li,
  .vrid-features li,
  .vrma-features li {
    min-height: 4.25rem;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: .32rem;
    padding: .68rem .7rem;
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .vrpt-terminal-features li:nth-child(even),
  .vrid-features li:nth-child(even),
  .vrma-features li:nth-child(even) {
    border-right: 0;
  }

  .vrpt-terminal-features li:nth-child(5),
  .vrid-features li:nth-child(5) {
    grid-column: 1 / -1;
    min-height: 3.75rem;
    border-right: 0;
    border-bottom: 0;
  }

  /* Five capabilities should read as one compact ledger, not a 2 + 2 + 1
     stack. Keep the two wider lead cells, then balance three concise cells. */
  :is(.vrpt-terminal-features, .vrid-features) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(-n + 2) {
    grid-column: span 3;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(n + 3) {
    grid-column: span 2;
    min-height: 3.9rem;
    padding-inline: .52rem;
    border-bottom: 0;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(4) {
    border-right: 1px solid rgba(255, 255, 255, .1);
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(5) {
    grid-column: span 2;
    border-right: 0;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(n + 3) strong {
    font-size: .62rem;
    line-height: 1.25;
    letter-spacing: .08em;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(n + 3) :is(
    .vrpt-terminal-feature-mark,
    .vrid-feature-mark
  ) {
    font-size: .46rem;
  }

  .vrma-features li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .vrpt-terminal-feature-mark {
    font-size: .55rem;
  }

  .vrpt-terminal-feature-copy strong {
    font-size: .7rem;
    line-height: 1.25;
  }

  .vrpt-terminal-feature-copy small {
    display: none;
  }

  .vrpt-terminal-cta { order: 3; }

  .vrpt-terminal-meta {
    order: 4;
    margin: -.35rem 0 0;
    font-size: .5rem;
    line-height: 1.5;
  }

  /* 02 / Atlas AI */
  .vrai-inner,
  .vrai-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .vrai-inner { gap: 2.8rem; }

  .vrai-primary { gap: .9rem; }

  .vrai-primary-copy {
    display: contents;
  }

  .vrai-headline { order: 1; }
  .vrai-copy { order: 2; }
  .vrai-workspace { order: 3; }
  .vrai-flow { order: 4; }
  .vrai-cta { order: 5; }
  .vrai-meta { order: 6; }

  .vrai-headline h3,
  .vrai-benchmark-copy h4 {
    font-size: clamp(2.25rem, 10.5vw, 2.65rem);
    line-height: .98;
    letter-spacing: .02em;
  }

  .vrai-headline h3 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.1rem);
    line-height: .95;
  }

  .vrai-kicker,
  .vrai-benchmark-kicker {
    margin-bottom: .7rem;
    font-size: .58rem;
  }

  .vrai-lead {
    font-size: .82rem;
    line-height: 1.48;
  }

  .vrai-benchmark-copy > p:not(.vrai-benchmark-kicker) {
    font-size: .9rem;
    line-height: 1.58;
  }

  .vrai-support {
    margin-top: .45rem;
    font-size: .72rem;
    line-height: 1.4;
  }

  .vrai-workspace {
    width: 100%;
    margin: 0;
  }

  .vrai-workspace .vr-shot-trigger,
  .vrai-workspace picture,
  .vrai-workspace img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1710 / 920;
    object-fit: contain;
    object-position: center;
  }

  .vrai-workspace .vr-shot-trigger {
    padding: 0 !important;
  }

  .vrai-workspace-label {
    min-height: 3.5rem;
    padding: .72rem .85rem;
  }

  .vrai-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .vrai-flow li,
  .vrai-flow li:nth-child(2),
  .vrai-flow li:nth-child(n + 3) {
    min-height: 5.5rem;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: .48rem;
    padding: .75rem .62rem;
    border-right: 1px solid var(--vrai-soft-line);
    border-bottom: 1px solid var(--vrai-soft-line);
  }

  .vrai-flow li:nth-child(even) { border-right: 0; }
  .vrai-flow li:nth-last-child(-n + 2) { border-bottom: 0; }

  .vrai-flow strong {
    font-size: .68rem;
  }

  .vrai-flow small {
    margin-top: .2rem;
    font-size: .76rem;
    line-height: 1.42;
  }

  .vrai-meta {
    margin: -.35rem 0 0;
    font-size: .49rem;
    line-height: 1.55;
  }

  .vrai-benchmark-story {
    gap: 1.35rem;
    padding: 2.5rem 0 0;
  }

  .vrai-benchmark-copy {
    max-width: none;
  }

  .vrai-benchmark-copy > p:not(.vrai-benchmark-kicker) + p {
    margin-top: .7rem;
  }

  /* 03 / Investor Desk */
  .vrid-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .vrid-copy { display: contents; }
  .vrid-visual { order: 1; }
  .vrid-features { order: 2; }
  .vrid-cta { order: 3; }
  .vrid-meta { order: 4; }

  .vrid-visual,
  .vrid-visual .vr-shot-trigger,
  .vrid-visual picture,
  .vrid-visual img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .vrid-visual {
    grid-area: auto;
  }

  .vrid-visual .vr-shot-trigger,
  .vrid-visual picture,
  .vrid-visual img {
    aspect-ratio: 1906 / 1023;
  }

  .vrid-visual .vr-shot-trigger {
    padding: 0 !important;
  }

  .vrid-visual-label {
    min-height: 3.5rem;
    padding: .72rem .85rem;
  }

  .vrid-features {
    margin: 0;
  }

  .vrid-features li {
    display: grid;
  }

  .vrid-feature-mark {
    font-size: .5rem;
  }

  .vrid-feature-copy strong {
    font-size: .7rem;
    line-height: 1.25;
  }

  .vrid-feature-copy small {
    display: none;
  }

  .vrid-meta {
    margin: -.35rem 0 0;
    font-size: .49rem;
    line-height: 1.55;
  }

  /* 04 / Data Vault */
  .vrdv-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .vrdv-overview,
  .vrdv-pitch {
    display: contents;
  }

  .vrdv-copy { order: 1; }
  .vrdv-intro { order: 2; }
  .vrdv-visual { order: 3; }
  .vrdv-inventory { order: 4; }
  .vrdv-coverage { order: 5; }
  .vrdv-cta { order: 6; }
  .vrdv-boundary { order: 7; }

  .vrdv-copy h3 {
    font-size: clamp(2.25rem, 10.5vw, 2.65rem);
    line-height: .98;
    letter-spacing: .02em;
  }

  .vrdv-kicker {
    margin-bottom: .7rem;
    font-size: .58rem;
  }

  .vrdv-intro {
    max-width: none;
    margin: 0;
    font-size: .9rem;
    line-height: 1.58;
  }

  .vrdv-visual,
  .vrdv-shot-viewport,
  .vrdv-shot-link,
  .vrdv-shot-viewport img {
    width: 100% !important;
    height: auto;
    min-height: 0;
    aspect-ratio: 1720 / 914;
  }

  .vrdv-shot-viewport {
    position: relative;
    overflow: hidden;
  }

  .vrdv-market-overlay {
    position: absolute;
    z-index: 2;
    top: .65rem;
    right: .65rem;
    left: .65rem;
    display: grid;
    gap: .48rem;
    padding: .55rem .6rem .58rem;
    color: #f5f5f2;
    background: rgba(4, 5, 5, .88);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 .7rem 1.8rem rgba(0, 0, 0, .42);
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    pointer-events: none;
  }

  .vrdv-market-overlay > b {
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
  }

  .vrdv-market-overlay-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .vrdv-market-overlay-items > span {
    min-width: 0;
    padding: .15rem .18rem 0;
    color: #dfe2e2;
    border-left: 1px solid rgba(255, 255, 255, .18);
    font-size: clamp(.38rem, 1.7vw, .48rem);
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .vrdv-market-overlay-items > span:first-child {
    border-left: 0;
  }

  .vrdv-shot-link {
    display: block;
    padding: 0 !important;
  }

  .vrdv-shot-viewport img {
    display: block;
    max-width: 100% !important;
    transform: none;
    object-fit: contain;
    object-position: center;
  }

  .vrdv-visual-label {
    min-height: 3.5rem;
    padding: .72rem .85rem;
  }

  .vrdv-inventory {
    margin: 0;
  }

  .vrdv-universe {
    display: none;
  }

  .vrdv-stats dt {
    font-size: 1.55rem;
  }

  .vrdv-stats dd,
  .vrdv-universe span,
  .vrdv-coverage dt {
    font-size: .57rem;
  }

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

  .vrdv-coverage > div {
    grid-template-columns: minmax(0, 1fr);
    gap: .32rem;
    min-height: 0;
    padding: .78rem .7rem;
    border-right: 1px solid var(--vrdv-soft-line);
    border-bottom: 0;
  }

  .vrdv-coverage > div:first-child {
    padding-left: .7rem;
  }

  .vrdv-coverage > div:nth-child(2) {
    border-right: 0;
  }

  .vrdv-coverage > div:nth-child(3) {
    display: none;
  }

  .vrdv-coverage dd strong {
    font-size: .72rem;
  }

  .vrdv-coverage dd span {
    font-size: .7rem;
    line-height: 1.4;
  }

  .vrdv-boundary {
    margin: -.35rem 0 0;
    font-size: .48rem;
    line-height: 1.5;
  }

  /* 05 / Mobile App */
  .vrma-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .vrma-copy { display: contents; }
  .vrma-lead { order: 1; }
  .vrma-intro { order: 2; }
  .vrma-gallery { order: 3; }
  .vrma-features { order: 4; }
  .vrma-cta { order: 5; }
  .vrma-meta { order: 6; }

  .vrma-lead {
    margin: 0;
    font-size: clamp(2.25rem, 10.5vw, 2.65rem);
    line-height: .98;
    letter-spacing: .02em;
  }

  .vrma-intro {
    max-width: none;
    margin: 0;
    font-size: .9rem;
    line-height: 1.58;
  }

  .vrma-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .vrma-screen,
  .vrma-screen--home,
  .vrma-screen--alerts,
  .vrma-screen--chart {
    position: relative;
    inset: auto;
    grid-area: auto;
    width: auto;
    min-width: 0;
    margin: 0;
    transform: none;
  }

  .vrma-screen .vr-shot-trigger,
  .vrma-screen picture,
  .vrma-screen img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  .vrma-screen .vr-shot-trigger {
    padding: 0 !important;
  }

  .vrma-screen--home .vr-shot-trigger,
  .vrma-screen--home picture,
  .vrma-screen--home img {
    aspect-ratio: 840 / 1871;
  }

  .vrma-screen--alerts .vr-shot-trigger,
  .vrma-screen--alerts picture,
  .vrma-screen--alerts img,
  .vrma-screen--chart .vr-shot-trigger,
  .vrma-screen--chart picture,
  .vrma-screen--chart img {
    aspect-ratio: 718 / 1600;
  }

  .vrma-screen figcaption {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem;
    min-height: 2.35rem;
    padding: .45rem .35rem;
  }

  .vrma-screen figcaption b {
    font-size: .5rem;
  }

  .vrma-screen figcaption span {
    font-size: .58rem;
  }

  .vrma-screen figcaption small {
    display: none;
  }

  .vrma-features {
    margin: 0;
  }

  .vrma-features li {
    display: grid;
  }

  .vrma-feature-mark {
    font-size: .48rem;
  }

  .vrma-feature-copy strong {
    font-size: .7rem;
    line-height: 1.25;
  }

  .vrma-feature-copy small {
    display: none;
  }

  .vrma-meta {
    margin: -.35rem 0 0;
    font-size: .49rem;
    line-height: 1.55;
  }
}

@media (max-width: 350px) {
  :is(
    .vrpt-terminal-showcase,
    .vrai-showcase,
    .vrid-showcase,
    .vrdv-showcase,
    .vrma-showcase
  ) {
    padding-inline: .8rem;
  }

  :is(
    .vrai-headline h3,
    .vrai-benchmark-copy h4,
    .vrdv-copy h3,
    .vrma-lead
  ) {
    font-size: 2.15rem;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(n + 3) {
    padding-inline: .38rem;
  }

  :is(.vrpt-terminal-features, .vrid-features) li:nth-child(n + 3) strong {
    font-size: .56rem;
    letter-spacing: .05em;
  }
}
