/* Styles for kala.host: the landing page and the use-case pages. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  overflow-x: clip;
  background: var(--surface-panel);
  color: var(--text-mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--cobalt-primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-starlight);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt-primary); color: #fff; }
.btn-primary:hover { background: var(--cobalt-bright); }
.btn-primary:disabled { opacity: 0.7; cursor: default; }
.btn-ghost { border: 1px solid var(--border-highlight); color: var(--text-starlight); background: #fff; }
.btn-ghost:hover { border-color: var(--cobalt-primary); color: var(--cobalt-primary); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { flex-shrink: 0; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--border-subtle); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text-starlight); letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--cobalt-primary); display: grid; place-items: center; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--text-starlight); transition: color var(--dur-fast) var(--ease-out); }
.nav-link:hover { color: var(--cobalt-primary); }

/* Use cases menu */
.nav-menu { position: relative; }
.nav-menu-btn { gap: 4px; white-space: nowrap; }
.nav-chev { transition: transform var(--dur-fast) var(--ease-out); }
.nav-menu-btn[aria-expanded="true"] { color: var(--cobalt-primary); }
.nav-menu-btn[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 560px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.22); padding: 10px; }
.nav-panel[hidden] { display: none; }
.nav-panel-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: var(--radius-md); transition: background-color var(--dur-fast) var(--ease-out); }
.nav-item:hover, .nav-item[aria-current="page"] { background: var(--surface-ground); }
.nav-item .job-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--radius-sm); }
.nav-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-starlight); line-height: 1.3; }
.nav-item strong + span { display: block; font-size: 13px; color: #64748b; line-height: 1.35; }
.nav-item:hover strong { color: var(--cobalt-primary); }
.nav-panel-all { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 10px; border-top: 1px solid var(--border-faint); font-size: 14px; font-weight: 600; color: var(--cobalt-primary); }
.nav-panel-all:hover { color: var(--cobalt-bright); }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-full);
  background: var(--mint-subtle);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.live-pill:hover { background: rgba(5, 150, 105, 0.14); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-confirm); position: relative; }
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--mint-confirm);
  opacity: 0;
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

.hero h1 { font-size: clamp(2.5rem, 5vw + 0.5rem, 4.1rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cobalt-primary); }
.hero-lede { font-size: 19px; line-height: 1.6; max-width: 34rem; margin-bottom: 32px; }

/* Email form */
.apply-form { max-width: 30rem; }
.apply-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-starlight); margin-bottom: 8px; }
.apply-row { display: flex; gap: 8px; }
.apply-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  color: var(--text-starlight);
  background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.apply-input::placeholder { color: #64748b; }
.apply-input:focus { outline: none; border-color: var(--cobalt-primary); box-shadow: 0 0 0 3px var(--cobalt-glow); }
.apply-input[aria-invalid="true"] { border-color: #dc2626; }
.apply-msg { min-height: 24px; margin-top: 8px; font-size: 14px; }
.apply-msg.ok { color: #047857; font-weight: 500; }
.apply-msg.err { color: #b91c1c; }
.apply-msg.dup { color: var(--cobalt-bright); }

.hero-alt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; font-size: 15px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--cobalt-primary); }
.link-btn:hover { color: var(--cobalt-bright); text-decoration: underline; text-underline-offset: 3px; }

/* Call card (hero visual) */
.call-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.call-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-faint); }
.call-who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt-subtle); color: var(--cobalt-primary); display: grid; place-items: center; }
.call-name { font-weight: 600; color: var(--text-starlight); font-size: 15px; line-height: 1.2; }
.call-sub { font-size: 13px; color: #64748b; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.wave span { width: 3px; height: 100%; border-radius: 2px; background: var(--cobalt-primary); transform: scaleY(0.3); animation: wave 1.1s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: 0.15s; }
.wave span:nth-child(3) { animation-delay: 0.3s; }
.wave span:nth-child(4) { animation-delay: 0.45s; }
.wave span:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.job-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border-faint); overflow-x: auto; scrollbar-width: none; }
.job-tabs::-webkit-scrollbar { display: none; }
.job-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mist);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.job-tab:hover { color: var(--text-starlight); background: var(--surface-raised); }
.job-tab[aria-selected="true"] { background: var(--cobalt-subtle); color: var(--cobalt-primary); font-weight: 600; }

