/* ============================================================
   Products page : categories + tiles + drawer
   ============================================================ */

/* ---------- Hero ---------- */
.products-hero {
  padding: 130px 0 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.products-hero h1 { margin-bottom: 18px; }
.products-hero .lead { margin-bottom: 36px; }
.products-hero .meta-row { margin-bottom: 48px; }

/* 3-up "jump to a discipline" row inside the hero */
.products-disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.products-disciplines .discipline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  color: var(--fg-2);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.18s, transform 0.18s, background 0.18s, color 0.18s;
}
.products-disciplines .discipline:hover {
  border-color: var(--accent-2);
  color: var(--fg);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.products-disciplines .d-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
}
.products-disciplines .d-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}
.products-disciplines .d-name {
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1.2;
}
.products-disciplines .d-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.products-disciplines .d-arr {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-3);
  transition: transform 0.2s, color 0.2s;
}
.products-disciplines .discipline:hover .d-arr {
  color: var(--accent-2);
  transform: translateX(4px);
}
@media (max-width: 900px) {
  .products-hero { padding: 96px 0 72px; }
  .products-disciplines { grid-template-columns: 1fr; gap: 10px; }
}
.products-hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 22ch;
  margin-top: 14px;
}
.products-hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.products-hero .lead { margin-top: 16px; max-width: 64ch; font-size: 15.5px; color: var(--fg-2); }
.products-hero .meta-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.products-hero .meta-row span + span::before {
  content: "·"; margin-right: 18px; color: var(--fg-4);
}

/* ---------- Category section ---------- */
.cat-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--bg);
}
.cat-section:last-of-type { border-bottom: 0; }
.cat-section::before {
  /* very subtle horizontal accent line at the top of each cat */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 35%);
  opacity: 0.4;
}

