/* portal-page.css - the screenshot blocks on /compliance-portal.php.
   Loaded as $cssExtra after services.css, so everything here is additive and
   nothing in the shared sheet is overridden. Every colour, radius and
   transition resolves from colors.css; no new tokens are introduced. */

.portal-shots {
  display: flex;
  flex-direction: column;
  gap: 64px;

  margin-top: 44px;
}

/* Alternating sides on wide screens. The image is the argument here, so it
   takes the larger share; the caption is what the image means. */
.portal-shot {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;

  margin: 0;
}

.portal-shot:nth-child(even) > img {
  order: 2;
}

.portal-shot > img {
  width: 100%;
  height: auto;

  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);

  /* Screens are dark and already carry their own chrome, so they need
     separation from the page rather than decoration on top of it. */
  background: var(--bg-panel-strong);
  box-shadow: var(--glow-cyan-soft);

  transition: box-shadow var(--transition-medium),
              border-color var(--transition-medium);
}

.portal-shot > img:hover {
  border-color: rgba(0, 230, 255, 0.34);
  box-shadow: var(--glow-cyan-medium);
}

.portal-shot figcaption h3 {
  margin: 0 0 14px;

  font-size: 1.32rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;

  color: var(--text-primary);
}

.portal-shot figcaption p {
  margin: 0;

  font-size: 1.02rem;
  line-height: 1.7;

  color: var(--text-secondary);
}

.portal-shots-note {
  max-width: 720px;
  margin: 52px auto 0;

  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;

  color: var(--text-muted);
}

/* Stack below the split. The image keeps its source order on one column, so
   the nth-child reorder above has to be undone or every other block would
   read caption-first. */
@media (max-width: 900px) {
  .portal-shots {
    gap: 48px;
  }

  .portal-shot {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portal-shot:nth-child(even) > img {
    order: 0;
  }

  .portal-shot figcaption h3 {
    font-size: 1.18rem;
  }
}

@media (max-width: 600px) {
  .portal-shot > img {
    border-radius: var(--radius-md);
  }

  .portal-shots-note {
    margin-top: 38px;
    text-align: left;
  }
}

/* The fairness note under the pricing comparison. Quieter than a panel on
   purpose: it is the part that argues against us, and dressing it up as a
   feature card would make it read as a device rather than a caveat. */
.portal-fairness {
  max-width: 760px;
  margin: 38px auto 0;
  padding: 26px 30px;

  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}

.portal-fairness h3 {
  margin: 0 0 12px;

  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: var(--silver);
}

.portal-fairness p {
  margin: 0 0 14px;

  font-size: 0.96rem;
  line-height: 1.75;

  color: var(--text-secondary);
}

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

@media (max-width: 600px) {
  .portal-fairness {
    padding: 22px;
  }
}

/* Three across: the two panels and a screen. The panels keep their own
   styling from services.css; only the track count and the image treatment
   are set here, and the image matches the .portal-shot border and glow so
   the two sections read as one set. */
.portal-trio {
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: center;
}

.portal-trio > img {
  width: 100%;
  height: auto;

  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-panel-strong);
  box-shadow: var(--glow-cyan-soft);

  transition: box-shadow var(--transition-medium),
              border-color var(--transition-medium);
}

.portal-trio > img:hover {
  border-color: rgba(0, 230, 255, 0.34);
  box-shadow: var(--glow-cyan-medium);
}

@media (max-width: 1000px) {
  .portal-trio { grid-template-columns: 1fr 1fr; }
  .portal-trio > img { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .portal-trio { grid-template-columns: 1fr; }
  .portal-trio > img { grid-column: auto; }
}
