/* Shared by the Kite page (index.html) and the Kite bar API page (kitebar/index.html). */
/* Kite's own tokens: ink and paper, violet from the kite mark for what's live, and a dusk sky behind it all */
:root {
  --ink: #232323;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --ink-4: #c4c4c4;
  --paper: #f6f5f8;
  --paper-2: #efedf3;
  --card: #ffffff;
  --violet: #6d5efc;
  --violet-ink: #3b2fc4;
  --lilac: #e4e0ff;
  --peach: #ffc9b0;
  --night: #1b1a22;
  --line: rgba(35, 35, 35, 0.08);
  --line-2: rgba(35, 35, 35, 0.14);
  --frame: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --plum: 52, 26, 92;
  --sky: #8f78c8 url('images/sky-violet.jpg') no-repeat;
  --sky-rose: #b98bb8 url('images/sky-rose.jpg') no-repeat;
  --sky-dusk: #2c3354 url('images/sky-dusk.jpg') no-repeat;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.04em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* no monospace, as in the app: code uses the interface font, digits line up with tabular-nums */
code { font: 450 0.94em var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
::selection { background: var(--lilac); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--frame); width: calc(100% - var(--gutter) * 2); margin: 0 auto; }

/* ---- pieces used everywhere ---- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--lilac); color: var(--violet-ink); font: 500 12px/1 var(--sans); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font: 500 14px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; height: 48px; padding: 0 22px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(var(--plum), 0.5); }
.btn-light:hover { background: #f6f4fb; }
.btn.soon, .btn.soon:hover { cursor: default; transform: none; background: rgba(255, 255, 255, 0.82); }
.nav.solid .dl.soon { background: var(--ink); }
.glass { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32); color: #fff; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
a.glass:hover, button.glass:hover { background: rgba(255, 255, 255, 0.26); }
.window { overflow: hidden; border-radius: 14px; background: var(--card); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-bottom: 1px solid var(--line); background: linear-gradient(#fbfbfc, #f4f3f7); font: 500 12px/1 var(--sans); color: var(--ink-3); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); opacity: 0.55; }
.window-bar span { margin: 0 auto; transform: translateX(-19px); }
.window img { width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--paper); }
/* the app in a pane of glass, as in the hero */
.rim { padding: 9px; border-radius: 22px; background: rgba(255, 255, 255, 0.24); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 70px -30px rgba(var(--plum), 0.55); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
/* the kite mark: it rides the wind, its tail waves behind */
.mark { overflow: visible; }
.mark .flyer { transform-origin: 16px 16px; transform-box: view-box; animation: ride 5.2s ease-in-out infinite; }
.mark .tail { stroke-dasharray: 3 3.4; animation: tail 1.4s linear infinite; }
@keyframes ride { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-1.2px); } }
@keyframes tail { to { stroke-dashoffset: -12.8; } }

/* ---- section heads: a lilac label, a big centred line with one italic word, one sentence ---- */
section.block { padding-top: clamp(88px, 11vw, 150px); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin: 0 auto clamp(36px, 5vw, 56px); max-width: 860px; }
.head h2 { font-size: clamp(36px, 5vw, 66px); line-height: 1; letter-spacing: -0.05em; }
.head p { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 50ch; }

