/* Physical AI data-collection sub-pages (LiDAR, Multimodal, Teleoperation,
   3D Point Cloud, Edge Case, Drones).

   The body markup of these pages is authored as standalone HTML. This
   stylesheet gives that markup the same look as
   /services/physical-ai-data-collection/ — Poppins, the site's dark palette,
   and the same card/label treatment — instead of the schematic theme the
   source files shipped with.

   Everything is scoped under .gama-raw-body so it can never reach the shared
   header, footer or any other page. */

.gama-raw-body {
  /* Palette mirrors physical-ai-data-collection.json > typography */
  --primary: #2d9cdb;
  --accent: #00fce2;
  --bg-alt: #0a0e24;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --dim: rgba(255, 255, 255, 0.55);
  /* Inherit the family AIPlatformView sets on its wrapper, so these pages
     resolve Poppins exactly the way the parent page does. */
  --font: inherit;

  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dim);
  -webkit-font-smoothing: antialiased;
  /* Clear the fixed site header */
  padding-top: 140px;
}

.gama-raw-body *,
.gama-raw-body *::before,
.gama-raw-body *::after {
  box-sizing: border-box;
}

.gama-raw-body img,
.gama-raw-body svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.gama-raw-body a {
  color: var(--primary);
  font-weight: 500;
  text-underline-offset: 3px;
}
.gama-raw-body a:hover {
  color: var(--accent);
}
.gama-raw-body :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mirrors the `container mx-auto px-6 md:px-16` every AIPlatformView section
   uses, so these pages sit at exactly the same width as
   /services/physical-ai-data-collection/ at every breakpoint. */
.gama-raw-body .wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 40rem) {
  .gama-raw-body .wrap {
    max-width: 40rem;
  }
}
@media (min-width: 48rem) {
  .gama-raw-body .wrap {
    max-width: 48rem;
    padding-inline: 64px;
  }
}
@media (min-width: 64rem) {
  .gama-raw-body .wrap {
    max-width: 64rem;
  }
}
@media (min-width: 80rem) {
  .gama-raw-body .wrap {
    max-width: 80rem;
  }
}
@media (min-width: 96rem) {
  .gama-raw-body .wrap {
    max-width: 96rem;
  }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.gama-raw-body .crumb {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--dim);
  padding-top: 0;
}
.gama-raw-body .crumb a {
  color: var(--dim);
  font-weight: 400;
  text-decoration: none;
}
.gama-raw-body .crumb a:hover {
  color: var(--text);
}

/* ── Typography ─────────────────────────────────────────────────────── */
.gama-raw-body h1,
.gama-raw-body h2,
.gama-raw-body h3,
.gama-raw-body h4 {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
.gama-raw-body h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.gama-raw-body h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.gama-raw-body h3 {
  font-size: 20px;
  margin-top: 1.6em;
}
.gama-raw-body h4 {
  font-size: 17px;
}
.gama-raw-body p {
  margin: 0 0 1.1em;
  color: var(--dim);
  max-width: 68ch;
}
.gama-raw-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Hero badge ─────────────────────────────────────────────────────────
   Mirrors the eyebrow pill above the h1 on
   /services/physical-ai-data-collection/ (bordered pill + pulsing accent dot
   + uppercase label). Written as real classes rather than Tailwind utilities,
   since class names inside the page JSON aren't visible to Tailwind's scanner. */
.gama-raw-body .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 6px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: none;
}

