/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg-soft: #0d0d0f;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --border: #232327;
  --border-light: #2c2c31;
  --text-primary: #f5f5f4;
  --text-secondary: #a6a6ad;
  --text-tertiary: #6f6f78;

  --accent-green: #f25c19;
  --accent-green-bg: rgba(242, 92, 25, 0.12);
  --accent-green-border: rgba(242, 92, 25, 0.3);
  --accent-amber: #e8b74f;
  --accent-amber-bg: rgba(232, 183, 79, 0.12);
  --accent-red: #f2555a;
  --accent-red-bg: rgba(242, 85, 90, 0.12);
  --accent-red-border: rgba(242, 85, 90, 0.3);

  --light-panel: #eeeeec;
  --light-panel-2: #e3e3e0;
  --light-panel-text: #17171a;
  --light-panel-text-sub: #55555c;
  --light-panel-border: #d8d8d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Faint background grid, top of page */
.bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, black 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, black 10%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Full-viewport background video behind all main content */
.main-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.main-bg-video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.55) 40%, var(--bg) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

.btn-light {
  background: var(--text-primary);
  color: #0a0a0b;
}
.btn-light:hover { background: #ffffff; }

.btn-dark {
  background: #000000;
  color: #ffffff;
}
.btn-dark:hover { background: #1a1a1a; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: #4a4a52; background: var(--surface); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.header-inner .brand { grid-column: 1; justify-self: start; min-width: max-content; }
.header-inner .main-nav { grid-column: 2; justify-self: center; }
.header-inner .header-actions { grid-column: 3; justify-self: end; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--accent-green); display: flex; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-name { color: var(--text-primary); }
.footer-top .brand-logo { height: 56px; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
}

.mobile-nav {
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.98);
}
.mobile-nav:not([hidden]) { display: flex; }

.mobile-nav-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.mobile-nav-link-sub { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.4; }

.nav-hover-item { position: relative; }
.nav-hover-trigger {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-hover-item:hover .nav-hover-trigger { color: var(--text-primary); }

.nav-hover-panel {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.nav-hover-item:hover .nav-hover-panel { display: flex; }
.nav-hover-panel:hover { border-color: var(--text-tertiary); }
/* Bridge the gap between trigger and panel so the hover state survives the move. */
.nav-hover-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--text-primary); }
.nav-dropdown-trigger .chevron { transition: transform 0.2s ease; }
.nav-dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}
.nav-dropdown-menu:not([hidden]) { display: flex; flex-direction: row; gap: 8px; }

.nav-dropdown-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible { background: var(--border-light); border-color: var(--border-light); }
.nav-dropdown-item-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.nav-dropdown-item-field { display: flex; flex-direction: column; gap: 3px; }
.nav-dropdown-item-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.nav-dropdown-item-value { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }

/* ==========================================================================
   Tag pill / eyebrow labels
   ========================================================================== */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.tag-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-bg);
}
.section-head { max-width: 640px; }
.section-head-center { margin: 0 auto 56px; text-align: center; }
.brief-section .section-head { max-width: 860px; }
.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.section-head p { color: var(--text-secondary); font-size: 16px; }

/* ==========================================================================
   Booking (Cal.com embed)
   ========================================================================== */
.booking-section { position: relative; z-index: 1; padding: 128px 0 100px; }
.booking-embed {
  max-width: 1100px;
  height: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 144px 0 120px;
  text-align: center;
}
.hero-title {
  font-size: 52px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--text-secondary); }
.text-accent { color: var(--accent-green); }

