/* Reading pages for the five platform features. Screen captures retain their aspect ratio. */
[data-product="radar"] { --product-accent: #69efda; }
[data-product="opportunities"] { --product-accent: #ffd181; }
[data-product="ai"] { --product-accent: #c6adff; }
[data-product="terminal"] { --product-accent: #8dc1ff; }
[data-product="academy"] { --product-accent: #ffa590; }
[data-product="news"] { --product-accent: #8bd6f3; }
[data-product="mapaview"] { --product-accent: #a9e296; }

.product-page {
  background-color: #041420;
  background-image: radial-gradient(ellipse 62% 540px at 82% 75px, color-mix(in srgb, var(--product-accent) 8%, transparent), transparent);
  font-size: 1rem;
}
.product-content {
  max-width: 1180px;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.product-intro { padding-block: clamp(1.4rem, 3.5vw, 3.25rem) clamp(1.5rem, 3vw, 2.5rem); }
.product-back {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  color: var(--muted); font-weight: 600; font-size: .9375rem;
}
.product-back span { color: var(--product-accent); font-size: 1.5rem; line-height: 1; }
.product-back:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.product-intro h1 {
  display: flex; align-items: center; gap: clamp(.65rem, 1.5vw, 1.5rem);
  margin: clamp(.8rem, 1.7vw, 1.4rem) 0 .85rem;
  font-size: clamp(1.125rem, 2.875vw, 2.675rem); letter-spacing: -.056em; line-height: 1.06; overflow-wrap: anywhere;
}
.product-mark {
  display: grid; flex: none; place-items: center;
  width: clamp(40px, 5vw, 69px); aspect-ratio: 1; border-radius: 26%;
  color: var(--product-accent); border: 1px solid color-mix(in srgb, var(--product-accent) 50%, #173448);
  background: linear-gradient(140deg, color-mix(in srgb, var(--product-accent) 19%, #08232c), #071c2a);
}
.product-mark svg { width: 61%; height: 61%; }
.product-intro p { max-width: 76ch; font-size: clamp(1.0625rem, 1.6vw, 1.29rem); line-height: 1.58; }
.product-figure {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--product-accent) 29%, #173342);
  border-radius: clamp(.8rem, 1.5vw, 1.4rem);
  background: #081c29;
  box-shadow: 0 18px 40px #0003;
}
.product-image {
  --inset: clamp(.4rem, .8vw, .8rem);
  display: block; width: calc(100% - var(--inset) - var(--inset)); margin: var(--inset); padding: 0; border: 0;
  border-radius: clamp(.45rem, .9vw, .8rem); background: #061423; cursor: zoom-in;
}
.product-image img { display: block; height: auto; width: 100%; border-radius: inherit; }
.product-figure figcaption {
  border-top: 1px solid #193c4d; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem clamp(.9rem, 2vw, 1.65rem);
}
.product-figure figcaption p { max-width: 78ch; color: #c0d4df; font-size: 1rem; line-height: 1.55; }
.product-zoom, .lightbox-toolbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem;
  color: var(--product-accent); font-size: .94rem; font-weight: 650;
  min-height: 44px; padding: .5rem .78rem; white-space: nowrap;
  border: 1px solid #2a4b5e; background: #0a2431; border-radius: .55rem;
}
.product-zoom svg { width: 1.1rem; height: 1.1rem; }
.product-zoom:hover, .lightbox-toolbar button:hover { border-color: var(--product-accent); }
.product-highlights, .product-next, .product-detail { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.product-highlights h2, .product-next h2, .product-detail h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem); letter-spacing: -.035em; margin-bottom: 1.4rem;
}
.product-highlights > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.15rem, 3vw, 2.8rem); }
.product-highlights article {
  background: linear-gradient(to right, var(--product-accent) 3rem, #1d3b49 3rem) left top / 100% 2px no-repeat;
  padding-top: 1.2rem;
}
.product-highlights h3 { color: var(--text); font-size: clamp(1.125rem, 1.6vw, 1.35rem); margin-bottom: .5rem; }
.product-highlights p { color: #b5cad6; line-height: 1.65; font-size: 1rem; }
.product-next { border-top: 1px solid #1d3948; padding-top: clamp(1.6rem, 3vw, 2.5rem); }
.product-next > div { display: flex; gap: .65rem; flex-wrap: wrap; }
.product-next a {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 46px; padding: .65rem .95rem;
  background: #0a202e; border: 1px solid #204152; border-radius: .65rem; color: #f3f7fc; font-weight: 650;
}
.product-next a:hover { border-color: var(--product-accent); }
.product-next svg { color: var(--product-accent); width: 1.25rem; height: 1.25rem; }
.product-lightbox {
  width: min(96vw, 1800px); max-width: none; max-height: 96dvh; padding: 0;
  color: var(--text); background: #041420; border: 1px solid #315565; border-radius: .9rem;
}
.product-lightbox[open] { display: flex; flex-direction: column; }
.product-page[data-product="radar"] .product-lightbox { width: min(96vw, 3840px); }
.product-lightbox::backdrop { background: rgb(1 9 15 / .9); }
.lightbox-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  flex: none; padding: .65rem .9rem; border-bottom: 1px solid #29424e;
}
.lightbox-toolbar h2 { margin-right: auto; font-size: 1.1rem; }
.lightbox-frame { min-height: 0; overflow: auto; }
.lightbox-frame img { display: block; width: 100%; height: auto; }
.product-detail[data-capture="ai-conversa"] .product-figure { max-width: 660px; }
.product-detail[data-capture="ai-conversa"] .product-image { max-width: 405px; margin-inline: auto; }
.product-lightbox.narrow-capture { width: min(96vw, 540px); }
.product-lightbox.narrow-capture img { max-width: 405px; margin-inline: auto; }
.product-page[data-product="academy"] .product-image { max-width: 895px; margin-inline: auto; }
html:has(.product-lightbox[open]) { overflow: hidden; }
@media (max-width: 740px) {
  .product-content { width: calc(100% - 2rem); }
  .product-highlights > div { grid-template-columns: 1fr; gap: 1.4rem; }
  .product-figure figcaption { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .product-intro { padding-block-start: .7rem; }
  .lightbox-toolbar { gap: .4rem; }
  .lightbox-frame img { width: auto; max-width: none; min-width: 100%; }
  .product-page[data-product="radar"] .lightbox-frame img { width: 1440px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.product-content) { scroll-behavior: auto; } }
