/* ════════════════════════════════════════════════════════════════
   Feature topic pages (features/*.html) — bright.

   Ported from mimik.com's `.rd-studio.std-topic` styles so a feature
   page reads as the same product as the front page. Loaded *after*
   home.css, which supplies the tokens, nav, buttons, frames and footer.

   Accent per page: add .acc-blue / .acc-lime / .acc-orange to
   .std-topic. Default is the teal used by the Agents band.
   ════════════════════════════════════════════════════════════════ */

.std-topic {
  --std-wash: rgba(41,181,190,.10);   /* tint behind pills, code, step numbers */
  --std-br:   #148a92;                /* accent ink                            */
  --std-face: #eafafb;                /* icon tile, lit face                   */
  --std-lite: #c7ecef;                /* icon tile, shaded corner              */
  --std-line: rgba(20,138,146,.24);   /* icon tile edge                        */
  --std-shade: rgba(20,138,146,.30);  /* icon tile cast shadow                 */
  padding-bottom: 96px;
}
.std-topic.acc-blue {
  --std-wash: rgba(44,78,197,.10);  --std-br: #2c4ec5;
  --std-face: #eef3ff;              --std-lite: #ccdaff;
  --std-line: rgba(44,78,197,.22);  --std-shade: rgba(44,78,197,.28);
}
.std-topic.acc-lime {
  --std-wash: rgba(123,198,44,.13); --std-br: #5a8f16;
  --std-face: #f3fbe7;              --std-lite: #dcf2c0;
  --std-line: rgba(90,143,22,.24);  --std-shade: rgba(90,143,22,.26);
}
.std-topic.acc-orange {
  --std-wash: rgba(246,146,30,.13); --std-br: #c2700a;
  --std-face: #fff5e8;              --std-lite: #ffe1bd;
  --std-line: rgba(194,112,10,.24); --std-shade: rgba(194,112,10,.26);
}

/* ─────────────────────────── hero ─────────────────────────── */
/* Icon | title block | CTA, all vertically centred — the arrangement
   the feature pages had before the light rebuild. */
.stp-hero { padding: 40px 0 0; }
.stp-hero-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Light tile, but built in layers like the dark one: a tinted face that
   deepens toward the bottom-right, a specular highlight top-left, an inset
   edge, and an accent-tinted shadow so it sits above the page. */
.stp-ic {
  position: relative; flex: none;
  width: 104px; height: 104px; border-radius: 26px;
  display: grid; place-items: center;
  color: var(--std-br);
  background:
    radial-gradient(88px 68px at 28% 18%, rgba(255,255,255,.96), transparent 70%),
    linear-gradient(150deg, var(--std-face) 0%, var(--std-lite) 100%);
  border: 1px solid var(--std-line);
  box-shadow:
    0 18px 38px -18px var(--std-shade),
    0 4px 12px -6px rgba(20,40,80,.10),
    0 1px 0 rgba(255,255,255,.9) inset;
}
/* a sheen along the top edge */
.stp-ic::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 46%);
}
.stp-ic svg {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  filter: drop-shadow(0 2px 3px var(--std-shade));
}

.stp-hero-main { flex: 1; min-width: 240px; }

.stp-hero h1 {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.022em;
  color: var(--mimik-navy);
}
.stp-tagline {
  margin-top: 6px;
  font-size: 17px; font-weight: 600; line-height: 1.5;
  color: var(--grey-51);
  text-wrap: pretty;
}

.stp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stp-chip {
  font-size: 12.5px; font-weight: 800;
  padding: 6px 13px; border-radius: 999px;
  color: var(--grey-51); background: #fff;
  border: 1px solid rgba(20,40,80,.12);
}
.stp-chip.acc {
  color: var(--std-br);
  background: var(--std-wash);
  border-color: transparent;
}

