/* GENERATED — edit in dashboard/, then run scripts/sync-shared.mjs */

/* ================================================================== */
/* JASEIR KIT — shared header, footer and agent page template styles.  */
/* Plain CSS (prefix: jk-) so it works in every Next app and in the    */
/* Flask booking agent. Accent colours come from --agent-* variables   */
/* set per agent (see lib/agents.ts → agentVars).                      */
/* SOURCE OF TRUTH: edit in dashboard/, then run                       */
/* `node scripts/sync-shared.mjs`.                                     */
/* ================================================================== */

:root {
  --jk-ink: #0f1830;
  --jk-body: #3b4563;
  --jk-muted: #596380;
  --jk-placeholder: #737c95;
  --jk-bg: #f7f8fb;
  --jk-surface: #ffffff;
  --jk-surface-2: #f3f5f9;
  --jk-line: #e3e7ef;
  --jk-line-strong: #cdd4e1;
  --jk-brand: #1768f2;
  --jk-brand-ink: #0f4fc4;
  --jk-navy: #0b1226;

  --jk-radius-sm: 10px;
  --jk-radius: 16px;
  --jk-radius-lg: 24px;
  --jk-shadow-sm: 0 1px 2px rgb(15 24 48 / 0.06);
  --jk-shadow: 0 1px 2px rgb(15 24 48 / 0.04), 0 16px 40px -18px rgb(15 24 48 / 0.18);
  --jk-shadow-lg: 0 2px 4px rgb(15 24 48 / 0.04), 0 28px 60px -24px rgb(15 24 48 / 0.28);

  --jk-font: var(--font-geist-sans), Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --jk-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace;

  --jk-header-h: 68px;
  --jk-max: 1280px;
  --jk-gutter: 16px;
}

@media (min-width: 768px) {
  :root {
    --jk-gutter: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --jk-gutter: 50px;
  }
}

html {
  scroll-padding-top: calc(var(--jk-header-h) + 16px);
}

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

html.jk-scroll-lock,
html.jk-scroll-lock body {
  overflow: hidden;
}

.jk-container {
  width: min(var(--jk-max), calc(100% - 2 * var(--jk-gutter)));
  margin-inline: auto;
}

.jk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jk-eyebrow {
  margin: 0;
  color: var(--agent-accent, var(--jk-brand));
  font-family: var(--jk-font);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--agent-accent-bright, var(--jk-brand));
}

.jk-agent-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--agent-accent-line, var(--jk-line));
  border-radius: var(--jk-radius-sm);
  background: var(--agent-accent-soft, var(--jk-surface-2));
  color: var(--agent-accent, var(--jk-brand));
}

.jk-agent-badge--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* ================================================================== */
/* HEADER                                                              */
/* ================================================================== */

.jk-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--jk-header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--jk-body);
  font-family: var(--jk-font);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* The blurred background lives on a pseudo-element: backdrop-filter on the
   header itself would trap the fixed-position mobile menu inside it. */
.jk-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgb(255 255 255 / 0.88);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  transition: opacity 0.2s ease;
}

.jk-header.is-scrolled {
  border-bottom-color: var(--jk-line);
  box-shadow: 0 6px 24px -18px rgb(15 24 48 / 0.35);
}

.jk-header.is-scrolled::before {
  opacity: 1;
}

.jk-header--dark {
  background: #070a13;
  color: #b4bcd4;
}

.jk-header--dark::before {
  background: rgb(7 10 19 / 0.9);
}

.jk-header--dark.is-scrolled {
  border-bottom-color: rgb(255 255 255 / 0.09);
  background: transparent;
}

