/* ============================================================
   HirePilot marketing site v2
   Aesthetic: engineered / print-shop technical (Juicebox-inspired):
   paper background, ink text, one cobalt accent, mono uppercase
   labels, dither + hatch + iso-grid textures, bordered structure.
   Radius system: structural surfaces (sections, cards, buttons,
   chips) are SHARP (0). Conversational chat bubbles are 8px.
   Avatars are circles. Nothing else is rounded.
   ============================================================ */

:root {
  --paper: #f6f6f3;
  --paper-deep: #eeeeea;
  --ink: #14162e;
  --ink-soft: #4c5259;
  --ink-faint: #8b9096;
  --border: #dcdcd6;
  --border-dark: #c9c9c2;
  --accent: #4b4fe2;
  --accent-deep: #3a3ec6;
  --accent-tint: #ececfc;
  --stage: #151b45;
  --stage-deep: #10143a;
  --stage-line: rgba(122, 143, 255, 0.13);
  --green: #0e7a52;
  --green-tint: #e2f2ea;
  --shadow-card: 0 1px 0 rgba(22, 24, 29, 0.04), 0 12px 40px rgba(22, 24, 29, 0.1);
  --shadow-float: 0 16px 50px rgba(6, 9, 30, 0.45);
  --font-sans: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

/* ---------- Typography ---------- */

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 58ch;
  margin-top: 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}

.br-desktop { display: none; }
@media (min-width: 1025px) {
  .br-desktop { display: block; }
}

/* ---------- Buttons: mono caps, sharp ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 16px 30px; font-size: 0.8125rem; }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(22, 24, 29, 0.03);
}

.btn-light {
  background: #fff;
  color: var(--stage-deep);
  border-color: #fff;
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 12px 14px;
}
.btn-ghost:hover { color: var(--ink); }

/* ---------- Nav ---------- */

#top-sentinel { position: absolute; top: 0; height: 1px; width: 100%; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 246, 243, 0.88);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; }
.brand-os { color: var(--accent); font-weight: 700; }

.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
}
.brand-plate .brand-mark { width: 24px; height: 24px; }
.brand-footer .brand-os { color: #9da2f5; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-dark { padding: 10px 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 150px 0 84px;
  text-align: center;
  overflow: hidden;
}

/* Dithered halftone fade, two dot frequencies */
.hero-dither {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(59, 91, 219, 0.32) 1px, transparent 1px),
    radial-gradient(rgba(59, 91, 219, 0.16) 1px, transparent 1px);
  background-size: 7px 7px, 13px 13px;
  background-position: 0 0, 3px 5px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 34%, transparent 62%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 34%, transparent 62%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-dark);
  padding: 7px 14px;
  margin-bottom: 34px;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.announce:hover { border-color: var(--accent); color: var(--accent); }
.announce i { font-size: 0.9rem; transition: transform 0.16s var(--ease); }
.announce:hover i { transform: translateX(3px); }

.announce-tag {
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.1875rem;
  max-width: 52ch;
  margin-top: 26px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

/* ---------- Demo stage ---------- */

.stage {
  position: relative;
  background: var(--stage);
  border-top: 1px solid var(--stage-deep);
  padding: 64px 0 96px;
  overflow: hidden;
}

/* Isometric line grid */
.stage-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg, var(--stage-line) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(-60deg, var(--stage-line) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, var(--stage-line) 0 1px, transparent 1px 84px);
}

.stage::after {
  /* dither fade bleeding down from the paper hero into the stage */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  pointer-events: none;
  background-image: radial-gradient(rgba(214, 221, 255, 0.5) 1px, transparent 1px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}

.stage-inner { position: relative; }

.stage-tag {
  width: fit-content;
  margin: 0 auto 40px;
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cdd6ff;
  border: 1px solid rgba(205, 214, 255, 0.35);
  padding: 6px 14px;
}

.stage-composition {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Chat component ---------- */

.chat-window {
  background: #fff;
  border: 1px solid rgba(16, 20, 58, 0.9);
  box-shadow: var(--shadow-float);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.chat-context {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-body {
  height: 330px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: #fafaf8;
}

.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  .msg { animation: msg-in 0.4s var(--ease) both; }
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-agent {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-bottom-left-radius: 2px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: bounce 1s infinite; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.chat-inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-placeholder { color: var(--ink-faint); font-size: 0.875rem; }
.chat-send { color: var(--accent); font-size: 1.25rem; display: flex; }

/* ---------- Floating fragments ---------- */

.float-card {
  position: absolute;
  width: 230px;
  background: #fff;
  border: 1px solid rgba(16, 20, 58, 0.9);
  box-shadow: var(--shadow-float);
  padding: 12px 14px;
}
.float-card p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 8px;
}
.float-card p i { color: var(--accent); font-size: 1rem; margin-top: 1px; }

.float-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 3px 8px;
}
.float-tag.tag-green { color: var(--green); background: var(--green-tint); }
.float-card .tag-green + p i { color: var(--green); }

.float-left { top: 44px; left: -270px; }
.float-right { top: 140px; right: -270px; }
.float-bottom { bottom: -36px; left: -262px; }

@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: drift 7s ease-in-out infinite; }
  .float-right { animation-delay: 1.4s; animation-duration: 8s; }
  .float-bottom { animation-delay: 2.6s; animation-duration: 9s; }
  @keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
}

/* ---------- Logo wall ---------- */

.logos { border-bottom: 1px solid var(--border); }

.logos-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.logos-title {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding-right: 64px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: scroll-x 32s linear infinite; }
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-mark { width: 22px; height: 22px; }

/* ---------- Hatch divider ---------- */

.hatch {
  height: 26px;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(
    -45deg,
    var(--border) 0 1px,
    transparent 1px 8px
  );
}

/* ---------- Workflow ---------- */

.workflow { padding: 110px 0; }

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 90px;
  align-items: start;
}

