/* ==========================================================================
   Brewbox — marketing site
   ========================================================================== */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Light */
  --bg: #f7f5f2;
  --bg-alt: #f0ece6;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --text: #1d1b18;
  --text-2: #57524b;
  --text-3: #6b655d;
  --line: rgba(40, 30, 15, 0.1);
  --line-strong: rgba(40, 30, 15, 0.17);

  --accent: #f2a516;          /* honey: fills only */
  --accent-hover: #e39508;
  --accent-ink: #2a1800;      /* text on honey */
  --accent-text: #925200;     /* honey as text / links on light bg */
  --accent-soft: rgba(242, 165, 22, 0.16);
  --honey-grad: linear-gradient(100deg, #b86a00 0%, #d98400 55%, #b25f00 100%);

  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(255, 255, 255, 0.75);
  --shadow-xl: 0 50px 100px -30px rgba(80, 45, 0, 0.35), 0 20px 40px -20px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(60, 35, 0, 0.3), 0 8px 18px -10px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px -12px rgba(60, 35, 0, 0.18);

  --wall-a: #ffd27a;
  --wall-b: #f7a59a;
  --wall-c: #b9b0f2;
  --wall-d: #ffe9bd;
  --menubar: rgba(255, 255, 255, 0.45);
  --menubar-text: #1d1b18;

  --err: #d23b2f;
  --term-bg: #1b1916;
  --term-text: #ece6dc;

  --bubble: rgba(242, 165, 22, 0.2);
  --bubble-hi: rgba(255, 255, 255, 0.6);
  --bubble-line: rgba(200, 120, 0, 0.3);

  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --bg-alt: #1a1714;
    --surface: #211e1a;
    --surface-2: #1c1916;
    --text: #f4efe8;
    --text-2: #bdb4a8;
    --text-3: #a39a8e;
    --line: rgba(255, 240, 220, 0.09);
    --line-strong: rgba(255, 240, 220, 0.16);

    --accent: #f5b335;
    --accent-hover: #ffc455;
    --accent-ink: #241500;
    --accent-text: #ffc561;
    --accent-soft: rgba(245, 179, 53, 0.14);
    --honey-grad: linear-gradient(100deg, #ffcf6e 0%, #f5a623 55%, #ffc85a 100%);

    --glass: rgba(36, 32, 28, 0.68);
    --glass-strong: rgba(42, 38, 33, 0.92);
    --glass-line: rgba(255, 240, 220, 0.12);
    --shadow-xl: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.7), 0 8px 18px -10px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px -12px rgba(0, 0, 0, 0.6);

    --wall-a: #7a4708;
    --wall-b: #5e2632;
    --wall-c: #2d2a66;
    --wall-d: #3a2410;
    --menubar: rgba(20, 18, 16, 0.42);
    --menubar-text: #f4efe8;

    --err: #ff6a5c;
    --term-bg: #0e0d0b;

    --bubble: rgba(245, 179, 53, 0.1);
    --bubble-hi: rgba(255, 214, 140, 0.3);
    --bubble-line: rgba(245, 179, 53, 0.26);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1240px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-md);
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px -10px rgba(210, 125, 0, 0.75);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 28px -10px rgba(210, 125, 0, 0.85); }
.btn-secondary {
  background: var(--glass); color: var(--text);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-secondary:hover { border-color: var(--text-3); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-dark { background: #1d1b18; color: #fff7ea; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn-dark:hover { background: #000; }
.btn-onhoney { background: rgba(255, 255, 255, 0.32); color: #2a1800; border-color: rgba(42, 24, 0, 0.18); }
.btn-onhoney:hover { background: rgba(255, 255, 255, 0.5); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; gap: 20px; height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand-sm { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 7px 12px; border-radius: 9px;
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }

.nav-toggle {
  display: none; align-items: center; gap: 6px;
  margin-left: auto; min-height: 36px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.nav-toggle .icon { transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-gh span { display: none; }
  .nav-gh { padding: 0 10px; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; gap: 2px; padding: 8px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--line-strong); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--text); }
}
@media (max-width: 760px) and (scripting: none) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 120px;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%),
    radial-gradient(40% 35% at 50% 70%, var(--accent-soft), transparent 70%);
}
@media (max-width: 720px) { .hero { padding: 56px 0 72px; } }

.hero-copy { text-align: center; max-width: 920px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 750; letter-spacing: -0.02em;
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 6.6vw, 80px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.honey {
  background: var(--honey-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (forced-colors: active) { .honey { color: CanvasText; background: none; } }
.hero-sub {
  margin: 24px auto 0; max-width: 36em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--text-3); }
@media (max-width: 420px) { .cta-row .btn { flex: 1 1 100%; } }

/* Terminal install */
.install { max-width: 872px; margin: 36px auto 0; }
.install-label { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.install-note { max-width: 40em; margin: 12px auto 0; font-size: 14px; color: var(--text-3); }

/* Copyable command (shares .term colours) */
.cmd {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 6px 6px 6px 0;
  border-radius: var(--r-md);
  background: var(--term-bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.term.cmd-code {
  flex: 1; min-width: 0;
  margin: 0; padding: 8px 4px 8px 16px;
  font-size: 12.5px; line-height: 1.5;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.cmd-code code { all: unset; font: inherit; }
.cmd-code:focus-visible { outline-offset: 2px; }
.cmd-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px;
  border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08); color: var(--term-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease;
}
.cmd-copy:hover { background: rgba(255, 255, 255, 0.16); }
.cmd-copy:focus-visible { outline-color: var(--accent); outline-offset: 2px; }
.cmd-copy.is-copied { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cmd-sm .term.cmd-code { font-size: 12px; }
.cmd-sm .cmd-copy { min-height: 32px; font-size: 13px; }
@media (max-width: 420px) { .cmd-copy-text { display: none; } .cmd-copy { padding: 0 10px; } }

/* Rising bubbles (populated by main.js) */
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubble {
  position: absolute; bottom: -40px;
  width: var(--s); height: var(--s);
  left: var(--x);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--bubble-hi), var(--bubble) 45%);
  border: 1px solid var(--bubble-line);
  opacity: 0;
  animation: rise var(--d) linear var(--delay) infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: var(--o); }
  50%  { transform: translate3d(var(--sway), -55vh, 0); }
  85%  { opacity: var(--o); }
  100% { transform: translate3d(0, -110vh, 0); opacity: 0; }
}

/* ---------- Hero desktop mockup ---------- */

.shot {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}

.desk {
  position: relative;
  margin: 72px auto 0;
  height: 430px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(55% 75% at 0% 0%, var(--wall-a), transparent 70%),
    radial-gradient(50% 70% at 100% 10%, var(--wall-b), transparent 70%),
    radial-gradient(70% 80% at 55% 115%, var(--wall-c), transparent 70%),
    var(--wall-d);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--line);
  font-size: 13px;
}
/* Soft wallpaper "dune" */
.desk::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--wall-a) 70%, transparent), transparent);
  opacity: .7;
}