.cat-head {
  margin-bottom: 36px;
  max-width: 80ch;
}
.cat-meta {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.cat-num {
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-num::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cat-count { color: var(--fg-4); }
.cat-count::before { content: "·"; margin-right: 16px; color: var(--fg-4); }

.cat-title {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.022em;
  line-height: 1.05;
  max-width: 24ch;
  font-weight: 500;
}
.cat-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.cat-blurb {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
}

/* ---------- Category grids ---------- */
.cat-grid {
  display: grid;
  gap: 14px;
}
/* CRA: hero tile (wider) + standard */
.cat-grid-cra { grid-template-columns: 1.45fr 1fr; grid-auto-rows: minmax(340px, auto); }
/* Cybersecurity: equal pair, qrng tile a touch wider for terminal */
.cat-grid-sec { grid-template-columns: 1.15fr 1fr; grid-auto-rows: minmax(340px, auto); }
/* 5G: LTE (more compact) + DDoS (wider for radar) */
.cat-grid-5g  { grid-template-columns: 1fr 1.3fr; grid-auto-rows: minmax(340px, auto); }

@media (max-width: 980px) {
  .cat-grid, .cat-grid-cra, .cat-grid-sec, .cat-grid-5g {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* ---------- Tile (shared) ---------- */
.tile {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, background 0.25s, transform 0.4s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(224, 84, 103, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover {
  border-color: var(--maroon-2);
  background: var(--bg-2);
}
.tile:hover::before { opacity: 1; }
.tile:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}

.tile-num {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.tile-num .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.tile-title {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin-top: 16px;
  max-width: 18ch;
  font-weight: 500;
}
.tile-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.tile-tagline {
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 12px;
  max-width: 46ch;
}
.tile-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.tile-foot .pillrow { display: flex; gap: 6px; flex-wrap: wrap; }
.tile-cta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.15s, gap 0.2s;
  white-space: nowrap;
}
.tile:hover .tile-cta { color: var(--accent-2); gap: 10px; }
.tile-cta .arrow { display: inline-block; transition: transform 0.25s; }
.tile:hover .tile-cta .arrow { transform: translateX(2px); }

.tile-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tile-pill.accent { color: var(--accent-2); border-color: rgba(198,43,63,0.4); background: rgba(198,43,63,0.1); }
.tile-pill.warn   { color: var(--warn);     border-color: rgba(217,168,58,0.3); background: rgba(217,168,58,0.06); }
.tile-pill.ok     { color: var(--ok);       border-color: rgba(111,191,139,0.3); background: rgba(111,191,139,0.06); }

/* ---------- Hero tile (P01) ---------- */
.tile-hero {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
.tile-hero .tile-title {
  font-size: clamp(30px, 3.2vw, 42px);
  max-width: 16ch;
}
.tile-hero .tile-tagline {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 54ch;
}
.tile-hero .hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile-hero .hero-stat { background: var(--bg-1); padding: 14px 16px; }
.tile-hero .hero-stat .l {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.tile-hero .hero-stat .v {
  font-size: 16px; color: var(--fg);
  margin-top: 6px; letter-spacing: -0.01em;
}
.tile-hero .hero-stat .v em { font-family: var(--font-serif); font-style: italic; color: var(--accent-2); font-weight: 400; }

/* reticle */
.reticle {
  position: absolute;
  top: 24px; right: 24px;
  width: 56px; height: 56px;
  pointer-events: none;
  opacity: 0.5;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: reticle-pulse 3.2s ease-out infinite;
}
.reticle::after { animation-delay: 1.6s; }
@keyframes reticle-pulse {
  0% { transform: scale(0.4); opacity: 0; }
  30% { opacity: 0.7; }
  100% { transform: scale(1.0); opacity: 0; }
}
.reticle .core {
  position: absolute; inset: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- P02 CRA docs list ---------- */
.docs-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex; flex-direction: column;
}
.docs-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; gap: 14px; align-items: center;
}
.docs-list li:last-child { border-bottom: 0; }
.docs-list .docs-k {
  color: var(--accent-2);
  font-weight: 500;
}

/* ---------- P04 QRNG tile ---------- */
.tile-qrng {
  padding: 0;
  display: flex; flex-direction: column;
}
.tile-qrng .qrng-head { padding: 28px 28px 0; flex-shrink: 0; }
.tile-qrng .term-mini {
  flex: 1;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  padding: 16px 22px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--fg-3);
  overflow: hidden;
  position: relative;
  white-space: pre;
}
.tile-qrng .term-mini::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg-1));
  pointer-events: none;
}
.tile-qrng .term-mini .c-c { color: var(--fg-4); }
.tile-qrng .term-mini .c-k { color: var(--accent-2); }
.tile-qrng .term-mini .c-s { color: #a8c0e0; }
.tile-qrng .term-mini .c-n { color: var(--ok); }
.tile-qrng .term-mini .blink { color: var(--accent-2); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.tile-qrng .qrng-foot {
  padding: 16px 28px 26px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}

/* ---------- P05 Dataset stat ---------- */
.data-stat {
  margin-top: 60px;
  display: flex; align-items: baseline; gap: 8px;
}
.data-stat .num {
  font-size: clamp(46px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.data-stat .num em { font-family: var(--font-serif); font-style: italic; color: var(--accent-2); font-weight: 400; }
.data-stat .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data-bars {
  display: flex; gap: 3px; align-items: flex-end;
  margin-top: 26px;
  height: 48px;
}
.data-bars span {
  flex: 1;
  background: var(--line-2);
  border-radius: 1px;
  transition: background 0.3s;
}
[data-product="dataset"]:hover .data-bars span { background: var(--maroon-2); }
[data-product="dataset"]:hover .data-bars span:nth-child(3n) { background: var(--accent); }

/* ---------- P06 LTE bars ---------- */
.lte-bars {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lte-bars-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.lte-bars-row > span { color: var(--fg-4); }
.lte-bars-row .bar {
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.lte-bars-row .bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--maroon-2), var(--accent));
  border-radius: 3px;
}

/* ---------- P03 DDoS tile (split layout) ---------- */
.tile-ddos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
}
.tile-ddos .ddos-text {
  display: flex; flex-direction: column; height: 100%;
}
.tile-ddos .ddos-viz {
  position: relative;
  height: 100%;
  min-height: 180px;
  border-left: 1px dashed var(--line-2);
  padding-left: 22px;
  display: flex; align-items: center; justify-content: center;
}
.radar-svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}
.radar-svg .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar-svg .sweep {
  fill: url(#sweepGrad);
  transform-origin: center;
  animation: radar-spin 4.2s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-svg .blip {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
  opacity: 0;
  animation: blip-flash 4.2s ease-out infinite;
}
.radar-svg .blip.b1 { animation-delay: 0.6s; }
.radar-svg .blip.b2 { animation-delay: 1.9s; }
.radar-svg .blip.b3 { animation-delay: 3.3s; }
@keyframes blip-flash {
  0%, 5% { opacity: 0; transform: scale(0.5); }
  8%     { opacity: 1; transform: scale(1); }
  40%    { opacity: 0; transform: scale(1.6); }
  100%   { opacity: 0; }
}
.radar-svg text {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--fg-4);
  letter-spacing: 0.1em;
}
@media (max-width: 720px) {
  .tile-ddos { grid-template-columns: 1fr; }
  .tile-ddos .ddos-viz { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line-2); padding-top: 22px; min-height: 200px; }
}

/* ---------- Tile reveal ---------- */
.tile {
  opacity: 0;
  transform: translateY(12px);
  animation: tile-reveal 0.5s cubic-bezier(.2,.7,.3,1) forwards;
}
.cat-grid .tile:nth-child(1) { animation-delay: 0.05s; }
.cat-grid .tile:nth-child(2) { animation-delay: 0.15s; }
@keyframes tile-reveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; opacity: 1; transform: none; }
  .reticle::before, .reticle::after, .radar-svg .sweep, .radar-svg .blip,
  .tile-qrng .term-mini .blink { animation: none !important; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ============================================================
   Drawer / detail overlay
   ============================================================ */
.detail-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.78);
  display: flex; align-items: stretch; justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.detail-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  transition: opacity 0.3s, visibility 0s;
}
.detail-panel {
  width: min(1080px, 100vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--line-2);
  overflow-y: auto;
  transform: translateX(40px);
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
  box-shadow: -40px 0 80px rgba(0,0,0,0.6);
}
.detail-overlay.open .detail-panel { transform: translateX(0); }

.detail-head {
  position: sticky; top: 0; z-index: 2;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.detail-head .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.detail-close {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.15s;
  font: inherit;
}
.detail-close:hover { color: var(--fg); border-color: var(--accent-2); background: var(--bg-2); }
.detail-close .esc {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.detail-loading {
  display: flex; gap: 10px;
  padding: 120px 36px;
  justify-content: center;
}
.detail-loading .loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-4);
  animation: loading-bounce 1.1s ease-in-out infinite;
}
.detail-loading .loading-dot:nth-child(2) { animation-delay: 0.15s; }
.detail-loading .loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes loading-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-6px); }
}
.detail-error {
  padding: 80px 36px;
  color: var(--fg-3);
  text-align: center;
}