.jk-header-inner {
  position: relative;
  display: flex;
  height: 100%;
  width: min(1450px, calc(100% - 2 * var(--jk-gutter)));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jk-logo {
  display: block;
  border-radius: 6px;
}

.jk-logo img {
  display: block;
  width: 132px;
  height: auto;
}

.jk-logo picture,
.jk-mobile-top picture {
  display: block;
}

.jk-brand-tag {
  padding: 3px 7px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 6px;
  color: var(--jk-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.jk-brand-tag:hover {
  border-color: var(--jk-brand);
  color: var(--jk-brand);
}

.jk-header--dark .jk-brand-tag {
  border-color: rgb(255 255 255 / 0.2);
  color: #fff;
}

.jk-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.jk-nav-link {
  position: relative;
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.jk-nav-link:hover,
.jk-nav-trigger[aria-expanded="true"] {
  color: var(--jk-ink);
  background: rgb(15 24 48 / 0.04);
}

.jk-header--dark .jk-nav-link:hover,
.jk-header--dark .jk-nav-trigger[aria-expanded="true"] {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}

.jk-nav-link.is-active {
  color: var(--jk-ink);
}

.jk-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--jk-brand);
}

.jk-header--dark .jk-nav-link.is-active {
  color: #fff;
}

.jk-header--dark .jk-nav-link.is-active::after {
  background: #a78bfa;
}

/* Top-level agent item (RAG AI): its accent dot and underline. */
.jk-nav-agent {
  gap: 7px;
}

.jk-nav-agent .jk-dot {
  width: 7px;
  height: 7px;
  background: var(--agent-accent);
}

.jk-nav-agent:hover {
  color: var(--agent-accent);
}

.jk-nav-agent.is-active::after {
  background: var(--agent-accent);
}

.jk-header--dark .jk-nav-agent .jk-dot {
  background: var(--agent-accent-bright);
}

.jk-header--dark .jk-nav-agent:hover {
  color: #fff;
}

.jk-header--dark .jk-nav-agent.is-active::after {
  background: var(--agent-accent-bright);
}

.jk-chevron {
  transition: transform 0.2s ease;
}

.jk-nav-trigger[aria-expanded="true"] .jk-chevron {
  transform: rotate(180deg);
}

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

.jk-cta {
  display: none;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--jk-brand);
  color: #fff;
  font-family: var(--jk-font);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgb(23 104 242 / 0.7);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.jk-cta:hover {
  background: var(--jk-brand-ink);
}

.jk-cta--block {
  display: flex;
  width: 100%;
  height: 52px;
  justify-content: center;
  font-size: 15px;
}

.jk-burger {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: var(--jk-surface);
  color: var(--jk-ink);
  cursor: pointer;
}

.jk-header--dark .jk-header-actions .jk-burger {
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.04);
  color: #fff;
}

/* Visible focus for every interactive element in the kit */
.jk-header a:focus-visible,
.jk-header button:focus-visible,
.jk-footer a:focus-visible,
.jk-agent a:focus-visible,
.jk-agent button:focus-visible {
  outline: 2px solid var(--agent-accent, var(--jk-brand));
  outline-offset: 3px;
}

.jk-header--dark a:focus-visible,
.jk-header--dark button:focus-visible,
.jk-footer a:focus-visible {
  outline-color: #93c5fd;
}

@media (min-width: 640px) {
  .jk-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .jk-nav {
    display: flex;
  }

  .jk-header-actions .jk-burger {
    display: none;
  }
}

/* ---------------- Mega menu ---------------- */

.jk-mega-wrap {
  position: static;
}

.jk-mega {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  display: grid;
  width: min(940px, 100%);
  grid-template-columns: 250px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--jk-line);
  border-radius: 20px;
  background: var(--jk-surface);
  color: var(--jk-body);
  box-shadow: var(--jk-shadow-lg);
  transform: translateX(-50%);
  animation: jk-drop 0.18s ease-out;
}

/* Invisible bridge so the pointer can travel from the trigger to the panel. */
.jk-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.jk-mega[hidden] {
  display: none;
}

.jk-mega-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  background: var(--jk-surface-2);
}