.menubar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 0 14px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  color: var(--menubar-text);
  font-size: 13px;
}
.mb-left { display: flex; gap: 18px; white-space: nowrap; overflow: hidden; }
.mb-left b { font-weight: 700; }
.mb-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.mb-sys { height: 13px; width: auto; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-item {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px; border-radius: 5px;
}
.mb-item.is-open { background: color-mix(in srgb, var(--menubar-text) 16%, transparent); }
.mb-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Menu bar glyph and its states */
.glyph-wrap { display: inline-flex; }
.glyph { width: 16px; height: 16px; overflow: visible; }
.glyph circle { transform-box: fill-box; transform-origin: center; }
.g4 { opacity: 0; }
.has-updates .g4 { opacity: 1; }
.is-working .g1, .is-working .g2, .is-working .g3 { animation: glyph-rise 1.8s ease-in-out infinite; }
.is-working .g2 { animation-delay: .25s; }
.is-working .g3 { animation-delay: .5s; }
.is-working .g4 { opacity: 1; animation: glyph-rise 1.8s ease-in-out .75s infinite; }
@keyframes glyph-rise {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-2.5px); opacity: .5; }
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

.panel {
  position: absolute; z-index: 2;
  top: 38px; right: 326px;
  width: 384px;
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
}

.notif {
  position: absolute; z-index: 2;
  top: 42px; right: 12px;
  width: 290px;
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 16px;
  color: var(--text);
  animation: notif-in .6s cubic-bezier(.2, .9, .3, 1.2) .6s both;
}
.notif-app { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.notif-app span { text-transform: none; font-weight: 400; letter-spacing: 0; }
.notif-title { font-weight: 650; font-size: 13px; margin-top: 2px; }
.notif-body { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.notif > div { flex: 1; min-width: 0; }
@keyframes notif-in { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1080px) {
  .notif { display: none; }
  .panel { right: 50%; transform: translateX(50%); }
}
@media (max-width: 720px) {
  .desk { height: auto; padding-bottom: 24px; margin-top: 48px; }
  .panel { position: relative; top: auto; right: auto; transform: none; margin: 10px auto 0; width: calc(100% - 24px); max-width: 384px; }
  .mb-left span, .mb-extra { display: none; }
}
@media (max-width: 420px) {
  .mb-clock { display: none; }
}

/* Real app screenshot in the hero panel slot */
.panel.panel-shot {
  width: 340px; padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-strong);
}
.panel-shot picture { display: contents; }
.panel-shot img { width: 100%; height: auto; }
@media (max-width: 720px) { .panel.panel-shot { width: calc(100% - 24px); max-width: 340px; } }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; }
.panel-title { font-weight: 700; font-size: 15px; }
.panel-meta { color: var(--text-2); font-size: 12px; margin-top: 1px; }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent);
}
.icon-btn svg { width: 14px; height: 14px; }

