/* Mate site. Mate palette: yerba green as the single accent, gourd wood for warm marks, real black for the notch.
   Shape rule: buttons are pills, panels are 18px, small chips 8px. Light and dark follow the system. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #eceee4;
  --surface: #f7f8f2;
  --text: #172013;
  --muted: #4a5543;
  --line: #d2d8c5;
  --accent: #2c6a33;
  --accent-ink: #f5f8ef;
  --accent-hover: #22552a;
  --accent-soft: #dce8d3;
  --wood: #87552a;
  --wood-soft: #efe2d0;
  --notch: #000;
  --on-notch: #f1f3ea;
  --on-notch-muted: #a9b0a1;
  --ok: #3ccf7a;
  --warn: #f3b443;
  --hot: #ff6b5d;
  --shadow: 0 24px 60px -28px rgb(30 45 20 / 0.45);
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.32, 1.25, 0.5, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10140d;
    --surface: #171e12;
    --text: #e6eadb;
    --muted: #a3ad96;
    --line: #2a3423;
    --accent: #6fd08a;
    --accent-ink: #0b1a0f;
    --accent-hover: #8bdda1;
    --accent-soft: #1c2d1a;
    --wood: #d6a46e;
    --wood-soft: #2a2117;
    --shadow: 0 24px 60px -28px rgb(0 0 0 / 0.8);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
code, pre, kbd { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
:not(pre) > code { font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--accent-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -0.2em; }

/* Grid children may shrink below their content (long code lines, nowrap pills). */
.hero-head > *, .what-grid > *, .privacy-grid > *, .install > *, .accounts > *, .origin > * { min-width: 0; }

section:not(.hero) { max-width: var(--max); margin: 0 auto; padding: 104px 24px; }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; max-width: 40rem; }

/* Navigation (z-index scale: nav 20, skip link 30). */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang, .icon-link {
  display: inline-grid; place-items: center; height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 600 0.8rem "Geist", system-ui, sans-serif; letter-spacing: 0.02em; cursor: pointer; text-decoration: none;
}
.lang:hover, .icon-link:hover { border-color: var(--accent); }
@media (max-width: 900px) { .nav nav { display: none; } .nav-actions { margin-left: auto; } }

/* Buttons. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-secondary:hover { border-color: var(--accent); }

.version-line { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.version-tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px;
  background: var(--wood-soft); color: var(--wood); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; font-variant-numeric: tabular-nums; margin-right: 6px;
}
.version-tag:hover { text-decoration: underline; }

/* Hero: headline row, then the laptop screen with the live notch. */
.hero { max-width: var(--max); margin: 0 auto; padding: 64px 24px 72px; }
.hero-head { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem); letter-spacing: -0.04em; font-weight: 700; line-height: 1.02; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 24px; max-width: 36ch; }
@media (max-width: 900px) {
  .hero-head { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 44px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 2.45rem; }
  .lead { font-size: 1.06rem; }
  section:not(.hero) { padding: 76px 16px; }
  .hero { padding: 36px 16px 56px; }
  .nav-inner { padding: 0 16px; }
}

