/* =============================================
   VEROSKILLS — CLEAN LIGHT MINIMAL STYLES
   ChatGPT-inspired UI, premium product feel
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg2: #f9f7f5;
  --bg3: #f2ede9;
  --border: #ebe5e0;
  --border-light: #f2eeeb;
  --text: #0d0d0d;
  --text2: #444;
  --text3: #777;
  --orange: #E8530A;
  --orange-light: #FFF4EE;
  --orange-mid: #FDE0CF;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --blue: #1a6bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --nav-h: 64px;
  --max-w: 1140px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.15; }
p { color: var(--text2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
/* Sections breathe — generous top/bottom padding acts as the pause between beats.
   No borders. Transitions happen through space and animation only. */
.section { padding: 120px 0; }
.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  /* Headlines start ghosted — opacity animates in via JS on scroll enter */
}
.section-sub { font-size: 0.94rem; color: var(--text3); max-width: 560px; line-height: 1.65; margin-bottom: 36px; }

/* ============================================================
   FOCUS FADE — passive visual overlay on normal scroll
   
   Sections scroll naturally. JS reads each element's position
   relative to the viewport center and adjusts opacity only —
   no position manipulation, no sticky pinning, no scroll-jacking.
   
   "In focus" = element center is near viewport center → opacity 1
   "Below fold" = not yet scrolled to → opacity 0.15, slight translateY
   "Past" = scrolled above → opacity 0.25, recedes gently
   ============================================================ */

/* Initial state — JS overrides on first tick */
.float-in {
  opacity: 0;
  will-change: opacity;
}

/* fi-child stagger — JS adds .fi-arrived, CSS delays cascade */
.fi-child {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fi-child:nth-child(1)  { transition-delay: 0.00s; }
.fi-child:nth-child(2)  { transition-delay: 0.07s; }
.fi-child:nth-child(3)  { transition-delay: 0.14s; }
.fi-child:nth-child(4)  { transition-delay: 0.21s; }
.fi-child:nth-child(5)  { transition-delay: 0.28s; }
.fi-child:nth-child(6)  { transition-delay: 0.35s; }
.fi-child:nth-child(7)  { transition-delay: 0.42s; }
.fi-child:nth-child(n+8){ transition-delay: 0.49s; }
.fi-arrived .fi-child {
  opacity: 1 !important;
  transform: none !important;
}

/* Legacy reveal — engine handles it */
.reveal {} .reveal.visible {}


/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* No hard border — transitions through spacing + shadow only */
  border-bottom: none;
  transition: box-shadow 0.3s ease;
}
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img { height: 32px; width: auto; flex-shrink: 0; }
.nav-links { list-style: none; display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text2); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 18px; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-main); font-weight: 600; font-size: 14px;
  border-radius: 8px; cursor: pointer; transition: all .2s; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); padding: 10px 20px; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-blue { background: #3b82f6; color: #fff; border-color: #3b82f6; padding: 10px 20px; }
.btn-blue:hover { background: #2563eb; border-color: #2563eb; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); padding: 10px 20px; }
.btn-outline:hover { border-color: var(--text2); background: var(--bg2); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; }
.btn-icon { width: 18px; height: 18px; object-fit: contain; display: block; flex-shrink: 0; }
.sch-cal-icon { width: 14px; height: 14px; object-fit: contain; display: inline-block; vertical-align: middle; margin-right: 3px; }
.btn-md { padding: 11px 22px; }

/* Ripple */
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.3); transform: scale(0); animation: rippleAnim .6s linear; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ============================================
   HERO — SINGLE CONNECTED MODULE
   Title centered above, demo directly below.
   One visual unit, visible together on load.
   Sits inside a .scroll-scene--hero wrapper so
   the scroll engine handles its exit like every
   other section.
   ============================================ */

.hero {
  background: var(--bg);
  /* Slightly less than full viewport so the section below peeks in */
  min-height: 82vh;
  display: flex;
  align-items: stretch;     /* let hero-inner stretch full height */
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 0;
  box-sizing: border-box;
}

/* ── Hero inner: centered column, fills full hero height ── */
.hero-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;                  /* stretch to hero height */
  padding-bottom: 40px;
}