/* ============================================================
   Drawer content (used by partial files)
   ============================================================ */
.pd-drawer { padding: 0 0 64px; }

/* Hero */
.pd-drawer-hero {
  padding: 40px 36px 36px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pd-drawer-hero .breadcrumb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.pd-drawer-hero h2 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.028em; line-height: 1.0;
  font-weight: 500;
  max-width: 18ch;
}
.pd-drawer-hero h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.pd-drawer-hero .tagline {
  margin-top: 20px;
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.45;
  max-width: 58ch;
}
.pd-drawer-hero .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: end;
}
.pd-drawer-aside {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pd-drawer-aside .price {
  font-size: 32px; letter-spacing: -0.02em;
  font-weight: 500; color: var(--fg);
  font-family: var(--font-serif); font-style: italic;
  line-height: 1.1;
}
.pd-drawer-aside .price-lbl {
  color: var(--fg-3); font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 6px;
}
.pd-drawer-aside .meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 20px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pd-drawer-aside .meta-grid .k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 4px;
}
.pd-drawer-aside .meta-grid .v { color: var(--fg); font-size: 13.5px; }
.pd-drawer-aside .actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 22px;
}

@media (max-width: 800px) {
  .pd-drawer-hero { padding: 32px 22px 28px; }
  .pd-drawer-hero .grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Generic drawer section */
.pd-section {
  padding: 44px 36px;
  border-bottom: 1px solid var(--line);
}
.pd-section:last-of-type { border-bottom: 0; }
.pd-section-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pd-section-label .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-2);
}
.pd-section-label .eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.pd-section-label .muted { color: var(--fg-4); }
.pd-section h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 500;
  max-width: 26ch;
}
.pd-section h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.pd-section .lead {
  margin-top: 16px;
  color: var(--fg-2);
  max-width: 64ch;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .pd-section { padding: 36px 22px; }
}