.segmented {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  padding: 2px; border-radius: 8px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 12px; font-weight: 550;
}
.seg { display: flex; align-items: center; justify-content: center; gap: 5px; height: 24px; border-radius: 6px; color: var(--text-2); }
.seg.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg i {
  font-style: normal; font-size: 10.5px; font-weight: 700;
  min-width: 17px; height: 15px; padding: 0 4px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}

.pkg-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pkg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px; }
.pkg + .pkg { border-top: 1px solid var(--line); }
.pkg-main { display: flex; flex-direction: column; min-width: 0; }
.pkg-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-ver { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.pkg-ver .arrow { color: var(--accent-text); }
.pkg.is-pinned .pkg-ver { opacity: .75; }

.tag {
  display: inline-block; vertical-align: 1px; margin-left: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: .02em;
  padding: 0 5px; border-radius: 4px; line-height: 15px;
  color: var(--text-2); border: 1px solid var(--line-strong);
}
.tag-pin { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.pill-btn {
  flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 11px;
  border-radius: 7px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text);
}
.pill-btn.is-muted { color: var(--text-3); background: transparent; border: 1px dashed var(--line-strong); }
.pill-accent { background: var(--accent-soft); color: var(--accent-text); }

.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.foot-note { font-size: 11.5px; color: var(--text-2); }
.primary-btn {
  flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
  border-radius: 8px; font-size: 12.5px; font-weight: 650;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  white-space: nowrap;
}
.primary-btn-sm { height: 24px; padding: 0 11px; font-size: 12px; }

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section-head { max-width: 720px; }
.section-head-center { margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.lede { margin-top: 18px; font-size: 19px; color: var(--text-2); max-width: 36em; }

/* ---------- How it works ---------- */

.steps {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.step {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.step > :not(.strip) { margin-inline: 12px; }
.step p { color: var(--text-2); }
.step h3 { font-size: 22px; }
.step-num { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent-text); letter-spacing: .04em; text-transform: uppercase; }
.step-hint { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--text-3) !important; }

/* A slice of the menu bar, showing each state of the icon */
.strip {
  position: relative;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 0% 0%, var(--wall-a), transparent 70%),
    radial-gradient(60% 120% at 100% 100%, var(--wall-b), transparent 70%),
    var(--wall-d);
  display: flex; align-items: flex-start; justify-content: flex-end; gap: 14px;
  padding: 0 14px;
  color: var(--menubar-text);
}
.strip::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 32px;
  background: var(--menubar);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.strip > * { position: relative; height: 32px; display: inline-flex; align-items: center; }
.strip-item { gap: 5px; padding: 0 9px; margin-top: 4px; height: 24px; border-radius: 6px; background: color-mix(in srgb, var(--menubar-text) 12%, transparent); }
.strip-item .glyph { width: 18px; height: 18px; }
.strip-clock { font-size: 13px; font-variant-numeric: tabular-nums; }

@media (min-width: 901px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 1; top: 64px; right: -19px;
    width: 14px; height: 14px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
    transform: rotate(45deg);
  }
}