/* ── Title block ── */
.hero-head {
  text-align: center;
  margin-bottom: 20px;
}
.hero-sub-tag {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 500;
  color: var(--text2);
  margin: 22px 0 32px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.hero-sub-tag strong {
  color: var(--orange);
  font-weight: 700;
}

/* ============================================
   PAGE INTRO ANIMATION
   <body class="page-intro"> set in HTML so the
   initial state is applied before first paint.
   JS removes it after ~800ms to trigger transitions.
   ============================================ */

/* INITIAL STATES — applied from first paint */
body.page-intro .hero-h1 {
  opacity: 0;
  transform: translateY(32vh);
}
body.page-intro .hero-sub-tag {
  opacity: 0;
  transform: translateY(6px);
}
body.page-intro .hero-anim-wrap {
  opacity: 0;
  transform: translateY(28px) scale(0.93);
}
body.page-intro .section-hero-tagline .eyebrow {
  opacity: 0;
  transform: translateX(20px);
}
body.page-intro .hero-below {
  opacity: 0;
  transform: translateY(10px);
}
body.page-intro .section-hero-headlines {
  opacity: 0;
  transform: translateY(16px);
}

/* TRANSITION IN — fires when page-intro is removed */

/* Headline: long, gentle drift — starts slow, breathes upward, settles softly */
.hero-h1 {
  transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.1, 1),
              opacity  0.5s ease;
}
/* Subtitle fades in just as the headline arrives at its final position */
.hero-sub-tag {
  transition: opacity 0.7s 1.6s ease,
              transform 0.7s 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Demo: expands up from slight scale + translateY, begins as soon as headline starts moving */
.hero-anim-wrap {
  transition: opacity   2.1s 0s cubic-bezier(0.25,0.46,0.1,1),
              transform 2.1s 0s cubic-bezier(0.16,1,0.3,1);
}

/* Headlines section slides up after subtitle fades in */
.section-big-claim {
  padding: 48px 0 8px;
  text-align: center;
}
.big-claim-img {
  max-width: 720px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.section-hero-headlines {
  transition: opacity 0.55s 2.4s ease,
              transform 0.55s 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Eyebrow in tagline section slides in right→left */
.section-hero-tagline .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

/* ── Standalone hero tagline section ── */

.section-hero-headlines {
  padding: 28px 0 0;
  background: var(--bg);
  text-align: center;
}
.hero-headlines-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-headline-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 auto 0.3em;
  max-width: 820px;
}
.hero-headline-line:last-child { margin-bottom: 0; }

.section-hero-tagline {
  padding: 48px 0 16px;
  background: var(--bg);
  text-align: center;
}
.section-hero-tagline .hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}
.section-hero-tagline .hero-sub strong { color: var(--text); }

/* Headline fade-in at center: fades in gently while positioned low */
@keyframes introH1Appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.page-intro .hero-h1 {
  animation: introH1Appear 0.8s 0.2s ease both;
}

.hero-h1 {
  font-size: clamp(1rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin-bottom: 0;
}
.hero-h1 em { font-style: normal; color: var(--orange); }

/* ── Mockup sits directly under the title ── */
.hero-anim-wrap {
  width: 100%;
  /* No hard cap — let the taller mockup breathe */
  max-height: none;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 8px 16px 40px rgba(0,0,0,0.10), -8px 16px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.hero-anim-wrap .app-mockup { width: 100%; }

/* hero-below removed — content moved to .section-hero-tagline */
.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 600px;
}
.hero-sub strong { color: var(--text); }

/* ── Standalone stats + CTA section ── */
.section-hero-stats {
  padding: 16px 0 56px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-hero-stats .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 680px;
}
.hstat {
  padding: 22px 16px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.hstat-num { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; color: #fff; }
.hstat-label { font-size: 11px; color: rgba(255,255,255,0.85); line-height: 1.4; font-weight: 700; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.anim-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  user-select: none;
}

/* AI badge */
.ai-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 99px; padding: 5px 13px;
  font-size: 12px; font-weight: 600; color: #15803d;
  margin-bottom: 18px;
}
.ai-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

/* Stage track */
.stage-track {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.stage-cell {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  transition: all .4s;
  position: relative;
  cursor: default;
}
.stage-cell:last-child { border-right: none; }
.stage-cell .stage-icon { display: block; font-size: 14px; margin-bottom: 3px; }
.stage-cell .stage-label { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stage-cell.active {
  background: var(--orange-light);
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.stage-cell.done {
  background: var(--green-light);
  color: var(--green);
}
.stage-cell.done::after {
  content: '✓';
  position: absolute; top: 2px; right: 4px;
  font-size: 9px; color: var(--green);
}

/* Candidate river — horizontal scrolling strip */
.candidate-river {
  position: relative;
  height: 80px;
  margin: 0 -20px;
  padding: 0 20px;
  overflow: hidden;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

/* The horizontal track line */
.candidate-river::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px; right: 20px;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}

/* Stage marker lines */
.river-stage-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 1;
}

/* Candidate face bubbles */
.cand-bubble {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 3;
  transition: left 1.6s cubic-bezier(.4,0,.2,1), transform .4s, opacity .5s, top .3s;
  background: var(--bg3);
  cursor: default;
}
.cand-bubble img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.cand-bubble.visible { transform: translate(-50%, -50%) scale(1); }
.cand-bubble.eliminated {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0.65);
  filter: grayscale(1);
}
.cand-bubble.hired-glow {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.35), 0 4px 14px rgba(0,0,0,.15);
}

/* Score badge on a bubble */
.cand-score {
  position: absolute;
  bottom: -6px; right: -4px;
  background: var(--text);
  color: white;
  font-size: 8px; font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  white-space: nowrap;
}
.cand-bubble.show-score .cand-score { opacity: 1; }

/* Hired checkmark */
.cand-check {
  position: absolute;
  top: -6px; right: -4px;
  background: var(--green);
  color: white;
  font-size: 9px; font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: opacity .3s, transform .3s;
}
.cand-bubble.hired-glow .cand-check { opacity: 1; transform: scale(1); }

/* Status bar */
.anim-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
  padding: 6px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  min-height: 34px;
}
.status-icon { font-size: 14px; flex-shrink: 0; }
#statusText { transition: opacity .3s; }

/* Counter row */
.anim-counters {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.ac-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.ac-item:last-child { border-right: none; }
.ac-num { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--text); }
.ac-label { font-size: 9px; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* Hired overlay */
.hired-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.97);
  border-radius: 15px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .6s;
  z-index: 10;
}
.hired-overlay.show { opacity: 1; }
.hired-badge {
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  padding: 10px 28px;
  border-radius: 99px;
  animation: pop .5s cubic-bezier(.4,0,.2,1);
}
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hired-sub { font-size: 13px; color: var(--text3); }
.hired-faces { display: flex; gap: -6px; }
.hired-faces .hf-bubble {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  margin-left: -6px;
}
.hired-faces .hf-bubble:first-child { margin-left: 0; }
.hired-faces .hf-bubble img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ============================================
   TAGLINE STRIP
   ============================================ */
.tagline-strip {
  background: var(--bg);
  color: var(--text);
  text-align: center;
  /* Generous vertical breathing — this is the tonal break moment */
  padding: 80px 40px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.tagline-strip strong { color: var(--orange); font-weight: 700; }

/* ============================================
   PROBLEM
   ============================================ */
.section-problem { background: var(--bg); }
.section-problem .container {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.section-problem .section-sub { max-width: 560px; }
.section-problem .prob-grid,
.section-problem .prob-solution { width: 100%; text-align: left; }
.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.prob-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: var(--bg);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.prob-card:hover { box-shadow: var(--shadow); }
.prob-icon { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.prob-icon img { width: 140px; height: 140px; object-fit: contain; }
.prob-card h3 { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.prob-card p { font-size: 0.84rem; color: var(--text3); line-height: 1.55; margin: 0; }
.prob-solution {
  background: var(--green-light);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 22px 36px 24px;
  max-width: 700px;
  margin: 0 auto;
  transition: box-shadow .2s;
}
.prob-solution:hover { box-shadow: 0 4px 20px rgba(22,163,74,0.12); }
.prob-solution-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  justify-content: center;
}
.prob-solution-icon { flex-shrink: 0; }
.prob-solution-top h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
}
.prob-solution-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.prob-solution-bullets li {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.prob-solution-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================================
   INTEGRATIONS — REDESIGNED
   ============================================ */
.section-integrations {
  background: var(--bg);
  padding: 72px 0 0;
  overflow: hidden;
}

/* Header */
.intg-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  margin-bottom: 44px;
}
.intg-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.intg-title em { font-style: normal; color: var(--orange); }
.intg-sub {
  font-size: 0.96rem;
  color: var(--text3);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* Filter tabs */
.intg-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.intg-tab {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 6px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .2s;
}
.intg-tab:hover {
  background: var(--bg2);
  color: var(--text);
}
.intg-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Logo grid */
.intg-grid-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.intg-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 48px;
}

.intg-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.intg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(232,83,10,.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.intg-card:hover {
  background: var(--bg2);
  border-color: rgba(232,83,10,.35);
  transform: translateY(-3px);
}
.intg-card:hover::before { opacity: 1; }

.intg-card-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.intg-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}
.intg-card-cat {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
}

/* Hidden card when filtered */
.intg-card.intg-hidden {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(1);
  transition: opacity .25s, transform .25s;
}
.intg-card.intg-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* +More card */
.intg-card-more { border-style: dashed; }
.intg-more-logo {
  background: var(--bg2) !important;
  border: 1.5px dashed var(--border);
  box-shadow: none;
}
.intg-more-logo span {
  font-size: 14px;
  font-weight: 800;
  color: var(--text3);
}

/* Feature strip at bottom */
.intg-features {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 40px;
}
.intg-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 40px;
  flex: 1;
  max-width: 340px;
}
.intg-feat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.intg-feat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.intg-feat strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.intg-feat p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  margin: 0;
}
.intg-feat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================
   HOW IT WORKS — pflow pipeline layout
   ============================================ */
.section-how { background: var(--bg); padding-top: 48px; }
.pflow__header {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pflow__sub { max-width: 640px; }

/* Section wrapper */
.pflow { padding: 0; background: transparent; }

/* ── Header ── */
.pflow__header { margin-bottom: 48px; }
.pflow__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 12px;
  display: block;
}
.pflow__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); line-height: 1.15; margin: 0 0 14px;
}
.pflow__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; color: var(--text2);
  line-height: 1.65; max-width: 640px; margin: 0;
}

