/**
 * YPYM Observatory — Radius Specialized Visual & Simulator Stylesheet
 * High-precision local rank decay visualization, concentric circle radar canvas,
 * competitor intelligence breakdown, bento USPs, onboarding fixes, and terminal styling.
 */

/* ==========================================================================
   1. Simulator Container & Frame Bounds
   ========================================================================== */
.radius-sim-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

/* Simulator Controls Bar */
.radius-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .radius-sim-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.radius-sim-query-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.radius-sim-query-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
}

.radius-sim-input {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.radius-sim-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.radius-sim-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.radius-sim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.radius-sim-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.radius-sim-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* 3-Column Simulation Area: Proportional Ratio (Card 1: Map 40% | Card 2: List 30% | Card 3: List 30%) */
.radius-sim-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr;
  gap: 16px;
  padding: 18px;
  background: #ffffff;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-items: stretch;
}

@media (max-width: 1180px) {
  .radius-sim-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
  .radius-brands-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .radius-sim-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .radius-brands-col {
    grid-column: span 1;
  }
}

/* Left Radar Canvas (Expanded to fill column height and visual balance) */
.radius-radar-canvas {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 520px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.radar-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
  background-size: 28px 28px;
}

.radar-axis-x, .radar-axis-y {
  position: absolute;
  background: rgba(148, 163, 184, 0.35);
}
.radar-axis-x { width: 100%; height: 1px; top: 50%; left: 0; }
.radar-axis-y { height: 100%; width: 1px; left: 50%; top: 0; }

/* Concentric Distance Rings */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radar-ring--50m   { width: 64px; height: 64px; }
.radar-ring--100m  { width: 124px; height: 124px; }
.radar-ring--250m  { width: 200px; height: 200px; }
.radar-ring--500m  { width: 290px; height: 290px; }
.radar-ring--1000m { width: 390px; height: 390px; border-style: solid; border-color: rgba(148, 163, 184, 0.3); }

.radar-label {
  position: absolute;
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.radar-label--50m   { left: calc(50% + 34px); }
.radar-label--100m  { left: calc(50% + 64px); }
.radar-label--250m  { left: calc(50% + 104px); }
.radar-label--500m  { left: calc(50% + 148px); }
.radar-label--1000m { left: calc(50% + 198px); }

/* Center Marker (Your Business) */
.radar-center-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #0284c7;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #0284c7, 0 3px 8px rgba(2, 132, 199, 0.5);
  z-index: 5;
}

