/* ═══════════════════════════════════════════════════════════
   ECOMMERCE PAGE — WombatCrafts
   Depends on: style.css (base reset, nav, buttons, footer)
   ═══════════════════════════════════════════════════════════ */

/* ── PAGE HERO ────────────────────────────────────────────── */
.ec-hero {
  position: relative;
  z-index: 10;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.ec-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}

.ec-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ec-heading {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.ec-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

/* ── SHARED SECTION LAYOUT ────────────────────────────────── */
.ec-section {
  position: relative;
  z-index: 10;
  padding: 96px 24px;
}

.ec-section--alt {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ec-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ec-section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ec-section-heading {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.ec-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 500px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   1. INVISIBLE INTEGRATION GRAPHIC
   ══════════════════════════════════════════════════════════ */
.integration-graphic {
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 32px;
}

/* ── Panel shared ── */
.ig-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ig-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Browser mockup */
.ig-mockup {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ig-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.ig-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.ig-dot--accent  { background: rgba(79,127,255,0.6); }
.ig-dot--shopify { background: rgba(149,196,76,0.6); }
.ig-url {
  font-size: 9px;
  color: var(--text-faint);
  margin-left: 6px;
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 4px;
  flex: 1;
}
.ig-url--accent { color: rgba(79,127,255,0.7); background: rgba(79,127,255,0.08); }

/* Frontend panel */
.ig-panel--frontend .ig-mockup {
  border-color: rgba(79,127,255,0.4);
  box-shadow: 0 0 40px rgba(79,127,255,0.18), 0 0 80px rgba(79,127,255,0.07);
}

.ig-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #080c20 0%, #060810 100%);
}

.ig-nav-strip {
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.ig-nav-strip--accent { background: rgba(79,127,255,0.15); }

.ig-hero-block {
  padding: 14px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(79,127,255,0.06);
  border: 1px solid rgba(79,127,255,0.14);
}

.ig-accent-pill {
  width: 36px; height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 2px;
}

.ig-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.ig-line--xl   { width: 88%; }
.ig-line--lg   { width: 65%; }
.ig-line--bright { background: rgba(240,240,245,0.28); }

.ig-btn-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.ig-fake-btn {
  height: 18px;
  border-radius: 4px;
}
.ig-fake-btn--accent { width: 64px; background: var(--accent); opacity: 0.85; }
.ig-fake-btn--ghost  { width: 48px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }

.ig-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ig-product-card {
  border-radius: 5px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ig-product-card--accent {
  background: rgba(79,127,255,0.07);
  border: 1px solid rgba(79,127,255,0.12);
}
.ig-product-card--featured {
  background: rgba(79,127,255,0.16);
  border-color: rgba(79,127,255,0.35);
}
.ig-product-img   { height: 28px; border-radius: 3px; background: rgba(79,127,255,0.2); }
.ig-product-line  { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); width: 80%; }
.ig-product-price { height: 5px; border-radius: 3px; background: rgba(79,127,255,0.4); width: 40%; }

.ig-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,127,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Tags */
.ig-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0;
}
.ig-tags li {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79,127,255,0.1);
  border: 1px solid rgba(79,127,255,0.2);
  color: rgba(79,127,255,0.85);
}
.ig-tags--shopify li {
  background: rgba(149,196,76,0.08);
  border-color: rgba(149,196,76,0.2);
  color: rgba(149,196,76,0.85);
}

/* ── Cable / connector ── */
.ig-cable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  padding-bottom: 40px; /* offset for tags below */
}

.ig-cable-svg {
  width: 100%;
  height: 80px;
  overflow: visible;
}

.cable-path {
  stroke-dasharray: 6 4;
  animation: cableDash 2s linear infinite;
}
.cable-path--lower {
  animation-delay: -1s;
}
@keyframes cableDash {
  to { stroke-dashoffset: -20; }
}

.cable-pulse {
  animation: pulseTravelUpper 2.4s ease-in-out infinite;
}
.cable-pulse--2 { animation-name: pulseTravelLower; animation-delay: 0.8s; }
.cable-pulse--3 { animation-delay: 1.6s; }

@keyframes pulseTravelUpper {
  0%   { cx: 0;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { cx: 160; opacity: 0; }
}
@keyframes pulseTravelLower {
  0%   { cx: 0;   cy: 60; opacity: 0; }
  10%  { opacity: 1; }
  50%  { cy: 90; }
  90%  { opacity: 1; }
  100% { cx: 160; cy: 60; opacity: 0; }
}

.ig-cable-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.7);
  white-space: nowrap;
}

/* ── Shopify panel ── */
.ig-mockup--shopify {
  border-color: rgba(149,196,76,0.25);
}
.ig-bar--shopify { background: rgba(149,196,76,0.04); }

.ig-body--shopify {
  background: #08100a;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 220px;
  padding: 10px;
}

.ig-shopify-sidebar {
  width: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.ig-sidebar-item {
  height: 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
}
.ig-sidebar-item--active {
  background: rgba(149,196,76,0.25);
  border: 1px solid rgba(149,196,76,0.3);
}

.ig-shopify-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-shopify-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.ig-stat-card {
  background: rgba(149,196,76,0.05);
  border: 1px solid rgba(149,196,76,0.12);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ig-stat-num   { height: 8px; border-radius: 3px; background: rgba(149,196,76,0.3); width: 60%; }
.ig-stat-label { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); width: 80%; }

.ig-shopify-order-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ig-order-row {
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
}
.ig-order-row--header {
  background: rgba(149,196,76,0.1);
  height: 12px;
}

/* Copy block */
.integration-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  max-width: 660px;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════
   2. AGRAMS CASE STUDY
   ══════════════════════════════════════════════════════════ */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 20px;
}