/* ── Track ── */
.pflow__track {
  display: grid;
  grid-template-columns: 196px 36px 1fr 36px 196px;
  align-items: stretch;
}

/* ── Human bookend cards ── */
.pflow__human {
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  align-self: center;  /* vertically centre against the AI zone */
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: default;
  overflow: visible;
}
.pflow__human:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,0.25), 0 4px 16px rgba(59,130,246,0.1);
}
.pflow__you-step-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: #fff;
  background: #bfdbfe;
  border-radius: 99px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  line-height: 1;
}
.pflow__you-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #3b82f6;
  align-self: center; /* keep YOU centered while body text is left */
}
.pflow__big-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); line-height: 1;
}
.pflow__step-icon { display: block; flex-shrink: 0; overflow: visible; }
.pflow__step-icon img {
  width: 110px; height: 110px; object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
}
.pflow__human:hover .pflow__step-icon img {
  transform: scale(1.18);
  opacity: 1;
}
.pflow__step-body { flex: 0; width: 100%; }
.pflow__step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); margin: 0 0 6px;
  text-align: left;
}
.pflow__step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; color: var(--text2);
  line-height: 1.55; margin: 0;
  text-align: left;
}
.pflow__pill {
  display: inline-block;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 10px;
  font-size: 10px; font-family: 'Inter', sans-serif;
  font-weight: 500; color: var(--text2);
  white-space: nowrap;
}
.pflow__pill--green {
  background: var(--green-light); border-color: #bbf7d0;
  color: var(--green); font-weight: 600;
}

