/* Zeek website design system (2026 redesign).
   Black stages where the product is on show, white for reading, blue only for
   actions. Grey (#F2F2F7) appears only inside mockups of app screens.
   Pages that still use zeek.css are untouched by this file. */

:root {
  --bg: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #86868B;
  --sep: rgba(60, 60, 67, 0.12);
  --sep-2: rgba(60, 60, 67, 0.18);
  --grouped: #F2F2F7;
  --card-fill: #F2F2F7; /* a fill on a card or panel (chips, link previews); --grouped matches the card in dark */
  --inset: #FFFFFF;
  --card: #FFFFFF;
  --fill: #0071E3;
  --fill-hover: #0077ED;
  --link: #0066CC;
  --link-hover: #004E9F;
  --tint: #E8F0FD;
  --success: #248A3D;
  --alert: #C93400;
  --stage: #0B0B0C;
  --on-stage: #F5F5F7;
  --on-stage-2: #A1A1A6;
  --on-stage-3: rgba(255, 255, 255, 0.62);
  --on-stage-link: #2997FF;
  --panel: #FFFFFF;
  --panel-sep: rgba(60, 60, 67, 0.12);
  --bubble-in: #E9E9EB;
  --bubble-in-text: #000000;
  --bubble-out: #0071E3;
  --segment: rgba(118, 118, 128, 0.12);
  --segment-on: #FFFFFF;
  --card-edge: 0 0 0 1px rgba(60, 60, 67, 0.12), 0 24px 48px -36px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

/* Dark: the page lifts to #111 so the black stages still stand out. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --text: #F5F5F7; --text-2: #A1A1A6; --text-3: #86868B;
    --sep: rgba(255, 255, 255, 0.12); --sep-2: rgba(255, 255, 255, 0.16);
    --grouped: #1C1C1E; --card-fill: #2C2C2E; --inset: #2C2C2E; --card: #1C1C1E; --link: #2997FF; --link-hover: #5AB0FF; --tint: rgba(41, 151, 255, 0.16);
    --success: #30D158; --alert: #FF9F0A; --stage: #000000;
    --panel: #1C1C1E; --panel-sep: rgba(255, 255, 255, 0.1); --bubble-in: #2C2C2E; --bubble-in-text: #F5F5F7;
    --segment: rgba(118, 118, 128, 0.24); --segment-on: #3A3A3C;
    --card-edge: 0 0 0 1px rgba(255, 255, 255, 0.1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --text: #F5F5F7; --text-2: #A1A1A6; --text-3: #86868B;
  --sep: rgba(255, 255, 255, 0.12); --sep-2: rgba(255, 255, 255, 0.16);
  --grouped: #1C1C1E; --card-fill: #2C2C2E; --inset: #2C2C2E; --card: #1C1C1E; --link: #2997FF; --link-hover: #5AB0FF; --tint: rgba(41, 151, 255, 0.16);
  --success: #30D158; --alert: #FF9F0A; --stage: #000000;
  --panel: #1C1C1E; --panel-sep: rgba(255, 255, 255, 0.1); --bubble-in: #2C2C2E; --bubble-in-text: #F5F5F7;
  --segment: rgba(118, 118, 128, 0.24); --segment-on: #3A3A3C;
  --card-edge: 0 0 0 1px rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fill); outline-offset: 3px; border-radius: 8px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 10px;
  background: var(--fill); color: #FFFFFF; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #FFFFFF; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Type ── */
.h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -0.028em; }
.h3 { font-size: 21px; line-height: 1.25; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.45; color: var(--text-2); }
.body-2 { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.small { font-size: 13px; color: var(--text-2); }
@media (max-width: 600px) {
  .h1 { font-size: clamp(34px, 10.2vw, 44px); line-height: 1.04; }
  .h2 { font-size: 34px; line-height: 1.08; }
  .lead { font-size: 19px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 14px; border: none;
  font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color 200ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--fill); color: #FFFFFF; }
.btn-primary:hover { background: var(--fill-hover); color: #FFFFFF; }
.btn-quiet { background: var(--grouped); color: var(--text); }
.btn-quiet:hover { color: var(--text); }
.btn-sm { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:active { transition: none; transform: none; } }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sep);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.logo span { font-size: 21px; font-weight: 700; letter-spacing: -0.8px; }
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; font-size: 15px; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--link); text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-menu {
  display: none; width: 44px; height: 44px; margin-right: -10px; border: none; background: none;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-menu svg { stroke: var(--text); }
/* Dark over the black hero; turns light once the hero scrolls away. */
.nav.is-on-stage { background: var(--stage); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav.is-on-stage .logo, .nav.is-on-stage .nav-links a { color: #E8E8ED; }
.nav.is-on-stage .logo span { color: var(--on-stage); }
.nav.is-on-stage .nav-links a:hover { color: #FFFFFF; }
.nav.is-on-stage .logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.nav.is-on-stage .nav-menu svg { stroke: var(--on-stage); }
@media (max-width: 860px) {
  .nav-inner { height: 56px; gap: 8px; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; }
  .nav-spacer { flex: 1; }
  .logo img { width: 26px; height: 26px; }
  .logo span { font-size: 20px; }
}
.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: 8px var(--gutter) 32px;
  display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.drawer.is-open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease); }
.drawer-top { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.drawer-close { width: 44px; height: 44px; margin-right: -10px; border: none; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.drawer-close svg { stroke: var(--text); }
.drawer nav { display: flex; flex-direction: column; padding-top: 24px; }
.drawer nav a { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); padding: 10px 0; }
.drawer nav a:hover { text-decoration: none; color: var(--link); }
.drawer .btn { margin-top: auto; }

/* ── Sections ── */
.sec { padding: 144px 0; }
.sec + .sec { border-top: 1px solid var(--sep); }
.sec.is-flush + .sec { border-top: none; }
@media (max-width: 600px) { .sec { padding: 72px 0; } }

/* ── App-mockup pieces (grey is the app's own colour here) ── */
.b-fan, .b-zi { padding: 8px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; max-width: 84%; }
.b-fan { align-self: flex-end; max-width: 80%; background: var(--bubble-out); color: #FFFFFF; }
.b-zi { align-self: flex-start; background: var(--bubble-in); color: var(--bubble-in-text); }
.avatar {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-weight: 600; background: #F3D9C9; color: #8A4A2B;
}
.avatar.is-cool { background: #DCE6F0; color: #3D5A7A; }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 14px; background: var(--card-fill); font-size: 13px; }
.row-list > * + * { border-top: 1px solid var(--panel-sep); }
.cover {
  display: flex; align-items: flex-end; flex: none; border-radius: 6px; padding: 0 0 6px 7px;
  background: #C4512F; color: #FFFFFF; font-weight: 700; letter-spacing: -0.03em;
}
.mini-btn { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: var(--fill); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.feature-rows { display: flex; flex-direction: column; }
.feature-rows li { padding: 20px 0; border-top: 1px solid var(--sep); display: flex; flex-direction: column; gap: 4px; }
.feature-rows li:last-child { border-bottom: 1px solid var(--sep); }
.feature-rows b { font-size: 17px; font-weight: 600; }
.feature-rows span { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.panel-card { background: var(--card); border-radius: 24px; padding: 20px; box-shadow: var(--card-edge); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--sep); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; font-size: 14px; }
.footer-cols .logo { align-self: start; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; }
.footer-cols nav span { font-weight: 600; color: var(--text); }
.footer-cols nav a { color: var(--text-2); }
.footer-cols nav a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-2); }
.footer-bottom label { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom select {
  font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--sep-2); background: var(--bg); color: var(--text);
}
.footer-social { display: inline-flex; gap: 16px; }
.footer-social a { color: var(--text-2); }

/* ── Story animation primitives ── */
.a-in { animation: zIn 600ms var(--ease) both; animation-delay: var(--d, 0ms); }
.a-typing { animation: zTyping 1200ms linear both; animation-delay: var(--d, 0ms); }
.a-dot { animation: zDot 1200ms ease-in-out infinite; }
.a-pop { display: inline-block; animation: zPop 520ms var(--ease) both; animation-delay: var(--d, 0ms); }
.a-progress { animation: zProgress 10200ms linear both; transform-origin: left center; }
.is-paused .a-in, .is-paused .a-typing, .is-paused .a-dot, .is-paused .a-pop, .is-paused .a-progress { animation-play-state: paused; }
@keyframes zIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes zTyping { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes zDot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes zPop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.14); } 100% { opacity: 1; transform: scale(1); } }
@keyframes zProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .a-in, .a-pop { animation: none !important; opacity: 1 !important; transform: none !important; }
  .a-typing, .a-progress { display: none !important; }
  .a-dot { animation: none !important; }
}
