/* teamload.space promo site. Source of site/assets/site.<hash>.css: edit here, then `node tools/site/build.mjs`.
   Tokens follow @grayscaled/ui (plan 12 D-R3, plan 13 §2): Workload green, GitHub-like neutrals. No frameworks. */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin.3100e775.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-cyrillic.71d5ee93.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;
  --bg: oklch(1 0 0);
  --bg-subtle: oklch(0.985 0.002 248);
  --bg-inset: oklch(0.97 0.004 248);
  --fg: oklch(0.254 0.011 254);
  --fg-muted: oklch(0.495 0.022 251);
  --border: oklch(0.881 0.013 244);
  --border-soft: oklch(0.93 0.008 244);
  --brand: oklch(0.5 0.123 155);
  --brand-fg: oklch(1 0 0);
  --brand-hover: oklch(0.45 0.111 155);
  --brand-text: oklch(0.47 0.12 155);
  --brand-subtle: oklch(0.5 0.123 155 / 10%);
  --brand-glow: oklch(0.72 0.15 155 / 22%);
  --calls: oklch(0.511 0.23 277);
  --ring: oklch(0.56 0.138 155);
  --shot-shadow: 0 1px 2px oklch(0 0 0 / 6%), 0 12px 32px -8px oklch(0.3 0.03 250 / 18%), 0 32px 64px -24px oklch(0.3 0.03 250 / 22%);
  --radius: 10px;
  --radius-lg: 14px;
  --page: 1200px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.176 0.014 258);
    --bg-subtle: oklch(0.155 0.014 258);
    --bg-inset: oklch(0.22 0.018 256);
    --fg: oklch(0.943 0.011 244);
    --fg-muted: oklch(0.72 0.016 255);
    --border: oklch(0.384 0.018 255);
    --border-soft: oklch(0.3 0.018 255);
    --brand: oklch(0.7 0.15 155);
    --brand-fg: oklch(0.16 0 0);
    --brand-hover: oklch(0.77 0.14 155);
    --brand-text: oklch(0.78 0.14 155);
    --brand-subtle: oklch(0.7 0.15 155 / 15%);
    --brand-glow: oklch(0.6 0.15 155 / 20%);
    --calls: oklch(0.68 0.158 277);
    --ring: oklch(0.64 0.15 155);
    --shot-shadow: 0 0 0 1px oklch(1 0 0 / 4%), 0 16px 40px -12px oklch(0 0 0 / 60%), 0 40px 80px -32px oklch(0 0 0 / 55%);
  }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 'Inter var', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: none; gap: 4px; margin-left: 20px; }
.nav a { color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--fg); background: var(--bg-inset); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px;
  color: var(--fg-muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.lang:hover { color: var(--fg); border-color: var(--border); }
.lang svg { width: 16px; height: 16px; }
@media (min-width: 840px) {
  .nav { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease-out), box-shadow 0.15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--brand); color: var(--brand-fg); box-shadow: 0 1px 0 oklch(1 0 0 / 15%) inset, 0 1px 2px oklch(0 0 0 / 12%); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--bg); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-inset); }
.btn .calls-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.63 0.24 25); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}