/* ── Connectors ── */
.pflow__connector { display: flex; align-items: center; justify-content: center; }
.pflow__connector-arrow { flex-shrink: 0; }

/* ── AI Zone ── */
.pflow__ai-zone {
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.pflow__ai-zone:hover {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251,146,60,0.15), 0 4px 16px rgba(232,83,10,0.08);
}
.pflow__ai-zone::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.55; pointer-events: none;
}
.pflow__ai-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  background: var(--orange-light); border-bottom: 1px solid #fed7aa;
  position: relative; z-index: 1;
}
.pflow__ai-bar-brand {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pflow__ai-bar-logo {
  height: 20px; width: auto; object-fit: contain;
}
.pflow__ai-bar-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--orange);
}
.pflow__ai-bar-meta-REMOVED {
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem; font-weight: 500;
  color: var(--text3); letter-spacing: 0.04em;
}
.pflow__ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; z-index: 1;
}
.pflow__ai-step {
  padding: 16px 15px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.82);
  transition: background 0.2s;
  cursor: default;
  position: relative;
  text-align: center;
}
.pflow__ai-step:hover {
  background: rgba(255,243,238,0.7);
}
.pflow__ai-step:nth-child(3n)   { border-right: none; }
.pflow__ai-step:nth-child(4),
.pflow__ai-step:nth-child(5),
.pflow__ai-step:nth-child(6)    { border-bottom: none; }
.pflow__ai-step-top { display: none; } /* hide old row layout */
.pflow__ai-step-num {
  position: absolute;
  top: 10px; left: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: #fff;
  background: #d1d5db;
  border-radius: 99px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  letter-spacing: 0;
}
.pflow__ai-step-icon {
  display: flex; justify-content: center; align-items: center;
  width: 100%; margin-bottom: 10px; margin-top: 4px;
}
.pflow__ai-step-icon img {
  width: 72px; height: 72px; object-fit: contain; opacity: 0.85;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
}
.pflow__ai-step:hover .pflow__ai-step-icon img {
  transform: scale(1.14);
  opacity: 1;
}
.pflow__ai-step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text); margin: 0 0 4px;
}
.pflow__ai-step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.77rem; color: var(--text2);
  line-height: 1.5; margin: 0; flex: 1;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pflow__track { grid-template-columns: 1fr; gap: 12px; }
  .pflow__connector { padding: 2px 0; }
  .pflow__connector-arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .pflow__ai-grid { grid-template-columns: repeat(2, 1fr); }
  .pflow__ai-step:nth-child(3n)   { border-right: 1px solid var(--border); }
  .pflow__ai-step:nth-child(2n)   { border-right: none; }
  .pflow__ai-step:nth-child(4),
  .pflow__ai-step:nth-child(5),
  .pflow__ai-step:nth-child(6)    { border-bottom: 1px solid var(--border); }
  .pflow__ai-step:nth-child(5),
  .pflow__ai-step:nth-child(6)    { border-bottom: none; }
}

/* ============================================
   FEATURES
   ============================================ */
