/**
 * AGautomations - Interactive Feature Styles
 */

/* ============================================
   Scroll Progress Bar
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ============================================
   Typewriter Cursor
   ============================================ */

#typewriter {
  border-right: 2px solid var(--color-gold);
  padding-right: 3px;
  animation: cursor-blink 0.85s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { border-color: var(--color-gold); }
  50%       { border-color: transparent; }
}

/* ============================================
   Tools Ticker
   ============================================ */

.tools-ticker {
  background-color: var(--color-gray-darkest);
  border-top: 1px solid rgba(154, 123, 79, 0.1);
  border-bottom: 1px solid rgba(154, 123, 79, 0.1);
  padding: var(--space-md) 0 var(--space-sm);
  overflow: hidden;
}

.ticker-label {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(154, 123, 79, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.ticker-track {
  overflow: hidden;
  position: relative;
}

.ticker-track::before,
.ticker-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.ticker-track::before {
  left: 0;
  background: linear-gradient(to right, var(--color-gray-darkest), transparent);
}

.ticker-track::after {
  right: 0;
  background: linear-gradient(to left, var(--color-gray-darkest), transparent);
}

.ticker-items {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--space-xs) var(--space-md);
  white-space: nowrap;
  transition: color var(--transition-base);
}

.ticker-item:hover {
  color: var(--color-gold);
}

.ticker-sep {
  color: rgba(154, 123, 79, 0.25);
  flex-shrink: 0;
  font-size: 0.6rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-items { animation: none; }
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  padding: 0 !important;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: "Playfair Display", serif;
  font-size: var(--font-size-lg);
  font-weight: 500;
  padding: var(--space-lg) 0;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(154, 123, 79, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition-base), transform var(--transition-slow);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 11px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 11px;
  transition: opacity var(--transition-base);
}

.faq-item.open .faq-icon {
  border-color: var(--color-gold);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease-out;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
}

.faq-answer-inner p {
  color: #FFFFFF;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   ROI Calculator
   ============================================ */

.roi-calculator {
  background-color: var(--color-gray-light);
  position: relative;
  overflow: hidden;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .calculator-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.calc-input-group {
  margin-bottom: var(--space-xl);
}

.calc-input-group:last-child {
  margin-bottom: 0;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.calc-label-row label {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.calc-value {
  font-family: "Playfair Display", serif;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-gold);
  white-space: nowrap;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(154, 123, 79, 0.2);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  border: 2px solid #000000;
  box-shadow: 0 0 0 2px var(--color-gold);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  border: 2px solid #000000;
}

.calc-range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.calc-range-hints span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

.calculator-result {
  text-align: center;
  padding: var(--space-xl);
  background-color: rgba(154, 123, 79, 0.04);
  border: 1px solid rgba(154, 123, 79, 0.25);
  border-radius: 0.75rem;
}

.calculator-result .result-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.result-amount {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin: var(--space-sm) 0 0;
}

.calculator-result .result-period {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: var(--space-xs) 0 0;
}

.result-note {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.25);
  margin: var(--space-xs) 0 var(--space-lg);
}

@keyframes pulse-gold {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.result-pulse {
  animation: pulse-gold 0.35s ease-out;
}

/* ============================================
   n8n Float Canvas (Hero — index.html)
   ============================================ */

.n8n-float-canvas {
  width: 100%;
  height: 540px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(154,123,79,0.25);
  background-color: #0a0a0a;
  background-image: radial-gradient(rgba(154,123,79,0.45) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  box-shadow: 0 0 0 1px rgba(154,123,79,0.08), 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (max-width: 900px) {
  .n8n-float-canvas { height: 400px; }
}

/* Rectangular node card — identical proportions to n8n canvas */
.nfc-node {
  position: absolute;
  display: flex;
  align-items: stretch;
  width: 215px;
  height: 78px;
  background: #1b1b1f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 4px 22px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  pointer-events: none;
  user-select: none;
  cursor: grab;
}

/* Coloured icon strip — left side */
.nfc-icon {
  width: 66px;
  min-width: 66px;
  border-radius: 9px 0 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.nfc-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
  display: block;
}

.nfc-icon svg {
  width: 30px;
  height: 30px;
}

/* n8n node brand colours (matches n8n source) */
.nfc-icon--http       { background: #0004F5; }
.nfc-icon--gmail      { background: #EA4335; }
.nfc-icon--if         { background: #22C55E; }
.nfc-icon--editfields { background: #0000FF; }
.nfc-icon--aiagent    { background: #8B5CF6; }
.nfc-icon--slack      { background: #4A154B; }
.nfc-icon--sheets     { background: #34A853; }

/* Node name — right side */
.nfc-name {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* Connection handles on node edges — n8n style */
.nfc-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2e;
  border: 2px solid #555;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.nfc-handle--right { right: -5px; }
.nfc-handle--left  { left: -5px; }

/* Hide decorative handles on the floating canvas — clean look */
.n8n-float-canvas .nfc-handle { display: none; }

/* Node positions — 2 columns left/right, node 7 at bottom centre */
.nfc-node--1 { top: 4%;  left: 2%;  animation: nfc-float-1 6s ease-in-out infinite; }
.nfc-node--2 { top: 3%;  left: 50%; animation: nfc-float-2 8s ease-in-out infinite; }
.nfc-node--3 { top: 31%; left: 2%;  animation: nfc-float-3 5s ease-in-out infinite; }
.nfc-node--4 { top: 30%; left: 50%; animation: nfc-float-4 7s ease-in-out infinite; }
.nfc-node--5 { top: 58%; left: 2%;  animation: nfc-float-5 9s ease-in-out infinite; }
.nfc-node--6 { top: 57%; left: 50%; animation: nfc-float-6 6s ease-in-out infinite; }
.nfc-node--7 { top: 79%; left: calc(50% - 107px); animation: nfc-float-7 7s ease-in-out infinite; }

@keyframes nfc-float-1 {
  0%,100% { transform: translate(0px, 0px); }
  25%     { transform: translate(28px, -34px); }
  50%     { transform: translate(48px, -9px); }
  75%     { transform: translate(18px, 28px); }
}
@keyframes nfc-float-2 {
  0%,100% { transform: translate(0px, 0px); }
  30%     { transform: translate(-33px, 30px); }
  60%     { transform: translate(-15px, 48px); }
  80%     { transform: translate(24px, 18px); }
}
@keyframes nfc-float-3 {
  0%,100% { transform: translate(0px, 0px); }
  20%     { transform: translate(39px, 21px); }
  50%     { transform: translate(21px, -39px); }
  80%     { transform: translate(-27px, 12px); }
}
@keyframes nfc-float-4 {
  0%,100% { transform: translate(0px, 0px); }
  35%     { transform: translate(-24px, -33px); }
  65%     { transform: translate(-45px, 21px); }
}
@keyframes nfc-float-5 {
  0%,100% { transform: translate(0px, 0px); }
  40%     { transform: translate(33px, -27px); }
  70%     { transform: translate(57px, 15px); }
}
@keyframes nfc-float-6 {
  0%,100% { transform: translate(0px, 0px); }
  25%     { transform: translate(-27px, 33px); }
  55%     { transform: translate(18px, 45px); }
  80%     { transform: translate(-39px, 15px); }
}
@keyframes nfc-float-7 {
  0%,100% { transform: translate(0px, 0px); }
  30%     { transform: translate(27px, -39px); }
  60%     { transform: translate(-21px, -27px); }
  90%     { transform: translate(-33px, 21px); }
}

@media (prefers-reduced-motion: reduce) {
  .nfc-node { animation: none !important; }
}

/* ============================================
   Process Flow — Snake Grid (services.html)
   ============================================ */

.process-flow-section {
  overflow: visible;
}

/* 3-col snake: [node] [80px connector col] [node] */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  grid-template-rows: auto 72px auto 72px auto;
  padding: var(--space-xl) 0 var(--space-md);
}

/* Explicit grid placement */
.pf-n1   { grid-row: 1; grid-column: 1; align-self: center; }
.pf-c12  { grid-row: 1; grid-column: 2; align-self: center; }
.pf-n2   { grid-row: 1; grid-column: 3; }
.pf-sp21 { grid-row: 2; grid-column: 1; }
.pf-sp22 { grid-row: 2; grid-column: 2; }
.pf-c23  { grid-row: 2; grid-column: 3; justify-self: center; }
.pf-n3   { grid-row: 3; grid-column: 3; }
.pf-c34  { grid-row: 3; grid-column: 2; align-self: center; }
.pf-n4   { grid-row: 3; grid-column: 1; }
/* L-arm connector N4→N5: spans rows 4+5 so it can reach N5's vertical center */
.pf-c45 { grid-row: 4 / 6; grid-column: 1 / 4; position: relative; }

.pf-c45-arm {
  position: absolute;
  left: calc(25% - 20px);    /* = N4 horizontal center: (W-80)/4 = W/4−20 */
  width: calc(25% - 135px);  /* = N5.left − N4.center: W/4−135 */
  top: 0;
  /* bottom = 50%−36px  →  arm height = (row4+N5_h) − (row4+N5_h)/2 + 36
     = (row4+N5_h)/2 + 36 = 36 + N5_h/2 + 36 = 72 + N5_h/2
     → horizontal segment lands exactly at N5's vertical center */
  bottom: calc(50% - 36px);
  border-left: 2px solid rgba(154,123,79,0.22);
  border-bottom: 2px solid rgba(154,123,79,0.22);
  border-bottom-left-radius: 12px;
}

/* Arrow sits at arm's right edge (= N5's left edge) pointing right */
.pf-c45-arm::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(154,123,79,0.45);
}

/* Animated dot travels along the horizontal segment */
.pf-c45-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  bottom: -2px;
  left: 0;
  animation: pf-c45-flow 2.6s ease-in-out infinite;
  animation-delay: 1.8s;
}

@keyframes pf-c45-flow {
  0%   { left: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.pf-sp42 { grid-row: 4; grid-column: 2; }
.pf-sp43 { grid-row: 4; grid-column: 3; }
.pf-n5   { grid-row: 5; grid-column: 1 / 4; justify-self: center; width: 310px; }

/* Node card */
.pf-node {
  background: #0f0f0f;
  border: 1px solid rgba(154,123,79,0.28);
  border-radius: 10px;
  position: relative;
  overflow: visible;
  transform-origin: center;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.pf-node:hover {
  border-color: rgba(154,123,79,0.7);
  box-shadow: 0 0 0 1px rgba(154,123,79,0.18), 0 18px 56px rgba(0,0,0,0.7), 0 0 32px rgba(154,123,79,0.15);
  transform: scale(1.11);
  z-index: 5;
}

.pf-node-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(154,123,79,0.06);
  border-bottom: 1px solid rgba(154,123,79,0.12);
  border-radius: 10px 10px 0 0;
}

.pf-node-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pf-icon--1 { background: rgba(59,130,246,0.18); }
.pf-icon--2 { background: rgba(16,185,129,0.18); }
.pf-icon--3 { background: rgba(245,158,11,0.18); }
.pf-icon--4 { background: rgba(139,92,246,0.18); }
.pf-icon--5 { background: rgba(34,197,94,0.18); }

.pf-step-num {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(154,123,79,0.5);
  font-weight: 700;
  margin-left: auto;
}

.pf-node-body {
  padding: 18px 20px 22px;
}

.pf-node-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin: 0 0 10px;
  line-height: 1.3;
}

.pf-node-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.68;
  margin: 0;
}

/* Connection handles */
.pf-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f0f0f;
  border: 2px solid rgba(154,123,79,0.5);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.pf-handle--right  { right: -6px; }
.pf-handle--left   { left: -6px; }
.pf-handle--top    { top: -6px; left: 50%; transform: translateX(-50%); }
.pf-handle--bottom { top: auto; bottom: -6px; left: 50%; transform: translateX(-50%); }

/* ── Horizontal connector ── */
.pf-conn-h {
  display: flex;
  align-items: center;
  height: 2px;
  position: relative;
}
.pf-conn-h-right { flex-direction: row; }
.pf-conn-h-left  { flex-direction: row-reverse; }

.pf-conn-line {
  flex: 1;
  height: 2px;
  background: rgba(154,123,79,0.22);
  position: relative;
  overflow: hidden;
}

/* Shared dot base */
.pf-conn-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  top: -2px;
}

.pf-conn-dot-fwd  { left: -6px; animation: pf-flow-fwd  2.6s ease-in-out infinite; }
.pf-conn-dot-rev  { left: 100%; animation: pf-flow-rev  2.6s ease-in-out infinite; }
.pf-conn-dot-vert { top: -6px; left: -2px; animation: pf-flow-vert 2.6s ease-in-out infinite; }

@keyframes pf-flow-fwd {
  0%   { left: -6px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes pf-flow-rev {
  0%   { left: 100%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: -6px; opacity: 0; }
}
@keyframes pf-flow-vert {
  0%   { top: -6px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Arrowheads */
.pf-arrow-right { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:7px solid rgba(154,123,79,0.45); flex-shrink:0; }
.pf-arrow-left  { width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-right:7px solid rgba(154,123,79,0.45); flex-shrink:0; }
.pf-arrow-down  { width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:7px solid rgba(154,123,79,0.45); flex-shrink:0; }

/* ── Vertical connector ── */
.pf-conn-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2px;
  height: 100%;
}
.pf-conn-line-v {
  flex: 1;
  width: 2px;
  background: rgba(154,123,79,0.22);
  position: relative;
  overflow: hidden;
}

/* Mobile: single-column stack in logical order */
@media (max-width: 680px) {
  .pf-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .pf-n1,.pf-c12,.pf-n2,.pf-sp21,.pf-sp22,.pf-c23,
  .pf-n3,.pf-c34,.pf-n4,.pf-c45,.pf-sp42,.pf-sp43,.pf-n5 {
    grid-row: auto; grid-column: 1;
  }

  .pf-n1  { order:1; } .pf-c12 { order:2; }
  .pf-n2  { order:3; } .pf-c23 { order:4; }
  .pf-n3  { order:5; } .pf-c34 { order:6; }
  .pf-n4  { order:7; } .pf-c45 { order:8; }
  .pf-n5  { order:9; }

  .pf-sp21,.pf-sp22,.pf-sp42,.pf-sp43 { display: none; }

  .pf-conn-h {
    flex-direction: column;
    height: 50px;
    width: 2px;
    margin: 0 auto;
    align-items: center;
    justify-content: flex-end;
  }
  .pf-conn-h .pf-conn-line { width: 2px; height: 100%; flex: 1; }
  .pf-conn-h .pf-conn-dot-fwd,
  .pf-conn-h .pf-conn-dot-rev {
    top: -6px; left: -2px;
    animation: pf-flow-vert 2.6s ease-in-out infinite;
  }
  .pf-arrow-right,
  .pf-arrow-left {
    border: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(154,123,79,0.45);
  }
  .pf-handle { display: none; }

  /* L-arm → simple vertical connector on mobile */
  .pf-c45 { height: 50px; }
  .pf-c45-arm {
    position: static;
    width: 2px;
    height: 100%;
    margin: 0 auto;
    border-left: 2px solid rgba(154,123,79,0.22);
    border-bottom: none;
    border-radius: 0;
  }
  .pf-c45-arm::after {
    right: auto;
    bottom: -7px;
    left: -4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(154,123,79,0.45);
    border-bottom: none;
  }
  .pf-c45-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-conn-dot-fwd,.pf-conn-dot-rev,.pf-conn-dot-vert { animation: none; opacity: 0.4; }
}

/* ============================================
   Workflow Visual (Hero)
   ============================================ */

.workflow-visual {
  width: 100%;
  max-width: 420px;
}

.wf-card {
  background: #0a0a0a;
  border: 1px solid rgba(154, 123, 79, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(154,123,79,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}

.wf-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wf-traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.wf-traffic-light:nth-child(1) { background: #ff5f57; }
.wf-traffic-light:nth-child(2) { background: #ffbd2e; }
.wf-traffic-light:nth-child(3) { background: #28c840; }

.wf-filename {
  margin-left: 8px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.wf-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  margin: 8px 12px;
  background: rgba(255,255,255,0.025);
}

.wf-node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wf-node-dot--trigger {
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(154,123,79,0.6);
}

.wf-node-dot--action {
  background: #f59e0b;
  animation: wf-pulse-dot 1.4s ease-in-out infinite;
}

.wf-node-dot--out {
  background: #22c55e;
}

@keyframes wf-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

.wf-node-body {
  flex: 1;
  min-width: 0;
}

.wf-node-title {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-node-sub {
  display: block;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.28);
  margin-top: 2px;
}

.wf-badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}

.wf-badge--done    { background: rgba(34,197,94,0.15); color: #22c55e; }
.wf-badge--running { background: rgba(245,158,11,0.15); color: #f59e0b; animation: wf-badge-blink 1.1s step-end infinite; }

@keyframes wf-badge-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.wf-arrow {
  width: 2px;
  height: 22px;
  background: rgba(154,123,79,0.2);
  margin-left: 27px;
  position: relative;
  overflow: hidden;
}

.wf-arrow--sm {
  height: 14px;
  margin-left: 35px;
}

.wf-flow-pulse {
  position: absolute;
  top: -10px;
  width: 2px;
  height: 10px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  animation: wf-flow 1.6s ease-in-out infinite;
}

@keyframes wf-flow {
  0%   { top: -10px; opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-flow-pulse,
  .wf-node-dot--action,
  .wf-badge--running { animation: none; }
}

.wf-outputs {
  padding: 2px 0;
}

.wf-output-item {
  /* stacks naturally */
}

.wf-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4px;
}

.wf-footer-time {
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.wf-footer-note {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.22);
  font-style: italic;
}

/* ============================================
   Floating CTA Button
   ============================================ */

.float-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--color-gold);
  color: #000000;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(154,123,79,0.45);
  transform: translateY(90px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease, box-shadow 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}

.float-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.float-cta:hover {
  box-shadow: 0 12px 44px rgba(154,123,79,0.65);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .float-cta {
    bottom: 20px;
    right: 16px;
    left: 16px;
    text-align: center;
    border-radius: 12px;
  }
}
