/* Kite website mockup: nav menu, phone sheet, footer, product page blocks, and the two
   animated product components (research run, Parallel Dial). Loads after site.css. */

/* ---------- Nav (all pages) ---------- */
.nav .links a.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 32px;
  background: var(--ground);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.sheet[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.sheet .top { height: 40px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet .close { width: 40px; height: 40px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sheet nav a { display: flex; flex-direction: column; gap: 4px; padding: 15px 2px; font: 500 22px/1.2 var(--font-display); letter-spacing: -0.015em; box-shadow: inset 0 -1px 0 var(--line); }
.sheet nav a small { font: 400 14px/1.3 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.sheet nav a.on { color: var(--accent-hi); }
.sheet .acts { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }
.sheet .acts .btn { width: 100%; }
body[data-sheet="open"] { overflow: hidden; }

/* ---------- Footer (all pages) ---------- */
.foot .lockup { display: inline-block; }
.foot .lockup img { height: 48px; width: auto; }
.foot .by { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.foot .by a { display: inline; color: var(--ink-2); padding: 0; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.foot .by a:hover { color: var(--ink); }

/* ---------- Product page top ---------- */
.p-top { position: relative; padding: 156px 0 0; overflow: hidden; isolation: isolate; }
.p-top .bird { height: 760px; bottom: auto; }
.p-top .shade { position: absolute; left: 0; right: 0; top: 0; height: 780px; z-index: 1; pointer-events: none; background: radial-gradient(46% 42% at 50% 34%, color-mix(in srgb, var(--ground) 72%, transparent), transparent 100%), linear-gradient(180deg, transparent 55%, var(--ground) 96%); }
.p-top .wrap { position: relative; z-index: 2; }
.crumb { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }
.p-top .copy { text-align: center; max-width: 900px; margin: 24px auto 0; }
.p-top .lede { margin: 24px auto 0; max-width: 40ch; }
.p-top .cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.p-top .hero-shot { position: relative; margin-top: 72px; }
.p-top .hero-shot .shot { aspect-ratio: 1440 / 900; }
.p-top .hero-shot .glow { position: absolute; inset: 10% 5% -10%; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 113, 252, 0.22), transparent 70%); z-index: -1; }
.p-top .hero-shot .chip { position: absolute; z-index: 3; }

/* ---------- Sections ---------- */
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.chapter + .chapter { margin-top: 144px; }
.chapter.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* A screenshot that needs the full width (the designer): text on top, the whole window below. */
.chapter.wide { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.chapter.wide .text { max-width: 620px; }
.chapter .visual .shot.full { aspect-ratio: 1920 / 1200; }
.chapter .visual .shot.full img { object-fit: contain; }
/* The email and the Assistant from the right two thirds of a window. */
.chapter .visual .shot.focus { aspect-ratio: 4 / 3; position: relative; }
.chapter .visual .shot.focus img { position: absolute; top: 0; right: 0; width: 125%; height: auto; max-width: none; object-fit: initial; }
/* /marketing: three emails from one brand kit. */
.mails { margin-top: 144px; }
.mails-row { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.mails .shot.mail { aspect-ratio: 680 / 980; overflow: hidden; border-radius: inherit; }
.mails .shot.mail img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.chapter.flip > .text { order: 2; }
.chapter .text .lede { margin-top: 20px; }
.chapter .visual { position: relative; }
.chapter .visual .shot { aspect-ratio: 4 / 3; }
.chapter .visual .shot.tall { aspect-ratio: 1 / 1; }
.chapter .visual .shot.wide { aspect-ratio: 16 / 10; }
.chapter .visual .bloom { position: absolute; inset: -12%; background: radial-gradient(closest-side, rgba(0, 113, 252, 0.14), transparent); z-index: -1; }
.chapter .visual .chip { position: absolute; z-index: 3; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { display: flex; gap: 12px; padding: 13px 0; box-shadow: inset 0 1px 0 var(--line); color: var(--ink-2); font-size: 15px; }
.checks li:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.checks li svg { flex: none; margin-top: 4px; color: var(--accent-hi); }
.checks li span { flex: 1; }
.checks li b { color: var(--ink); font-weight: 500; }
.checks li .tag { margin-left: 6px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--r-card); }
.card h3 { font: 500 19px/1.25 var(--font-display); letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 22px; color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.card .shot { margin-top: 24px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head .lede { margin-top: 16px; }
.wide-shot .shot { aspect-ratio: 1440 / 900; }

/* The rest of the company: equal cards with a cropped screen. */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; overflow: hidden; min-height: 460px; transition: transform var(--d-ui) var(--ease-out); }
.pcard:hover { transform: translateY(-2px); }
.pcard .body { padding: 28px 28px 0; position: relative; z-index: 1; }
.pcard .body h3 { font: 500 21px/1.2 var(--font-display); letter-spacing: -0.015em; }
.pcard .body p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.pcard .crop { margin: 28px 0 0 28px; flex: 1; border-top-left-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; min-height: 240px; }
.pcard .crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pcard .crop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--panel)); }
.pcard .more { position: absolute; z-index: 2; left: 28px; bottom: 24px; }

/* Comparison tables on product and compare pages. */
.vs-wrap { overflow-x: auto; margin-top: 40px; }
.vs { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.vs th, .vs td { padding: 18px 16px; text-align: left; box-shadow: inset 0 -1px 0 var(--line); vertical-align: top; }
.vs thead th { font: 500 13px/1 var(--font-body); color: var(--ink-2); }
.vs thead th.kite { color: var(--ink); }
.vs td.kite { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--ink); }
.vs td { color: var(--ink-2); }
.vs td:first-child { color: var(--ink); }
.vs .yes { color: var(--accent-hi); }
.src { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Stub pages */
.stub { padding: 180px 0 140px; min-height: 72vh; }
.stub .lede { margin-top: 20px; }
.stub .box { margin-top: 48px; padding: 28px; max-width: 640px; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.form input, .form select, .form textarea { height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--well); color: var(--ink); font: 400 15px/1 var(--font-body); box-shadow: inset 0 0 0 1px var(--line-strong); }
.form textarea { height: 96px; padding: 12px 14px; resize: none; line-height: 1.5; }

/* ---------- Research run: candidates scored as they are checked ---------- */
.research { padding: 0; border-radius: var(--r-frame); overflow: hidden; font-size: 14px; }
.research .rh { padding: 22px 24px 16px; box-shadow: inset 0 -1px 0 var(--line); }
.research .rh .t { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.research .rh b { font: 500 16px/1.2 var(--font-display); letter-spacing: -0.01em; }
.research .rh .sub { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.research .state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.research .state .spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent-hi) 30%, transparent); border-top-color: var(--accent-hi); animation: spin 0.9s linear infinite; }
.research[data-done="true"] .state .spin { animation: none; border-color: var(--live); background: radial-gradient(circle, var(--live) 35%, transparent 40%); }
@keyframes spin { to { transform: rotate(360deg); } }
.research .counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.research .counts div { padding: 10px 12px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.research .counts b { display: block; font: 400 22px/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.research .counts span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.research .counts .v b { color: var(--live); }
.research .filters { display: flex; gap: 6px; padding: 12px 24px; box-shadow: inset 0 -1px 0 var(--line); flex-wrap: wrap; }
.research .filters span { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); background: var(--well); }
.research .filters span.on { color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.research .filters i { font-style: normal; color: var(--ink-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.research .rows { position: relative; height: 392px; overflow: hidden; }
.research .row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 118px; align-items: center; gap: 12px; padding: 0 24px; height: 56px; box-shadow: inset 0 -1px 0 var(--line); }
.research .row .biz b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.research .row .biz { min-width: 0; }
.research .row .biz i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.research .row .where { color: var(--ink-2); font-size: 13px; }
.research .row .q { justify-self: end; }
.js .research .row.new { animation: rowIn 420ms var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); } }
.q { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; transition: color 300ms ease, background-color 300ms ease, box-shadow 300ms ease; }
.q.high { color: #6fe3a8; background: rgba(61, 214, 140, 0.12); box-shadow: inset 0 0 0 1px rgba(61, 214, 140, 0.28); }
.q.good { color: #8dbbff; background: rgba(79, 157, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(79, 157, 255, 0.28); }
.q.fair { color: var(--ink-2); background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); }
.q.check { color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.q.check::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--accent-hi); animation: spin 0.9s linear infinite; }
.research .rf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; box-shadow: inset 0 1px 0 var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- Parallel Dial: lines ring, the first answer connects, the rest drop ---------- */
.pdial { padding: 18px; border-radius: var(--r-frame); }
.pdial .ph { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 16px; }
.pdial .ph b { font: 500 16px/1 var(--font-display); letter-spacing: -0.01em; }
.pdial .ph span { color: var(--ink-3); font-size: 13px; }
.pdial .lines-list { display: grid; gap: 8px; }
.pline { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--edge-light) 70%, transparent), inset 0 0 0 1px var(--line-strong); transition: opacity 360ms var(--ease-out), box-shadow 360ms var(--ease-out), transform 360ms var(--ease-out), background-color 360ms var(--ease-out); }
.pline .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font-body); background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pline .who { min-width: 0; }
.pline .who b { display: block; font-weight: 500; font-size: 14.5px; }
.pline .who i { font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.pline .st { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--ink-2); padding: 7px 9px; border-radius: 8px; background: var(--well); min-width: 112px; justify-content: center; font-variant-numeric: tabular-nums; }
.pline .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.pline .bars i { width: 2px; border-radius: 1px; background: var(--accent-hi); animation: bar 900ms ease-in-out infinite; }
.pline .bars i:nth-child(2) { animation-delay: 150ms; }
.pline .bars i:nth-child(3) { animation-delay: 300ms; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.pline[data-s="live"] { background: color-mix(in srgb, var(--live) 7%, var(--raised)); box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px color-mix(in srgb, var(--live) 45%, transparent), 0 0 0 4px color-mix(in srgb, var(--live) 10%, transparent); }
.pline[data-s="live"] .st { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.pline[data-s="live"] .bars, .pline[data-s="drop"] .bars { display: none; }
.pline[data-s="drop"] { opacity: 0.36; transform: scale(0.985); }
.pline[data-s="drop"] .st { color: var(--ink-3); }
.pdial .pf { display: flex; justify-content: space-between; gap: 12px; padding: 16px 6px 2px; font-size: 13px; color: var(--ink-3); }
.pdial .pf b { color: var(--ink-2); font-weight: 500; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .mails { margin-top: 96px; }
  .mails-row { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 40px; }
  .chapter.flip > .text { order: 0; }
  .chapter + .chapter { margin-top: 104px; }
  .grid3, .grid2, .pcards { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .pcard { min-height: 400px; }
  .p-top { padding-top: 116px; }
  .p-top .hero-shot { margin-top: 48px; }
  .p-top .bird { height: 520px; }
  .research .row { grid-template-columns: minmax(0, 1fr) 112px; }
  .research .row .where { display: none; }
  .research .counts { grid-template-columns: repeat(2, 1fr); }
  .research .rows { height: 336px; }
  .pline .st { min-width: 96px; }
}

/* The company card on narrow phones: tighter cells, no avatars, text may wrap. */
@media (max-width: 560px) {
  .seats { padding: 4px; }
  .seats td { padding: 10px 8px; white-space: normal; }
  .seats td.who { gap: 0; }
  .seats .av { display: none; }
  .seats .seat { height: auto; min-height: 26px; padding: 4px 9px; }
}

/* ---------- Screenshot lightbox ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(4, 5, 6, 0.94); display: grid; grid-template-rows: minmax(0, 1fr) auto; opacity: 0; transition: opacity 180ms var(--ease-out); touch-action: none; overscroll-behavior: contain; }
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px -20px rgba(0, 0, 0, 0.9); transform-origin: center center; user-select: none; -webkit-user-select: none; touch-action: none; cursor: zoom-in; transition: transform 160ms var(--ease-out); }
.lb[data-zoomed="true"] .lb-stage img { cursor: grab; transition: none; }
.lb-bar { display: flex; justify-content: space-between; gap: 24px; padding: 12px 24px 20px; color: var(--ink-2); font-size: 13.5px; }
.lb-n { font-family: var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; color: var(--ink); cursor: pointer; background: color-mix(in srgb, var(--raised) 90%, transparent); box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px var(--line-strong); transition: background-color var(--d-ui) ease; }
.lb-btn:hover { background: var(--well); }
.lb-btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; z-index: 3; }
.lb-prev, .lb-next { z-index: 2; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lb-stage { padding: 60px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb-stage img { transition: none; }
}

/* ---------- Prompt to results: the rep's prompt above the research it starts ---------- */
.lg-compo { display: grid; gap: 0; }
.prompt { padding: 18px 20px 20px; border-radius: var(--r-frame); max-width: 92%; justify-self: end; width: 100%; }
.prompt .pr-h { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-body); color: var(--ink-2); }
.prompt .pr-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.prompt .pr-you { margin: 14px 0 0 auto; max-width: 88%; padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.5; min-height: 66px; }
.prompt .pr-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent-hi); animation: caret 1s steps(1) infinite; }
.prompt[data-sent="true"] .pr-caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.prompt .pr-reply { margin-top: 12px; font-size: 14px; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.prompt .pr-reply[data-on="true"] { opacity: 1; transform: none; }
.lg-link { position: relative; height: 40px; justify-self: center; width: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-hi) 50%, transparent), color-mix(in srgb, var(--accent-hi) 10%, transparent)); opacity: 0.35; transition: opacity 400ms var(--ease-out); }
.lg-compo[data-sent="true"] .lg-link { opacity: 1; }
.lg-link i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 12px var(--accent-hi); opacity: 0; }
.lg-compo[data-sent="true"] .lg-link i { animation: flow 1.6s var(--ease-in-out) infinite; }
@keyframes flow { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(32px); opacity: 0; } }
.static .lg-compo .lg-link i { animation: none; opacity: 1; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .lg-link i { animation: none !important; } }
@media (max-width: 900px) { .prompt { max-width: 100%; } }
