/* Workfloor redesign — page-level styles
   Built on top of colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--wf-warm-white);
  color: var(--wf-navy-700);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Pulse for live dot */
@keyframes wf-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.65); } }
.wf-dot-pulse { animation: wf-pulse 2s ease-in-out infinite; }

/* Hero loading dots */
@keyframes wf-load-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-7px); opacity: 1; }
}
.wf-load-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wf-amber);
  display: inline-block;
  animation: wf-load-bounce 1.2s ease-in-out infinite;
}

/* Hero sound prompt */
@keyframes wf-sound-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.82); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes wf-sound-ring {
  0%   { box-shadow: 0 0 0 0 rgba(232,147,74,0.45); }
  70%  { box-shadow: 0 0 0 22px rgba(232,147,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,147,74,0); }
}

/* Hero scroll cue — gentle bob */
@keyframes wf-scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(5px); opacity: 1; }
}
.wf-scroll-cue { animation: wf-scroll-bob 1.8s ease-in-out infinite; }

/* Dropdown panel animation */
@keyframes wf-dd-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Marquee */
@keyframes wf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.wf-marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: wf-marquee 45s linear infinite;
}
.wf-marquee-track.fast { animation-duration: 28s; }
.wf-marquee-track.reverse { animation-direction: reverse; }
.wf-marquee:hover .wf-marquee-track { animation-play-state: paused; }

/* Subtle entry */
@keyframes wf-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.wf-rise { animation: wf-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Reveal-on-scroll */
.wf-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wf-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Soft amber glow that shifts */
@keyframes wf-glow-shift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(20px, -10px) scale(1.1); opacity: 0.75; }
}