.radar-pin-label {
  position: absolute;
  bottom: calc(50% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Competitor Pins with Labels */
.radar-comp-pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  z-index: 4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.radar-comp-pin--1 { top: 43%; left: 59%; background: #10b981; } /* Anomali 85m */
.radar-comp-pin--2 { top: 35%; left: 38%; background: #f59e0b; } /* Fore Coffee 180m */
.radar-comp-pin--3 { top: 64%; left: 70%; background: #8b5cf6; } /* Starbucks 320m */
.radar-comp-pin--4 { top: 20%; left: 66%; background: #ec4899; } /* Kopi Kenangan 440m */
.radar-comp-pin--5 { top: 80%; left: 28%; background: #64748b; } /* Point Coffee 710m */

.radar-comp-label {
  position: absolute;
  font-size: 9px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  color: #334155;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.radar-comp-label--1 { top: 40%; left: 61%; }
.radar-comp-label--2 { top: 32%; left: 26%; }
.radar-comp-label--3 { top: 65%; left: 72%; }
.radar-comp-label--4 { top: 17%; left: 68%; }
.radar-comp-label--5 { top: 82%; left: 20%; }

/* Scanning Wave Animation */
.radar-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.15);
  border: 2px solid #0284c7;
  opacity: 0;
  pointer-events: none;
}

.radar-pulse-ring.is-active {
  animation: radarWaveExpand 2s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}

@keyframes radarWaveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }
  100% {
    width: 380px;
    height: 380px;
    opacity: 0;
  }
}

/* ==========================================================================
   2. Open-Canvas Perimeter Audit Directory & Local SERP Rankings (Calm-Tech)
   ========================================================================== */

/* Col 2: Perimeter List */
.radius-results-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-right: 12px;
  border-right: 1px solid #f1f5f9;
}

@media (max-width: 1180px) {
  .radius-results-panel {
    border-right: none;
    padding-right: 0;
  }
}

.radius-results-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.radius-results-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.radius-results-desc {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* Open-Canvas Perimeter List (Zero Nested Cards) */
.perimeter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.perimeter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 160ms ease;
  box-sizing: border-box;
}

.perimeter-row:hover {
  background: #f8fafc;
}

.perimeter-row.is-active {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.perimeter-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perimeter-dist {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.perimeter-context {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.perimeter-row-rank {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.perimeter-rank-num {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.perimeter-status-text {
  font-size: 0.725rem;
  font-weight: 600;
  color: #0f172a;
}

.perimeter-status-text--decay {
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   2b. Col 3: Competing Businesses & Local SERP Rankings (Open Table)
   ========================================================================== */
.radius-brands-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-left: 4px;
}

.radius-brands-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.radius-brands-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.radius-brands-desc {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* Open-Canvas Competitor List */
.serp-brand-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.serp-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  border-radius: 6px;
  transition: background 150ms ease;
  box-sizing: border-box;
}

.serp-brand-row:last-child {
  border-bottom: none;
}

.serp-brand-row:hover {
  background: #fafafa;
}

.serp-brand-row.is-target {
  background: #f8fafc;
}

.serp-rank {
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 20px;
  line-height: 1.35;
  text-align: center;
  flex-shrink: 0;
}

.serp-brand-row.is-target .serp-rank {
  color: #0f172a;
}

.serp-brand-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.serp-brand-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.serp-brand-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serp-your-store {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  margin-left: 4px;
}

.serp-brand-dist {
  font-size: 0.725rem;
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
}

.serp-brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
}

.serp-divider {
  color: #cbd5e1;
  font-size: 10px;
}

.serp-channels-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.725rem;
  color: #64748b;
  margin-top: 1px;
  flex-wrap: wrap;
}

.serp-channel-item {
  color: #475569;
  font-weight: 500;
}

.serp-channel-dot {
  color: #cbd5e1;
  font-size: 7px;
}

/* ==========================================================================
   2c. Developer API & Microservice Architecture (Copied from radius.astro)
   ========================================================================== */
.omni-spatial-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.035) 0%, transparent 65%) !important;
  border-top: 1px solid #e2e8f0;
}

.omni-spatial-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.omni-spatial-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 8px;
}

.omni-spatial-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  color: #64748B;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* 3D Scene Wrapper with Perspective Boundary */
.spatial-3d-scene {
  perspective: 1500px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  position: relative;
  max-width: 896px;
  margin: 0 auto 50px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.spatial-3d-stage {
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.spatial-3d-scene.is-hovered .spatial-3d-stage {
  transition: none;
}

/* SVG Connection Lines Layer (Force stroke rendering, NO fills) */
.spatial-3d-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(-15px);
  z-index: 5;
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 768px) {
  .spatial-3d-svg-lines {
    display: block;
  }
}

.spatial-3d-svg-lines path {
  fill: none !important;
  stroke: #CBD5E1 !important;
  stroke-width: 1.2px !important;
  stroke-dasharray: 6 6;
  animation: spatial-flow-dash 30s linear infinite;
}

@keyframes spatial-flow-dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Channel Cards Grid */
.spatial-channels-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
  column-gap: 80px;
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 768px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .spatial-channels-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.spatial-channels-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .spatial-channels-col--right {
    align-items: flex-end;
  }
}

/* Channel Cards Styling */
.spatial-3d-card {
  padding: 10px 16px;
  border-radius: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.card-w-210 { width: 210px; }
.card-w-215 { width: 215px; }
.card-w-220 { width: 220px; }
.card-w-225 { width: 225px; }
.card-w-235 { width: 235px; }
.card-w-240 { width: 240px; }

@media (max-width: 767px) {
  .card-w-210, .card-w-215, .card-w-220, .card-w-225, .card-w-235, .card-w-240 {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .spatial-3d-card {
    transform: translateZ(35px);
  }
  .spatial-3d-card:hover {
    transform: translateZ(65px) scale(1.05);
    border-color: #2563EB !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03) !important;
  }
}

.spatial-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.spatial-icon.icon-blue { color: #3b82f6; }
.spatial-icon.icon-black { color: #010101; }
.spatial-icon.icon-ig { color: #E1306C; }
.spatial-icon.icon-gofood { color: #00AA13; }
.spatial-icon.icon-shopee { color: #EE4D2D; }
.spatial-icon.icon-tokopedia { color: #42B549; }
.spatial-icon.icon-fb { color: #1877F2; }
.spatial-icon.icon-slate { color: #64748B; }

.spatial-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Badge: Black Retainable Pill Node */
.spatial-3d-center-badge {
  position: relative;
  z-index: 20;
  margin: 24px auto;
  width: fit-content;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

@media (min-width: 768px) {
  .spatial-3d-center-badge {
    position: absolute;
    left: 50%;
    top: 115px;
    margin: 0;
    transform: translate3d(-50%, 0, 80px) !important;
    filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.15));
  }
  .spatial-3d-scene:hover .spatial-3d-center-badge {
    filter: drop-shadow(0 25px 30px rgba(15, 23, 42, 0.3));
  }
}

.spatial-center-pill {
  padding: 10px 20px;
  border-radius: 9999px;
  background-color: #0F172A;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #334155;
}

.spatial-center-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Branching Line Down to 3 Cards */
.spatial-branch-line {
  width: 2px;
  height: 32px;
  background-color: #CBD5E1;
  margin: 0 auto 24px;
  display: none;
}

@media (min-width: 768px) {
  .spatial-branch-line {
    display: block;
  }
}

/* Bottom Tier: 3 Technical Product Why Cards */
.spatial-bottom-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .spatial-bottom-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spatial-bottom-card {
  padding: 24px;
  border-radius: 24px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.spatial-bottom-card--dark {
  background-color: #0F172A !important;
  border-color: #1E293B !important;
}

.spatial-bottom-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px;
  line-height: 1.35;
}

.spatial-text-white {
  color: #FFFFFF !important;
}

.spatial-bottom-card-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0 0 24px;
}

.spatial-text-slate {
  color: #94A3B8 !important;
}

.spatial-bottom-table-box {
  padding-top: 8px;
  margin-top: auto;
  width: 100%;
}

.spatial-status-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.spatial-status-table thead tr {
  border-bottom: 1px solid #E2E8F0;
}

.spatial-status-table tbody tr:not(:last-child) {
  border-bottom: 1px solid #E2E8F0;
}

.table-th-left {
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  text-align: left;
}

.table-th-right {
  padding: 10px 0;
  text-align: right;
  font-size: 10px;
  font-weight: 600;
}

.table-td-label {
  padding: 8px 0;
  font-size: 11px;
  color: #475569;
}

.table-td-val {
  padding: 8px 0;
  text-align: right;
  font-size: 10px;
  color: #0F172A;
  font-weight: 500;
}

.table-text-emerald { color: #10B981 !important; }
.table-text-blue { color: #2563EB !important; }

/* Dark Card Code Box */
.spatial-code-box {
  padding: 14px;
  border-radius: 16px;
  background-color: #1E293B;
  border: 1px solid #334155;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  box-sizing: border-box;
}

.spatial-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #94A3B8;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #334155;
}

.spatial-code-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #E2E8F0;
  line-height: 1.5;
}

.code-indent {
  padding-left: 12px;
}

.code-key { color: #94A3B8; }
.code-str { color: #38BDF8; }
.code-num { color: #FDE047; }
.code-mint { color: #A7F3D0; }

/* Raw JSON Panel */
.radius-json-panel {
  padding: 20px;
  background: #0b1120;
  border-radius: 0 0 14px 14px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: auto;
}

.radius-json-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.radius-json-code .token-key { color: #38bdf8; }
.radius-json-code .token-string { color: #86efac; }
.radius-json-code .token-number { color: #fde047; }
.radius-json-code .token-boolean { color: #f472b6; }

/* ==========================================================================
   3. Bento Grid / Product USPs Section
   ========================================================================== */
.usp-section {
  padding: 80px 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.usp-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}

.usp-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 14px;
  line-height: 1.2;
}

.usp-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.usp-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.usp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

.usp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.35;
}

.usp-card-desc {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   4. Onboarding Step 1 Specs Grid & Component Fixes
   ========================================================================== */
.onboarding-specs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .onboarding-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

.onboarding-spec-box {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 16px 14px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}

.onboarding-spec-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background-color: #e6f3ff !important;
  color: #0284f6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
}

.onboarding-spec-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.onboarding-spec-title {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 4px !important;
}

.onboarding-spec-text {
  font-size: 0.7rem !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
}

.onboarding-choice-box {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  background-color: #f9fafb !important;
  border: 1.5px solid #000000 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-sizing: border-box;
}

.onboarding-radio-indicator {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 2px solid #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.onboarding-radio-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #000000 !important;
}

.onboarding-choice-title {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.onboarding-choice-desc {
  font-size: 0.775rem !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

/* ==========================================================================
   5. Terminal & Syntax Highlighting Tokens (Matching index.html)
   ========================================================================== */
.c-comment { color: #64748B; font-style: italic; }
.c-keyword { color: #F59E0B; font-weight: 600; }
.c-func    { color: #60A5FA; }
.c-string  { color: #34D399; }
.c-var     { color: #F87171; }

.terminal-cursor {
  display: inline-block;
  color: #38BDF8;
  animation: terminalBlink 1s infinite;
  font-weight: bold;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-pane {
  display: none;
}

.terminal-pane.is-active {
  display: block;
}

/* Onboarding Success Lock */
.onboarding-success-icon {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 50% !important;
  background-color: #ecfdf5 !important;
  color: #10b981 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
}

.onboarding-success-icon svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
}

/* FAQ Chevron Lock */
.faq-chevron {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  transition: transform 200ms ease !important;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg) !important;
}

.faq-content {
  display: none;
}

.faq-item.is-open .faq-content {
  display: block;
}
