/* ==========================================================================
   index-extras.css — index.html-specific overrides and unique sections.

   Loaded AFTER landing.css. Contains:
     - Overrides where index.html intentionally diverges from the shared rules
       (e.g. 4-column how-steps, 3-column pricing grid)
     - Interactive demo section (.demo-*)
     - 3D preview section (.preview-3d-*)
     - Workflow section (.workflow*)
     - Pricing card variant (.pricing-card-new, .pricing-price-new, etc.)
   ========================================================================== */

/* ========== SHOWCASE TAB OVERRIDE ========== */
/* index.html uses wider tab padding than the shared default */
.showcase-tab {
  padding: 10px 24px;
}

/* index.html adds margin-top to check icons in showcase features */
.showcase-features li .check {
  margin-top: 2px;
}

/* ========== HOW-STEPS OVERRIDE (4 columns instead of 3) ========== */
.how-steps {
  grid-template-columns: repeat(4, 1fr);
}

.how-steps::before {
  left: calc(12.5% + 36px);
  right: calc(12.5% + 36px);
}

/* ========== PRICING OVERRIDES ========== */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px;
}

.pricing-desc {
  min-height: 7.5em;
}

/* New pricing card variant used on index.html */
.pricing-card-new {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.pricing-card-new .btn {
  margin-top: auto;
}

.pricing-card-new:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card-new.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  position: relative;
}

.pricing-price-new {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-period-new {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features-new {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features-new li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.pricing-features-new .check {
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.pricing-card-new .btn { width: 100%; justify-content: center; }

/* ========== INTERACTIVE DEMO ========== */
.demo-section { padding: 80px 0; background: var(--bg-white); }
.demo-header { text-align: center; margin-bottom: 40px; }
.demo-container { display: flex; justify-content: center; }
.demo-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 1060px;
}
.demo-canvas-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.demo-main-canvas {
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.demo-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-thumb {
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.demo-thumb:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.demo-thumb.active {
  outline-color: #E8913A;
  box-shadow: 0 0 0 1px rgba(232,145,58,0.3), 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}
.demo-controls {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-spreadsheet {
  overflow-x: auto;
  border-radius: 10px;
  border: 2px solid var(--border, #E0D8CE);
  background: var(--bg-white, #fff);
}
.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: var(--font-body);
}
.demo-table th {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary, #6A6050);
  background: var(--bg-subtle, #F5F0E8);
  border-bottom: 2px solid var(--border, #E0D8CE);
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.demo-row-num {
  width: 28px;
  min-width: 28px;
  text-align: center;
  color: var(--text-muted, #9A8E80);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle, #F5F0E8);
  border-right: 1px solid var(--border, #E0D8CE);
}
.demo-table td {
  padding: 0;
  border-bottom: 1px solid var(--border, #E0D8CE);
}
.demo-table td.demo-row-num {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border, #E0D8CE);
}
.demo-cell {
  width: 100%;
  padding: 7px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-primary, #2A2420);
  outline: none;
  box-sizing: border-box;
}
.demo-cell:focus {
  background: #FFF8F0;
  box-shadow: inset 0 0 0 2px #E8913A;
}
tr.demo-row-active td {
  background: #FEF3E8;
}
tr.demo-row-active td.demo-row-num {
  background: #E8913A;
  color: #fff;
}
.demo-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== 3D PREVIEW ========== */
.preview-3d-section { padding: 80px 0; }
.preview-3d-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.preview-3d-viewport {
  background: #1A1612;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.preview-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: var(--radius-lg);
}
.preview-3d-placeholder {
  text-align: center;
  padding: 24px;
}
.preview-3d-details h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}
.preview-3d-details p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ========== WORKFLOW (Design -> Test -> Refine) ========== */
.workflow { padding: 80px 0; }
.workflow-header { text-align: center; margin-bottom: 48px; }
.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}
.workflow-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.workflow-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}
.workflow-step h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.workflow-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.workflow-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
  font-size: 28px;
  color: var(--text-muted);
  font-weight: 300;
}
.workflow-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.workflow-link:hover { text-decoration: underline; }

/* ========== RESPONSIVE OVERRIDES ========== */
@media (max-width: 1024px) {
  .demo-inner { flex-direction: column; align-items: center; }
  .preview-3d-layout { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; align-items: center; gap: 24px; }
  .workflow-arrow { transform: rotate(90deg); padding: 0; }
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 440px !important; }
}
@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
}
