/**
 * Techotv.com — 03 / Repeatable n8n Workflows Service Stylesheet (`style.css`)
 * Extends `../../css/styles.css` (`anomaly-theme.css`) with Anoma.ly / Hex
 * stage console, live payload bar, JSON drawer, architectural blueprint cards,
 * Hex range sliders, and brutalist package columns.
 */

/* ==========================================================================
   1. STAGE ARENA & INTERACTIVE PAYLOAD CONSOLE (#hero.n8n-stage-arena)
   ========================================================================== */
.n8n-stage-arena {
  min-height: auto;
  padding: 1.6rem 1.5rem 2.75rem;
  gap: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 50% 42%, rgba(233, 255, 79, 0.055) 0%, transparent 52%),
    radial-gradient(circle at 15% 30%, rgba(70, 227, 255, 0.04) 0%, transparent 40%),
    var(--bg-void);
  border-bottom: 1px solid var(--line-strong);
}

.n8n-stage-centerpiece {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  z-index: 3;
}

/* Interactive Scenario Tabs + Webhook Payload Input Bar */
.n8n-payload-console {
  width: 100%;
  max-width: 620px;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.25rem;
}

.n8n-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--line-subtle);
}

.n8n-scenario-tab {
  padding: 7px 10px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.16s ease;
}

.n8n-scenario-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.n8n-scenario-tab.active,
.n8n-scenario-tab[aria-selected="true"] {
  background: var(--accent-volt);
  color: #050608;
  font-weight: 700;
}

.n8n-payload-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: #06070a;
  border: 1px solid var(--line-grid);
  border-radius: 9px;
  padding: 6px 10px;
  transition: border-color 0.16s ease;
}

.n8n-payload-input-row:focus-within {
  border-color: var(--accent-volt);
}

.n8n-payload-method {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #050608;
  background: var(--accent-ice);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.n8n-live-payload-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  min-width: 0;
}

.n8n-payload-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-mint);
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.3);
  white-space: nowrap;
}

/* Keycap Dock */
.n8n-keycap-dock {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   2. BOTTOM STAGE TELEMETRY BAR & EXPANDABLE JSON DRAWER
   ========================================================================== */
.n8n-stage-DockFooter {
  position: relative;
  z-index: 4;
  width: min(100%, 1380px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n8n-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.n8n-telemetry-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.n8n-telemetry-metrics strong {
  color: var(--text-primary);
  font-weight: 700;
}

.n8n-telemetry-metrics strong.volt,
.volt {
  color: var(--accent-volt) !important;
}

.n8n-telemetry-metrics .mint,
.mint {
  color: var(--accent-mint) !important;
}

.n8n-tel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
}

.n8n-tel-sep {
  color: var(--text-faint);
}

.n8n-telemetry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.n8n-json-drawer-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-volt);
  background: rgba(233, 255, 79, 0.08);
  border: 1px solid rgba(233, 255, 79, 0.35);
  transition: all 0.16s ease;
}

.n8n-json-drawer-btn:hover,
.n8n-json-drawer-btn[aria-expanded="true"] {
  background: var(--accent-volt);
  color: #050608;
}

.n8n-deploy-stage-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #050608;
  background: var(--text-primary);
  transition: all 0.16s ease;
}

.n8n-deploy-stage-btn:hover {
  background: var(--accent-volt);
}

/* On-Stage JSON + Topology Inspector Drawer */
.n8n-json-drawer {
  background: #080a0e;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9);
}

.n8n-json-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #0d1017;
  border-bottom: 1px solid var(--line-grid);
}

.n8n-json-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.n8n-json-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(61, 220, 132, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.n8n-json-drawer__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.n8n-json-ctrl-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-grid);
  transition: all 0.15s ease;
}

.n8n-json-ctrl-btn:hover {
  background: var(--accent-volt);
  color: #050608;
  border-color: var(--accent-volt);
}

.n8n-json-drawer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-top: 0;
}

.n8n-json-code-pane {
  border-right: 1px solid var(--line-grid);
  max-height: 270px;
  overflow: auto;
  padding: 14px 16px;
  background: #06070a;
}

.n8n-json-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #d5d9e2;
  white-space: pre;
}

.n8n-json-topology-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #090b10;
  padding: 10px 14px;
}

.n8n-topology-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.n8n-burst-btn {
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-volt);
  border: 1px solid rgba(233, 255, 79, 0.35);
  background: rgba(233, 255, 79, 0.08);
}

.n8n-burst-btn:hover {
  background: var(--accent-volt);
  color: #050608;
}

.n8n-topology-canvas-wrap {
  width: 100%;
  height: 195px;
  position: relative;
}

#n8n-node-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.n8n-topology-telemetry {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   3. ARCHITECTURAL WORKFLOW BLUEPRINTS GRID (#workflows)
   ========================================================================== */
.section-kicker-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-volt);
  margin-bottom: 10px;
}

.n8n-blueprints-grid .work-card:nth-child(4) {
  border-left: 0;
}

.n8n-blueprints-grid .work-card:nth-child(n+4) {
  border-top: 1px solid var(--line-strong);
}

.n8n-blueprint-card {
  cursor: pointer;
  min-height: 450px;
}