/* The laptop. The bezel and the notch are real black in both themes: a screen is a screen. */
.laptop {
  --nw: 156px; --nh: 30px; --ear: 64px;
  padding: 10px; border-radius: 26px; background: var(--notch);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.screen {
  position: relative; overflow: hidden; border-radius: 17px;
  min-height: 520px; /* room for the panel with the music card (a 21:9 ratio would widen the page) */
  background:
    radial-gradient(70% 55% at 12% 104%, #6b4524 0 60%, transparent 60.4%),
    radial-gradient(75% 60% at 92% 108%, #2f5a2f 0 62%, transparent 62.4%),
    radial-gradient(120% 70% at 50% 128%, #1d3a20 0 66%, transparent 66.3%),
    linear-gradient(180deg, #24372a 0%, #46593a 48%, #9a7a4c 100%);
  font-size: 13px; color: var(--on-notch);
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: var(--nh);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: rgb(10 16 8 / 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px; color: rgb(255 255 255 / 0.9);
}
.mb-left { display: flex; align-items: center; gap: 16px; }
.mb-left .icon { width: 14px; height: 14px; vertical-align: 0; }
.mb-right { font-variant-numeric: tabular-nums; }

/* The island: the notch, the pill around it, the panel and the alerts are one black shape that grows. */
.island {
  position: absolute; top: 0; left: 50%; z-index: 3;
  width: var(--nw); height: var(--nh);
  transform: translateX(-50%);
  background: var(--notch); color: var(--on-notch);
  border-radius: 0 0 12px 12px; overflow: hidden;
  transform-origin: top center;
  /* Closing is quick (220 ms); opening grows from the notch with a springy overshoot, like the Dynamic Island. */
  transition: width 0.22s var(--ease), height 0.22s var(--ease), border-radius 0.22s var(--ease);
}
.island[data-state="working"], .island[data-state="open"], .island[data-state="alert"] {
  transition: width 0.5s var(--spring), height 0.5s var(--spring), border-radius 0.4s var(--ease);
}
.island[data-state="working"] { width: calc(var(--nw) + 2 * var(--ear)); }
.island[data-state="open"], .island[data-state="alert"] {
  width: min(372px, calc(100% - 20px)); height: var(--h, 260px); border-radius: 0 0 26px 26px;
}
.island[data-state="alert"] { width: min(330px, calc(100% - 20px)); }
.island-pill {
  display: flex; align-items: center; width: 100%; height: var(--nh); padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.island-pill:focus-visible { outline: 2px solid var(--ok); outline-offset: -3px; border-radius: 0 0 12px 12px; }
.ear {
  width: var(--ear); flex: none; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.3s 0.1s;
}
.island:not([data-state="idle"]) .ear { opacity: 1; }
.island[data-state="alert"] .ear { opacity: 0; transition-delay: 0s; }
.notch-gap { flex: 1; }
.ring { width: 17px; height: 17px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: rgb(255 255 255 / 0.16); }
.ring-fill {
  stroke: var(--tone, var(--ok)); stroke-linecap: round;
  stroke-dasharray: var(--p, 0) 100; transition: stroke-dasharray 0.6s var(--ease), stroke 0.3s;
}
.pill-tag { font-size: 8px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--on-notch-muted); }
.ear.ear-r { display: flex; align-items: center; justify-content: center; gap: 5px; line-height: 1; }
.pill-nums { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.pill-pct { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tone, var(--ok)); white-space: nowrap; }

.panel { padding: 8px 20px 12px; display: grid; gap: 14px; opacity: 0; transition: opacity 0.12s; touch-action: pan-y; overscroll-behavior-x: none; }
.slide { display: grid; gap: 14px; }
.slide.is-entering { transform: translateX(var(--from, 0)); opacity: 0; transition: none; }
.slide { transition: transform 0.5s var(--spring), opacity 0.3s var(--ease); }
.island[data-state="open"] .panel { opacity: 1; transition: opacity 0.25s 0.12s; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-agent { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.panel-account { color: var(--on-notch-muted); font-size: 12.5px; }
.dots { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0; }
.dot {
  min-width: 24px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px;
}
.dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgb(255 255 255 / 0.28);
  transition: width 0.4s var(--spring), background 0.2s;
}
.dot[aria-pressed="true"]::before { width: 20px; background: #fff; }
.dot:hover::before { background: rgb(255 255 255 / 0.6); }
.dot[aria-pressed="true"]:hover::before { background: #fff; }
.dot:focus-visible { outline: 2px solid var(--ok); outline-offset: -2px; }
.meter { display: grid; gap: 6px; }
.meter-top, .meter-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter-top { font-size: 12.5px; color: var(--on-notch-muted); }
.meter-pct { font-size: 15px; font-weight: 650; color: var(--on-notch); font-variant-numeric: tabular-nums; }
.meter-foot { font-size: 12px; color: var(--on-notch-muted); }
.bar { height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.bar span { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--tone, var(--ok)); border-radius: inherit; transition: width 0.6s var(--ease), background 0.3s; }
.pace { color: var(--tone, var(--ok)); font-weight: 600; white-space: nowrap; }
.live {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 12px; color: var(--on-notch-muted);
}
.live-project { display: inline-flex; align-items: center; gap: 7px; color: var(--on-notch); font-weight: 550; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(60 207 122 / 0.22); }
.live-stats { display: inline-flex; gap: 12px; font-variant-numeric: tabular-nums; }

/* Left ear: the mate (with a green dot while the Mac is kept awake) or, with music on, the cover and the bars. */
.ear-icon { position: relative; display: grid; place-items: center; height: 22px; }
.ear-icon > * { grid-area: 1 / 1; }
.mate {
  width: 22px; height: 22px; background: url("mate-sprite.png") 0 0 / 968px 22px no-repeat;
  image-rendering: auto;
}
.ear-music { display: none; align-items: center; gap: 4px; }
.ear-icon[data-music="true"] .mate { display: none; }
.ear-icon[data-music="true"] .ear-music { display: inline-flex; }
.awake-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 1.5px var(--notch);
  align-self: end; justify-self: end; margin: 0 -1px -1px 0; transform: scale(0); transition: transform 0.3s var(--spring);
}
.ear-icon[data-music="true"] .awake-dot { justify-self: start; margin-left: 12px; }
.ear-icon[data-awake="true"] .awake-dot { transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  /* Se ceba cada tanto: the sprite plays once (44 frames) when the script adds the class. */
  .mate.is-brewing { animation: brew 2.6s steps(44) 1; }
}
@keyframes brew { to { background-position-x: -968px; } }

/* Album covers: gradients, no images. --c1/--c2 come from the track. */
.np-art {
  --c1: #f08a3c; --c2: #c7355d;
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 9px;
  background: radial-gradient(120% 90% at 20% 10%, rgb(255 255 255 / 0.25), transparent 50%), linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.18);
}
.np-art::after {
  content: ""; position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle, var(--c2) 0 18%, #f6efe6 19% 100%); opacity: 0.92;
}
.np-art-sm { width: 16px; height: 16px; border-radius: 4px; }
.np-art-sm::after { inset: 28%; }

/* Equalizer bars: move while playing, rest low while paused. */
.eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.eq i { width: 2px; height: 100%; border-radius: 1px; background: var(--on-notch); transform-origin: bottom; transform: scaleY(var(--lo, 0.3)); transition: transform 0.3s; }
.eq i:nth-child(2) { --lo: 0.55; } .eq i:nth-child(3) { --lo: 0.4; } .eq i:nth-child(4) { --lo: 0.7; }
.eq-lg { height: 12px; align-self: flex-start; margin-top: 4px; }
.eq-lg i { width: 2.5px; }
@media (prefers-reduced-motion: no-preference) {
  .is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
  .is-playing .eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
  .is-playing .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
  .is-playing .eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.15s; }
}
.is-paused .eq i { opacity: 0.5; }
@keyframes eq { 0% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.45); } }

/* The music card at the top of the panel. */
.np { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.np-top { display: flex; align-items: center; gap: 12px; }
.np-meta { flex: 1; min-width: 0; }
.np-title { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 12.5px; color: var(--on-notch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--on-notch-muted); font-variant-numeric: tabular-nums; }
.np-time > span { min-width: 30px; }
.np-time > span:last-child { text-align: right; }
.np-bar {
  position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; border-radius: 6px;
  --p: 0;
}
.np-bar::before, .np-fill { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; }
.np-bar::before { right: 0; background: rgb(255 255 255 / 0.16); }
.np-fill { width: calc(var(--p) * 1%); background: var(--on-notch); }
.np-knob {
  position: absolute; top: 50%; left: calc(var(--p) * 1%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.15s;
}
.np-bar:hover .np-knob, .np-bar:focus-visible .np-knob, .np-bar.is-dragging .np-knob { transform: scale(1); }
.np-bar:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.np-ctl { display: flex; justify-content: center; align-items: center; gap: 18px; }
.np-btn {
  display: grid; place-items: center; width: 36px; height: 30px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--on-notch); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.np-btn .icon { width: 18px; height: 18px; }
.np-play .icon { width: 20px; height: 20px; }
.np-shuffle { color: var(--on-notch-muted); }
.np-shuffle .icon { width: 16px; height: 16px; }
.np-shuffle[aria-pressed="true"] { color: var(--ok); }
.np-btn:hover { background: rgb(255 255 255 / 0.08); }
.np-btn:active { transform: scale(0.94); }
.np-btn:focus-visible { outline: 2px solid var(--ok); outline-offset: -2px; }

/* "Mac despierta" row under the live session. */
.awake-row { display: flex; align-items: center; gap: 8px; margin-top: -4px; font-size: 12px; color: var(--on-notch); font-weight: 550; }
.awake-mate { width: 16px; height: 16px; }

.alert {
  display: flex; align-items: center; gap: 12px; padding: 4px 20px 16px;
  opacity: 0; transition: opacity 0.25s;
}
.island[data-state="alert"] .alert { opacity: 1; transition-delay: 0.15s; }
.ring-alert { width: 30px; height: 30px; flex: none; }
.alert-title { font-weight: 650; font-size: 13.5px; }
.alert-body { color: var(--on-notch-muted); font-size: 12.5px; }

/* The terminal where an agent is working. */
.term {
  position: absolute; left: 5%; bottom: 8%; width: min(460px, 90%); z-index: 1;
  border-radius: 12px; overflow: hidden; background: rgb(14 18 12 / 0.86);
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.7;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgb(255 255 255 / 0.05); color: rgb(255 255 255 / 0.5); font-size: 11px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.term-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { padding: 10px 14px 14px; }
.term-body p { overflow-wrap: anywhere; }
.t-dim { color: rgb(255 255 255 / 0.5); }
.t-work { color: #f0c27b; }
.t-spin { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .t-spin { animation: spin 2.4s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 550 0.92rem "Geist", system-ui, sans-serif; cursor: pointer; min-height: 44px;
}
.ctl:hover { border-color: var(--accent); }
.ctl[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.demo-help { margin-top: 12px; color: var(--muted); font-size: 0.92rem; max-width: 60ch; }

@media (max-width: 640px) {
  .laptop { --nw: 112px; --nh: 26px; --ear: 58px; padding: 6px; border-radius: 18px; }
  .screen { aspect-ratio: auto; min-height: 520px; border-radius: 13px; }
  .mb-left span, .mb-left b { display: none; }
  .term { left: 4%; width: 92%; bottom: 4%; font-size: 11px; }
  .panel { padding: 8px 16px 16px; }
}

/* What it does. */
.what-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list p { color: var(--muted); }
.usage { margin: 0; }
.usage-win { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.usage-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.usage-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.usage-bar span { margin: 0 auto; transform: translateX(-24px); font-weight: 600; }
.usage-body { padding: 22px 22px 18px; }
.usage-h { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 170px; }
.col { display: flex; flex-direction: column-reverse; height: 100%; gap: 2px; position: relative; padding-bottom: 22px; }
.col span { display: block; border-radius: 4px; }
.col span:nth-child(1) { height: calc(var(--a) * 1%); background: var(--accent); }
.col span:nth-child(2) { height: calc(var(--b) * 1%); background: var(--wood); }
.col span:nth-child(3) { height: calc(var(--c) * 1%); background: var(--muted); opacity: 0.55; }
.col em { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-style: normal; font-size: 0.78rem; color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 24px; padding: 0; font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.k-a { background: var(--accent); } .k-b { background: var(--wood); } .k-c { background: var(--muted); opacity: 0.55; }
.models { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.models th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8rem; padding: 0 0 8px; }
.models td { padding: 9px 0; border-top: 1px solid var(--line); }
.models th:not(:first-child), .models td:not(:first-child) { text-align: right; }
.usage figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Agents: a ledger, not cards. */
.agent-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.agent-grid li { display: flex; gap: 16px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.agent-grid p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.mono {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--notch); color: var(--on-notch); font-weight: 650; font-size: 0.9rem; letter-spacing: -0.02em;
}
.agent-grid li:last-child .mono { background: var(--wood-soft); color: var(--wood); }
@media (max-width: 900px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr; } .agent-grid li { padding-right: 0; } }

/* Accounts. */
.accounts { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.accounts-copy > p { color: var(--muted); font-size: 1.12rem; margin: 16px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks .icon { color: var(--accent); transform: translateY(0.15em); }
.switcher { background: var(--notch); color: var(--on-notch); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.switcher-h { font-size: 0.85rem; color: var(--on-notch-muted); margin: 0 4px 12px; }
.switcher-list { display: grid; gap: 6px; }
.acct {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.05); color: inherit; font: inherit;
}
.acct:hover { background: rgb(255 255 255 / 0.09); }
.acct:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
.acct[aria-checked="true"] { background: rgb(60 207 122 / 0.14); }
.acct-ring {
  grid-row: span 2; width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(var(--tone, var(--ok)) calc(var(--p) * 1%), rgb(255 255 255 / 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%);
}
.acct-name { font-weight: 600; }
.acct-mail { grid-column: 2; font-size: 0.82rem; color: var(--on-notch-muted); }
.acct-check { grid-column: 3; grid-row: 1 / span 2; color: var(--ok); opacity: 0; }
.acct[aria-checked="true"] .acct-check { opacity: 1; }
.switcher-note { margin: 14px 4px 0; font-size: 0.88rem; color: var(--on-notch-muted); }
@media (max-width: 900px) { .accounts { grid-template-columns: 1fr; gap: 40px; } }

/* Privacy. */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.facts li { display: flex; gap: 16px; }
.facts .icon { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.facts p { color: var(--muted); margin-top: 4px; }
.keychain { margin: 0; }
.dialog {
  max-width: 380px; margin: 0 auto; padding: 24px 22px 18px; border-radius: 16px;
  background: #ecece9; color: #1d1d1b; box-shadow: var(--shadow), 0 0 0 1px rgb(0 0 0 / 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Geist", system-ui, sans-serif; font-size: 13px; line-height: 1.4;
  display: grid; justify-items: center; text-align: center; gap: 10px;
}
@media (prefers-color-scheme: dark) { .dialog { background: #2a2a28; color: #f0f0ec; box-shadow: var(--shadow), 0 0 0 1px rgb(255 255 255 / 0.1); } }
.dialog img { border-radius: 11px; }
.dialog-title { font-weight: 650; }
.dialog-sub { font-size: 12px; opacity: 0.8; }
.dialog-field { width: 100%; padding: 6px 10px; border-radius: 6px; background: rgb(127 127 127 / 0.16); text-align: left; letter-spacing: 0.1em; }
.dialog-btns { width: 100%; display: grid; gap: 6px; margin-top: 4px; }
.dialog-btns span { padding: 6px; border-radius: 7px; background: rgb(127 127 127 / 0.18); font-weight: 500; }
.dialog-btns .is-default { background: #2c6a33; color: #fff; box-shadow: 0 0 0 3px rgb(60 207 122 / 0.45); }
.keychain figcaption { max-width: 380px; margin: 18px auto 0; color: var(--muted); font-size: 0.95rem; }
.keychain strong { color: var(--text); }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Resources. */
.resources { display: grid; gap: 40px; }
.res { margin: 0; display: grid; grid-template-columns: 1fr 1fr 2fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.res > div { padding: 28px 28px 28px 0; }
.res > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.res dt { font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.res dd { margin: 0; font-size: 1.05rem; }
.res strong { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.res-note { color: var(--muted); margin-top: -16px; }
@media (max-width: 760px) {
  .res { grid-template-columns: 1fr; }
  .res > div { padding: 20px 0; }
  .res > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Install. */
.install { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.install-steps ol { counter-reset: step; list-style: none; margin: 32px 0 32px; padding: 0; display: grid; gap: 22px; }
.install-steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--muted); }
.install-steps li strong { color: var(--text); font-weight: 600; display: block; }
.install-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: 0.95rem; color: var(--wood); background: var(--wood-soft);
}
.requirements { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.build { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.build p { color: var(--muted); margin: 6px 0 18px; }
.codeblock { position: relative; }
.codeblock pre {
  max-width: 100%; margin: 0; padding: 18px 56px 18px 18px; border-radius: 12px; overflow-x: auto;
  background: var(--notch); color: #dfe6d6; font-size: 0.86rem; line-height: 1.75;
}
.copy {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.16); background: rgb(255 255 255 / 0.06); color: #dfe6d6;
  display: grid; place-items: center; cursor: pointer;
}
.copy:hover { background: rgb(255 255 255 / 0.12); }
.copy:focus-visible { outline-color: var(--ok); }
@media (max-width: 900px) { .install { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .codeblock pre { white-space: pre-wrap; word-break: break-word; } .build { padding: 20px; } }

/* Versions. */
.release-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.releases-loading, .releases-empty { padding: 28px 0; color: var(--muted); }
.releases-empty { display: grid; gap: 14px; justify-items: start; }
.releases-empty strong { color: var(--text); font-size: 1.1rem; font-weight: 600; }
.release { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.release-meta { display: grid; gap: 6px; align-content: start; justify-items: start; }
.release-tag { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.release-tag a { text-decoration: none; }
.release-tag a:hover { text-decoration: underline; }
.release-date { color: var(--muted); font-size: 0.9rem; }
.badge-pre { font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wood-soft); color: var(--wood); }
.release-dmg { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--accent); text-decoration: none; }
.release-dmg:hover { text-decoration: underline; }
.release-body { color: var(--muted); max-width: 44rem; overflow-wrap: anywhere; }
.release-body > * + * { margin-top: 12px; }
.release-body h4, .release-body h5 { color: var(--text); font-size: 1rem; font-weight: 600; margin: 18px 0 0; }
.release-body h4:first-child, .release-body h5:first-child { margin-top: 0; }
.release-body ul, .release-body ol { padding-left: 1.2em; margin-bottom: 0; }
.release-body li + li { margin-top: 4px; }
.release-body strong { color: var(--text); font-weight: 600; }
.release-body a { color: var(--accent); }
.releases-more { padding-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; gap: 14px; } }

/* FAQ. */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 60ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* Origin and credits. */
.origin { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.origin-name p { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.origin-credits { display: grid; gap: 28px; padding-top: 10px; }
.origin-credits > div { padding-left: 20px; border-left: 3px solid var(--wood); }
.origin-credits p { color: var(--muted); margin-top: 6px; }
.origin-credits a { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .origin { grid-template-columns: 1fr; gap: 40px; } }

/* Footer. */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 36px 24px 48px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.footer p { color: var(--muted); font-size: 0.92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer .featured { grid-column: 1 / -1; justify-self: start; opacity: 0.75; transition: opacity 0.2s; }
.footer .featured:hover { opacity: 1; }
.footer .featured img { width: 140px; height: auto; }
@media (prefers-color-scheme: dark) { .footer .featured img { filter: invert(1); } }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; padding: 32px 16px 40px; } }

/* In dark mode the black panels sit on a near-black page: give them an edge. */
@media (prefers-color-scheme: dark) {
  .switcher, .mono, .codeblock pre, .laptop { box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.1); }
  .mono { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
}

/* One orchestrated entrance: the headline settles while the notch wakes up; sections rise in once. */
@media (prefers-reduced-motion: no-preference) {
  .hero-head > * { animation: rise 0.9s var(--ease) both; }
  .hero-head > :nth-child(2) { animation-delay: 0.08s; }
  .laptop { animation: rise 1s 0.14s var(--ease) both; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .slide, .dot::before, .island, .island *, .bar span, .ring-fill { transition: none !important; }
}

.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; border: 1px solid var(--line, currentColor); color: var(--muted); vertical-align: 1px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line, rgb(128 128 128 / 0.35)); font-size: 0.95rem; }
.chips span { color: var(--muted); }