.gama-raw-body .hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: gama-badge-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gama-badge-pulse {
  50% {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gama-raw-body .hero-badge::before {
    animation: none;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.gama-raw-body .hero {
  padding: 40px 0 72px;
  display: block;
}
.gama-raw-body .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.gama-raw-body .lede {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
}
.gama-raw-body .hero-svg {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

/* ── Chips / pills ──────────────────────────────────────────────────── */
.gama-raw-body .chips {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gama-raw-body .chips li {
  font-size: 12.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.gama-raw-body .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.gama-raw-body .btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.gama-raw-body .btn-primary {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: #07091b;
}
.gama-raw-body .btn-primary:hover {
  color: #07091b;
  opacity: 0.9;
  transform: translateY(-1px);
}
.gama-raw-body .btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.gama-raw-body .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── Sections ───────────────────────────────────────────────────────── */
.gama-raw-body .block {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.gama-raw-body .block.alt {
  background: var(--bg-alt);
}

/* ── Direct-answer callout ──────────────────────────────────────────── */
.gama-raw-body .answer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 8px 0 28px;
  max-width: 78ch;
}
.gama-raw-body .answer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin: 0;
  max-width: none;
}

.gama-raw-body .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* ── Tables ─────────────────────────────────────────────────────────── */
.gama-raw-body .table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gama-raw-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 680px;
}
.gama-raw-body th,
.gama-raw-body td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.gama-raw-body th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--panel);
}
.gama-raw-body td {
  color: var(--dim);
}
.gama-raw-body tr:last-child td {
  border-bottom: 0;
}
.gama-raw-body td strong {
  display: block;
  margin-bottom: 2px;
}

/* ── Figures ────────────────────────────────────────────────────────── */
.gama-raw-body figure.fig {
  margin: 32px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.gama-raw-body figure.fig svg {
  width: 100%;
}
.gama-raw-body figcaption {
  font-size: 14px;
  color: var(--dim);
  margin-top: 12px;
}

/* ── Framework block ────────────────────────────────────────────────── */
.gama-raw-body .framework {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  margin-top: 10px;
}
.gama-raw-body .fw-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.gama-raw-body .criteria {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.gama-raw-body .criteria li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.gama-raw-body .criteria h4 {
  font-size: 17px;
  margin: 0 0 4px;
}
.gama-raw-body .criteria p {
  margin: 0;
  font-size: 15.5px;
}

/* ── Numbered steps ─────────────────────────────────────────────────── */
.gama-raw-body ol.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 26px 0 8px;
}
.gama-raw-body ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 24px 40px;
  border-left: 1px solid var(--line);
  margin-left: 16px;
}
.gama-raw-body ol.steps li:last-child {
  border-left-color: transparent;
}
.gama-raw-body ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: -16px;
  top: -3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gama-raw-body ol.steps h4 {
  margin: 0 0 4px;
  font-size: 17px;
}
.gama-raw-body ol.steps p {
  margin: 0;
  font-size: 15.5px;
}

/* ── Formula block ──────────────────────────────────────────────────── */
.gama-raw-body .formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14.5px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0;
}

/* ── Scenario / case-study card ─────────────────────────────────────── */
.gama-raw-body .scenario {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 28px 0;
}
.gama-raw-body .scenario .who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.gama-raw-body .scenario dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin: 0;
}
.gama-raw-body .scenario dt {
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gama-raw-body .scenario dd {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 15.5px;
}

/* ── Pull quote ─────────────────────────────────────────────────────── */
.gama-raw-body .insight {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
  max-width: 44ch;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.gama-raw-body .cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}
.gama-raw-body .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.3s ease;
}
.gama-raw-body .card:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
}
.gama-raw-body .card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.gama-raw-body .card p {
  margin: 0;
  font-size: 15.5px;
}

/* ── Check lists ────────────────────────────────────────────────────── */
.gama-raw-body ul.check {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.gama-raw-body ul.check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--dim);
  max-width: 68ch;
}
.gama-raw-body ul.check li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── FAQ accordion ──────────────────────────────────────────────────── */
.gama-raw-body .faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.gama-raw-body .faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.gama-raw-body .faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}
.gama-raw-body .faq summary::-webkit-details-marker {
  display: none;
}
.gama-raw-body .faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.gama-raw-body .faq details[open] summary::after {
  content: '\2212';
}
.gama-raw-body .faq details p {
  margin: 12px 0 0;
}

/* ── Closing CTA block ──────────────────────────────────────────────── */
.gama-raw-body .final {
  padding: 88px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.gama-raw-body .final-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.gama-raw-body .send {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.gama-raw-body .send h3 {
  margin-top: 0;
}
.gama-raw-body .related {
  margin-top: 34px;
}
.gama-raw-body .related h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.gama-raw-body .related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gama-raw-body .related a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}
.gama-raw-body .related a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.gama-raw-body .src {
  font-size: 13.5px;
  color: var(--dim);
}

/* ── Motion ─────────────────────────────────────────────────────────────
   Scroll reveal is handled by the template, which wraps the hero and each
   section in the same <FadeIn> (framer-motion) the CMS-driven sections use —
   so easing preset, duration scale, the disable-animations switch and
   reduced-motion handling all come from the site's shared motion config. */
.gama-raw-body .pulse {
  animation: gama-raw-pulse 1.6s ease-in-out infinite;
}
@keyframes gama-raw-pulse {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gama-raw-body .pulse {
    animation: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gama-raw-body {
    padding-top: 110px;
  }
  .gama-raw-body .hero-grid,
  .gama-raw-body .split,
  .gama-raw-body .framework,
  .gama-raw-body .final-grid {
    grid-template-columns: 1fr;
  }
  .gama-raw-body .cards,
  .gama-raw-body .scenario dl {
    grid-template-columns: 1fr;
  }
  .gama-raw-body .hero {
    padding: 24px 0 56px;
  }
  .gama-raw-body .block {
    padding: 56px 0;
  }
}