.jk-mega-title {
  margin: 0;
  color: var(--jk-ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.jk-mega-text {
  margin: 0;
  color: var(--jk-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.jk-mega-all {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 6px;
  color: var(--jk-brand-ink);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.jk-mega-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jk-mega-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  list-style: none;
}

.jk-mega-item,
.jk-mobile-agent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.jk-mega-item:hover,
.jk-mega-item:focus-visible {
  background: var(--jk-surface-2);
}

.jk-mega-item.is-current,
.jk-mobile-agent.is-current {
  background: var(--agent-accent-soft);
}

.jk-mega-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.jk-mega-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jk-ink);
  font-size: 14.5px;
  font-weight: 650;
}

.jk-mega-item:hover .jk-mega-name {
  color: var(--agent-accent);
}

.jk-here {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--agent-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.jk-mega-tagline {
  color: var(--jk-muted);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes jk-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------------- Mobile menu ---------------- */

.jk-mobile {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--jk-surface);
  color: var(--jk-body);
  animation: jk-fade 0.18s ease-out;
}

.jk-mobile[hidden] {
  display: none;
}

.jk-mobile-top {
  display: flex;
  height: var(--jk-header-h);
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--jk-gutter);
  border-bottom: 1px solid var(--jk-line);
}

.jk-mobile-top img {
  display: block;
  width: 116px;
  height: auto;
}

.jk-mobile-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px var(--jk-gutter) 32px;
}

.jk-mobile-agents {
  display: grid;
  margin: 12px 0 24px;
  padding: 0;
  gap: 2px;
  list-style: none;
}

.jk-mobile-agent {
  padding: 10px;
}

.jk-mobile-top {
  margin: -8px 0 24px;
  border: 1px solid var(--agent-accent-line);
  background: var(--agent-accent-soft);
}

.jk-mobile-links {
  display: grid;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--jk-line);
  list-style: none;
}

