/* ============================================================
   Technology Page — .tech-page scoped styles
   All rules prefixed with body.tech-page so they don't affect index.html
   ============================================================ */

/* --- Alternate section background -------------------------- */
body.tech-page .tech-section--alt {
  background: var(--c-bg-soft);
}

/* --- Hero -------------------------------------------------- */
body.tech-page .tech-hero {
  background: var(--c-bg-dark);
  color: var(--c-bg);
  padding: var(--space-24) 0;
}

/* --- Card grid --------------------------------------------- */
body.tech-page .tech-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

body.tech-page .tech-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

body.tech-page .tech-card:hover {
  box-shadow: var(--shadow-md);
}

body.tech-page .tech-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--c-primary-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  color: var(--c-primary);
}

body.tech-page .tech-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

body.tech-page .tech-card__heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: var(--space-2);
}

body.tech-page .tech-card__body {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.7;
}

/* --- Callout boxes ----------------------------------------- */
body.tech-page .tech-callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--c-primary-light);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--c-dark);
  font-weight: 500;
}

body.tech-page .tech-callout--accent {
  background: var(--c-accent-light);
  border-left-color: var(--c-accent);
}

body.tech-page .tech-callout__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--c-primary);
}

body.tech-page .tech-callout--accent .tech-callout__icon {
  color: var(--c-accent);
}

/* --- Comparison table -------------------------------------- */
body.tech-page .tech-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

body.tech-page .tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

body.tech-page .tech-table th {
  background: var(--c-bg-soft);
  color: var(--c-dark);
  font-weight: 700;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

body.tech-page .tech-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-body);
  vertical-align: middle;
}

body.tech-page .tech-table tr:last-child td {
  border-bottom: none;
}

body.tech-page .tech-table tr:hover td {
  background: var(--c-bg-soft);
}

body.tech-page .tech-table .col-highlight {
  background: var(--c-primary-light);
}

body.tech-page .tech-table .col-highlight td {
  font-weight: 600;
  color: var(--c-dark);
}

body.tech-page .tech-table .check {
  color: var(--c-accent);
  display: inline-flex;
}

body.tech-page .tech-table .cross {
  color: #EF4444;
  display: inline-flex;
}

body.tech-page .tech-table .check svg,
body.tech-page .tech-table .cross svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Security tile grid ------------------------------------ */
body.tech-page .tech-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}

body.tech-page .tech-security-tile {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

body.tech-page .tech-security-tile__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-light);
  border-radius: var(--radius-md);
  color: var(--c-primary);
}

body.tech-page .tech-security-tile__icon svg {
  width: 1rem;
  height: 1rem;
}

body.tech-page .tech-security-tile__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: var(--space-1);
}

body.tech-page .tech-security-tile__desc {
  font-size: var(--text-xs);
  color: var(--c-muted);
  line-height: 1.6;
}

/* --- Limitations card -------------------------------------- */
body.tech-page .tech-limitations-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  margin-top: var(--space-8);
}

body.tech-page .tech-limitations-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  color: var(--c-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.tech-page .tech-limitations-card__header svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.tech-page .tech-limitation-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-border);
}

body.tech-page .tech-limitation-item:last-child {
  border-bottom: none;
}

body.tech-page .tech-limitation-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: var(--space-1);
}

body.tech-page .tech-limitation-item__desc {
  font-size: var(--text-sm);
  color: var(--c-muted);
}

/* --- details / summary (technical depth) ------------------- */
body.tech-page .tech-details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-6);
}

body.tech-page .tech-details summary {
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  color: var(--c-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--c-bg);
  user-select: none;
  transition: background 0.15s ease;
}

body.tech-page .tech-details summary::-webkit-details-marker { display: none; }

body.tech-page .tech-details summary:hover {
  background: var(--c-bg-soft);
}

body.tech-page .tech-details[open] summary {
  border-bottom: 1px solid var(--c-border);
}

body.tech-page .tech-details__body {
  padding: var(--space-8) var(--space-8);
}

/* --- Platform cards (iOS / Android / Offline) -------------- */
body.tech-page .tech-platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

body.tech-page .tech-platform-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}

body.tech-page .tech-platform-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--c-dark);
}

body.tech-page .tech-platform-card__header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--c-primary);
}

body.tech-page .tech-platform-card__body {
  padding: var(--space-6);
  font-size: var(--text-sm);
  color: var(--c-body);
  line-height: 1.7;
}

/* --- Deployment pipeline strip ----------------------------- */
body.tech-page .tech-pipeline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-8) 0;
}

body.tech-page .tech-pipeline__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

body.tech-page .tech-pipeline__step svg {
  width: 1rem;
  height: 1rem;
}

body.tech-page .tech-pipeline__arrow {
  color: var(--c-muted);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

/* --- Phase 2: Hero content --------------------------------- */
body.tech-page .tech-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

body.tech-page .tech-hero__tag {
  color: var(--c-accent);
  background: rgba(16, 185, 129, 0.15);
}

body.tech-page .tech-hero__heading {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

body.tech-page .tech-hero__sub {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: var(--space-3);
}

body.tech-page .tech-hero__analogy {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  max-width: 560px;
  margin-bottom: var(--space-8);
}

body.tech-page .tech-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

body.tech-page .btn--ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

body.tech-page .btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Phase 2: Flow strip ----------------------------------- */
body.tech-page .tech-flow-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
}

body.tech-page .tech-flow-strip__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  min-width: 90px;
}

body.tech-page .tech-flow-strip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--c-accent);
  border-radius: var(--radius-xl);
  color: #ffffff;
  flex-shrink: 0;
}