.call-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-ground); min-height: 340px; }
.call-body[hidden] { display: none; }
.seeing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mist);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg.visitor { align-self: flex-end; background: var(--cobalt-primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.kala { align-self: flex-start; background: #fff; color: var(--text-starlight); border: 1px solid var(--border-subtle); border-bottom-left-radius: 4px; }
.seeing.pointing { color: var(--cobalt-bright); border-color: var(--cobalt-border); }
.booked {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(5, 150, 105, 0.3);
}
.booked-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--mint-subtle); color: var(--mint-confirm); display: grid; place-items: center; flex-shrink: 0; }
.booked strong { display: block; color: var(--text-starlight); font-size: 14px; }
.booked span { font-size: 13px; color: var(--text-mist); }

.call-body > * { opacity: 0; transform: translateY(6px); animation: rise 400ms var(--ease-out) forwards; }
.call-body > :nth-child(1) { animation-delay: 0.2s; }
.call-body > :nth-child(2) { animation-delay: 0.6s; }
.call-body > :nth-child(3) { animation-delay: 1.6s; }
.call-body > :nth-child(4) { animation-delay: 2.8s; }
.call-body > :nth-child(5) { animation-delay: 3.6s; }
.call-body > :nth-child(6) { animation-delay: 4.4s; }
.call-body > :nth-child(7) { animation-delay: 5.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-ground); }
.section-head { max-width: 40rem; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem); margin-bottom: 12px; }
.section-head p { font-size: 18px; }

.section-head a { color: var(--cobalt-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.section-head a:hover { color: var(--cobalt-bright); }

/* What it does */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.job { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; }
.job-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--cobalt-subtle); color: var(--cobalt-primary); display: grid; place-items: center; }
.job h3 { font-size: 20px; line-height: 1.25; align-self: center; }
.job p { font-size: 16px; }

.edges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-subtle); list-style: none; }
.edges strong { display: flex; align-items: center; gap: 8px; color: var(--text-starlight); font-size: 16px; margin-bottom: 4px; }
.edges strong svg { color: var(--cobalt-primary); flex-shrink: 0; }
.edges p { font-size: 15px; }