/* ---- Hero badge-pill: inverted (dark bg, light text/border) to sit on the dark hero background ---- */
.hero-inner .badge-pill {
  background: var(--bg);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.hero-inner .badge-pill strong,
.hero-inner .badge-pill svg { color: var(--text-primary); }
.hero-inner .badge-pill .sep { color: var(--text-primary); }

/* ---- Persona overlay: mobile-only, opened by tapping the hero badge-pill ---- */
.persona-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.persona-overlay[hidden] { display: none; }
.persona-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.persona-overlay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  animation: personaOverlayIn 0.2s ease;
}
@keyframes personaOverlayIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.persona-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
}
.persona-overlay-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-top: 8px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface-2);
  transition: border-color 0.15s ease;
}
.persona-overlay-card:first-of-type { margin-top: 26px; }
.persona-overlay-card:active { border-color: var(--text-tertiary); }

/* Trigger + overlay only ever apply on mobile; hard-disabled above the
   breakpoint so the desktop hero is never affected. */
@media (min-width: 961px) {
  .persona-overlay { display: none !important; }
  .hero-badge-trigger { display: none !important; }
}

.hero-sub {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ==========================================================================
   Market Panel (light contrast card)
   ========================================================================== */
.market-panel-wrap {
  position: relative;
  z-index: 1;
  padding: 24px 0 100px;
}
.market-panel {
  background: var(--light-panel);
  color: var(--light-panel-text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.market-panel-head { text-align: center; max-width: 860px; margin: 0 auto; padding: 56px 56px 48px; }
.market-panel-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.market-panel-head p {
  margin-top: 14px;
  color: var(--light-panel-text-sub);
  font-size: 15px;
}

.badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 28px;
  background: #fff;
  border: 1px solid var(--light-panel-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 14px;
  font-size: 13px;
  color: var(--light-panel-text-sub);
  font-family: inherit;
  cursor: default;
  appearance: none;
}
.badge-pill svg { color: var(--light-panel-text-sub); flex-shrink: 0; }
.badge-pill strong { color: var(--light-panel-text); font-weight: 600; }
.badge-pill .sep { color: var(--light-panel-border); }

/* ---- Dark lower half of the panel ---- */
.market-panel-dark {
  position: relative;
  background: #101012;
  padding: 48px 56px 56px;
  overflow: hidden;
}

.step-row-head { position: relative; z-index: 1; text-align: center; margin-bottom: 24px; }
.step-row-eyebrow {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.step-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.step-card {
  background: rgba(20, 20, 22, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px 26px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.step-card p { color: var(--text-primary); font-size: 15px; line-height: 1.5; }

.market-visual-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
}

/* ---- Chat demo (You / Automatisor) ---- */
.chat-demo {
  position: relative;
  background: rgba(16, 16, 18, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 613px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.chat-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(62,207,142,0.08), transparent 70%);
  pointer-events: none;
}

.chat-demo-numbers {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: flex;
  gap: 8px;
}
.chat-demo-number {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--accent-green);
  color: #000;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chat-demo-number:hover { transform: translateY(-1px); }
.chat-demo-number.is-active { border-color: var(--text-primary); color: var(--text-primary); }

.chat-thread {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.chat-thread::-webkit-scrollbar { display: none; }
/* Pushes a short conversation down to the bottom of the panel, same visual
   effect as justify-content:flex-end but without that property's flexbox
   quirk of clipping (instead of scrolling) once content overflows. */
.chat-thread > .chat-message:first-child { margin-top: auto; }

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: chatMessageIn 0.35s ease;
}
.chat-message--user { flex-direction: row-reverse; }
.chat-message--user .chat-bubble-wrap { align-items: flex-end; }
.chat-message--user .chat-label { text-align: right; }

.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.chat-message--user .chat-avatar { background: var(--text-primary); color: #0a0a0b; }
.chat-message--bot .chat-avatar { background: #fff; color: #0a0a0b; }

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 80%;
  min-width: 0;
}
.chat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  min-height: 1.55em;
}
.chat-message--user .chat-bubble {
  background: var(--text-primary);
  color: #0a0a0b;
  border-top-right-radius: 4px;
  font-weight: 500;
}
.chat-message--bot .chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}
.chat-message--bot.is-thinking .chat-bubble {
  color: var(--text-tertiary);
  font-style: italic;
}

.chat-bubble.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: chatCaretBlink 0.85s steps(1) infinite;
}

.chat-thinking {
  display: inline-flex;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.chat-thinking i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
  display: inline-block;
  animation: chatThinkBounce 1s infinite ease-in-out;
}
.chat-thinking i:nth-child(2) { animation-delay: 0.15s; }
.chat-thinking i:nth-child(3) { animation-delay: 0.3s; }

/* ---- Rich chat answers (lead line + data table + closing line) ---- */
.chat-bubble-wrap--rich { max-width: 100%; width: 100%; }
.chat-message--bot .chat-bubble--rich { width: 100%; }

.chat-rich-line { margin: 0 0 10px; }
.chat-rich-line:last-child { margin-bottom: 0; }

.chat-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 10px 0 12px;
  font-size: 11.5px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}
.chat-table th {
  text-align: left;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--text-tertiary);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}
.chat-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.chat-table tr:last-child td { border-bottom: none; }
.chat-table-label { color: var(--text-primary); font-weight: 600; white-space: nowrap; }

.chat-rich-line strong,
.chat-bullet-list strong { color: var(--text-primary); font-weight: 700; }

.chat-bullet-list {
  list-style: disc;
  margin: 4px 0 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bullet-list li {
  display: list-item;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chat-feedback { display: flex; gap: 6px; margin-top: 10px; }
.chat-feedback button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-tertiary);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.chat-feedback button:hover { color: var(--text-primary); border-color: var(--text-tertiary); }

@keyframes chatMessageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatCaretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes chatThinkBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.market-sample {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}
.market-sample h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--light-panel-text); }
.market-sample p { margin-top: 12px; color: var(--light-panel-text-sub); font-size: 15px; max-width: 380px; }
.market-sample .btn { margin-top: 28px; }