body.tech-page .tech-flow-strip__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
}

body.tech-page .tech-flow-strip__desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

body.tech-page .tech-flow-strip__connector {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* --- Phase 2: Problem section ------------------------------ */
body.tech-page .tech-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

body.tech-page .tech-problem-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
}

body.tech-page .tech-problem-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #FEF2F2;
  border-radius: var(--radius-lg);
  color: #EF4444;
  margin-bottom: var(--space-4);
}

body.tech-page .tech-problem-card__heading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: var(--space-2);
}

body.tech-page .tech-problem-card__body {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.7;
}

body.tech-page .tech-problem-solution {
  position: relative;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  background: var(--c-primary-light);
}

body.tech-page .tech-problem-solution__line {
  position: absolute;
  top: -2px;
  left: var(--space-8);
  width: 3rem;
  height: 4px;
  background: var(--c-accent);
  border-radius: var(--radius-full);
}

body.tech-page .tech-problem-solution__content {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

body.tech-page .tech-problem-solution__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  border-radius: var(--radius-lg);
  color: #ffffff;
  margin-top: 0.2rem;
}

body.tech-page .tech-problem-solution__text {
  font-size: var(--text-base);
  color: var(--c-dark);
  line-height: 1.75;
}

/* --- Responsive overrides ---------------------------------- */
@media (max-width: 768px) {
  body.tech-page .tech-card-grid,
  body.tech-page .tech-security-grid,
  body.tech-page .tech-platform-cards,
  body.tech-page .tech-problem-grid {
    grid-template-columns: 1fr;
  }

  body.tech-page .tech-limitations-card {
    padding: var(--space-6);
  }

  body.tech-page .tech-details__body {
    padding: var(--space-6);
  }

  body.tech-page .tech-table th,
  body.tech-page .tech-table td {
    padding: var(--space-3) var(--space-4);
  }

  body.tech-page .tech-flow-strip {
    padding: var(--space-6);
    gap: var(--space-3);
  }

  body.tech-page .tech-flow-strip__connector {
    transform: rotate(90deg);
  }

  body.tech-page .tech-flow-strip {
    flex-direction: column;
  }

  body.tech-page .tech-problem-solution__content {
    flex-direction: column;
  }

  body.tech-page .tech-hero__actions {
    flex-direction: column;
  }
}

/* --- Subsection heading ------------------------------------ */
body.tech-page .tech-subsection-heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-dark);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

/* --- Technology comparison cards (BLE vs GPS vs NFC etc.) -- */
body.tech-page .tech-comparison-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

body.tech-page .tech-comparison-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  background: var(--c-bg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

body.tech-page .tech-comparison-card--highlight {
  border-color: var(--c-accent);
  background: var(--c-accent-light);
}

body.tech-page .tech-comparison-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-3);
  color: var(--c-muted);
}

body.tech-page .tech-comparison-card--highlight .tech-comparison-card__icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--c-accent);
}

body.tech-page .tech-comparison-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

body.tech-page .tech-comparison-card__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: var(--space-2);
}

body.tech-page .tech-comparison-card__verdict {
  font-size: var(--text-xs);
  color: var(--c-muted);
  line-height: 1.5;
}

body.tech-page .tech-comparison-card__verdict--good {
  color: #065F46;
  font-weight: 600;
}

@media (max-width: 768px) {
  body.tech-page .tech-comparison-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Prose sections (BLE subsections) ---------------------- */
body.tech-page .tech-prose-section {
  margin: var(--space-10) 0;
}

body.tech-page .tech-prose-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

body.tech-page .tech-prose-section__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--c-primary-light);
  border-radius: var(--radius-md);
  color: var(--c-primary);
  flex-shrink: 0;
}

body.tech-page .tech-prose-section__icon svg {
  width: 1rem;
  height: 1rem;
}

body.tech-page .tech-prose-section__heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-dark);
}

body.tech-page .tech-prose-section p {
  font-size: var(--text-base);
  color: var(--c-body);
  line-height: 1.75;
  max-width: 780px;
}

/* --- Feature list (admin section) -------------------------- */
body.tech-page .tech-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}

body.tech-page .tech-feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--c-body);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

body.tech-page .tech-feature-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-primary-light);
  border-radius: var(--radius-md);
  color: var(--c-primary);
  margin-top: 0.1rem;
}

body.tech-page .tech-feature-item__icon svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 768px) {
  body.tech-page .tech-feature-list {
    grid-template-columns: 1fr;
  }
}

/* --- Moat / technical depth list --------------------------- */
body.tech-page .tech-moat-list {
  list-style: none;
  counter-reset: moat-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

body.tech-page .tech-moat-list li {
  counter-increment: moat-counter;
}

body.tech-page .tech-moat-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--c-body);
  line-height: 1.7;
}

body.tech-page .tech-moat-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--c-primary-light);
  border-radius: var(--radius-md);
  color: var(--c-primary);
  margin-top: 0.1rem;
}

body.tech-page .tech-moat-item__icon svg {
  width: 1rem;
  height: 1rem;
}

/* --- CTA block --------------------------------------------- */
body.tech-page .tech-cta-block {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 640px;
  margin: 0 auto;
}

body.tech-page .tech-cta-block .section__tag {
  margin-bottom: var(--space-4);
  display: inline-block;
}

body.tech-page .tech-cta-block__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--c-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

body.tech-page .tech-cta-block__desc {
  font-size: var(--text-lg);
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

body.tech-page .tech-cta-block__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