/* the hero CTA stacks when it carries a consent line, as on the download page */
.stp-actions { display: flex; align-items: center; gap: 12px; }
.stp-actions:has(.stp-consent) { flex-direction: column; align-items: flex-end; gap: 0; }
.stp-consent {
  margin-top: 16px; margin-left: auto;
  display: flex; align-items: flex-start; gap: 8px;
  max-width: 340px; text-align: left; text-wrap: balance;
  font-size: 12.5px; line-height: 1.45; color: var(--grey-51); cursor: pointer;
}
.stp-consent input { margin-top: 1px; width: 14px; height: 14px; flex: none; accent-color: var(--mimik-blue); cursor: pointer; }
/* keep the agreement name whole so it doesn't split across the two lines */
.stp-consent a { font-weight: 800; text-decoration: underline; color: inherit; white-space: nowrap; }
.stp-consent a:hover { color: var(--mimik-blue); }
.btn:disabled { cursor: not-allowed; opacity: .6; box-shadow: none; transform: none; }
.stp-note { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--grey-70); }
/* when the note leads the CTA it sits above the button, not below it */
.stp-actions .stp-note:first-child { margin-top: 0; margin-bottom: 10px; }

.stp-rule { height: 1px; border: 0; background: rgba(20,40,80,.10); margin: 40px 0; }

.stp-back {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; color: var(--grey-51);
  transition: color .2s ease;
}
.stp-back:hover { color: var(--mimik-navy); }
.stp-crumb { margin-bottom: 30px; }

/* ─────────────────────── screenshot gallery ─────────────────────── */
.stp-shot { margin-top: 0; }
.stp-gallery-wrap { position: relative; }
.stp-gallery {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 14px;
  scrollbar-width: none;
}
.stp-gallery::-webkit-scrollbar { display: none; }

/* Compact product shots, sized as they were before the light rebuild, and
   with light window chrome so the only dark thing is the screenshot itself. */