.n8n-blueprint-card .card-title {
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}

.n8n-card-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 220ms ease;
}

.n8n-blueprint-card:hover .n8n-card-steps,
.n8n-blueprint-card:focus-visible .n8n-card-steps {
  background: rgba(5, 6, 8, 0.08);
  border-color: rgba(5, 6, 8, 0.22);
  color: #050608;
}

.n8n-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.n8n-card-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 220ms ease;
}

.n8n-blueprint-card:hover .n8n-card-tags span,
.n8n-blueprint-card:focus-visible .n8n-card-tags span {
  background: rgba(5, 6, 8, 0.12);
  border-color: rgba(5, 6, 8, 0.25);
  color: #050608;
}

.n8n-stage-trigger-link,
.n8n-checkout-trigger-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.n8n-checkout-trigger-link {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 180ms ease;
}

.n8n-blueprint-card:hover .n8n-checkout-trigger-link {
  background: #050608;
  color: var(--accent-volt);
}

/* ==========================================================================
   4. HEX-STYLE SETUP COST ESTIMATOR & PACKAGE COLUMNS (#calculator & #packages)
   ========================================================================== */
.n8n-calc-stack {
  margin-bottom: 3.5rem;
}

.n8n-calc-tier-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-volt);
  background: rgba(233, 255, 79, 0.08);
  border: 1px solid rgba(233, 255, 79, 0.3);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.n8n-slider-cell {
  width: 100%;
  padding-right: 12px;
}

.n8n-hex-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent-volt) 0%,
    var(--accent-volt) var(--slider-fill, 40%),
    rgba(255, 255, 255, 0.12) var(--slider-fill, 40%),
    rgba(255, 255, 255, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

.n8n-hex-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--text-primary);
  border: 2px solid #050608;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.n8n-hex-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  background: var(--accent-volt);
}

.n8n-calc-readout {
  display: inline-block;
  min-width: 82px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-volt);
}

.n8n-calc-summary-row {
  background: rgba(233, 255, 79, 0.03);
  padding-top: 16px;
  padding-bottom: 16px;
}

.n8n-calc-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.n8n-calc-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.n8n-calc-final {
  font-family: var(--font-sans);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.n8n-calc-strike {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.n8n-calc-save-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #050608;
  background: var(--accent-volt);
  padding: 3px 8px;
  border-radius: 99px;
}

.n8n-calc-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.n8n-calc-kpis strong {
  color: var(--text-primary);
}

/* 3 Brutalist Package Columns (#packages) */
.n8n-packages-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.n8n-pkg-card {
  min-height: 460px;
}

.n8n-pkg-card--featured {
  background: rgba(233, 255, 79, 0.035);
}

.n8n-pkg-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 1.5rem 0 0.75rem;
}

.n8n-pkg-big-price {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.n8n-pkg-old-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.n8n-pkg-once {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.n8n-pkg-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.n8n-pkg-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-grow: 1;
}

.n8n-pkg-card:hover .n8n-pkg-list,
.n8n-pkg-card:hover .n8n-pkg-old-price,
.n8n-pkg-card:hover .n8n-pkg-once,
.n8n-pkg-card:hover .n8n-pkg-big-price.volt {
  color: #050608 !important;
  border-top-color: rgba(5, 6, 8, 0.2);
}

.n8n-pkg-btn {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.n8n-pkg-btn--volt {
  background: var(--accent-volt);
  color: #050608;
  border-color: var(--accent-volt);
}

.n8n-pkg-card:hover .n8n-pkg-btn {
  background: #050608;
  color: var(--accent-volt);
  border-color: #050608;
}

/* ==========================================================================
   5. BRUTALIST FAQ BLOCK (#faq) & FOOTER
   ========================================================================== */
.n8n-faq-block {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 2.5rem;
}

.n8n-faq-header {
  margin-bottom: 1.5rem;
}

.n8n-faq-header h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 540;
  letter-spacing: -0.04em;
}

.n8n-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.faq-item {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.015);
}

.faq-question-btn {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question-btn:hover {
  color: var(--accent-volt);
}

.faq-toggle-icon {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-volt);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 20px 18px;
}

.n8n-triage-section {
  padding-top: 1rem;
  padding-bottom: 4.5rem;
}

.volt-link {
  color: var(--accent-volt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer Grid */
.n8n-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line-grid);
}

.n8n-footer-copy {
  margin-top: 0.75rem;
  max-width: 360px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.n8n-footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.n8n-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.n8n-footer-list a:hover {
  color: var(--accent-volt);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .n8n-json-drawer__grid {
    grid-template-columns: 1fr;
  }
  .n8n-json-code-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line-grid);
  }
  .n8n-blueprints-grid .work-card:nth-child(4) {
    border-left: 1px solid var(--line-strong);
  }
  .n8n-blueprints-grid .work-card:nth-child(odd) {
    border-left: 0;
  }
  .n8n-faq-grid {
    grid-template-columns: 1fr;
  }
  .n8n-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .n8n-scenario-tabs {
    grid-template-columns: 1fr;
  }
  .n8n-payload-input-row {
    grid-template-columns: 1fr;
  }
}