/* Deliverables grid (3-up) */
.pd-deliverable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.pd-deliverable .dl {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.pd-deliverable .dl .icn {
  width: 26px; height: 26px;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.pd-deliverable .dl h4 {
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.pd-deliverable .dl p {
  font-size: 13px; color: var(--fg-3);
  line-height: 1.55; margin: 0;
}
@media (max-width: 800px) {
  .pd-deliverable { grid-template-columns: 1fr; }
}

/* Process grid (4-up) */
.pd-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
}
.pd-process > .step {
  background: var(--bg-1);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px;
}
.pd-process .n {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; color: var(--accent-2);
  text-transform: uppercase;
}
.pd-process h4 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.pd-process p { font-size: 12.5px; color: var(--fg-3); line-height: 1.55; margin: 0; }
.pd-process .days {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-4); letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 900px) { .pd-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pd-process { grid-template-columns: 1fr; } }

/* 3-step process (for products with fewer phases) */
.pd-process.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pd-process.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pd-process.three { grid-template-columns: 1fr; } }

/* Checklist grid */
.pd-checklist {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
  margin-top: 22px;
}
.pd-checklist .check-item {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}
.pd-checklist .check-item .mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: rgba(111, 191, 139, 0.08);
  border: 1px solid rgba(111, 191, 139, 0.3);
  display: grid; place-items: center;
  color: var(--ok); font-size: 11px;
}
.pd-checklist .check-item strong {
  display: block; color: var(--fg); margin-bottom: 2px; font-weight: 500;
  font-size: 14px;
}
.pd-checklist .check-item span {
  color: var(--fg-3); font-size: 12.5px; line-height: 1.5;
}
@media (max-width: 800px) { .pd-checklist { grid-template-columns: 1fr; } }

/* FAQ */
.pd-faq { margin-top: 22px; }
.pd-faq .faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.pd-faq .faq-item:first-child { border-top: 1px solid var(--line); }
.pd-faq .faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
  font-size: 16px; color: var(--fg);
  font-weight: 500; letter-spacing: -0.01em;
}
.pd-faq .faq-item summary::-webkit-details-marker { display: none; }
.pd-faq .faq-item summary .plus {
  font-family: var(--font-mono); font-size: 18px; color: var(--fg-3);
  transition: transform 0.2s;
}
.pd-faq .faq-item[open] summary .plus { transform: rotate(45deg); color: var(--accent-2); }
.pd-faq .faq-item .answer {
  color: var(--fg-2); font-size: 14px; line-height: 1.65;
  margin-top: 12px; max-width: 72ch;
}

/* In-drawer CTA */
.pd-cta {
  margin: 36px 36px 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.pd-cta h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 26ch;
}
.pd-cta h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.pd-cta p { color: var(--fg-3); margin-top: 8px; font-size: 14px; }
@media (max-width: 800px) {
  .pd-cta { margin: 28px 22px 0; padding: 24px; }
  /* Stack the buttons under the text on phones so the second CTA
     doesn't overflow the drawer width. */
  .pd-cta > .flex {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .pd-cta > .flex .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Embedded code terminal (QRNG) */
.pd-terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
}
.pd-terminal .bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-3); letter-spacing: 0.04em;
  background: var(--bg-2);
}
.pd-terminal .bar .dots { display: flex; gap: 5px; margin-right: 8px; }
.pd-terminal .bar .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-2);
}
.pd-terminal pre {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
  color: var(--fg-2);
  margin: 0;
}
.pd-terminal .c-c { color: var(--fg-4); }
.pd-terminal .c-k { color: var(--accent-2); }
.pd-terminal .c-s { color: #a8c0e0; }
.pd-terminal .c-n { color: var(--ok); }
.pd-terminal .c-p { color: var(--warn); }

/* "Schema" table for dataset */
.pd-schema {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pd-schema thead {
  background: var(--bg-1);
}
.pd-schema th, .pd-schema td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pd-schema th {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}
.pd-schema td.k {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-2);
}
.pd-schema td.t {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ok);
}
.pd-schema tr:last-child td { border-bottom: 0; }