.cs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cs-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
.cs-badge--before {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.cs-badge--after {
  background: rgba(79,127,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(79,127,255,0.3);
}

.cs-screen {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  filter: blur(1px) saturate(0.3) brightness(0.65);
}
.cs-screen--after {
  filter: none;
  border-color: rgba(79,127,255,0.4);
  box-shadow: 0 0 40px rgba(79,127,255,0.2), 0 0 80px rgba(79,127,255,0.08);
}

.cs-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.cs-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cs-dot--good { background: rgba(79,127,255,0.5); }
.cs-url { font-size: 9px; color: var(--text-faint); margin-left: 6px; flex: 1; }
.cs-url--good { color: rgba(79,127,255,0.7); }

.cs-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
}
.cs-body--before { background: #0a0a14; }
.cs-body--after  { background: linear-gradient(160deg, #080c20 0%, #060810 100%); }

.cs-nav-strip { height: 9px; border-radius: 3px; background: rgba(255,255,255,0.05); }
.cs-nav-strip--good { background: rgba(79,127,255,0.12); }

.cs-hero-block {
  padding: 10px 8px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-hero-block--before { background: rgba(255,255,255,0.03); }
.cs-hero-block--after  { background: rgba(79,127,255,0.06); border: 1px solid rgba(79,127,255,0.12); }

.cs-accent-bar { width: 28px; height: 2px; border-radius: 2px; background: var(--accent); margin-bottom: 2px; }

.cs-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.cs-line--long   { width: 85%; }
.cs-line--mid    { width: 58%; }
.cs-line--bright { background: rgba(240,240,245,0.22); }

.cs-btn-row { display: flex; gap: 5px; margin-top: 3px; }
.cs-fake-btn { height: 15px; border-radius: 3px; }
.cs-fake-btn--accent { width: 55px; background: var(--accent); opacity: 0.8; }
.cs-fake-btn--ghost  { width: 40px; background: rgba(255,255,255,0.06); }

.cs-product-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cs-product { height: 38px; border-radius: 4px; }
.cs-product--before { background: rgba(255,255,255,0.04); }
.cs-product--after  { background: rgba(79,127,255,0.07); border: 1px solid rgba(79,127,255,0.12); }
.cs-product--featured { background: rgba(79,127,255,0.18); border-color: rgba(79,127,255,0.35); }

.cs-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
}
.cs-glow-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,127,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Metrics below screens */
.cs-metrics {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cs-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.cs-metric-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cs-metric-val--bad  { color: rgba(240,240,245,0.3); }
.cs-metric-val--good { color: var(--accent); }
.cs-metric-lbl { font-size: 11px; color: var(--text-muted); }

.cs-arrow { display: flex; align-items: center; justify-content: center; padding-bottom: 40px; }

.cs-caption {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.cs-caption--after { color: rgba(79,127,255,0.8); }

/* ── Results bar ── */
.cs-results-bar {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  margin-top: 28px;
}

.cs-result-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 36px;
}

.cs-result-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.cs-result-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cs-result-divider {
  width: 1px;
  background: var(--border-2);
  flex-shrink: 0;
}

/* Progress bar (conversion rate) */
.cs-bar-track {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cs-bar-fill {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  transition: width 0.6s ease;
}
.cs-bar-fill--after { background: var(--accent); }

/* Bar chart (revenue) */
.cs-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-chart-inner {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
}
.cs-chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(79,127,255,0.2);
  transition: height 0.6s ease;
}
.cs-chart-bar--highlight { background: var(--accent); }
.cs-chart-baseline { height: 1px; background: var(--border-2); }

/* ══════════════════════════════════════════════════════════
   3. E-COMMERCE PRICING
   ══════════════════════════════════════════════════════════ */
.ec-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  align-items: start;
}

.ec-plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ec-plan--featured {
  background: linear-gradient(160deg, rgba(79,127,255,0.1) 0%, rgba(79,127,255,0.04) 100%);
  border-color: rgba(79,127,255,0.4);
  box-shadow: 0 0 50px rgba(79,127,255,0.1);
}

.ec-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.ec-plan-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-plan-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ec-plan-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.ec-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
}

.ec-price-from {
  font-size: 12px;
  color: var(--text-muted);
}

.ec-price-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.ec-plan--featured .ec-price-amount { color: var(--accent); }

.ec-plan-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.ec-plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ec-plan-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.ec-check { flex-shrink: 0; font-size: 13px; }
.ec-plan-features li:not(.ec-disabled) .ec-check { color: var(--accent); }
.ec-disabled { opacity: 0.35; }

.ec-plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .integration-graphic {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .ig-cable { flex-direction: row; padding: 0; }
  .ig-cable-svg { width: 120px; height: 40px; }

  .cs-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cs-arrow { display: none; }

  .ec-pricing-grid { grid-template-columns: 1fr; }

  .cs-results-bar { flex-direction: column; }
  .cs-result-divider { width: 100%; height: 1px; }
}

@media (max-width: 700px) {
  .ec-heading { font-size: 36px; }
  .cs-product-row { grid-template-columns: repeat(2, 1fr); }
}