.section-features { background: var(--bg); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat-item {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow .2s;
}
.feat-item:hover { box-shadow: var(--shadow); }
.feat-icon { font-size: 1.55rem; margin-bottom: 10px; display: block; }
.feat-item h4 { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feat-item p { font-size: 0.865rem; color: var(--text3); line-height: 1.6; }

/* ============================================
   METRICS
   ============================================ */
.section-metrics { background: var(--bg); }
.section-metrics .container {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.section-metrics .metrics-grid { width: 100%; text-align: left; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-card {
  border: none;
  border-radius: var(--radius);
  padding: 20px 16px;
  background: var(--orange);
  text-align: center;
}
.metric-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 5px;
}
.metric-label { font-size: 0.84rem; color: rgba(255,255,255,0.85); margin-bottom: 0; line-height: 1.4; }
.metric-bar { display: none; }
.metric-fill { display: none; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.section-testimonials { background: var(--bg2); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.testi-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: var(--bg);
}
.testi-featured {
  background: var(--text);
  border-color: var(--text);
  transform: scale(1.02);
}
.testi-featured .testi-stars { color: #fbbf24; }
.testi-featured .testi-quote { color: rgba(255,255,255,.85); }
.testi-featured strong { color: white; }
.testi-featured span { color: rgba(255,255,255,.55); }

.testi-stars { color: #f59e0b; font-size: 0.95rem; margin-bottom: 10px; letter-spacing: .05em; }
.testi-quote { font-size: 0.875rem; line-height: 1.65; color: var(--text2); margin-bottom: 14px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.testi-author strong { font-size: 0.875rem; display: block; color: var(--text); }
.testi-author span { font-size: 0.8rem; color: var(--text3); }

/* ============================================
   CTA
   ============================================ */
.section-cta { background: var(--bg); }

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 800; color: var(--text); margin-bottom: 10px;
}
.cta-sub { font-size: 0.95rem; color: var(--text3); line-height: 1.65; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ChatGPT-style prompt box */
.cta-prompt-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px;
  box-shadow: none;
}
.cta-prompt-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.cta-prompt-icon { font-size: 1.1rem; flex-shrink: 0; }
.cta-input {
  flex: 1;
  border: none; outline: none;
  font-size: 14px; font-family: var(--font-main);
  color: var(--text); background: transparent;
}
.cta-input::placeholder { color: var(--text3); }
.cta-fine { font-size: 11px; color: var(--text3); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 44px 0 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-tagline { font-size: 0.875rem; margin: 10px 0 16px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-social a:hover { color: white; }

.footer-col h5 {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: white; margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ============================================
   APP MOCKUP — BLENDED HERO RIGHT PANEL
   ============================================ */

/* Outer browser wrapper */
.app-mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.12s ease;
  user-select: none;
}
.hero-anim-wrap .app-mockup { width: 100%; }

/* Browser chrome */
.mockup-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}
.chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.chrome-spacer { width: 42px; flex-shrink: 0; } /* mirrors dots width: 3×10px + 2×6px gap */
.cd { width: 10px; height: 10px; border-radius: 50%; }
.cd-red    { background: #ff5f57; }
.cd-yellow { background: #febc2e; }
.cd-green  { background: #28c840; }
.chrome-url {
  /* Stretches from just after the dots to a matching margin on the right */
  flex: 1;
  text-align: center;
  font-size: 11px; color: var(--text3);
  background: white; border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 12px; font-weight: 500;
}

/* App shell */
.mockup-app { display: flex; height: clamp(360px, 46vw, 524px); }

/* Sidebar */
.mockup-sidebar {
  width: 62px; background: #fff;
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 10px; flex-shrink: 0;
}
.msb-logo { margin-bottom: 18px; }
.msb-logo img { width: 28px; height: 28px; object-fit: contain; }
.msb-nav { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.msb-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 6px; border-radius: 8px; width: 52px;
  cursor: pointer; transition: background .15s;
}
.msb-item:hover { background: var(--bg2); }
.msb-item.msb-active { background: var(--orange-light); }
.msb-item.msb-active svg { stroke: var(--orange); }
.msb-item svg { stroke: #999; transition: stroke .15s; }
.msb-item span { font-size: 9px; color: #aaa; font-weight: 500; text-align: center; line-height: 1.2; }
.msb-item.msb-active span { color: var(--orange); }
.msb-bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding-top: 10px; border-top: 1px solid var(--border-light); width: 100%; margin-top: 4px;
}

/* Main content */
.mockup-main { flex: 1; position: relative; overflow: hidden; }
.mockup-main.glow-active { overflow: visible; }

/* ============================================
   SCREEN SYSTEM
   ============================================ */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 1;
}
.screen-hidden { opacity: 0; pointer-events: none; }

/* ============================================
   SCREEN A — UNIFIED PROMPT (JD + CHAT)
   ============================================ */
#screenPrompt {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers title+prompt on initial view */
  transition: justify-content 0s;
}
/* Once chat starts, anchor everything to bottom */
#screenPrompt.chat-active {
  justify-content: flex-end;
}

/* Top logo + heading */
.prompt-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 20px 10px;
  flex-shrink: 0;
  transition: opacity .4s, max-height .4s, padding .4s, flex .4s;
  overflow: hidden;
}
.prompt-top.collapsed {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  flex: 0 0 0px; /* collapses its space so prompt drops to bottom */
}
.prompt-heading {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.025em;
  margin-top: 8px; text-align: center;
}

/* Chat messages — hidden at start (height:0), grows as messages appear.
   Side padding matches the prompt bar's 25% margins so bubble edges
   align exactly with the left/right edges of the input bar. */
.chat-messages {
  flex: 0 0 0px;          /* collapsed until chat starts */
  overflow-y: auto; overflow-x: hidden;
  padding: 0 25%;
  display: flex; flex-direction: column; gap: 9px;
  scroll-behavior: smooth;
  min-height: 0;
  transition: flex .4s ease, padding .3s;
  scrollbar-width: none;  /* hide scrollbar — messages fill space, no scroll */
}
.chat-messages.has-messages {
  flex: 1;                /* grow to fill all space between heading and prompt */
  justify-content: flex-end; /* messages anchor to bottom; latest always visible */
  padding-top: 14px;
  padding-bottom: 10px;
  padding-left: 25%;
  padding-right: 25%;
}
.chat-messages::-webkit-scrollbar { display: none; }

/* Message bubbles */
.msg-wrap {
  display: flex; align-items: flex-end; gap: 0;
  animation: msgIn .22s ease;
  flex-shrink: 0;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* AI: left-aligned flush to left edge; User: right-aligned flush to right edge */
.msg-wrap.msg-ai  { justify-content: flex-start; }
.msg-wrap.msg-user { justify-content: flex-end; }

/* Hide avatars — alignment is handled by the column padding */
.msg-avatar { display: none; }

.msg-bubble {
  max-width: 88%;  /* slightly less than full so long text wraps neatly */
  padding: 7px 11px;
  font-size: 11px; line-height: 1.55;
  font-family: var(--font-main);
  word-break: break-word;
}
.msg-wrap.msg-ai .msg-bubble {
  background: var(--bg2); color: var(--text);
  border-radius: 4px 12px 12px 12px;
  border: 1px solid var(--border-light);
}
.msg-wrap.msg-user .msg-bubble {
  background: var(--text); color: white;
  border-radius: 12px 12px 4px 12px;
}

/* Typing indicator */
.msg-bubble.typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 13px; min-width: 46px;
}
.typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #bbb; display: inline-block;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); background: #999; }
}

/* ── UNIFIED PROMPT BOX — centered, 50% width ── */
.unified-prompt {
  flex-shrink: 0;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 6px;
}

/* File chip row — shown above the input when JD is attached */
.file-chip-row {
  margin-bottom: 6px;
  padding: 0 2px;
}
.file-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--orange-light);
  border: 1px solid var(--orange-mid);
  border-radius: 6px;
  padding: 4px 8px 4px 7px;
  font-size: 10.5px; font-weight: 600;
  color: var(--orange);
  max-width: 100%;
  animation: chipIn .2s ease;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(.9) translateY(3px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.file-chip svg { flex-shrink: 0; stroke: var(--orange); }
.file-chip-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.file-chip-remove {
  background: none; border: none; cursor: pointer;
  color: var(--orange); font-size: 10px; line-height: 1;
  padding: 0 0 0 2px; opacity: .6; transition: opacity .15s;
}
.file-chip-remove:hover { opacity: 1; }

/* The actual input row — pill shape exactly like screenshot */
.prompt-input-row {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 99px;
  padding: 9px 9px 9px 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.prompt-input-row:focus-within {
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* Attach paperclip button */
.prompt-attach-btn {
  background: none; border: none; cursor: pointer;
  color: #bbb; padding: 0 8px 0 0; flex-shrink: 0;
  display: flex; align-items: center;
  transition: color .15s;
}
.prompt-attach-btn:hover { color: var(--orange); }
.prompt-attach-btn svg { stroke: currentColor; }

/* Text input */
.prompt-text-input {
  flex: 1; border: none; outline: none;
  font-size: 12.5px; font-family: var(--font-main);
  color: var(--text); background: transparent;
  min-width: 0;
}
.prompt-text-input::placeholder { color: #bbb; }

/* Send button — gradient pill exactly like screenshot */
.prompt-send-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #f0a090, #c4a0f0);
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, opacity .15s;
  margin-left: 6px;
}
.prompt-send-btn:hover { transform: scale(1.07); }
.prompt-send-btn.active {
  background: linear-gradient(135deg, var(--orange), #8b5cf6);
}
.prompt-send-btn svg { stroke: white; }

/* Processing state — last AI bubble glows orange while pipeline loads */
.msg-bubble.processing {
  animation: bubblePulse 0.666s ease-in-out 3;
}
@keyframes bubblePulse {
  0%   { box-shadow: 0 0 0 0px rgba(232, 83, 10, 0.45); }
  50%  { box-shadow: 0 0 0 7px rgba(232, 83, 10, 0);    }
  100% { box-shadow: 0 0 0 0px rgba(232, 83, 10, 0);    }
}

@keyframes promptLaunchGlow {
  0%   { box-shadow: 0 0 0 0px  rgba(232, 83, 10, 0);    }
  30%  { box-shadow: 0 0 18px 6px rgba(232, 83, 10, 0.35); }
  100% { box-shadow: 0 0 0 0px  rgba(232, 83, 10, 0);    }
}
.prompt-launch-glow {
  animation: promptLaunchGlow 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
  border-radius: 12px;
}

/* Below-box meta row */
.prompt-meta-row {
  display: flex; justify-content: center; align-items: center;
  padding: 5px 4px 0;
}
.prompt-enter-hint { font-size: 10px; color: #bbb; }
.prompt-progress-dots { display: flex; gap: 4px; }

/* Shared dot style */
.pd-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e0e0e0; transition: background .3s;
}
.pd-dot.filled { background: var(--orange); }

/* Continue section — hidden; prompt bar centers cleanly without it */
.continue-section {
  display: none;
}
.continue-section.hidden-section {
  opacity: 0; max-height: 0; pointer-events: none;
}
.continue-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: #bbb; margin-bottom: 6px; font-weight: 500;
}
.continue-cards {
  border: 1px solid var(--border-light); border-radius: 10px;
  overflow: hidden; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.continue-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.continue-card:last-child { border-bottom: none; }
.continue-card:hover { background: var(--bg2); }
.cc-left { flex: 1; min-width: 0; }
.cc-title-row { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.cc-title { font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 175px; }
.cc-time  { font-size: 10px; color: #bbb; white-space: nowrap; }
.cc-progress { display: flex; gap: 3px; margin-bottom: 3px; }
.cc-progress-dot { width: 5px; height: 5px; border-radius: 50%; background: #e5e5e5; flex-shrink: 0; }
.cc-progress-dot.on { background: var(--orange); }
.cc-answered { font-size: 10px; color: #bbb; }
.cc-arrow { flex-shrink: 0; margin-left: 8px; }

/* ============================================
   SCREEN B — PIPELINE
   ============================================ */
#screenPipeline {
  padding: 16px 25% 12px; /* 25% each side = 50% centred column */
  align-items: stretch;
  justify-content: center;
}

.pr-ai-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 99px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: #15803d;
  margin-bottom: 12px;
}
.pr-pipeline {
  display: flex; width: 100%;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: visible; margin-bottom: 10px;
  flex-shrink: 0; /* never let the tab bar resize */
}
.pr-stage {
  flex: 1; text-align: center;
  padding: 7px 2px 9px; font-size: 9px; font-weight: 600; color: #aaa;
  background: var(--bg2); border-right: 1px solid var(--border);
  /* Only transition color/background — never geometry */
  transition: background-color .35s, color .35s, border-color .35s;
  overflow: visible;
  /* Reserve border-bottom space always so it never causes reflow */
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.pr-stage:last-child { border-right: none; }
.pr-stage .ps-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 3px; overflow: visible; }
.pr-stage .ps-icon img { width: 60px; height: 60px; object-fit: contain; display: block; overflow: visible; }
.pr-stage.active { background: var(--orange-light); color: var(--orange); border-bottom-color: var(--orange); }
.pr-stage.done   { background: var(--green-light); color: var(--green); border-bottom-color: transparent; }

.pr-candidates {
  width: 100%; height: 68px;
  background: transparent; border: none;
  border-radius: 0; position: relative; overflow: visible;
  margin-bottom: 10px;
}
.pr-candidates::before {
  display: none;
}
.pr-face {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  transition: left 1.4s cubic-bezier(.4,0,.2,1), transform 0.9s cubic-bezier(.4,0,.2,1), opacity .4s;
  z-index: 2;
}
.pr-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pr-face.show  { /* scale set dynamically by JS per stage */ }
.pr-face.out   { opacity: 0; transform: translate(-50%, -50%) scale(.6); filter: grayscale(1); }
.pr-face.hired { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.3); }

.pr-status {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
  height: 2.4rem;      /* fixed height — never reflows during text swap */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
#prStatusText {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--text); letter-spacing: -.025em;
  white-space: nowrap; overflow: visible;
  transition: opacity .25s;
  display: block;
  line-height: 1.4;
  padding-bottom: 2px;
}

.pr-back {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--text3); font-family: var(--font-main);
  padding: 0; transition: color .2s;
}
.pr-back:hover { color: var(--text); }

/* ============================================
   SCREEN C — AI SCHEDULING
   ============================================ */
#screenScheduling {
  padding: 10px 25% 8px; /* 25% each side = 50% centred column, matches prompt bar */
  gap: 7px;
  overflow: visible; /* allow card glow to bleed onto white background */
}

.sch-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sch-header-sub {
  font-size: 10px; color: var(--text3); font-weight: 500;
}

/* Five candidate rows */
.sch-cards {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; overflow: visible; /* allow glow to bleed outside container */
}

.sch-card {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-light);
  border-radius: 8px; padding: 6px 10px;
  background: white; flex-shrink: 0;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .35s ease, transform .35s ease, border-color .3s, background .3s;
}
.sch-card.visible { opacity: 1; transform: translateX(0); }
.sch-card.confirmed {
  border-color: #bbf7d0; background: #f0fdf4;
}
/* Cascading orange glow — soft bloom that fades outward onto white bg */
.sch-card.card-pulse {
  animation: cardGlow 0.9s ease-out;
  position: relative; z-index: 10; /* ensure glow renders above siblings */
}
@keyframes cardGlow {
  0%   { box-shadow: 0 0 0px  0px  rgba(232, 83, 10, 0);    border-color: #bbf7d0; }
  25%  { box-shadow: 0 0 28px 10px rgba(232, 83, 10, 0.38); border-color: rgba(232, 83, 10, 0.55); }
  60%  { box-shadow: 0 0 40px 16px rgba(232, 83, 10, 0.18); border-color: rgba(232, 83, 10, 0.25); }
  100% { box-shadow: 0 0 60px 24px rgba(232, 83, 10, 0);    border-color: #bbf7d0; }
}

/* Face avatar */
.sch-face {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid white; box-shadow: 0 1px 5px rgba(0,0,0,.1);
}
.sch-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Candidate info */
.sch-info { flex: 1; min-width: 0; }
.sch-name { font-size: 11.5px; font-weight: 700; color: var(--text); display: block; }
.sch-role { font-size: 10px; color: var(--text3); display: block; }

/* Status badge */
.sch-status {
  font-size: 10px; font-weight: 600; padding: 3px 9px;
  border-radius: 99px; white-space: nowrap; flex-shrink: 0;
  transition: all .3s;
}
.sch-status.contacting {
  background: #fef9c3; color: #854d0e; border: 1px solid #fde68a;
}
.sch-status.scheduled {
  background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
}

/* Interview time chip */
.sch-time {
  font-size: 10px; color: var(--text3); white-space: nowrap;
  opacity: 0; transition: opacity .4s;
  flex-shrink: 0;
}
.sch-time.show { opacity: 1; }

/* Summary bar */
.sch-summary {
  flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 10px;
  font-size: 10.5px; color: var(--text3);
  display: flex; align-items: center; gap: 6px;
}
.sch-sum-text { transition: opacity .3s; }

/* Mini calendar */
.sch-calendar {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.sch-calendar.show {
  opacity: 1;
  transform: translateY(0);
}
.sch-cal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 9.5px; color: var(--text3); font-weight: 600;
}
.sch-cal-badge {
  margin-left: auto;
  background: var(--orange); color: white;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  transition: background .3s;
}
.sch-cal-badge.full { background: var(--green); }
.sch-cal-grid {
  display: flex;
  overflow: hidden;
}
.sch-cal-day {
  flex: 1;
  border-right: 1px solid var(--border-light);
  min-width: 0;
}
.sch-cal-day:last-child { border-right: none; }
.sch-cal-day-label {
  font-size: 8px; font-weight: 700; color: var(--text3);
  text-align: center; padding: 2px 2px;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.sch-cal-slots {
  padding: 2px 3px;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 34px;
}
.sch-cal-slot {
  background: #f1f5f9; border-radius: 3px;
  font-size: 7px; color: var(--text3);
  padding: 2px 3px; text-align: center;
  opacity: 0; transform: scaleY(0);
  transform-origin: top;
  transition: opacity .25s ease, transform .25s ease, background .25s, color .25s;
}
.sch-cal-slot.booked {
  background: #fff7ed;
  color: var(--orange);
  font-weight: 700;
  opacity: 1;
  transform: scaleY(1);
}

/* ============================================
   SCREEN D — ROLE FILLED CELEBRATION
   ============================================ */
#screenRoleFilled {
  padding: 0 25%;        /* 25% each side = 50% centred column */
  align-items: center; justify-content: center;
  background: white;
  overflow: hidden;
}

.rf-screen-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  text-align: center; position: relative;
  z-index: 2;
}

/* Confetti burst container */
.rf-confetti {
  position: absolute; inset: -20px;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.rf-confetti-piece {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 2px;
  animation: confettiFall linear both;
  transform-origin: center;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(300px) rotate(720deg); opacity: 0; }
}

/* Big animated check */
.rf-check-circle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green);
  color: white; font-size: 1.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(22,163,74,.4);
  animation: rfCheckPop .55s cubic-bezier(.34,1.56,.64,1) both;
  position: relative; z-index: 2;
}
@keyframes rfCheckPop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.rf-headline {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--text); letter-spacing: -.035em;
  margin: 0;
  opacity: 0; /* JS sets to 1 and splits into .rf-letter spans */
}
.rf-subline {
  font-size: 11px; color: var(--text3); margin: 0;
  animation: rfGlideUp .6s .55s cubic-bezier(0,.8,.3,1) both;
}
@keyframes rfGlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Individual letter bubble — triggered via JS span wrapping */
.rf-letter {
  display: inline-block;
  opacity: 0;
  animation: rfLetterBubble 0.45s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes rfLetterBubble {
  0%   { opacity: 0; transform: translateY(12px) scale(0.7); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Hired face stack */
.rf-hired-faces {
  display: flex; justify-content: center; margin-top: 4px;
  animation: rfGlideUp .6s .45s cubic-bezier(0,.8,.3,1) both;
}
.rf-hired-face {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  margin-left: -10px;
  animation: rfFaceGlide .55s cubic-bezier(0,.8,.3,1) both;
}
.rf-hired-face:first-child { margin-left: 0; }
.rf-hired-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@keyframes rfFaceGlide {
  0%   { transform: scale(0.4) translateY(14px); opacity: 0; }
  65%  { transform: scale(1.06) translateY(-2px); opacity: 1; }
  100% { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* Stats row */
.rf-stats-row {
  display: flex; gap: 2px;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin-top: 4px;
  animation: rfGlideUp .6s .65s cubic-bezier(0,.8,.3,1) both;
}
.rf-stat {
  flex: 1; text-align: center; padding: 8px 10px;
  border-right: 1px solid var(--border);
}
.rf-stat:last-child { border-right: none; }
.rf-stat-num {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800; color: var(--green);
  letter-spacing: -.04em;
}
.rf-stat-label {
  display: block; font-size: 9px; color: var(--text3);
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}

.rf-restart-btn {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--text3); font-family: var(--font-main);
  padding: 4px 0; transition: color .2s; margin-top: 2px;
  animation: rfGlideUp .6s .8s cubic-bezier(0,.8,.3,1) both;
}
.rf-restart-btn:hover { color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .intg-grid { grid-template-columns: repeat(5, 1fr); }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 860px) {
  .hero-inner { padding: 0 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .intg-grid { grid-template-columns: repeat(4, 1fr); }
  .intg-features { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .intg-feat { padding: 0; max-width: 100%; }
  .intg-feat-divider { width: 80%; height: 1px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .intg-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .intg-grid-wrap { padding: 0 16px; }
  .intg-header { padding: 0 24px; }
  .hero-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-md); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .prob-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-prompt-inner { flex-direction: column; }
  .cta-input { width: 100%; }
  .stage-cell .stage-label { display: none; }
}
