/* ════════════════════════════════════════════
   SCOPE PAGE — Dewdrop-specific components
   Depends on tokens.css + components.css
   Used by: scope/index.html
   ════════════════════════════════════════════ */

/* ── Hero SVG background ── */
.hero-svg-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-svg-bg svg { width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(10,6,33,0.10) 0%, rgba(10,6,33,0.45) 60%, rgba(10,6,33,0.88) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--text-secondary);
}
.feature-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-top: 7px; flex-shrink: 0;
}
.feature-list li strong { color: var(--text-primary); }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 130px 1px 1fr; gap: 0 var(--sp-3); align-items: start; }
.timeline-date { text-align: right; padding: 4px 0; font-size: 12px; color: var(--text-tertiary); font-weight: 590; letter-spacing: 0.3px; }
.timeline-line {
  position: relative; background: linear-gradient(180deg, var(--glass-border), var(--glass-border));
  width: 1px; align-self: stretch; min-height: 80px;
}
.timeline-line::before {
  content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.timeline-content { padding: 0 0 var(--sp-4); }
.timeline-title { font-size: 16px; font-weight: 590; color: var(--text-primary); margin-bottom: 4px; }
.timeline-desc { font-size: 14px; color: var(--text-tertiary); line-height: 1.5; margin-bottom: 8px; }
.timeline-amount { font-size: 15px; font-weight: 590; color: var(--gold); }

/* ── Table ── */
.scope-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.scope-table th {
  text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 590;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-tertiary);
  border-bottom: 1px solid var(--glass-border);
}
.scope-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary); vertical-align: top;
}
.scope-table td:first-child { color: var(--text-primary); font-weight: 510; }
.scope-table tr:last-child td { border-bottom: none; }
.check { color: #34C759; }
.ex { color: var(--text-tertiary); }

/* ── Pricing card ── */
.pricing-card {
  background: var(--glass-bg-deep); border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-xl); padding: var(--sp-4); position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--dew-forest), var(--dew-sage), var(--cyan));
}
.pricing-total {
  font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -1.5px;
  color: var(--text-primary); line-height: 1;
}
.pricing-total span { font-size: 20px; color: var(--text-secondary); font-weight: 400; letter-spacing: 0; }

/* ── Roadmap phase ── */
.roadmap-phase {
  padding: var(--sp-3); background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg);
}
.phase-label { font-size: 11px; font-weight: 590; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.phase-label.v1  { color: var(--dew-sage); }
.phase-label.v2  { color: var(--cyan); }
.phase-label.v3  { color: var(--violet-bright); }
.phase-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.phase-desc { font-size: 14px; color: var(--text-tertiary); line-height: 1.5; }

/* ── Variation cards ── */
.variation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 768px) { .variation-grid { grid-template-columns: 1fr; } }
.variation-card {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--glass-border);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.variation-card:hover { border-color: var(--glass-border-hi); transform: translateY(-2px); }
.variation-header { padding: var(--sp-3); }
.var-a .variation-header { background: linear-gradient(160deg, rgba(45,106,79,0.25) 0%, rgba(82,183,136,0.10) 100%); border-bottom: 1px solid rgba(45,106,79,0.25); }
.var-b .variation-header { background: linear-gradient(160deg, rgba(97,63,231,0.20) 0%, rgba(90,200,250,0.08) 100%); border-bottom: 1px solid rgba(97,63,231,0.20); }
.variation-body { padding: var(--sp-3); background: var(--glass-bg); }