/* Ticker (status feed in hero) */
@keyframes wf-tick-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Editorial big number */
.wf-bignum {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

/* Cursor for buttons/clickable */
button, a { cursor: pointer; }
button { font-family: inherit; }

/* Selection */
::selection { background: var(--wf-amber-300); color: var(--wf-navy-700); }

/* Mockup chrome shared */
.wf-chrome {
  background: var(--wf-navy-mid);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wf-chrome-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Animated live indicator (used in every mockup) */
@keyframes wf-live-halo {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* Universal mockup interactivity — lift, glow, and 3D tilt on hover. */
[style*="--wf-shadow-deep"], div[style*="box-shadow: var(--wf-shadow-deep)"] {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

/* Apply tilt + lift via a wrapper class */
.wf-mock-fx {
  perspective: 1400px;
  transform-style: preserve-3d;
}
.wf-mock-fx > * {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.wf-mock-fx:hover > * {
  transform: translateY(-6px);
  box-shadow: 0 36px 96px rgba(0,0,0,0.7),
              0 0 0 1px rgba(232,147,74,0.2),
              0 0 80px -20px rgba(232,147,74,0.25) !important;
}

/* Card hover lift */
.wf-card-lift {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.wf-card-lift:hover {
  transform: translateY(-3px);
}

/* Voice waveform bars */
@keyframes wf-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* Integration tiles */
.wf-int-tile:hover {
  transform: translateY(-3px);
  border-color: var(--wf-border-warm) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
@media (max-width: 860px) {
  .wf-int-grid-2 { grid-template-columns: 1fr !important; gap: 36px !important; }
}

/* Tab pills */
.wf-tab {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wf-slate-400);
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.wf-tab:hover { color: var(--wf-navy-700); }
.wf-tab.active {
  background: var(--wf-navy-700);
  color: var(--wf-text-warm);
}
.wf-tab.dark { color: var(--wf-slate-400); }
.wf-tab.dark:hover { color: var(--wf-text-warm); }
.wf-tab.dark.active {
  background: var(--wf-amber);
  color: var(--wf-navy-700);
}

/* Pill button */
.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wf-amber);
  color: var(--wf-navy-700);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  border: none;
  box-shadow: 0 4px 20px rgba(232,147,74,0.25);
  transition: all 0.2s ease;
}
.wf-pill:hover {
  background: var(--wf-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(232,147,74,0.35);
}
.wf-pill.ghost {
  background: transparent;
  color: var(--wf-amber);
  border: 1px solid rgba(232,147,74,0.4);
  box-shadow: none;
  padding: 12px 24px;
}
.wf-pill.ghost:hover {
  background: rgba(232,147,74,0.08);
  border-color: var(--wf-amber);
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--wf-amber);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* Faq accordion */
.wf-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.wf-faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--wf-navy-700);
  letter-spacing: -0.01em;
}
.wf-faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wf-faq-item.open .answer { max-height: 280px; }
.wf-faq-item .answer-inner { padding: 0 0 28px; color: var(--wf-slate-400); font-size: 15px; line-height: 1.75; max-width: 720px; }
.wf-faq-item .plus {
  width: 28px; height: 28px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.wf-faq-item.open .plus {
  transform: rotate(45deg);
  background: var(--wf-amber);
  border-color: var(--wf-amber);
  color: var(--wf-navy-700);
}

/* Density */
.density-compact section { padding-top: 64px !important; padding-bottom: 64px !important; }
.density-spacious section { padding-top: 144px !important; padding-bottom: 144px !important; }

/* Hero responsive grid */
.wf-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.wf-hero-ticker { left: max(-24px, -3vw); bottom: -36px; min-width: min(280px, 90%); }
@media (max-width: 980px) {
  .wf-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .wf-hero-ticker { position: static !important; margin-top: 16px; left: 0; bottom: 0; max-width: 100% !important; }
}

/* Responsive grids — fall back from 3-col to 2-col to 1-col */
@media (max-width: 980px) {
  .wf-container [style*="repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* Two-column feature splits stack */
  .wf-container [style*="grid-template-columns: 1fr 1fr"],
  .wf-container [style*="gridTemplateColumns: \"1fr 1fr\""] { grid-template-columns: 1fr !important; gap: 48px !important; }
  .wf-container [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  .wf-built-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .wf-built-sticky { position: relative !important; top: 0 !important; order: -1; }
}
@media (max-width: 640px) {
  .wf-container [style*="repeat(3, 1fr)"],
  .wf-container [style*="repeat(2, 1fr)"],
  .wf-container [style*="repeat(4, 1fr)"] { grid-template-columns: 1fr !important; }
  .wf-container-wide nav { flex-wrap: wrap; gap: 12px; }
  .wf-container-wide nav > div { flex-wrap: wrap; }
  section { padding: 64px 0 !important; }
  .density-spacious section { padding: 96px 0 !important; }
}

/* Hero status pill — wraps if too long */
.wf-rise { word-wrap: break-word; }
h1.wf-h1-fluid { word-wrap: break-word; overflow-wrap: break-word; }

/* Accent intensity (controlled inline via CSS var override) */
:root {
  --accent-mix: 1;
}

/* Live ticker */
.wf-ticker-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--wf-slate-100);
  animation: wf-tick-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Hero glow that drifts */
.wf-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: wf-glow-shift 12s ease-in-out infinite;
}

/* Fluid headline ratio */
.wf-h1-fluid {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

/* Body grid bg */
.wf-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.wf-grid-bg-light {
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Container */
.wf-container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.wf-container-wide { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* Mobile nav: drop the inline links, keep logo + a single compact CTA */
@media (max-width: 860px) {
  .wf-nav-links .wf-nav-link { display: none; }
  .wf-nav-cta { margin-left: 0 !important; padding: 9px 18px !important; }
}

/* Reset section internal pad — use container */
section { padding: 96px 0; }

/* Smooth scroll target offset */
section[id] { scroll-margin-top: 80px; }

/* ---------------- Lead capture popup ---------------- */
@keyframes wf-popup-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes wf-popup-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .wf-popup-card { grid-template-columns: 1fr !important; }
  .wf-popup-card > div:first-of-type { padding: 32px 28px 28px !important; }
  .wf-popup-card > div:nth-of-type(2) { padding: 32px 28px 32px !important; min-height: 0 !important; }
  .wf-demo-popup { grid-template-columns: 1fr !important; }
  .wf-demo-popup > div { padding: 32px 28px !important; }
}