.workflow-intro { position: sticky; top: 110px; }
.workflow-intro .btn { margin-top: 30px; }

.workflow-steps { border-top: 1px solid var(--border-dark); }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 26px;
  align-items: start;
  padding: 30px 4px;
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.2s var(--ease);
}
.step:hover { background: rgba(59, 91, 219, 0.035); }

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.7188rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}

.step-body p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: 6px;
  max-width: 46ch;
}

.step-glyph {
  font-size: 1.5rem;
  color: var(--ink-faint);
  padding-top: 2px;
}

/* ---------- Platform bento: gapless bordered grid ---------- */

.platform {
  padding: 110px 0 120px;
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
}

.platform-head { max-width: 640px; margin-bottom: 54px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  gap: 1px;
  box-shadow: var(--shadow-card);
}

.bento-cell {
  background: #fff;
  padding: 28px;
  transition: background 0.25s var(--ease);
}
.bento-cell:hover { background: #fcfcfa; }
.bento-cell h3 { margin-top: 22px; }
.bento-cell > p {
  color: var(--ink-soft);
  font-size: 0.9063rem;
  margin-top: 6px;
}

.cell-pipeline { grid-column: span 2; }
.cell-outreach { grid-column: span 2; }

/* dither wash in the two texture cells */
.cell-dossier,
.cell-schedule {
  background-image: radial-gradient(rgba(59, 91, 219, 0.13) 1px, transparent 1px);
  background-size: 7px 7px;
}

.cell-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 5px 10px;
  margin-bottom: 20px;
}