/* ---- the nav: logo and version on the left, the menu on the right. Plain on the sky; a frosted bar once scrolling starts ---- */
.nav { position: fixed; z-index: 50; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 22px 0 30px; border-radius: var(--radius) var(--radius) 0 0; color: #fff; transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, top 0.35s, left 0.35s, right 0.35s, border-radius 0.35s, height 0.35s, transform 0.4s var(--ease), opacity 0.3s; }
.nav .side { display: flex; align-items: center; gap: 12px; }
.nav .brand { gap: 8px; }
.nav .links { display: flex; gap: 4px; margin-right: 8px; }
.nav .links a, .nav .to-other { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 14px; color: inherit; opacity: 0.92; text-decoration: none; transition: background-color 0.2s, opacity 0.2s; }
.nav .links a:hover, .nav .to-other:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.nav .mark .sail { fill: rgba(255, 255, 255, 0.28); stroke: #fff; }
.nav .mark .spar { stroke: rgba(255, 255, 255, 0.8); }
.nav .mark .tail { stroke: rgba(255, 255, 255, 0.7); }
.nav .dl { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(var(--plum), 0.5); }
.nav.solid { top: 0; left: 10px; right: 10px; height: 62px; border-radius: 0 0 22px 22px; color: var(--ink); background: rgba(255, 255, 255, 0.88); box-shadow: 0 1px 0 var(--line), 0 14px 30px -20px rgba(var(--plum), 0.35); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.nav.solid .links a, .nav.solid .to-other { color: var(--ink-2); opacity: 1; }
.nav.solid .links a:hover, .nav.solid .to-other:hover { background: var(--paper-2); color: var(--ink); }
.nav.solid .mark .sail { fill: rgba(109, 94, 252, 0.22); stroke: var(--violet); }
.nav.solid .mark .spar { stroke: rgba(109, 94, 252, 0.75); }
.nav.solid .mark .tail { stroke: rgba(109, 94, 252, 0.6); }
.nav.solid .dl { background: var(--ink); color: #fff; box-shadow: none; }
.nav.away { transform: translateY(-120%); opacity: 0; }

/* ---- hero: a rounded panel full of sky, the app rising out of the clouds ---- */
.hero-wrap { padding: 10px; }
.hero { position: relative; overflow: hidden; isolation: isolate; height: clamp(700px, calc(100svh - 20px), 1000px); border-radius: var(--radius); background: var(--sky); background-size: cover; background-position: center 64%; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(var(--plum), 0.38) 0%, rgba(var(--plum), 0.1) 36%, transparent 58%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(118px, 17vh, 170px) 20px 0; }
.hero h1 { margin-top: 0; font-size: clamp(48px, min(7vw, 10.5vh), 104px); line-height: 0.95; letter-spacing: -0.05em; text-shadow: 0 2px 30px rgba(var(--plum), 0.25); }
.hero .lead { margin-top: 18px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: rgba(255, 255, 255, 0.92); max-width: 42ch; text-shadow: 0 1px 14px rgba(var(--plum), 0.3); }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.hero-shot { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1080px, calc(100% - 64px)); top: clamp(400px, 57%, 600px); }
.hero-shot .rim { height: 100%; padding-bottom: 0; border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 60px -20px rgba(var(--plum), 0.45); }
.hero-shot .window { border-radius: 14px 14px 0 0; height: calc(100% + 1px); }
.hero-shot .window img { height: 100%; object-fit: cover; object-position: top left; }
/* the window rises into place as the page opens */
.hero-shot { animation: rise 1.1s var(--ease) 0.15s both; }
.hero-copy > * { animation: lift 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 60px); } }
@keyframes lift { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

/* ---- features: a sky panel, glass tabs on the left, the app on the right ---- */
.sky-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--sky); background-size: cover; color: #fff; }
.sky-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--plum), 0.34), rgba(var(--plum), 0.06) 45%, transparent); }
.sky-panel.rose { background: var(--sky-rose); background-size: cover; }
.sky-panel.dusk { background: var(--sky-dusk); background-size: cover; }
.showcase { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; padding: clamp(18px, 2.4vw, 32px); background-position: center 30%; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { position: relative; overflow: hidden; text-align: left; cursor: pointer; border-radius: 16px; padding: 15px 18px; font: inherit; color: #fff; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
/* the open tab stays solid white, hovered or not */
.tab[aria-selected='true'], .tab[aria-selected='true']:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 14px 30px -16px rgba(var(--plum), 0.55); cursor: default; }
.tab .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tab .t { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.tab .api { font: 500 11px/1 var(--sans); color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.tab .api kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 3px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); font: inherit; }
.tab[aria-selected='true'] .api { color: var(--ink-3); }
.tab[aria-selected='true'] .api kbd { background: var(--paper-2); color: var(--ink-2); }
.tab .d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.tab .d > p { overflow: hidden; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tab[aria-selected='true'] .d { grid-template-rows: 1fr; }
.tab[aria-selected='true'] .d > p { padding-top: 6px; }
/* how long until the next one: a hairline along the bottom edge of the open tab */
.tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper-2); opacity: 0; }
.tab[aria-selected='true'] .bar { opacity: 1; }
.tab .bar i { display: block; height: 100%; width: 0; background: var(--violet); }
.stage img, .stage .swap { transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s var(--ease); }
.stage img.fade, .stage .swap.fade { opacity: 0; filter: blur(6px); transform: scale(0.99); }