/* Use cases (home page): a row of tabs and one panel. Without JS every panel shows, stacked. */
.uc-tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.uc-tab { min-height: 44px; padding: 0 15px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); background: #fff; color: var(--text-mist); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.uc-tab:hover { border-color: var(--cobalt-border); color: var(--text-starlight); }
.uc-tab[aria-selected="true"] { background: var(--cobalt-primary); border-color: var(--cobalt-primary); color: #fff; }
.uc-tab:focus-visible { outline: 2px solid var(--cobalt-primary); outline-offset: 3px; }
.uc-panel { display: flex; gap: 20px; align-items: flex-start; max-width: 46rem; padding: 4px 0 4px 2px; }
.uc-panel + .uc-panel { margin-top: 32px; }
.uc-panel .job-icon { flex-shrink: 0; }
.uc-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.uc-body h3 { font-size: 22px; line-height: 1.25; }
.uc-for { font-size: 15px; line-height: 1.4; margin-top: -8px; }
.uc-body .checks { gap: 10px; }
.uc-body .checks li { font-size: 16px; line-height: 1.5; }
.uc-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--cobalt-primary); }
.uc-more:hover { color: var(--cobalt-bright); }
.uc-more svg { transition: transform var(--dur-fast) var(--ease-out); }
.uc-more:hover svg { transform: translateX(3px); }
.uc-more:focus-visible { outline: 2px solid var(--cobalt-primary); outline-offset: 3px; border-radius: var(--radius-xs); }
/* With JS the panels share one cell, so the section keeps the height of the tallest and doesn't jump. */
.uc-tabs.is-ready { display: grid; }
.uc-tabs.is-ready .uc-panel { grid-area: 2 / 1; margin-top: 0; visibility: hidden; }
.uc-tabs.is-ready .uc-panel.is-active { visibility: visible; }
.uc-tabs.is-ready .uc-tablist { grid-area: 1 / 1; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* CRM */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 28px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks strong { color: var(--text-starlight); }

.crm-card { background: var(--surface-ground); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 20px; }
.crm-stages { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.crm-stages span { flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-stages b { color: var(--text-starlight); margin-left: 2px; }
.crm-stages .on { border-color: var(--cobalt-primary); color: var(--cobalt-primary); background: var(--cobalt-subtle); }
.crm-stages .on b { color: var(--cobalt-primary); }
.crm-contact { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.18); }
.crm-person { display: flex; align-items: center; gap: 12px; }
.crm-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-weight: 600; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.crm-name { font-weight: 600; color: var(--text-starlight); line-height: 1.3; }
.crm-meta { font-size: 13px; color: #64748b; }
.crm-pill { margin-left: auto; padding: 3px 10px; border-radius: var(--radius-full); background: var(--cobalt-subtle); color: var(--cobalt-bright); font-size: 12px; font-weight: 600; }
.crm-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-starlight); }
.crm-row svg { color: var(--mint-confirm); flex-shrink: 0; }
.crm-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--cobalt-primary); background: var(--surface-ground); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: var(--text-starlight); }
.crm-quote span { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.crm-thread { display: flex; flex-direction: column; gap: 8px; }
.crm-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.crm-msg.out { align-self: flex-end; background: var(--cobalt-primary); color: #fff; }
.crm-msg.in { align-self: flex-start; background: var(--surface-raised); color: var(--text-starlight); }
.crm-chan { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; margin-bottom: 2px; }
.crm-follow { align-self: flex-start; font-size: 13px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 4px 10px; border-radius: var(--radius-full); }

/* Coming next */
.soon-badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: var(--radius-full); border: 1px dashed var(--cobalt-border); color: var(--cobalt-bright); font-size: 13px; font-weight: 600; }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; }
.next-item { border: 1px dashed var(--border-highlight); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.next-item .job-icon { margin-bottom: 8px; }
.next-item h3 { font-size: 19px; line-height: 1.25; }
.next-item p { font-size: 15px; }

/* Cost comparison (dark band) */
.compare { background: var(--surface-graphite); color: var(--text-graphite-mist); padding: 96px 0; }
.compare h2, .compare h3 { color: var(--text-graphite-light); }
.compare .section-head p { color: #cbd5e1; }
.compare-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: stretch; }
.compare-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.compare-stack { background: var(--surface-graphite-card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-xl); padding: 28px; }
.compare-stack .compare-label { color: var(--text-graphite-mist); }
.cost-list { list-style: none; }
.cost-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cost-list strong { display: block; color: var(--text-graphite-light); font-weight: 600; font-size: 16px; line-height: 1.35; }
.cost-list li span { display: block; font-size: 14px; line-height: 1.4; color: var(--text-graphite-mist); }
.cost-list b, .cost-total b { flex-shrink: 0; font-family: var(--font-display); font-weight: 700; color: var(--text-graphite-light); font-size: 18px; white-space: nowrap; }
.cost-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 18px; color: var(--text-graphite-light); font-weight: 600; }
.cost-total b { font-size: 28px; color: #fca5a5; }
.cost-sub { margin-top: 6px; font-size: 14px; }
.compare-kala { background: var(--cobalt-primary); color: #fff; border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px -24px rgba(37, 99, 235, 0.6); }
.compare-kala .compare-label { color: #eff6ff; margin-bottom: 0; }
.kala-price { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.05; color: #fff; letter-spacing: -0.03em; }
.kala-plan { font-size: 15px; color: #eff6ff; }
.compare-kala .checks { gap: 10px; margin: 4px 0 8px; }
.compare-kala .checks li { color: #fff; font-size: 15px; }
.compare-kala .checks li::before { background-color: rgba(255, 255, 255, 0.95); }
.compare-kala .btn-primary { margin-top: auto; align-self: flex-start; background: #fff; color: var(--cobalt-deep); }
.compare-kala .btn-primary:hover { background: #dbeafe; }
.compare-kala :focus-visible, .compare :focus-visible { outline-color: #93c5fd; }
.compare-note { margin-top: 24px; max-width: 52rem; font-size: 13px; line-height: 1.55; color: var(--text-graphite-mist); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.step { min-width: 0; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--cobalt-primary); }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; }
.snippet {
  margin-top: 8px;
  background: var(--surface-graphite);
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.snippet .t { color: #93c5fd; }
.snippet .a { color: #7dd3fc; }
.snippet .v { color: #6ee7b7; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--border-subtle); }
.faq-list details { border-bottom: 1px solid var(--border-subtle); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-starlight);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cobalt-primary); }
.faq-list summary svg { flex-shrink: 0; color: var(--cobalt-primary); transition: transform var(--dur-base) var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 32px 20px 0; font-size: 16px; }

/* Closing CTA */
.closing { background: var(--cobalt-deep); color: #cbd5e1; text-align: center; padding: 96px 0; }
.closing-mark { display: inline-grid; width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--cobalt-primary); margin-bottom: 24px; }
.closing h2 { color: #fff; font-size: clamp(2.1rem, 3.5vw + 0.5rem, 3.1rem); margin-bottom: 14px; }
.closing > .container > p { font-size: 18px; max-width: 34rem; margin: 0 auto 32px; }
.closing .apply-form { margin-inline: auto; text-align: left; }
.closing .apply-label { color: #fff; }
.closing .apply-input { border-color: transparent; }
.closing .apply-input:focus { box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.5); }
.closing .btn-primary { background: #fff; color: var(--cobalt-deep); }
.closing .btn-primary:hover { background: #dbeafe; }
.closing .apply-msg.ok { color: #6ee7b7; }
.closing .apply-msg.err { color: #fca5a5; }
.closing .apply-msg.dup { color: #93c5fd; }
.closing .link-btn { color: #93c5fd; }
.closing .link-btn:hover { color: #fff; }
.closing .hero-alt { justify-content: center; }
.closing :focus-visible { outline-color: #93c5fd; }

/* Footer */
.footer { padding: 28px 0; font-size: 14px; color: #64748b; }
.footer-inner { display: flex; align-items: center; gap: 8px 32px; flex-wrap: wrap; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: var(--cobalt-primary); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-mark { width: 24px; height: 24px; border-radius: 6px; }

/* Use-case pages */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 20px; list-style: none; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--cobalt-primary); font-weight: 500; }
.crumbs a:hover { color: var(--cobalt-bright); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-dim); }
.uc-page-hero { padding: 56px 0 96px; }
.uc-page-hero h1 { font-size: clamp(2.3rem, 4vw + 0.5rem, 3.5rem); margin-bottom: 20px; }
.uc-page-hero .hero-lede { margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 32px; }
.chips li { padding: 6px 12px; border-radius: var(--radius-full); background: var(--surface-raised); color: var(--text-starlight); font-size: 14px; font-weight: 500; }
.chips .chips-label { background: none; padding-left: 0; color: var(--text-mist); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
ol.call-body { list-style: none; }
.uc-page-hero .call-body { min-height: 0; }
.call-body .booked strong, .call-body .booked span { overflow-wrap: anywhere; }

.req-card { background: var(--surface-ground); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 20px; }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.req-ref { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-starlight); }
.req-type { font-size: 13px; color: #64748b; }
.req-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border-faint); }
.req-fields dt { font-size: 13px; color: #64748b; }
.req-fields dd { font-size: 14px; color: var(--text-starlight); font-weight: 500; overflow-wrap: anywhere; }
.req-status { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); background: var(--cobalt-subtle); color: var(--cobalt-bright); font-size: 12px; font-weight: 600; }
.req-status.full { background: #fef3c7; color: #b45309; }

.step-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.step-list li { font-size: 15px; line-height: 1.45; color: var(--text-starlight); }
.step-list span { display: block; font-size: 14px; color: var(--text-mist); }
.step-list.qs li { position: relative; padding-left: 18px; }
.step-list.qs li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt-primary); }

.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; }
.more-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color var(--dur-fast) var(--ease-out); }
.more-card:hover { border-color: var(--cobalt-primary); }
.more-card h3 { font-size: 17px; line-height: 1.25; }
.more-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.more-card p { font-size: 14px; line-height: 1.4; }

/* Responsive */
/* Product Hunt welcome bar (shown by launch.js to visitors from Product Hunt) */
.launch-bar { background: var(--cobalt-deep); color: #e2e8f0; font-size: 15px; }
.launch-bar[hidden] { display: none; }
.launch-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.launch-bar p { flex: 1; min-width: 0; }
.launch-bar strong { color: #fff; }
.launch-bar-link { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.launch-bar-link:hover { color: #bfdbfe; }
.launch-bar-close { width: 44px; height: 44px; display: grid; place-items: center; color: #cbd5e1; border-radius: var(--radius-sm); flex-shrink: 0; }
.launch-bar-close:hover { color: #fff; }

/* Instant preview: the band on the landing page */
.try-band { padding: 56px 0; border-block: 1px solid var(--border-subtle); background: linear-gradient(180deg, var(--cobalt-subtle), transparent); }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.try-band h2 { font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.25rem); margin-bottom: 10px; }
.try-band p { font-size: 17px; }
.try-form { max-width: 34rem; }
.try-note { font-size: 14px; color: #64748b; }

/* Instant preview: the /try/<id> page */
.try-page { padding: 56px 0 96px; min-height: calc(100vh - 68px); }
.try-wrap { max-width: 760px; }
.try-state[hidden] { display: none; }
.try-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cobalt-primary); margin-bottom: 14px; }
.try-page h1 { font-size: clamp(2rem, 3.4vw + 0.5rem, 3rem); margin-bottom: 14px; overflow-wrap: anywhere; }
.try-lede { font-size: 18px; margin-bottom: 28px; }
.try-progress { height: 8px; border-radius: 999px; background: var(--surface-raised); overflow: hidden; margin: 8px 0 12px; }
.try-progress span { display: block; height: 100%; width: 4%; background: var(--cobalt-primary); border-radius: inherit; transition: width var(--dur-base, 300ms) var(--ease-out); }
.try-current { font-size: 14px; color: #64748b; overflow-wrap: anywhere; min-height: 22px; }
.try-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.try-limit { font-size: 14px; color: #64748b; margin-bottom: 40px; }
.try-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.try-card h2 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.try-asks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.try-asks li { padding: 8px 14px; border-radius: 999px; background: var(--surface-ground); border: 1px solid var(--border-subtle); font-size: 15px; color: var(--text-starlight); }
.try-pages { list-style: none; display: grid; gap: 2px; }
.try-pages a { display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--border-faint); color: var(--text-starlight); }
.try-pages a:hover { color: var(--cobalt-primary); }
.try-pages a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-pages a span:last-child { flex-shrink: 0; font-size: 14px; color: #64748b; }
.try-cta { background: var(--surface-ground); }
.try-fine { font-size: 13px; color: #64748b; margin-top: 28px; }

/* Privacy page */
.legal { padding: 56px 0 96px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.3rem, 4vw + 0.5rem, 3.5rem); margin-bottom: 16px; }
.legal-lede { font-size: 19px; margin-bottom: 12px; }
.legal-meta { font-size: 14px; color: #64748b; margin-bottom: 36px; }
.legal section { scroll-margin-top: 88px; }
.legal section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border-faint); }
.legal h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.75rem); line-height: 1.25; margin-bottom: 14px; }
.legal p + p, .legal ul + p, .legal dl + p, .legal p + ul, .legal p + dl { margin-top: 14px; }
.legal section ul { padding-left: 1.25em; display: grid; gap: 8px; }
.legal strong { color: var(--text-starlight); font-weight: 600; }
.legal section a { color: var(--cobalt-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal section a:hover { color: var(--cobalt-bright); }
.legal code { font-family: var(--font-mono); font-size: 0.875em; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-raised); color: var(--text-starlight); }
.legal-summary { background: var(--surface-ground); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 40px; }
.legal-summary h2 { font-size: 20px; margin-bottom: 12px; }
.legal-toc { margin-bottom: 48px; }
.legal-toc h2 { font-size: 15px; font-family: var(--font-body); letter-spacing: 0; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.legal-toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.legal-toc li { counter-increment: toc; break-inside: avoid; }
.legal-toc li a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding-block: 6px; color: var(--cobalt-primary); font-weight: 500; line-height: 1.35; }
.legal-toc li a::before { content: counter(toc); flex: 0 0 1.5em; font-variant-numeric: tabular-nums; color: var(--text-dim); font-weight: 600; font-size: 14px; }
.legal-toc li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-list { display: grid; border-top: 1px solid var(--border-faint); }
.legal-list > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--border-faint); }
.legal-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-list dt { font-weight: 600; color: var(--text-starlight); }
.footer a[aria-current="page"] { color: var(--text-starlight); }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .faq-grid, .try-grid { grid-template-columns: 1fr; gap: 48px; }
  .try-grid { gap: 20px; }
  .jobs, .steps, .next-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-page-hero { padding: 40px 0 72px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .compare { padding: 72px 0; }
  .edges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .section, .closing { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 640px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .nav-talk { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .hero-lede { font-size: 17px; }
  .apply-row { flex-direction: column; }
  .apply-row .btn { width: 100%; }
  .launch-bar-inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .launch-bar p { flex-basis: calc(100% - 56px); }
  .launch-bar-close { order: 2; }
  .launch-bar-link { order: 3; padding-bottom: 4px; }
  .try-actions .btn { width: 100%; }
  .call-body { padding: 16px; }
  .job-tabs { padding: 8px; gap: 2px; }
  .job-tab { padding: 0 10px; }
  .msg { max-width: 92%; }
  .edges { grid-template-columns: minmax(0, 1fr); }
  .job { padding: 22px; gap: 4px 14px; }
  .uc-panel { flex-direction: column; gap: 14px; }
  .uc-tab { padding: 0 14px; font-size: 14px; }
  .req-card { padding: 14px; }
  .compare-stack, .compare-kala { padding: 20px; }
  .kala-price { font-size: 34px; }
  .compare-kala .btn-primary { align-self: stretch; }
  .req-fields { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .req-fields dd { margin-bottom: 8px; }
  .hero-ctas .btn { flex: 1; }
  .nav-link { padding: 0 4px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-sm { padding: 0 12px; }
  .nav-menu { position: static; }
  .nav-panel { position: absolute; top: 100%; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav-panel-list { grid-template-columns: minmax(0, 1fr); }
  .crm-card { padding: 14px; }
  .crm-stages span:nth-child(4) { display: none; }
  .footer-inner { padding-bottom: 72px; }
  .legal { padding: 40px 0 72px; }
  .legal-summary { padding: 20px; }
  .legal-toc ol { columns: 1; }
  .legal-list > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .call-body > * { opacity: 1; transform: none; }
  .wave span { transform: scaleY(0.6); }
}