/* ---------- Features (bento) ---------- */

.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  display: flex; flex-direction: column; gap: 22px;
  padding: 16px 16px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.feature-text { padding: 0 12px; }
.feature-kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.feature h3 { margin-top: 8px; font-size: 22px; }
.feature-text p:not(.feature-kicker) { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.feature .shot { box-shadow: none; border: 1px solid var(--line); border-radius: var(--r-md); }

.feature-wide {
  grid-column: span 2;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: stretch; gap: 24px;
  padding: 16px;
}
.feature-wide .feature-text { display: flex; flex-direction: column; justify-content: center; padding: 16px 8px 16px 20px; }
.feature-wide h3 { font-size: 26px; }
.feature-flip .feature-text { order: 2; padding: 16px 20px 16px 8px; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .feature-wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); padding: 16px 16px 28px; }
  .feature-wide .feature-text, .feature-flip .feature-text { order: 2; padding: 0 12px; }
}

/* Mini mockups inside feature cards */
.mini {
  position: relative;
  min-height: 210px;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(90% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  overflow: hidden;
}
/* Real app screenshots in feature cards: tall panels are cropped with a fade, short ones shown whole */
.mini.mini-shot {
  justify-content: flex-start; align-items: center;
  height: 320px; min-height: 0;
  padding: 24px 24px 0;
}
.mini-shot picture { display: contents; }
.mini-shot img {
  width: 100%; max-width: 340px; height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-strong);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
}
.mini.mini-shot-full { height: auto; justify-content: center; padding: 24px; }
.mini-shot-full img { max-width: 100%; border-radius: 12px; -webkit-mask-image: none; mask-image: none; }
.feature-wide .mini-shot-full img { max-width: 400px; }

.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.status { flex: none; font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.status-run { color: var(--accent-text); font-weight: 600; }
.spinner {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 4px; margin: -4px 4px 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--accent); }

.term {
  margin: 2px 0 0; padding: 10px 12px;
  border-radius: 8px;
  background: var(--term-bg); color: var(--term-text);
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
  white-space: pre; overflow: hidden;
}
.term-err { white-space: pre-wrap; overflow-wrap: break-word; }
.t-dim { color: #a39b90; }
.t-ok { color: #ffd27a; }
.term-err { border-left: 3px solid var(--err); }
.caret {
  display: inline-block; width: 6px; height: 1.1em; vertical-align: -0.2em; margin-left: 2px;
  background: currentColor; opacity: .7;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--text);
}
.search svg { width: 14px; height: 14px; color: var(--text-3); }
.search .caret { width: 1.5px; margin-left: -6px; color: var(--accent-text); }

.chips { display: flex; gap: 4px; }
.chips-wrap { flex-wrap: wrap; }
.chip {
  font-size: 11.5px; font-weight: 550; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface);
}
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.detail { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.detail-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.detail-desc { margin-top: 3px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.detail-links { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--accent-text); font-weight: 550; }

.set-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px;
}
.set-row code { font-size: 11px; }
.field { font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 5px; border: 1px solid var(--line-strong); }
.toggle { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: color-mix(in srgb, var(--text) 18%, transparent); }
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.toggle.is-on { background: var(--accent); }
.toggle.is-on::after { left: 14px; }

.err-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.err-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 20%, transparent); }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-row-center { justify-content: center; }