.stp-gallery .frame {
  flex: 0 0 min(680px, 82%); scroll-snap-align: start;
  background: #fff;
  border-color: rgba(20,40,80,.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 24px 56px -22px rgba(20,40,80,.28),
    0 4px 14px -8px rgba(20,40,80,.10);
}
.stp-gallery .frame .bar {
  background: linear-gradient(180deg, #fcfdfe, #f1f4fa);
  border-bottom: 1px solid rgba(20,40,80,.08);
}
.stp-gallery .frame img { aspect-ratio: 16/10; object-fit: cover; }
.stp-gallery .frame .ph { background: #fff; color: var(--grey-70); }
.stp-gallery .frame .ph code { color: var(--grey-51); }

.stp-promo {
  flex: 0 0 min(360px, 70%); scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 36px 34px; border-radius: 16px;
  border: 1px solid rgba(20,40,80,.08);
  background: linear-gradient(180deg, #fff, var(--std-wash));
}
.stp-promo-big {
  font-size: clamp(26px, 3vw, 34px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.12; color: var(--mimik-navy);
}
.stp-promo-small { font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--grey-51); }
/* the glyph sits at the top of the card, copy at the foot */
.stp-promo .glyph {
  color: var(--std-br);
  margin-bottom: auto;
  padding-bottom: 26px;
  line-height: 0;
}

.stp-gbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: var(--mimik-navy);
  background: #fff; border: 1px solid rgba(20,40,80,.12);
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease, visibility .2s ease;
}
.stp-gprev { left: -8px; }
.stp-gnext { right: -8px; }
.stp-gbtn:hover:not(:disabled) { background: var(--grey-02); }
.stp-gprev:hover:not(:disabled) { transform: translateY(-50%) translateX(-2px); }
.stp-gnext:hover:not(:disabled) { transform: translateY(-50%) translateX(2px); }
.stp-gbtn:disabled { opacity: 0; visibility: hidden; pointer-events: none; }

/* ─────────────────────────── benefits ─────────────────────────── */
.stp-benefits {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.stp-card {
  background: #fff;
  border: 1px solid rgba(20,40,80,.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px 30px;
}
.stp-card h3 {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--mimik-navy);
}
.stp-card p {
  margin-top: 10px;
  font-size: 15.5px; font-weight: 500; line-height: 1.6; color: var(--grey-51);
}
.stp-card b { color: var(--mimik-navy); font-weight: 800; }
.stp-card code, .stp-steps code {
  font-family: var(--mono); font-size: .88em;
  color: var(--std-br); background: var(--std-wash);
  padding: 2px 7px; border-radius: 7px;
}

/* ─────────────────────────── steps ─────────────────────────── */
.stp-h {
  margin: 64px 0 0;
  font-size: clamp(24px, 3vw, 34px); font-weight: 800;
  letter-spacing: -.02em; color: var(--mimik-navy);
}
.stp-steps ol {
  margin-top: 26px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 18px;
}
.stp-steps li { display: flex; gap: 18px; align-items: flex-start; }
.stp-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 15px;
  color: var(--std-br); background: var(--std-wash);
}
.stp-steps h4 { font-size: 17px; font-weight: 800; color: var(--mimik-navy); }
.stp-steps p {
  margin-top: 5px; max-width: 70ch;
  font-size: 15.5px; font-weight: 500; line-height: 1.6; color: var(--grey-51);
}

/* ─────────────────────────── info table ─────────────────────────── */
.stp-info-grid {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(20,40,80,.10);
  border: 1px solid rgba(20,40,80,.10);
  border-radius: 16px; overflow: hidden;
}
.stp-info-cell { background: #fff; padding: 20px 22px; }
.stp-info-cell .k {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey-70);
}
.stp-info-cell .v { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--mimik-navy); }

/* ─────────────────────── prev / next pager ─────────────────────── */
.stp-pager {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stp-pager a {
  background: #fff; border: 1px solid rgba(20,40,80,.08);
  border-radius: 16px; padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stp-pager a:hover {
  border-color: var(--std-br);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.stp-pager .dir {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--std-br);
}
.stp-pager .nm { margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--mimik-navy); }
.stp-pager .next { text-align: right; }

.stp-foot { margin-top: 56px; }

/* ─────────────────────────── responsive ─────────────────────────── */
@media (max-width: 860px) {
  .stp-benefits { grid-template-columns: 1fr; }
  .stp-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .stp-hero-row { gap: 18px; }
  .stp-ic { width: 80px; height: 80px; border-radius: 20px; }
  .stp-ic svg { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .std-topic { padding-bottom: 64px; }
  .stp-tagline { font-size: 16px; }
  .stp-actions, .stp-actions .btn { width: 100%; }
  .stp-actions .btn { justify-content: center; }
  .stp-gallery .frame, .stp-promo { flex-basis: calc(100% - 28px); }
  .stp-promo { padding: 30px 24px; }
  .stp-gprev { left: -2px; }
  .stp-gnext { right: -2px; }
  .stp-pager { grid-template-columns: 1fr; }
  .stp-pager .next { text-align: left; }
}


/* dialog / modal captures: natural aspect, no window chrome, centred */
.stp-gallery .frame.tall { flex: 0 0 auto; align-self: center; }
.stp-gallery .frame.tall img {
  aspect-ratio: auto; object-fit: contain; width: min(400px, 64vw);
}

/* "Also under …" cross-link card */
.stp-related {
  margin-top: 56px;
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid rgba(20,40,80,.08);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 28px 30px;
}
.stp-related > div { flex: 1; min-width: 240px; }
.stp-related .ic {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--std-br); background: var(--std-wash);
}
.stp-related .rk {
  display: block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--grey-70);
}
.stp-related h3 {
  margin-top: 6px;
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--mimik-navy);
}
.stp-related p {
  margin-top: 8px;
  font-size: 15.5px; font-weight: 500; line-height: 1.6; color: var(--grey-51);
}
.stp-related b { color: var(--mimik-navy); font-weight: 800; }
.stp-related .btn { align-self: center; }