/* ── Phone mockup ── */
.phone-mockup {
  width: 180px; height: 340px; border-radius: 28px; margin: var(--sp-4) auto;
  position: relative; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-classic { background: #FEFAE0; color: #2C3E2D; }
.phone-quantum { background: linear-gradient(160deg, #0A0621 0%, #131A36 100%); }
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px; background: rgba(0,0,0,0.8); border-radius: 3px;
}
.phone-classic .phone-titlebar { padding: 28px 14px 8px; font-size: 17px; font-weight: 700; color: #2C3E2D; }
.phone-quantum .phone-titlebar { padding: 28px 14px 8px; font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.95); }
.plant-card-name { font-size: 13px; font-weight: 590; }
.plant-card-sub { font-size: 10px; color: #6B7C6D; margin-top: 2px; }
.plant-card-pill { display: inline-block; font-size: 9px; font-weight: 590; padding: 2px 7px; border-radius: 99px; margin-top: 5px; }
.pill-healthy  { background: #D8F3DC; color: #2D6A4F; }
.pill-due      { background: #FFE8A3; color: #7A5C00; }
.pill-overdue  { background: #FFDAD6; color: #BC4749; }

/* Quantum phone cards */
.plant-card-q { margin: 6px 10px; padding: 10px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(90,200,250,0.15); border-radius: 14px; }
.plant-card-name-q { font-size: 13px; font-weight: 590; color: rgba(255,255,255,0.95); }
.plant-card-sub-q { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.pill-q-healthy  { background: rgba(52,199,89,0.18); color: #34C759; font-size: 9px; font-weight: 590; padding: 2px 7px; border-radius: 99px; display: inline-block; margin-top: 5px; }
.pill-q-due      { background: rgba(255,149,0,0.18); color: #FF9500; font-size: 9px; font-weight: 590; padding: 2px 7px; border-radius: 99px; display: inline-block; margin-top: 5px; }
.pill-q-overdue  { background: rgba(255,59,48,0.18); color: #FF6B6E; font-size: 9px; font-weight: 590; padding: 2px 7px; border-radius: 99px; display: inline-block; margin-top: 5px; }

.glow-dot { position: absolute; border-radius: 50%; animation: scopePulse 4s ease-in-out infinite; }
@keyframes scopePulse { 0%,100%{opacity:0.4;transform:scale(1)} 50%{opacity:0.8;transform:scale(1.15)} }

/* ── Swatches ── */
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.swatch { width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0; }
.swatch-label { font-size: 10px; color: var(--text-tertiary); text-align: center; margin-top: 4px; font-weight: 510; }
.swatch-group { display: flex; flex-direction: column; align-items: center; }

/* ── QA ── */
.qa-item { padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.qa-item:last-child { border-bottom: none; }
.qa-question { font-size: 15px; font-weight: 590; color: var(--text-primary); margin-bottom: 6px; display: flex; align-items: flex-start; gap: 10px; }
.qa-question::before {
  content: 'Q'; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: rgba(90,200,250,0.15); color: var(--cyan); flex-shrink: 0; margin-top: 1px;
}
.qa-answer { font-size: 14px; color: var(--text-secondary); line-height: 1.55; padding-left: 32px; }

/* ── Callout ── */
.callout {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  padding: var(--sp-3); border-radius: var(--r-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout p { margin: 0; font-size: 14px; }
.callout-warn { background: rgba(255,149,0,0.05); border-color: rgba(255,149,0,0.15); }
.callout-success { background: rgba(52,199,89,0.05); border-color: rgba(52,199,89,0.15); }
.callout-info { background: rgba(90,200,250,0.05); border-color: rgba(90,200,250,0.15); }
.callout-approved { background: rgba(45,106,79,0.08); border-color: rgba(45,106,79,0.25); }

/* ── CTA block ── */
.cta-block { text-align: center; padding: var(--sp-8) 0; }

/* ── v2 badge ── */
.v2-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(45,106,79,0.25), rgba(90,200,250,0.12));
  border: 1px solid rgba(52,199,89,0.30); border-radius: var(--r-pill);
  padding: 6px 16px; font-size: 12px; font-weight: 590; color: var(--success);
}
.v2-badge::before { content: '✓'; }

/* ── Sidebar layout ── */
.doc-layout {
  display: grid; grid-template-columns: 195px 1fr;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--section-x) var(--sp-10); gap: var(--sp-6); align-items: start;
}
.sidebar {
  display: block; position: sticky; top: 72px;
  height: calc(100vh - 80px); overflow-y: auto;
  padding: var(--sp-3) 0; border-right: 1px solid var(--glass-border);
  scrollbar-width: thin; scrollbar-color: rgba(90,200,250,0.15) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(90,200,250,0.18); border-radius: 2px; }
.sidebar-label { font-size: 10px; font-weight: 590; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); padding: 0 var(--sp-2) var(--sp-1); }
.sidebar a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px var(--sp-2); color: var(--text-tertiary);
  text-decoration: none; font-size: 12px; font-weight: 510;
  border-left: 2px solid transparent; transition: all 0.18s; line-height: 1.35;
}
.sidebar a:hover, .sidebar a.active { color: var(--text-primary); background: rgba(90,200,250,0.04); border-left-color: var(--cyan); }
.sidebar-num { font-size: 10px; color: rgba(90,200,250,0.35); min-width: 18px; font-weight: 590; }
.sidebar-divider { height: 1px; background: var(--glass-border); margin: 4px var(--sp-2); }

.doc-content { min-width: 0; padding: var(--sp-5) 0 var(--sp-10); }
.doc-content > section { padding: var(--sp-6) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.doc-content > section:last-of-type { border-bottom: none; }
.doc-content .container { padding: 0; max-width: none; margin: 0; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media print {
  .sidebar, nav, #site-loader { display: none; }
  .doc-layout { grid-template-columns: 1fr; }
}