.jk-mobile-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 2px;
  color: var(--jk-ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 640px) {
  .jk-mobile-agents {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes jk-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================================================================== */
/* FOOTER                                                              */
/* ================================================================== */

.jk-footer {
  margin-top: auto;
  background: var(--jk-navy);
  color: #aeb6cc;
  font-family: var(--jk-font);
  font-size: 14.5px;
}

.jk-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.jk-footer a:hover {
  color: #fff;
}

/* CTA band */
.jk-cta-band {
  padding: 64px 0;
  background: #eaf1ff;
  color: var(--jk-ink);
}

.jk-cta-band--agent {
  border-top: 1px solid var(--agent-accent-line);
  background: var(--agent-accent-soft);
}

.jk-cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.jk-cta-band-title {
  max-width: 22ch;
  margin: 0;
  color: var(--jk-ink);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.jk-cta-band-text {
  max-width: 56ch;
  margin: 14px 0 0;
  color: var(--jk-body);
  font-size: 16.5px;
  line-height: 1.6;
}

.jk-footer .jk-cta-band-button {
  display: inline-flex;
  height: 54px;
  flex: none;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--agent-accent, var(--jk-brand));
  color: #fff;
  font-size: 15.5px;
  font-weight: 650;
  box-shadow: 0 14px 30px -14px rgb(var(--agent-accent-rgb, 23 104 242) / 0.8);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.jk-footer .jk-cta-band-button:hover {
  background: var(--agent-accent-ink, var(--jk-brand-ink));
  color: #fff;
}

.jk-footer .jk-cta-band-button:focus-visible {
  outline-color: var(--agent-accent, var(--jk-brand));
}

@media (min-width: 900px) {
  .jk-cta-band {
    padding: 80px 0;
  }

  .jk-cta-band-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }

  .jk-footer .jk-cta-band-button {
    align-self: auto;
  }
}

/* Columns */
.jk-footer-grid {
  display: grid;
  padding: 56px 0 40px;
  gap: 40px 24px;
  grid-template-columns: 1fr 1fr;
}

.jk-footer-brand {
  grid-column: 1 / -1;
}

.jk-footer-logo {
  display: inline-block;
}

.jk-footer-logo img {
  display: block;
  width: 132px;
  height: auto;
}

.jk-footer-brand p {
  max-width: 36ch;
  margin: 18px 0 0;
  line-height: 1.65;
}

.jk-footer-col h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jk-footer-col ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.jk-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.jk-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.jk-footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .jk-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .jk-footer-grid {
    padding: 72px 0 56px;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 48px;
  }

  .jk-footer-brand {
    grid-column: auto;
  }
}

/* ================================================================== */
/* AGENT PAGE TEMPLATE                                                 */
/* ================================================================== */

.jk-agent {
  position: relative;
  flex: 1;
  background: var(--jk-bg);
  color: var(--jk-ink);
  font-family: var(--jk-font);
  font-size: 16px;
  line-height: 1.6;
}

:where(.jk-agent) :where(h1, h2, h3, p) {
  margin: 0;
}

.jk-display {
  max-width: 15ch;
  color: var(--jk-ink);
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.jk-display em,
.jk-h2 em {
  color: var(--agent-accent);
  font-style: normal;
}

.jk-h2 {
  max-width: 22ch;
  margin-top: 12px;
  color: var(--jk-ink);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.jk-h3 {
  color: var(--jk-ink);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.jk-lede {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--jk-body);
  font-size: 1.125rem;
  line-height: 1.65;
}

.jk-heading-text {
  max-width: 40rem;
  margin-top: 14px;
  color: var(--jk-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.jk-section {
  padding: 64px 0;
}

.jk-section--surface {
  border-block: 1px solid var(--jk-line);
  background: var(--jk-surface);
}

@media (min-width: 1024px) {
  .jk-section {
    padding: 96px 0;
  }
}

/* ---------------- Buttons & chips ---------------- */

.jk-btn {
  display: inline-flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.jk-btn--lg {
  height: 52px;
  padding: 0 22px;
  font-size: 15.5px;
}

.jk-btn--primary {
  background: var(--agent-accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgb(var(--agent-accent-rgb) / 0.75);
}

.jk-btn--primary:hover {
  background: var(--agent-accent-ink);
}

.jk-btn--primary:disabled {
  cursor: progress;
  opacity: 0.7;
}

.jk-btn--ghost {
  border-color: var(--jk-line-strong);
  background: var(--jk-surface);
  color: var(--jk-ink);
}

.jk-btn--ghost:hover {
  border-color: var(--agent-accent);
  color: var(--agent-accent);
}

.jk-btn--soft {
  border-color: var(--agent-accent-line);
  background: var(--agent-accent-soft);
  color: var(--agent-accent-ink);
}

.jk-btn--soft:hover {
  border-color: var(--agent-accent);
}

.jk-btn--block {
  width: 100%;
}

.jk-chips {
  display: flex;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.jk-chip {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--jk-line);
  border-radius: 999px;
  background: var(--jk-surface);
  color: var(--jk-body);
  font-size: 13.5px;
  font-weight: 550;
}

.jk-chip svg {
  color: var(--agent-accent);
}

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

.jk-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
  isolation: isolate;
}

/* Accent grid, faded out towards the bottom-left. */
.jk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(var(--agent-accent-rgb) / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--agent-accent-rgb) / 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 78% 18%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 78% 18%, #000 20%, transparent 72%);
}

/* One soft wash of the accent behind the preview. */
.jk-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  z-index: -2;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgb(var(--agent-accent-rgb) / 0.1), transparent);
}

.jk-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.jk-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.jk-hero-badge {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--agent-gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(var(--agent-accent-rgb) / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.jk-hero-name {
  display: block;
  color: var(--jk-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}

.jk-hero-category {
  display: block;
  color: var(--agent-accent);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  gap: 12px;
}

.jk-hero-preview {
  position: relative;
  min-width: 0;
}

@media (max-width: 479px) {
  .jk-hero-actions .jk-btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .jk-hero {
    padding: 64px 0 56px;
  }

  .jk-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
  }
}

/* ---------------- Cards ---------------- */

.jk-card {
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius-lg);
  background: var(--jk-surface);
  box-shadow: var(--jk-shadow);
}

.jk-card-pad {
  padding: 22px;
}

@media (min-width: 768px) {
  .jk-card-pad {
    padding: 32px;
  }
}

.jk-label-sm {
  color: var(--jk-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------- Workspace ---------------- */

.jk-workspace {
  scroll-margin-top: calc(var(--jk-header-h) + 8px);
}

.jk-workspace-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  gap: 20px;
}

@media (min-width: 768px) {
  .jk-workspace-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .jk-workspace-actions {
    flex: none;
  }
}

/* ---------------- Form fields ---------------- */

.jk-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.jk-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--jk-ink);
  font-size: 14px;
  font-weight: 600;
}

.jk-label small {
  color: var(--jk-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.jk-hint {
  color: var(--jk-muted);
  font-size: 13px;
  line-height: 1.5;
}

.jk-input,
.jk-textarea {
  width: 100%;
  border: 1px solid var(--jk-line-strong);
  border-radius: var(--jk-radius-sm);
  background: var(--jk-surface);
  color: var(--jk-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.jk-input {
  height: 46px;
  padding: 0 14px;
}

.jk-textarea {
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}

.jk-input::placeholder,
.jk-textarea::placeholder {
  color: var(--jk-placeholder);
}

.jk-input:hover,
.jk-textarea:hover {
  border-color: #b4bdd0;
}

.jk-input:focus,
.jk-textarea:focus {
  border-color: var(--agent-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgb(var(--agent-accent-rgb) / 0.16);
}

.jk-input.is-filled,
.jk-textarea.is-filled {
  background: #fcfdfe;
}

.jk-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--jk-radius-sm);
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 500;
}

.jk-fineprint {
  color: var(--jk-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ---------------- Loading steps ---------------- */

.jk-loading {
  padding: 28px 22px;
}

.jk-loading-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--jk-surface-2);
}

.jk-loading-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--agent-gradient);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.jk-loading-steps {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.jk-loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--jk-muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.2s ease;
}

.jk-loading-dot {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--jk-line-strong);
  border-radius: 50%;
  background: var(--jk-surface);
  color: var(--jk-muted);
  font-family: var(--jk-mono);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.jk-loading-step.is-current {
  color: var(--jk-ink);
}

.jk-loading-step.is-current .jk-loading-dot {
  border-color: var(--agent-accent);
  color: var(--agent-accent);
  box-shadow: 0 0 0 4px rgb(var(--agent-accent-rgb) / 0.14);
}

.jk-loading-step.is-done {
  color: var(--jk-body);
}

.jk-loading-step.is-done .jk-loading-dot {
  border-color: var(--agent-accent);
  background: var(--agent-accent);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .jk-loading-step.is-current .jk-loading-dot {
    animation: jk-pulse 1.4s ease-in-out infinite;
  }
}

@keyframes jk-pulse {
  50% {
    box-shadow: 0 0 0 8px rgb(var(--agent-accent-rgb) / 0.06);
  }
}

@media (min-width: 768px) {
  .jk-loading {
    padding: 40px;
  }

  .jk-loading-steps {
    grid-template-columns: repeat(var(--steps, 4), 1fr);
  }

  .jk-loading-step {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------- Gauge ---------------- */

.jk-gauge {
  position: relative;
  flex: none;
}

.jk-gauge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.jk-gauge circle {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.jk-gauge-track {
  stroke: var(--jk-surface-2);
}

.jk-gauge-value {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.jk-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}

.jk-gauge-number {
  color: var(--jk-ink);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.jk-gauge-label {
  margin-top: 6px;
  color: var(--jk-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------------- Score bars ---------------- */

.jk-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.jk-bar-label {
  color: var(--jk-ink);
  font-size: 14.5px;
  font-weight: 600;
}

.jk-bar-value {
  color: var(--jk-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.jk-bar-value strong {
  color: var(--jk-ink);
  font-size: 15px;
}

.jk-bar-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--jk-surface-2);
}

.jk-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--agent-gradient);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.jk-bar-body {
  margin-top: 12px;
  color: var(--jk-body);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------------- Copy button ---------------- */

.jk-copy {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--jk-line-strong);
  border-radius: 10px;
  background: var(--jk-surface);
  color: var(--jk-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.jk-copy:hover {
  border-color: var(--agent-accent);
  color: var(--agent-accent);
}

.jk-copy.is-copied {
  border-color: var(--agent-accent-line);
  background: var(--agent-accent-soft);
  color: var(--agent-accent-ink);
}

/* ---------------- Findings list ---------------- */

/* Reset via :where() so utility classes (e.g. Tailwind mt-*) can still set margins. */
:where(.jk-findings) {
  margin: 0;
  padding: 0;
}

.jk-findings {
  display: grid;
  gap: 10px;
  list-style: none;
}

.jk-finding {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--jk-line);
  border-radius: 12px;
  background: var(--jk-surface);
  color: var(--jk-body);
  font-size: 14.5px;
  line-height: 1.55;
}

.jk-finding svg {
  flex: none;
  margin-top: 2px;
}

/* ---------------- Empty state ---------------- */

.jk-empty {
  position: relative;
}

.jk-empty-note {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  width: min(440px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--jk-line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.96);
  box-shadow: var(--jk-shadow);
  text-align: center;
  transform: translateX(-50%);
}

.jk-empty-title {
  color: var(--jk-ink);
  font-size: 15px;
  font-weight: 650;
}

.jk-empty-text {
  margin-top: 4px;
  color: var(--jk-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.jk-empty-sample {
  max-height: 720px;
  overflow: hidden;
  opacity: 0.5;
  filter: saturate(0.7);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

/* ---------------- How it works ---------------- */

.jk-how {
  display: grid;
  gap: 40px;
}

.jk-how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jk-how-step {
  display: grid;
  padding: 26px 0;
  border-top: 1px solid var(--jk-line);
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: start;
}

.jk-how-step:last-child {
  border-bottom: 1px solid var(--jk-line);
}

.jk-how-num {
  padding-top: 9px;
  color: var(--agent-accent);
  font-family: var(--jk-mono);
  font-size: 13px;
  font-weight: 600;
}

.jk-how-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
}

.jk-how-step p {
  max-width: 44ch;
  margin-top: 6px;
  color: var(--jk-body);
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .jk-how {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
  }

  .jk-how-intro {
    position: sticky;
    top: calc(var(--jk-header-h) + 40px);
    align-self: start;
  }

  .jk-how-step {
    padding: 32px 0;
    gap: 24px;
  }
}

/* ---------------- Use cases ---------------- */

.jk-uses {
  display: grid;
  margin: 44px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.jk-use {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jk-use p {
  color: var(--jk-body);
  line-height: 1.6;
}

.jk-use-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--agent-accent-soft);
  color: var(--agent-accent);
}

.jk-use .jk-use-who {
  margin-top: auto;
  padding-top: 8px;
  color: var(--jk-muted);
  font-size: 13px;
  font-weight: 550;
}

.jk-use--featured {
  border-color: var(--agent-accent-line);
  background: var(--agent-accent-soft);
}

.jk-use--featured .jk-h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.jk-use--featured p {
  color: var(--agent-accent-ink);
  font-size: 1.0625rem;
}

.jk-use--featured .jk-use-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--agent-gradient);
  color: #fff;
}

.jk-use--featured .jk-use-who {
  color: var(--agent-accent-ink);
}

@media (min-width: 768px) {
  .jk-uses {
    grid-template-columns: repeat(2, 1fr);
  }

  .jk-use--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .jk-uses {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .jk-use--featured {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 36px;
  }

  .jk-use:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* ---------------- Related agents ---------------- */

.jk-related {
  display: grid;
  margin: 40px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.jk-related-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--jk-line);
  border-top: 3px solid var(--agent-accent);
  border-radius: var(--jk-radius);
  background: var(--jk-surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.jk-related-card .jk-agent-badge {
  margin-bottom: 12px;
}

.jk-related-category {
  color: var(--agent-accent);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jk-related-name {
  color: var(--jk-ink);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.jk-related-tagline {
  color: var(--jk-body);
  line-height: 1.55;
}

.jk-related-open {
  display: inline-flex;
  margin-top: auto;
  padding-top: 16px;
  align-items: center;
  gap: 6px;
  color: var(--agent-accent);
  font-size: 14px;
  font-weight: 650;
}

.jk-related-card:hover {
  border-color: var(--agent-accent-line);
  border-top-color: var(--agent-accent);
  box-shadow: var(--jk-shadow);
}

@media (min-width: 768px) {
  .jk-related {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .jk-use:hover,
  .jk-related-card:hover {
    transform: translateY(-3px);
  }

  .jk-btn--primary:hover,
  .jk-cta:hover,
  .jk-footer .jk-cta-band-button:hover {
    transform: translateY(-1px);
  }

  /* Scroll-driven fade/slide. Browsers without support show content as-is. */
  @supports (animation-timeline: view()) {
    .jk-reveal {
      animation: jk-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes jk-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jk-header *,
  .jk-footer *,
  .jk-agent * {
    animation: none !important;
    transition: none !important;
  }

  .jk-mega,
  .jk-mobile {
    animation: none;
  }
}

/* ---------------- Report gate (components/agent/ReportGate.tsx) ---------------- */

.jk-gate {
  position: relative;
  display: grid;
  margin-top: 16px;
  isolation: isolate;
}

/* The locked report and the form share one grid cell, so the section is
   as tall as whichever is taller. */
.jk-gate-locked,
.jk-gate-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

/* filter/mask make this a stacking context, so it must sit below the form. */
.jk-gate-locked {
  position: relative;
  z-index: 0;
  max-height: 720px;
  overflow: hidden;
  filter: blur(7px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.jk-gate-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 0 24px;
}

.jk-gate-card {
  position: relative;
  width: min(100%, 440px);
  min-width: 0;
  padding: 24px 18px;
  border: 1px solid var(--jk-line);
  border-radius: var(--jk-radius-lg);
  background: var(--jk-surface);
  box-shadow: var(--jk-shadow-lg);
}

@media (min-width: 768px) {
  .jk-gate-card {
    padding: 32px;
  }
}

.jk-gate-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--agent-accent-soft);
  color: var(--agent-accent-ink);
}

.jk-gate-title {
  margin: 14px 0 0;
  color: var(--jk-ink);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.jk-gate-form {
  display: grid;
  margin-top: 18px;
  gap: 14px;
}

/* Let the buttons wrap on very narrow screens instead of overflowing the card. */
.jk-gate-form .jk-btn,
.jk-report-cta .jk-btn {
  height: auto;
  min-height: 52px;
  max-width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  white-space: normal;
  text-align: center;
}

.jk-gate-form .jk-fineprint {
  overflow-wrap: anywhere;
}

.jk-gate-form .jk-fineprint a {
  color: var(--agent-accent-ink);
  text-decoration: underline;
}

.jk-gate-google {
  display: flex;
  min-height: 44px;
  justify-content: center;
}

.jk-gate-or {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 12px;
  color: var(--jk-muted);
  font-size: 13px;
}

.jk-gate-or::before,
.jk-gate-or::after {
  flex: 1;
  height: 1px;
  background: var(--jk-line);
  content: "";
}

.jk-gate-field-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
}

.jk-gate-status {
  margin: 12px 0 0;
  color: var(--jk-muted);
  font-size: 15px;
}

.jk-gate-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Booking CTA after an unlocked report */
.jk-report-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
  padding: 26px 22px;
  gap: 16px;
  border: 1px solid var(--agent-accent-line);
  border-radius: var(--jk-radius-lg);
  background: var(--agent-accent-soft);
}

@media (min-width: 768px) {
  .jk-report-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }
}

.jk-report-cta-title {
  margin: 0;
  color: var(--jk-ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.jk-report-who {
  margin: 12px 0 0;
  color: var(--jk-muted);
  font-size: 13px;
  text-align: center;
}

.jk-report-who button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--agent-accent-ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.jk-google-return {
  margin-bottom: 16px;
  color: var(--jk-ink);
  font-weight: 600;
  text-align: center;
}