/* ---- story: bento, the big number on sky ---- */
.bento { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; }
.tile { border-radius: 24px; padding: 30px; background: var(--card); border: 1px solid var(--line); }
.tile.sky { position: relative; overflow: hidden; isolation: isolate; border: 0; color: #fff; background: var(--sky-rose); background-size: cover; background-position: 30% 70%; }
.tile.sky::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--plum), 0.42), rgba(var(--plum), 0.06) 70%); }
.tile .big { font-size: clamp(80px, 9vw, 128px); line-height: 0.88; letter-spacing: -0.07em; font-weight: 500; margin-top: 28px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 30px rgba(var(--plum), 0.25); }
.tile .big small { font-size: 0.32em; letter-spacing: -0.02em; margin-left: 6px; opacity: 0.85; }
.tile .big-k { margin-top: 16px; font-size: 14.5px; color: rgba(255, 255, 255, 0.92); }
.tile.text { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.tile.text p:first-child { font-size: clamp(20px, 1.8vw, 25px); line-height: 1.28; letter-spacing: -0.03em; }
.tile.text p + p { color: var(--ink-2); font-size: 15px; }
.tile.text .sig { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-3); }
.tile.facts { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; padding: 8px; }
.fact { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--paper); }
.fact b { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.fact b small { font-size: 0.42em; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.fact span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.fact.dark { background: var(--night); color: #fff; }
.fact.dark::before { content: ''; position: absolute; top: -70px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(109, 94, 252, 0.32), transparent 65%); }
.fact.dark span { color: rgba(255, 255, 255, 0.6); }
.fact.dark b small { color: rgba(255, 255, 255, 0.45); }

/* ---- search: one dark panel, a search box that types its own queries ---- */
.console { overflow: hidden; border-radius: 24px; background: var(--night); color: #f4f4f5; box-shadow: 0 40px 80px -40px rgba(var(--plum), 0.6); }
.console-bar { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.console-bar svg { width: 17px; height: 17px; color: rgba(255, 255, 255, 0.4); flex: none; }
.console-bar .typed { flex: 1; font: 400 16px/1 var(--sans); color: #fff; white-space: nowrap; overflow: hidden; }
.console-bar .caret { display: inline-block; width: 1.5px; height: 18px; background: var(--violet); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-bar .hits { font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.console-bar .hits.on { background: var(--violet); color: #fff; }
.qrow { display: grid; grid-template-columns: minmax(200px, 0.42fr) 1fr auto; align-items: center; gap: 20px; padding: 0 14px 0 22px; height: 62px; border-top: 1px solid rgba(255, 255, 255, 0.06); transition: background-color 0.2s; }
.qrow:first-of-type { border-top: 0; }
.qrow:hover { background: rgba(255, 255, 255, 0.035); }
.qrow .what { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.88); }
.qrow .what i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.qrow code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #fff; }
.qrow code .k, .typed .k { color: #b3a9ff; }
.qrow code .o, .typed .o { color: rgba(255, 255, 255, 0.45); }
.qrow code .s, .typed .s { color: var(--peach); }
.copy { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78); font: 500 12.5px/1 var(--sans); cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.copy:hover { background: #fff; color: var(--ink); }
.copy.done { background: var(--violet); color: #fff; }

/* ---- split: one card, what Kite does on the light half, what waits for you on the dark half ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(var(--plum), 0.35); }
.half { border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.half.yes { background: var(--paper); }
.half.no { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.half.no::before { content: ''; position: absolute; top: -140px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 176, 0.16), transparent 65%); pointer-events: none; }
.half h3 { display: flex; align-items: center; justify-content: space-between; font-size: 20px; letter-spacing: -0.03em; margin-bottom: 18px; }
.half.no h3 .badge { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.op { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.half.no .op { border-top-color: rgba(255, 255, 255, 0.08); }
.op .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.half.yes .op .ic { background: var(--lilac); color: var(--violet-ink); }
.half.no .op .ic { background: rgba(255, 201, 176, 0.14); color: var(--peach); }
.op .ic svg { width: 16px; height: 16px; }
/* the dark half when it lists what waits for your click, not what never happens: violet, not peach */
.half.ink::before { background: radial-gradient(circle, rgba(109, 94, 252, 0.3), transparent 65%); }
.half.ink .op .ic { background: var(--violet); color: #fff; }
.op .txt { flex: 1; min-width: 0; }
.op b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -0.015em; }
.op span { display: block; margin-top: 2px; font: 400 12.5px/1.35 var(--sans); color: var(--ink-3); }
.half.no .op span { color: rgba(255, 255, 255, 0.5); }

/* ---- faq ---- */
.faq { max-width: 860px; margin: 0 auto; overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.faq details + details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 22px 26px; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; transition: background-color 0.2s; }
summary::-webkit-details-marker { display: none; }
summary .plus { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex: none; transition: transform 0.3s var(--ease), background-color 0.2s; }
summary .plus::before { content: ''; width: 10px; height: 10px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; }
details[open] summary .plus { transform: rotate(45deg); background: var(--lilac); }
details:not([open]) summary:hover { background: color-mix(in srgb, var(--violet) 3%, transparent); }
details[open] { background: color-mix(in srgb, var(--violet) 3%, transparent); }
details[open] summary { padding-bottom: 10px; }
details .a { padding: 0 26px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 66ch; }
details .a a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- closing: the sky again, to bookend the hero ---- */
.closing { padding: clamp(88px, 11vw, 150px) 10px 10px; }
.closing .sky-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: clamp(56px, 7vw, 96px) 24px; background-position: center 25%; }
.closing .sky-panel::before { background: linear-gradient(180deg, rgba(var(--plum), 0.36), rgba(var(--plum), 0.08)); }
.closing h2 { font-size: clamp(42px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.055em; text-shadow: 0 2px 30px rgba(var(--plum), 0.25); }
.closing p { font-size: clamp(16px, 1.3vw, 18px); color: rgba(255, 255, 255, 0.92); max-width: 44ch; }
.closing .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.closing .smart { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.closing .badge { background: rgba(255, 255, 255, 0.9); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 34px 0 48px; font-size: 13px; color: var(--ink-2); }
footer a { text-decoration: none; }
footer .credits { padding: 0 0 34px; margin-top: -22px; font-size: 12px; color: var(--ink-3); }
footer a:hover { color: var(--ink); }
footer .spacer { flex: 1; }
.social { display: inline-flex; gap: 6px; }
.social a { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social svg { width: 15px; height: 15px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.byline .who { font-size: 13.5px; color: var(--ink-2); }
.byline .who b { font-weight: 500; color: var(--ink); }
footer .by { display: inline-flex; align-items: center; gap: 12px; }

/* ---- duo: copy on the left, the live desktop on the right ---- */
.duo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 72px); background-position: center 60%; }
.duo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.duo-copy h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1; letter-spacing: -0.05em; text-shadow: 0 2px 30px rgba(var(--plum), 0.25); }
.duo-copy p { font-size: clamp(16px, 1.3vw, 18px); color: rgba(255, 255, 255, 0.92); max-width: 44ch; }
.duo-copy .ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
/* the showroom: one desktop with the live kitebar on it, and which of Kite's three it's showing */
.showroom { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.showroom .rim { width: 100%; padding: 8px; border-radius: 22px; will-change: transform; }
.showroom .desktop { position: relative; overflow: hidden; border-radius: 15px; aspect-ratio: 16 / 11; background: var(--sky-dusk); background-size: cover; background-position: center 70%; }
.showroom .desktop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 20, 0.3), transparent 35%); pointer-events: none; }
/* the window you were busy in, under the Kite bar */
.showroom .win { position: absolute; left: 9%; right: 9%; top: 30%; bottom: -6%; display: grid; grid-template-columns: 28% 1fr; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 20px 50px -20px rgba(20, 10, 40, 0.6); }
.showroom .win::before { content: ''; background: #232326; }
.showroom .win::after { content: ''; margin: 18px; border-radius: 6px; background: repeating-linear-gradient(180deg, var(--paper-2) 0 9px, transparent 9px 26px); }
.showroom .desktop .kitebar { scale: 1.08; transform-origin: top center; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.legend span { position: relative; overflow: hidden; height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.legend span svg { width: 14px; height: 14px; }
.legend span.on { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 10px 24px -12px rgba(var(--plum), 0.6); }
.legend span i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--violet); }

/* ---- the Kite bar, drawn in HTML as the app draws it: a strip of sky floating below the top edge,
   white type, the one thing to do as a white pill, a lime line for progress, paper underneath ---- */
.screen { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--sky-dusk); background-size: cover; background-position: 40% 60%; }
.screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 20, 0.15), transparent 40%); pointer-events: none; }
.screen.violet { background: var(--sky); background-size: cover; background-position: 50% 80%; }
.screen.rose { background: var(--sky-rose); background-size: cover; background-position: 40% 70%; }
.kitebar { position: absolute; z-index: 2; top: 10px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 20px); display: flex; flex-direction: column; color: #fff; font-size: 13px; line-height: 1.3; }
.kitebar .clip { position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(100deg, #3f7fcb, #5e9bd9 70%, #8dbde9 140%); box-shadow: 0 18px 40px -16px rgba(10, 30, 70, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.kitebar .swap { display: flex; flex-direction: column; width: max-content; max-width: 100%; transition: opacity 0.26s ease, filter 0.26s ease, transform 0.4s var(--spring); }
.kitebar .swap.fade { opacity: 0; filter: blur(6px); transform: translateY(4px); }
.kitebar .row { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 14px; white-space: nowrap; }
.kitebar .mark { flex: none; width: 19px; height: 24px; margin-right: 2px; }
.kitebar .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); color: #fff; }
.kitebar .ic.ok { color: #c6f56f; }
.kitebar .ic.warn { color: #ffd27a; }
.kitebar .ic svg { width: 15px; height: 15px; }
.kitebar .ic.av { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); background: linear-gradient(135deg, hsl(var(--h) 85% 70%), hsl(calc(var(--h) + 50) 80% 58%)); }
.kitebar .nt { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.kitebar .nt b { font-weight: 500; font-size: 13.5px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.kitebar .nt span { font-family: var(--serif, 'Instrument Serif', Georgia, serif); font-style: italic; font-size: 15.5px; line-height: 1; color: rgba(255, 255, 255, 0.86); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.kitebar .val { flex: none; margin-left: 2px; font-size: 15.5px; font-family: var(--serif, 'Instrument Serif', Georgia, serif); font-style: italic; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.kitebar .val.code { display: inline-flex; gap: 3px; font: 600 19px/1 var(--sans); font-style: normal; letter-spacing: 0.04em; color: #fff; }
.kitebar .val.code i { font-style: normal; animation: digit 0.55s var(--spring) both; animation-delay: calc(var(--d) * 55ms + 0.15s); }
.kitebar .val.code i:nth-child(4) { margin-left: 5px; }
@keyframes digit { from { opacity: 0; transform: translateY(8px) scale(0.85); filter: blur(4px); } }
.kitebar .acts { display: flex; gap: 6px; margin-left: 4px; }
.kitebar .acts span { height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 13px; transition: background-color 0.25s, color 0.25s; }
.kitebar .acts span:last-child { background: #fff; color: #292929; font-weight: 500; box-shadow: 0 4px 12px -4px rgba(10, 30, 70, 0.45); }
.kitebar .acts span svg { width: 13px; height: 13px; }
.kitebar .acts span.pressed { animation: press 0.45s var(--spring); }
@keyframes press { 40% { transform: scale(0.88); } }
.kitebar.pill .acts span:not(:last-child) { display: none; }
/* progress and countdowns: a lime line along the bottom edge */
.kitebar .line { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.kitebar .line i { display: block; height: 100%; width: 0; border-radius: inherit; background: #c6f56f; transition: width 0.6s var(--ease); }
/* what needs room hangs under the sky on paper, in the reading font */
.kitebar .sheet { align-self: flex-start; margin: -12px 14px 0; padding: 22px 16px 14px; max-width: 340px; border-radius: 0 0 18px 18px; background: #fff; color: var(--ink); box-shadow: 0 22px 44px -18px rgba(10, 30, 70, 0.5); white-space: normal; }
.kitebar .sheet .body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2, #3a3a3a); }
.kitebar .sheet .reply { display: flex; align-items: center; min-width: 260px; min-height: 38px; padding: 9px 12px; border-radius: 12px; background: #f4f4f6; font-size: 13px; }
.kitebar .sheet .body + .reply { margin-top: 10px; }
.kitebar .reply .txt:empty::before { content: 'Write a reply…'; color: rgba(0, 0, 0, 0.4); }
.kitebar .reply .caret { width: 1.5px; height: 15px; margin-left: 1px; background: #305dde; animation: blink 1s steps(1) infinite; }
.kitebar.pill .sheet { display: none; }
/* on the small tiles, only the name: the second line would squeeze both */
.kind .kitebar .nt span { display: none; }
/* what's waiting: frosted chips beside it on the sky */
.kitebar .chips { display: none; align-items: center; gap: 4px; margin-left: 2px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.kitebar .chips.on { display: flex; }
.kitebar .chips span { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 12px; }
.kitebar .chips span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c6f56f; }

/* ---- the kite in the hero sky ---- */
.kite-fly { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.kite-fly .string { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; }
.kite-fly .sail { fill: rgba(109, 94, 252, 0.9); }
.kite-fly .sail-2 { fill: rgba(255, 201, 176, 0.92); }
.kite-fly .spar { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.4; }
.kite-fly .tail { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.4; stroke-linecap: round; }
.kite-fly .bows path { fill: rgba(255, 201, 176, 0.95); }
.kite-fly .bows path:nth-child(2) { fill: rgba(109, 94, 252, 0.95); }
/* words split for the scroll motion */
.w { display: inline-block; }
.w > span { display: inline-block; will-change: transform; }
/* a desktop behind it, so the Kite bar sits on something */
.desk { position: absolute; inset: auto 8% 8% 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; opacity: 0.9; }
.desk i { aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.22); }

.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 960px) {
  .nav .links, .nav .to-other { display: none; }
  .nav { padding: 0 16px 0 20px; }
  .hero-shot { width: calc(100% - 28px); top: auto; height: 44%; }
  .showcase { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; padding: 10px 14px; }
  .tab .d, .tab .api, .tab .bar { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.facts { grid-template-rows: none; }
  .qrow { grid-template-columns: 1fr auto; height: auto; padding: 14px 14px 14px 22px; row-gap: 6px; }
  .qrow code { grid-column: 1 / -1; grid-row: 2; }
  .split { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .showroom .desktop .kitebar { scale: 0.8; }
  .kitebar .chips { display: none !important; }
}
@media (max-width: 600px) {
  .hero { height: 760px; }
  .hero-copy { padding-top: 104px; }
  .kite-fly { display: none; }
  .showroom .desktop { aspect-ratio: 4 / 3.4; }
  .showroom .desktop .kitebar { scale: 0.62; }
}