.sample-form {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.sample-form input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--light-panel-border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  background: #fafaf9;
  color: var(--light-panel-text);
}
.sample-form input::placeholder { color: var(--light-panel-text-sub); }
.sample-form input:focus { outline: 2px solid var(--light-panel-text); outline-offset: 1px; }
.sample-form .btn-light { background: var(--light-panel-text); color: #fff; }
.sample-form .btn-light:hover { background: #000; }

.sample-table-wrap {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 22, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sample-table-head { padding: 20px 20px 16px; }
.sample-table-head h4 { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.sample-table-head span { display: block; margin-top: 4px; font-size: 13px; color: var(--text-tertiary); }

.sample-table-scroll { overflow-x: auto; }
.sample-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sample-table--expandable { table-layout: fixed; }
.sample-table--expandable thead th:nth-child(1) { width: 24%; }
.sample-table--expandable thead th:nth-child(2) { width: 66.5%; }
.sample-table--expandable thead th:nth-child(3) { width: 7%; }
.sample-table--expandable thead th:nth-child(4) { width: 7%; }
.sample-table--expandable thead th:nth-child(5) { width: 64px; }
.sample-table th {
  text-align: left;
  padding: 12px 20px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.sample-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.sample-table tr:last-child td { border-bottom: none; }

.company-name-cell { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verdict-check { display: inline-flex; color: var(--accent-green); }
.reasoning-cell { color: var(--text-secondary); min-width: 260px; }
.contact-cell { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 12.5px; white-space: normal; }

.sample-table--expandable th:nth-child(3),
.sample-table--expandable td:nth-child(3),
.sample-table--expandable th:nth-child(4),
.sample-table--expandable td:nth-child(4) { padding-left: 8px; padding-right: 8px; }

.sample-table-footnote {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.expand-col { width: 1%; }
.expand-cell { width: 1%; text-align: right; white-space: nowrap; }

.group-row td {
  padding: 10px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-light);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.row-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.row-expand-btn:hover { background: var(--border-light); color: var(--text-primary); }
.row-expand-btn .chevron { transition: transform 0.2s ease; }
.row-expand-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.detail-row td { padding: 0; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }

/* ---- Expanded row pair: outline wraps sample-row + detail-row as one block ---- */
.sample-row.is-expanded td { box-shadow: inset 0 1px 0 0 var(--text-tertiary); }
.sample-row.is-expanded td:first-child { box-shadow: inset 0 1px 0 0 var(--text-tertiary), inset 1px 0 0 0 var(--text-tertiary); }
.sample-row.is-expanded td:last-child { box-shadow: inset 0 1px 0 0 var(--text-tertiary), inset -1px 0 0 0 var(--text-tertiary); }
.detail-row.is-expanded td {
  box-shadow: inset 1px 0 0 0 var(--text-tertiary), inset -1px 0 0 0 var(--text-tertiary), inset 0 -1px 0 0 var(--text-tertiary);
}
.detail-content {
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  animation: detailFadeIn 0.2s ease;
}
@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #f25c19, #b8460f);
  flex-shrink: 0;
}
.logo-dot.alt { background: linear-gradient(135deg, #6f6fd8, #3a3aa0); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pill-green { background: var(--accent-green-bg); color: #b8460f; border: 1px solid var(--accent-green-border); }
.pill-amber { background: var(--accent-amber-bg); color: #9a6d13; border: 1px solid rgba(232,183,79,0.35); }
.pill-red { background: var(--accent-red-bg); color: #c22a30; border: 1px solid var(--accent-red-border); }

.sample-table .pill-green { color: var(--accent-green); }
.sample-table .pill-amber { color: var(--accent-amber); }

.market-panel-footnote {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ==========================================================================
   Criteria section
   ========================================================================== */
.criteria-section { position: relative; z-index: 1; padding: 40px 0 100px; }

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.criteria-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.criteria-row.no-match { border-color: var(--accent-red-border); background: rgba(242,85,90,0.05); }
.criteria-row p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.criteria-row p strong { color: var(--text-primary); font-weight: 600; }
.criteria-row .pill { flex-shrink: 0; }

/* on dark bg, pills need slightly different bg */
.criteria-row .pill-green { background: rgba(62,207,142,0.14); color: var(--accent-green); border-color: var(--accent-green-border); }
.criteria-row .pill-red { background: rgba(242,85,90,0.14); color: var(--accent-red); border-color: var(--accent-red-border); }

/* ==========================================================================
   Brief section
   ========================================================================== */
.brief-section { position: relative; z-index: 1; padding: 40px 0 90px; }

.brief-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.brief-aside { position: sticky; top: 100px; }
.brief-aside h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.brief-aside p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--text-primary); display: inline-flex; gap: 6px; }
.link-arrow span { transition: transform 0.15s ease; }
.link-arrow:hover span { transform: translateX(3px); }

.brief-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mockup-window { border-bottom: 1px solid var(--border); }
.mockup-titlebar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.mockup-titlebar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-red { background: #f2555a; }
.dot-amber { background: #e8b74f; }
.dot-green { background: #f25c19; }

.mockup-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  font-size: 13px;
}

.mockup-results { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mockup-result {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.mockup-result:hover { background: var(--surface-2); }
.mockup-result strong { font-size: 13px; font-weight: 600; display: block; }
.mockup-result p { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; line-height: 1.5; }
.mockup-result .logo-dot { margin-top: 2px; }

.mockup-doc { padding: 26px; }
.doc-header { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.doc-icon { width: 18px; height: 18px; border-radius: 4px; background: var(--accent-green); }
.doc-header strong { font-size: 14px; }

.doc-body p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.doc-body p strong { color: var(--text-primary); }
.doc-body a { color: var(--accent-green); text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.doc-sources { font-size: 12px; color: var(--text-tertiary); padding-top: 10px; border-top: 1px dashed var(--border); }

/* ==========================================================================
   Stats row
   ========================================================================== */
.stats-block { margin-top: 90px; text-align: center; }

.stats-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.stats-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 18px 9px 14px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.stats-badge svg { color: var(--text-tertiary); flex-shrink: 0; }
.stats-badge strong { color: var(--text-primary); font-weight: 600; }
.stats-badge .sep { color: var(--border-light); }

.stats-heading {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 56px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.stat-value {
  display: block;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
/* The number alone is centered — the "+" is pulled out of flow so its width
   doesn't skew centering (a constant-width "+" shifts a short number like
   "20" much more visibly off-center than a long one like "4000"). */
.stat-value-num { position: relative; display: inline-block; }
.stat-value small {
  position: absolute;
  left: 100%;
  bottom: 6px;
  margin-left: 4px;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-green);
}
.stat-tag {
  display: block;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-label { display: block; margin-top: 10px; color: var(--text-tertiary); font-size: 13.5px; line-height: 1.5; }

.stat-check {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.12);
  color: #3ecf8e;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Signal / Fire a Query section
   ========================================================================== */
.signal-section { position: relative; z-index: 1; padding: 90px 0; border-top: 1px solid var(--border); }
.signal-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.signal-inner > .signal-copy,
.signal-inner > .signal-visual { min-width: 0; }
.signal-copy h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 12px; }
.signal-copy p { color: var(--text-secondary); font-size: 15px; max-width: 420px; }

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}
.signal-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.signal-list .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.signal-visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; background: var(--bg); }
.signal-caption { margin-top: 20px; font-size: 13px; color: var(--text-tertiary); }

/* ---- Source map (circuit-trace diagram) ---- */
.source-map {
  position: relative;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-areas:
    "nw n  ne"
    "w  c  e"
    "sw s  se";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 48px;
  row-gap: 80px;
  padding: 8px;
}

.source-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.source-node {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 160px;
  white-space: normal;
  line-height: 1.3;
}
.source-node svg { color: var(--text-tertiary); flex-shrink: 0; }
.source-node[data-pos="nw"] { grid-area: nw; }
.source-node[data-pos="n"] { grid-area: n; }
.source-node[data-pos="ne"] { grid-area: ne; }
.source-node[data-pos="w"] { grid-area: w; }
.source-node[data-pos="e"] { grid-area: e; }
.source-node[data-pos="sw"] { grid-area: sw; }
.source-node[data-pos="s"] { grid-area: s; }
.source-node[data-pos="se"] { grid-area: se; }

.source-hub {
  grid-area: c;
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: #050505;
  border: 1px solid var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}
.source-hub img { width: 42px; height: auto; }

/* ==========================================================================
   Engine section
   ========================================================================== */
.engine-section { position: relative; z-index: 1; padding: 40px 0 100px; }
.engine-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.engine-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.engine-svg { width: 100%; height: auto; display: block; }
.engine-copy h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 12px; }
.engine-copy p { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-section { position: relative; z-index: 1; padding: 40px 0 120px; }
.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.pricing-plan {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-amount .currency { font-size: 24px; margin-top: 8px; }
.pricing-amount .cents { font-size: 24px; margin-top: 8px; }
.pricing-amount .period { font-size: 14px; font-weight: 500; color: var(--text-tertiary); align-self: flex-end; margin-left: 6px; margin-bottom: 10px; }

.pricing-features {
  text-align: left;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-features .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.pricing-cta { width: 100%; }
.pricing-note { margin-top: 16px; font-size: 12.5px; color: var(--text-tertiary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-soft);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-tertiary); }
.footer-social a:hover { color: var(--text-primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-actions .header-login,
  .header-actions .header-cta { display: none; }
  .mobile-menu-trigger { display: flex; }
  .brand-logo { height: 62px; }
  .hero-badge-trigger { cursor: pointer; }
  .hero-title { font-size: 38px; }
  .booking-section { padding: 128px 0 64px; }
  .booking-embed { height: 640px; }
  .market-panel-head { padding: 40px 24px 32px; }
  .market-panel-dark { padding: 32px 20px 40px; }
  .step-row { grid-template-columns: 1fr; }
  .market-visual-row { grid-template-columns: 1fr; }
  .chat-demo { height: 546px; }
  .brief-layout { grid-template-columns: 1fr; }
  .brief-aside { position: static; }
  .signal-inner, .engine-inner { grid-template-columns: 1fr; }
  .source-map {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "nw c"
      "n  c"
      "ne c"
      "w  c"
      "e  c"
      "sw c"
      "s  c"
      "se c";
    column-gap: 44px;
    row-gap: 14px;
  }
  .source-node { justify-self: start; }
  .source-hub { align-self: center; margin: 0; }
  .stats-row { grid-template-columns: 1fr; }
  .criteria-row { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; width: 100%; }
}

/* ---- Expandable warehouse table: stacked cards instead of a scrolling
   table once there's no room for four columns side by side. ---- */
@media (max-width: 680px) {
  .sample-table-scroll { overflow-x: visible; }
  .sample-table--expandable { min-width: 0; width: 100%; }
  .sample-table--expandable thead { display: none; }
  .sample-table--expandable,
  .sample-table--expandable tbody,
  .sample-table--expandable tr,
  .sample-table--expandable td { display: block; width: 100%; }
  .sample-table--expandable tr[hidden] { display: none; }

  .sample-table--expandable tr.sample-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "field expand"
      "value value"
      "scope confidence";
    column-gap: 12px;
    row-gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .sample-table--expandable tr.sample-row td { padding: 0; border: none; width: auto; }

  .sample-table--expandable td.company-name-cell {
    grid-area: field;
    align-self: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .sample-table--expandable td.reasoning-cell { grid-area: value; min-width: 0; }
  .sample-table--expandable td.expand-cell { grid-area: expand; justify-self: end; align-self: start; }
  .sample-table--expandable td:nth-child(3) { grid-area: scope; }
  .sample-table--expandable td:nth-child(4) { grid-area: confidence; }
  .sample-table--expandable td:nth-child(3),
  .sample-table--expandable td:nth-child(4) { padding-left: 0; padding-right: 0; }
  .sample-table--expandable td:nth-child(3)::before,
  .sample-table--expandable td:nth-child(4)::before {
    display: block;
    margin-bottom: 2px;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .sample-table--expandable td:nth-child(3)::before { content: "Scope"; }
  .sample-table--expandable td:nth-child(4)::before { content: "Confidence"; }

  /* Expanded row pair: cards, not table cells, at this width — so the
     outline belongs on the row elements themselves, not per-td insets. */
  .sample-row.is-expanded td,
  .sample-row.is-expanded td:first-child,
  .sample-row.is-expanded td:last-child,
  .detail-row.is-expanded td { box-shadow: none; }
  .sample-table--expandable tr.sample-row.is-expanded {
    box-shadow: inset 0 1px 0 0 var(--text-tertiary), inset 1px 0 0 0 var(--text-tertiary), inset -1px 0 0 0 var(--text-tertiary);
    border-bottom-color: transparent;
  }
  .sample-table--expandable tr.detail-row.is-expanded {
    box-shadow: inset 1px 0 0 0 var(--text-tertiary), inset -1px 0 0 0 var(--text-tertiary), inset 0 -1px 0 0 var(--text-tertiary);
  }
}

/* ---- Chat answer table: stacked cards instead of cramped columns once
   there's no room for several columns side by side. ---- */
@media (max-width: 680px) {
  .chat-table { table-layout: auto; }
  .chat-table thead { display: none; }
  .chat-table, .chat-table tbody, .chat-table tr, .chat-table td { display: block; width: auto; }
  .chat-table tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .chat-table tr:last-child { border-bottom: none; }
  .chat-table td { padding: 3px 0; border: none; }
  .chat-table-label { margin-bottom: 2px; }
  .chat-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
  }
}
