/* ============================================================
   Michibiki AI Systems — Interactive PLG Sandbox & Self-Serve Studio
   ============================================================ */

:root {
  --color-shokucure: #34d399;
  --gradient-shokucure: linear-gradient(135deg, #34d399, #10b981);
}

.gradient-text-shokucure {
  background: var(--gradient-shokucure);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag-shokucure {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* ---------- Hero PLG Action Strip ---------- */
.plg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.plg-btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #041019 !important;
  background: linear-gradient(135deg, #2ad4ff 0%, #34d399 100%);
  box-shadow: 0 10px 32px rgba(42, 212, 255, 0.32);
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none !important;
}

.plg-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(52, 211, 153, 0.45);
}

.plg-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none !important;
}

.plg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #2ad4ff;
}

.plg-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.plg-trust-pill {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(17, 26, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Live Sandbox Shell ---------- */
.plg-sandbox-wrap {
  background: radial-gradient(circle at 15% 0%, rgba(42, 212, 255, 0.11), transparent 45%),
              radial-gradient(circle at 85% 100%, rgba(52, 211, 153, 0.1), transparent 45%),
              #0b1320;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  margin-top: 28px;
}

.plg-window-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(6, 11, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plg-win-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.plg-win-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.plg-win-dots i:nth-child(1) { background: #ef4444; }
.plg-win-dots i:nth-child(2) { background: #f59e0b; }
.plg-win-dots i:nth-child(3) { background: #10b981; }

.plg-win-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 8px;
}

.plg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plg-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-jp);
}

.plg-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.plg-tab-btn.is-active[data-plg-tab="shiseviz"] {
  background: linear-gradient(135deg, #2ad4ff, #6366f1);
  border-color: transparent;
  color: #041019;
  box-shadow: 0 4px 18px rgba(42, 212, 255, 0.35);
}

.plg-tab-btn.is-active[data-plg-tab="shokucure"] {
  background: linear-gradient(135deg, #34d399, #059669);
  border-color: transparent;
  color: #031710;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.35);
}

.plg-tab-btn.is-active[data-plg-tab="logiction"] {
  background: linear-gradient(135deg, #5b9cf6, #2563eb);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(91, 156, 246, 0.35);
}

.plg-stage {
  padding: 26px 24px;
}

/* ---------- Sandbox Sub-Controls ---------- */
.plg-ctrl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.plg-seg-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plg-seg-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-jp);
}

.plg-seg-btn.is-on {
  background: rgba(42, 212, 255, 0.16);
  border-color: #2ad4ff;
  color: #ffffff;
}

.plg-seg-btn.is-on-emerald {
  background: rgba(52, 211, 153, 0.18);
  border-color: #34d399;
  color: #ffffff;
}

/* ---------- Grid 35% : 65% (SHISEVIZ v10 Real Report Spec!) ---------- */
.plg-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .plg-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .plg-stage {
    padding: 16px 12px;
  }
}

/* Visual Scan Canvas (Zero text on body per SHISEVIZ v10 spec) */
.plg-scan-box {
  position: relative;
  background: linear-gradient(180deg, #07111f 0%, #0d1d33 100%);
  border: 1px solid rgba(42, 212, 255, 0.28);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 360px;
}

@keyframes plgScanBeam {
  0% { top: 6%; opacity: 0.2; }
  50% { top: 88%; opacity: 0.85; }
  100% { top: 6%; opacity: 0.2; }
}

.plg-scan-laser {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2ad4ff, transparent);
  box-shadow: 0 0 14px #2ad4ff;
  animation: plgScanBeam 3.6s ease-in-out infinite;
  pointer-events: none;
}

.plg-scan-BoxLegend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* Right White/Clean Report Card (SHISEVIZ v10 Authentic Report Feel) */
.plg-report-panel {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.plg-rep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.plg-rep-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

.plg-score-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.plg-score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.plg-score-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.plg-gauge-track {
  position: relative;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: visible;
  margin: 10px 0 18px;
}

.plg-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.plg-pass-marker {
  position: absolute;
  left: 75%;
  top: -4px;
  bottom: -4px;
  width: 2.5px;
  background: #0f172a;
}

.plg-pass-label {
  position: absolute;
  left: 75%;
  top: 15px;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.plg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 560px) {
  .plg-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.plg-metric-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.plg-talk-box {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #1e3a8a;
}

/* ---------- Sandbox Conversion Footer Bar ---------- */
.plg-cta-bar {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plg-cta-copy strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.plg-cta-copy span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.plg-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plg-btn-selfserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.plg-btn-selfserve:hover {
  transform: translateY(-2px);
}

/* ---------- ShokuCure Nutrient Bars ---------- */
.plg-nutri-row {
  margin-bottom: 9px;
}

.plg-nutri-hd {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.plg-nutri-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.plg-nutri-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- Logiction Interactive Sliders ---------- */
.plg-slider-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.plg-slider-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plg-slider-input {
  width: 100%;
  accent-color: #2ad4ff;
  cursor: pointer;
}

/* ---------- 30-Second Clinic AI Prescription Diagnoser ---------- */
.plg-diag-card {
  background: linear-gradient(145deg, #0d1726 0%, #111f35 100%);
  border: 1px solid rgba(42, 212, 255, 0.25);
  border-radius: 22px;
  padding: 32px 28px;
  margin-top: 32px;
}

.plg-diag-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
}

@media (max-width: 768px) {
  .plg-diag-choices {
    grid-template-columns: 1fr;
  }
  .plg-diag-card {
    padding: 22px 16px;
  }
}

.plg-diag-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-jp);
}

.plg-diag-opt:hover {
  border-color: rgba(42, 212, 255, 0.6);
}

.plg-diag-opt.is-selected {
  background: rgba(42, 212, 255, 0.13);
  border-color: #2ad4ff;
  box-shadow: 0 8px 24px rgba(42, 212, 255, 0.18);
}

.plg-diag-opt strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.plg-diag-opt span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  display: block;
}

.plg-diag-result {
  background: rgba(6, 11, 20, 0.82);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 16px;
  padding: 22px;
}

/* Product Card Shokucure Accent */
.product-card.shokucure {
  border-top: 3px solid var(--color-shokucure);
}


/* ---------- Mobile Header & Typography Polish (375px / 390px) ---------- */
.hero-title,
.section-title {
  text-wrap: balance;
  word-break: auto-phrase;
}

@media (max-width: 768px) {
  .top-hero {
    min-height: auto !important;
    padding-top: 98px !important;
    padding-bottom: 40px !important;
  }

  .plg-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
  }

  .plg-btn-glow,
  .plg-btn-ghost {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 14.5px;
    line-height: 1.35;
    box-sizing: border-box;
    text-align: center;
  }

  .plg-trust-pills {
    gap: 6px;
    margin-top: 16px;
  }

  .plg-trust-pill {
    font-size: 11px;
    padding: 5px 11px;
  }

  .plg-sandbox-wrap {
    border-radius: 18px;
    max-width: 100%;
  }

  .plg-window-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .plg-win-label {
    font-size: 10.5px;
  }

  .plg-tabs {
    width: 100%;
    flex-direction: column;
    gap: 6px;
  }

  .plg-tab-btn {
    width: 100%;
    text-align: left;
    font-size: 12px;
    padding: 9px 14px;
  }

  .plg-seg-group {
    width: 100%;
    gap: 6px;
  }

  .plg-seg-btn {
    font-size: 11.5px;
    padding: 7px 10px;
    flex: 1 1 auto;
    text-align: center;
  }

  .plg-scan-box {
    min-height: 280px;
    padding: 12px;
  }

  .plg-scan-box svg {
    max-width: 100%;
    height: auto;
  }

  .plg-report-panel {
    padding: 15px 13px;
  }

  .plg-score-num {
    font-size: 28px;
  }

  .plg-cta-bar {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .plg-cta-btns {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .plg-btn-selfserve {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 13.5px;
    text-align: center;
  }

  .plg-diag-result {
    padding: 16px 14px;
  }
}