.mini-window { align-items: center; text-align: center; padding-top: 34px; gap: 6px; }
.traffic { position: absolute; top: 12px; left: 14px; display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.win-title { font-weight: 700; font-size: 14px; margin-top: 4px; }
.win-text { color: var(--text-2); font-size: 12px; margin-bottom: 6px; }

/* ---------- Built for brew users (always dark) ---------- */

.band-dark {
  --surface: #2a2560;
  --text: #f6f3ff;
  --text-2: #c9c4e6;
  --text-3: #aea8d4;
  --line: rgba(220, 215, 255, 0.14);
  --accent-text: #ffc561;
  --accent-soft: rgba(245, 179, 53, 0.16);
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(245, 166, 35, 0.16), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(90, 80, 170, 0.45), transparent 70%),
    linear-gradient(180deg, #2a2468 0%, #1c1846 100%);
  color: var(--text);
  border-block: 1px solid var(--line);
}
.built-list {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 1000px) { .built-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .built-list { grid-template-columns: minmax(0, 1fr); } }
.built-list li {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.built-icon {
  width: 40px; height: 40px; padding: 9px; margin-bottom: 18px;
  border-radius: 11px;
  color: #ffc561; background: rgba(245, 179, 53, 0.14);
}
.built-list h3 code { font-size: 0.85em; }
.built-list p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 64px; align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .faq-head { position: sticky; top: 110px; } }
.faq-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease;
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq-list summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 600; font-size: 17px;
  border-radius: var(--r-lg);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 18px; font-weight: 500; line-height: 1;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list details p { padding: 0 22px 22px; color: var(--text-2); }
.faq-list details .cmd { margin: -10px 22px 22px; }

/* ---------- Closing CTA ---------- */

.closing { padding: 0 0 120px; }
@media (max-width: 720px) { .closing { padding-bottom: 80px; } }
.closing-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 80px 24px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 20% 0%, #ffe39a, transparent 70%),
    radial-gradient(60% 80% at 100% 100%, #e07c00, transparent 70%),
    #f4a922;
  color: #2a1800;
  box-shadow: var(--shadow-xl);
}
.closing-card h2 { margin-top: 12px; }
.closing-card > p { margin-top: 14px; font-size: 19px; }
.closing-card code { background: rgba(255, 255, 255, 0.4); color: #2a1800; }
.closing-card .cta-row { margin-top: 32px; }
.closing-card .closing-fine { margin-top: 16px; font-size: 14px; color: #4a2c00; }
.closing-card .closing-fine a { color: #2a1800; }
.closing-card :focus-visible { outline-color: #2a1800; }

.closing-bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.closing-bubbles i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12) 50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: float 9s ease-in-out infinite;
}
.closing-bubbles i:nth-child(1) { width: 90px; height: 90px; left: 6%; top: 18%; }
.closing-bubbles i:nth-child(2) { width: 40px; height: 40px; left: 18%; top: 66%; animation-delay: -3s; }
.closing-bubbles i:nth-child(3) { width: 120px; height: 120px; right: 5%; top: 50%; animation-delay: -5s; }
.closing-bubbles i:nth-child(4) { width: 28px; height: 28px; right: 20%; top: 14%; animation-delay: -2s; }
.closing-bubbles i:nth-child(5) { width: 18px; height: 18px; left: 34%; top: 10%; animation-delay: -7s; }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (max-width: 720px) {
  .closing-bubbles i:nth-child(1), .closing-bubbles i:nth-child(3) { opacity: .5; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: 14px; color: var(--text-3); }
.footer-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 12px; padding-bottom: 28px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-title { font-size: 17px; letter-spacing: 0; color: var(--text); }
.footer-contact-text p { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.footer-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-contact-actions .btn { color: var(--text); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-inner .brand { margin-right: auto; }
@media (max-width: 560px) { .footer-inner .brand { flex-basis: 100%; margin-bottom: 4px; } }
.site-footer a:not(.brand) { color: var(--text-2); }
.site-footer a:not(.brand):hover { color: var(--accent-text); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles { display: none; }
  .is-working .g1, .is-working .g2, .is-working .g3, .is-working .g4,
  .spinner, .caret, .closing-bubbles i, .notif { animation: none; }
  .btn, .cmd-copy, .faq-list summary::after, .nav-toggle .icon { transition: none; }
}