/* Hero */
.hero { position: relative; padding: 56px 0 24px; text-align: center; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: -120px 0 auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 30%, var(--brand-glow), transparent 70%),
    radial-gradient(30% 30% at 80% 20%, oklch(0.62 0.15 277 / 10%), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 560px; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); color: var(--fg-muted); font-size: 13px; font-weight: 500; line-height: 1.3;
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand-text); font-weight: 600; }
.hero h1 { margin: 20px auto 0; max-width: 15ch; font-size: clamp(36px, 8.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.lead { margin: 20px auto 0; max-width: 40rem; color: var(--fg-muted); font-size: clamp(17px, 2.4vw, 19px); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-note { margin-top: 14px; color: var(--fg-muted); font-size: 13px; }

.showcase { margin-top: 48px; }
.tabs {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 16px; border-radius: 10px;
  background: var(--bg-inset); border: 1px solid var(--border-soft); max-width: 100%; overflow-x: auto;
}
.tabs[hidden] { display: none; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--fg-muted); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 7px; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected='true'] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px oklch(0 0 0 / 10%), 0 0 0 1px var(--border-soft); }

/* Screenshot frames */
.shot {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-subtle); box-shadow: var(--shot-shadow);
}
.shot-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border-soft); background: var(--bg-subtle); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot-bar span { margin: 0 auto; padding-right: 48px; color: var(--fg-muted); font-size: 12px; font-weight: 500; }
.shot img { width: 100%; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: fade 0.35s var(--ease-out); }
}
.phone {
  width: min(300px, 82%); margin: 0 auto; padding: 10px; border-radius: 40px;
  background: var(--bg-inset); border: 1px solid var(--border); box-shadow: var(--shot-shadow);
}
.phone img { border-radius: 30px; border: 1px solid var(--border-soft); }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 44rem; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-text); font-size: 14px; font-weight: 600; }
.eyebrow svg { width: 18px; height: 18px; }
h2 { margin-top: 12px; font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--fg-muted); font-size: 18px; }

.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--border-soft); }
.feature h2, .feature h3 { margin-top: 10px; font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; }
.feature p { margin-top: 14px; color: var(--fg-muted); font-size: 17px; }
.points { margin-top: 20px; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.points svg { width: 20px; height: 20px; margin-top: 1px; color: var(--brand-text); }
.icon-chip {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-subtle); color: var(--brand-text);
}
.icon-chip svg { width: 20px; height: 20px; }
.icon-chip.calls { background: oklch(0.6 0.2 277 / 12%); color: var(--calls); }
.feature .tag { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-muted); font-size: 14px; font-weight: 600; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 64px; padding: 56px 0; }
  .feature.flip .copy { order: 2; }
  .feature.narrow-media { grid-template-columns: 6fr 5fr; }
}

/* How it fits together */
.flow { background: var(--bg-subtle); border-block: 1px solid var(--border-soft); }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative; padding: 20px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border-soft);
}
.step .icon-chip { margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.step p { margin-top: 6px; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.step::after {
  counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 18px;
  color: var(--fg-muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step:not(:last-child)::before {
    content: ''; position: absolute; top: 37px; right: -13px; width: 14px; height: 2px; background: var(--border);
  }
}

/* Facts */
.facts { display: grid; gap: 12px; margin-top: 48px; }
.fact { padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); background: var(--bg); }
.fact h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.fact h3 svg { width: 20px; height: 20px; color: var(--brand-text); }
.fact p { margin-top: 8px; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* Final CTA */
.final { padding: 24px 0 80px; }
.final-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 56px 24px; border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(80% 120% at 50% 0%, var(--brand-subtle), transparent 70%), var(--bg-subtle);
}
.final-card h2 { margin: 0 auto; max-width: 20ch; }
.final-card p { margin: 14px auto 0; max-width: 34rem; color: var(--fg-muted); font-size: 17px; }

/* Footer */
.foot { border-top: 1px solid var(--border-soft); padding: 32px 0 40px; color: var(--fg-muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.foot .brand { font-size: 15px; }
.foot .brand svg { width: 22px; height: 22px; }

/* 404 */
.lost { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .code { font-size: clamp(72px, 18vw, 140px); font-weight: 750; letter-spacing: -0.05em; line-height: 1; color: var(--brand-text); }
.lost h1 { margin-top: 12px; font-size: clamp(24px, 5vw, 32px); }
.lost p { margin-top: 12px; color: var(--fg-muted); }

/* Motion: entrance on load, reveal on scroll where the browser supports scroll-driven animations. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0.001; transform: translateY(28px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .pill, .hero h1, .hero .lead, .hero .cta, .hero .cta-note, .showcase { animation: rise 0.7s var(--ease-out) both; }
  .hero h1 { animation-delay: 0.05s; }
  .hero .lead { animation-delay: 0.12s; }
  .hero .cta, .hero .cta-note { animation-delay: 0.18s; }
  .showcase { animation-duration: 0.9s; animation-delay: 0.26s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