/* avatars */
.avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.av-rose { background: #be5a83; }
.av-teal { background: #2b8a8a; }
.av-amber { background: #b07d2b; }
.av-indigo { background: #5a67b0; }
.av-emerald { background: #3d8f5f; }
.av-slate { background: #64748b; }

/* dossier */
.dossier {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
}
.dossier-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dossier-top strong { display: block; font-size: 0.9063rem; }

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.signal-list li { display: flex; align-items: center; gap: 8px; }
.signal-list i { color: var(--accent); font-size: 0.95rem; }

.match-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 10px;
}

/* kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kanban-col {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 0 2px 2px;
}
.kanban-col-head .count { color: var(--ink-faint); }
.kanban-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.kanban-card:hover { transform: translateY(-2px); border-color: var(--border-dark); }
.kanban-card strong { display: block; font-size: 0.8125rem; line-height: 1.3; }
.kanban-card .muted { font-size: 0.7188rem; }
.kanban-card .avatar { width: 28px; height: 28px; font-size: 0.6rem; }

/* outreach sequence */
.sequence { display: flex; flex-direction: column; gap: 6px; }
.seq-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.seq-item strong { font-size: 0.875rem; display: block; }
.seq-item i { font-size: 1.15rem; margin-top: 2px; }
.seq-item.done i { color: #10b981; }
.seq-item.next i { color: var(--accent); }
.seq-item.next { border-style: dashed; background: #fff; }

/* scheduling */
.slot-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
}
.slot-card strong { display: block; font-size: 0.9063rem; }
.slot-date {
  flex-shrink: 0;
  width: 54px;
  border: 1px solid var(--border);
  text-align: center;
  padding: 7px 0;
}
.slot-day {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #c2453f;
}
.slot-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- Results ---------- */

.results { padding: 110px 0; }

.results-head { max-width: 620px; margin-bottom: 64px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.stat {
  padding: 34px 32px 38px;
  border-left: 1px solid var(--border-dark);
}
.stat:first-child { border-left: none; padding-left: 4px; }

.stat-num {
  display: block;
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: 14px;
  max-width: 30ch;
}

.quote { max-width: 760px; margin-top: 84px; }
.quote p {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.quote footer strong { display: block; font-size: 0.9375rem; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--stage);
  color: #fff;
  padding: 120px 0 130px;
  text-align: center;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  max-width: 640px;
}
.cta p {
  color: #c3cbf2;
  font-size: 1.0625rem;
  margin: 18px 0 36px;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--stage-deep);
  color: #aab2dd;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-footer { color: #fff; }

.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links a:hover { color: #fff; }

.footer-note { font-size: 0.8125rem; color: #7079ad; }

/* ============================================================
   Booking modal (Calendly-style, demo only)
   This surface intentionally mimics a scheduling product:
   rounded corners + #0069ff blue, distinct from the site system.
   ============================================================ */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.booking-overlay[hidden] { display: none; }

body.bk-open { overflow: hidden; }

.booking-modal { position: relative; margin: auto; }

.booking-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #666a73;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10, 14, 38, 0.3);
}
.booking-close:hover { color: #1a1a1a; }

.booking-card {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(6, 9, 30, 0.5);
  overflow: hidden;
  font-family: var(--font-sans);
  color: #1a1a1a;
  min-height: 480px;
}
@media (prefers-reduced-motion: no-preference) {
  .booking-card { animation: bk-pop 0.3s var(--ease); }
  @keyframes bk-pop {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

.bk-panel { padding: 26px; }

/* state machine: which panels show */
.bk-times, .bk-form, .bk-success { display: none; }
.booking-card[data-state="times"] .bk-times { display: block; }
.booking-card[data-state="form"] .bk-main,
.booking-card[data-state="form"] .bk-times { display: none; }
.booking-card[data-state="form"] .bk-form { display: block; }
.booking-card[data-state="success"] .bk-left,
.booking-card[data-state="success"] .bk-main,
.booking-card[data-state="success"] .bk-times,
.booking-card[data-state="success"] .bk-form { display: none; }
.booking-card[data-state="success"] .bk-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* left panel */
.bk-left {
  width: 280px;
  border-right: 1px solid #e7e7ea;
}
.bk-logo { margin-bottom: 14px; }
.bk-host { color: #666a73; font-weight: 600; font-size: 0.875rem; }
.bk-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 18px;
  line-height: 1.2;
}
.bk-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #666a73;
  font-size: 0.875rem;
  font-weight: 500;
}
.bk-meta li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.bk-meta li[hidden] { display: none; }
.bk-meta i { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
#bk-slot-row { color: #1a1a1a; font-weight: 600; }

/* calendar */
.bk-main { width: 380px; }
.bk-step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }

.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 6px;
}
.bk-month { font-size: 0.9375rem; font-weight: 600; }

.bk-nav {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0069ff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bk-nav:hover { background: rgba(0, 105, 255, 0.08); }
.bk-nav:disabled { color: #c3c6cc; cursor: default; background: transparent; }

.bk-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.6563rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.bk-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
}
.bk-day {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #c3c6cc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
}
.bk-day.avail {
  background: rgba(0, 105, 255, 0.065);
  color: #0069ff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bk-day.avail:hover { background: rgba(0, 105, 255, 0.14); }
.bk-day.selected { background: #0069ff; color: #fff; }
.bk-day.today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* time slots */
.bk-times {
  width: 230px;
  border-left: 1px solid #e7e7ea;
}
.bk-times-date { font-size: 0.875rem; font-weight: 600; margin-bottom: 14px; }
.bk-times-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.bk-slot { display: flex; gap: 8px; }
.bk-slot-time {
  flex: 1;
  height: 50px;
  border: 1px solid rgba(0, 105, 255, 0.55);
  border-radius: 4px;
  background: #fff;
  color: #0069ff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.12s ease;
}
.bk-slot-time:hover { box-shadow: inset 0 0 0 1px rgba(0, 105, 255, 0.55); }
.bk-slot.picked .bk-slot-time {
  background: #666a73;
  border-color: #666a73;
  color: #fff;
  cursor: default;
}
.bk-slot-next {
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 4px;
  background: #0069ff;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.bk-slot.picked .bk-slot-next { display: block; }
.bk-slot-next:hover { background: #0053c9; }

/* form */
.bk-form { width: 430px; position: relative; }
.bk-back {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid #e7e7ea;
  border-radius: 50%;
  background: #fff;
  color: #0069ff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bk-back:hover { background: rgba(0, 105, 255, 0.06); }
.bk-form .bk-step-title { margin: 6px 0 20px 52px; }

.bk-field { margin-bottom: 18px; }
.bk-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.bk-field input,
.bk-field textarea {
  width: 100%;
  border: 1px solid #a6a9b0;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #1a1a1a;
  resize: vertical;
}
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: #0069ff;
  box-shadow: 0 0 0 1px #0069ff;
}
.bk-field.invalid input { border-color: #c8402a; box-shadow: 0 0 0 1px #c8402a; }
.bk-err { display: block; color: #c8402a; font-size: 0.8125rem; margin-top: 6px; }
.bk-err[hidden] { display: none; }

.bk-schedule {
  border: none;
  border-radius: 40px;
  background: #0069ff;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.bk-schedule:hover { background: #0053c9; }
.bk-schedule:disabled { background: #8fbcff; cursor: wait; }

/* success */
.bk-success { width: 460px; padding: 48px 40px; }
.bk-check { font-size: 3rem; color: #1aa251; margin-bottom: 10px; }
.bk-success h3 { font-size: 1.35rem; font-weight: 700; }
.bk-success-sub { color: #666a73; font-size: 0.9375rem; margin: 8px 0 24px; }

.bk-summary {
  display: flex;
  gap: 14px;
  text-align: left;
  border: 1px solid #e7e7ea;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 26px;
  width: 100%;
}
.bk-summary-bar {
  width: 4px;
  border-radius: 2px;
  background: #0069ff;
  flex-shrink: 0;
}
.bk-summary strong { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.bk-summary span { display: block; color: #666a73; font-size: 0.875rem; }
.bk-summary .bk-summary-bar { display: block; }

/* modal responsive */
@media (max-width: 1024px) {
  .booking-card { flex-direction: column; min-height: 0; max-width: 440px; }
  .bk-left, .bk-main, .bk-times, .bk-form, .bk-success { width: 100%; }
  .bk-left { border-right: none; border-bottom: 1px solid #e7e7ea; }
  .bk-times { border-left: none; border-top: 1px solid #e7e7ea; }
  .bk-times-list { max-height: 220px; }
  .booking-overlay { align-items: flex-start; }
  .booking-close { top: 8px; right: 8px; box-shadow: none; }
}

/* ---------- Login page (demo only, no auth) ---------- */

.login-page { min-height: 100dvh; display: flex; flex-direction: column; }

.login-nav { position: static; background: var(--paper); border-bottom: 1px solid var(--border); }
.login-nav .btn-ghost { display: inline-flex; align-items: center; gap: 8px; }

.login-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: #fff;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-card);
  padding: 38px 36px;
}

.login-logo { margin-bottom: 18px; }
.login-title { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.login-sub { color: var(--ink-soft); font-size: 0.9063rem; margin-top: 8px; }

.login-field { margin-top: 20px; }
.login-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.login-field input {
  width: 100%;
  border: 1px solid var(--border-dark);
  background: #fff;
  padding: 11px 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
}
.login-field input::placeholder { color: var(--ink-faint); }
.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.login-row { display: flex; align-items: baseline; justify-content: space-between; }
.login-forgot { font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.login-forgot:hover { text-decoration: underline; }

.login-pw-wrap { position: relative; }
.login-pw-wrap input { padding-right: 44px; }
.login-eye {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-eye:hover { color: var(--ink); }

.login-error {
  display: none;
  background: #fbeeec;
  border: 1px solid #e3b3aa;
  color: #94301f;
  font-size: 0.8438rem;
  line-height: 1.5;
  padding: 10px 12px;
  margin-top: 18px;
}

.login-submit { width: 100%; margin-top: 22px; }
.login-submit:disabled { opacity: 0.7; cursor: wait; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.login-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border-dark);
  background: #fff;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.login-google:hover { border-color: var(--ink); background: #fcfcfa; }
.login-google:disabled { opacity: 0.7; cursor: wait; }

.login-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.login-foot a { color: var(--accent); font-weight: 600; }
.login-foot a:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .float-left { left: -220px; }
  .float-right { right: -220px; }
  .float-bottom { left: -212px; }
}

@media (max-width: 1100px) {
  .float-card { display: none; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .workflow-grid { grid-template-columns: 1fr; gap: 44px; }
  .workflow-intro { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-pipeline, .cell-outreach { grid-column: span 2; }
  .cell-dossier, .cell-schedule { grid-column: span 1; }
  .logos-inner { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .stage { padding: 48px 0 64px; }
  .bento { grid-template-columns: 1fr; }
  .cell-pipeline, .cell-outreach, .cell-dossier, .cell-schedule { grid-column: span 1; }
  .kanban { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; border-bottom: none; }
  .stat { border-left: none; border-bottom: 1px solid var(--border-dark); padding: 26px 4px 30px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 24px 4px; }
  .step-glyph { display: none; }
  .workflow, .platform, .results { padding: 72px 0; }
  .cta { padding: 80px 0 90px; }
  .footer-inner { flex-direction: column; }
  .nav-cta .btn-ghost { display: none; }
}
