/* css/pages/technology.css
   Technology (MDx platform) page. Shared pieces (hero, section-head,
   badge, the 4-step assay flow, the CTA panel) come from components/.
   Page-local here: the status readout grid, the today/future mini
   stats, the prose info block, and the roadmap pill row. */

/* ------------------------------------------------------------
   MDx at-a-glance — product image beside three benefit bullets,
   sitting directly beneath the hero.
   ------------------------------------------------------------ */
.mdx-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.mdx-intro-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-tint);
}
.mdx-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Each bullet: teal check chip beside a title + description. Hairline
   divider between points. */
.mdx-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
}
.mdx-point + .mdx-point {
  border-top: 1px solid var(--line);
}
.mdx-point-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--teal-tint);
  color: var(--teal);
}
.mdx-point-icon svg {
  width: 19px;
  height: 19px;
}
.mdx-point-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.mdx-point-body p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 860px) {
  .mdx-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Regulatory disclaimer under the MDx intro — styled as an info
   callout, mirroring the .specimen-note on the FungiFlex pages: a
   blue-tint panel with an info icon and legible blue-deep text, rather
   than the near-invisible light-on-dark .order-note it used to borrow. */
.reg-note {
  display: flex;
  gap: 11px;
  margin-top: 40px;
  padding: 14px 18px;
  background: var(--blue-tint);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--blue-deep);
}
.reg-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--blue);
}
.reg-note strong {
  font-weight: 600;
}

/* ------------------------------------------------------------
   Biosensor technology — GMR copy on the left, labelled diagram on
   the right.
   ------------------------------------------------------------ */
.gmr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.gmr-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--blue-deep);
}
/* Nobel callout — made prominent through the amber "Nobel gold" accent
   and a medal icon rather than a larger type size. */
.gmr-nobel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--amber-tint);
  border: 1px solid rgba(153, 99, 26, 0.22);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.gmr-nobel svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.gmr-copy p {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
/* Diagram sits in a clean white figure panel so it reads as a labelled
   schematic rather than a loose image. */
.gmr-diagram {
  margin: 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
/* The illustration sits on the left; live text labels are pinned down
   the right at percentages of the image height, each with a hairline
   leader + dot pointing back toward the illustration. */
.gmr-fig {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.gmr-fig-img {
  display: block;
  width: 56%;
  height: auto;
}
/* Each label spans from its feature (left, set inline per label) to the
   figure's right edge: a dot sits on the feature, a hairline grows to
   fill the gap, and the text is pinned at the right. All in %, so the
   leaders stay attached as the figure scales. */
.gmr-label {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.gmr-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin: 0 8px 0 0;
  border-radius: 50%;
  background: var(--blue);
}
.gmr-line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  background: rgba(44, 54, 140, 0.35);
}
.gmr-text {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}

@media (max-width: 860px) {
  .gmr-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ------------------------------------------------------------
   The Problem — three flip cards on a deep-blue band with light text,
   deliberately the dark half of the problem/solution pair (the Solution
   below stays light). White cards pop against the dark ground. Front
   shows the headline figure; clicking (or Enter/Space via js/flip.js)
   flips it to reveal the supporting detail.
   ------------------------------------------------------------ */
.problem-section {
  background: var(--blue-deep);
}
.problem-section .section-title {
  color: var(--white);
}
.problem-section .section-head p {
  color: var(--on-dark);
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.flip-card {
  height: 340px;
  perspective: 1300px;
  cursor: pointer;
}
.flip-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 14px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
/* Both faces stack in the same box; backface hidden so only the
   forward-facing side shows through the rotation. */
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front {
  justify-content: center;
}
.flip-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  color: var(--blue-deep);
}
.flip-label {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
/* Corner affordance that a flip is available. */
.flip-hint {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.flip-hint svg {
  width: 14px;
  height: 14px;
}
.flip-back {
  transform: rotateY(180deg);
  overflow: auto;
}
.flip-back-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}
.flip-back ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.flip-back li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.flip-back li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}
/* Citation for the figures above — muted light on the dark band. */
.problem-source {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}
@media (max-width: 860px) {
  .problem-cards { grid-template-columns: 1fr; }
  .flip-card { height: 300px; }
}

/* ------------------------------------------------------------
   Readout grid — status cells divided by hairline gridlines.
   ------------------------------------------------------------ */
.readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.readout {
  padding: 16px 15px;
  background: var(--white);
}
.readout-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--blue-deep);
}
.readout-num--done {
  color: var(--teal);   /* validated/shipped status gets the same "live" accent as badge-live */
}
.readout-num--progress {
  color: var(--amber);   /* actively being worked, not yet validated */
}
.readout-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Mini stats — today vs. future, side by side.
   ------------------------------------------------------------ */
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 26px;
}
.mini-stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  color: var(--blue-deep);
}
.mini-stat-label {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Info block — prose panel for "the science".
   ------------------------------------------------------------ */
.info-block {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.info-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.info-block p + p {
  margin-top: 14px;
}

/* ------------------------------------------------------------
   Roadmap pills — the growing list of tests on the platform.
   ------------------------------------------------------------ */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--white);
  color: var(--muted);
}
/* Roadmap status modifiers — live (teal) and in-development (amber)
   stand out from the default muted "upcoming" pill. */
.pill--live {
  border-color: var(--teal-tint);
  background: var(--teal-tint);
  color: var(--teal);
}
.pill--dev {
  border-color: var(--amber-tint);
  background: var(--amber-tint);
  color: var(--amber);
}

@media (max-width: 520px) {
  .readout-grid { grid-template-columns: 1fr 1fr; }
}
