/* bizs.sh v9, "Night Shift". See DESIGN.md before changing anything here. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #13141b;
  --panel: #1c1d27;
  --panel-2: #262733;
  --ivory: #ecebe4;
  --ash: #b3b2ad;
  --dim: #8e8d89;
  --line: rgba(236, 235, 228, 0.12);
  --line-2: rgba(236, 235, 228, 0.24);
  --lamp: #f1b562;
  --lamp-hi: #f6c67f;
  --on-lamp: #1b1408;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: cubic-bezier(0.45, 0, 0.2, 1);
  --scene-h: min(100vh, 1400px);
  color-scheme: dark;
}
@supports (height: 100svh) {
  :root { --scene-h: min(100svh, 1400px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font: 400 1rem/1.55 var(--font);
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: rgba(241, 181, 98, 0.32); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ivory); color: var(--night);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font-weight: 480;
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0.012em;
  text-wrap: balance;
}
h2 {
  font-weight: 470;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.012em;
  text-wrap: balance;
}
h3 { font-weight: 480; font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.2; letter-spacing: 0.012em; }
h4 { font-weight: 520; font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0.006em; }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--ash); font-weight: 420; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.012em; color: var(--ash);
  white-space: nowrap; vertical-align: middle;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pill-sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.pill-lamp { background: var(--lamp); color: var(--on-lamp); }
.pill-lamp:hover { background: var(--lamp-hi); }
.pill-ghost { background: transparent; color: var(--ivory); border-color: var(--line-2); }
.pill-ghost:hover { border-color: var(--ivory); background: rgba(236, 235, 228, 0.06); }
.pill-light { background: var(--ivory); color: var(--night); }
.pill-light:hover { background: #ffffff; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  transition: background-color 0.4s var(--ease);
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(19, 20, 27, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.top.solid::before { opacity: 1; }
.top-in {
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding-inline: var(--gut);
  max-width: 1440px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.glyph { width: 22px; height: 22px; color: var(--ivory); flex: none; }
.wordmark { font-weight: 520; font-size: 1.3125rem; letter-spacing: 0.01em; line-height: 1; }
.topnav { display: flex; gap: 4px; margin-inline: auto; }
.topnav a {
  padding: 8px 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 450; color: var(--ash);
  transition: color 0.2s, background-color 0.2s;
}
.topnav a:hover { color: var(--ivory); background: rgba(236, 235, 228, 0.07); }
.soon {
  font-size: 0.875rem; font-weight: 450; color: var(--ash);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .topnav { display: none; }
  .soon { margin-left: auto; }
  .top-in { height: 64px; }
}

/* ---------- the story: one scene, held while the night goes by ---------- */
.story { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); }
.story > .scene, .story > .story-flow { grid-area: 1 / 1; }
.story-flow { min-width: 0; }
.scene {
  position: sticky; top: 0; z-index: -1; align-self: start;
  height: var(--scene-h);
  overflow: hidden; background: #1a1c2b;
}
.scene-still, .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.live .scene-still { visibility: hidden; }
.scene-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 26%, rgba(19, 20, 27, 0.46), transparent 70%),
    linear-gradient(180deg, rgba(19, 20, 27, 0.35), transparent 22%, transparent 78%, rgba(19, 20, 27, 0.7));
}

.hero {
  min-height: var(--scene-h);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(116px, 18vh, 190px) var(--gut) 48px;
  text-align: center;
}
.hero-copy { max-width: 1120px; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  max-width: 40em; margin: 0 0 22px;
  font-size: 0.9375rem; line-height: 1.45; font-weight: 460; letter-spacing: 0.01em; color: var(--ash); text-wrap: balance;
}
.hero .lede { max-width: 33em; margin-top: 20px; color: #cfcec8; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.swap { white-space: nowrap; }
.swap del, .swap ins { text-decoration: none; }
.swap del { position: relative; display: inline-block; }
.sw { color: var(--dim); }
.strike {
  position: absolute; left: -0.04em; right: -0.04em; top: 56%;
  height: max(2px, 0.03em); background: var(--ivory); border-radius: 2px;
  transform-origin: left center;
}

.coming {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  margin-top: 32px; font-size: 0.875rem; color: var(--ash);
}
.coming-label { margin-right: 4px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.logos li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 13px 0 10px; border-radius: 999px;
  background: rgba(236, 235, 228, 0.08);
  font-size: 0.875rem; font-weight: 480; color: var(--ivory);
}
.logos svg { width: 15px; height: 15px; color: var(--ivory); }

/* the night: one statement at a time, on the left */
.night { position: relative; }
.beat {
  min-height: min(78vh, 900px);
  display: flex; align-items: center;
  padding-inline: var(--gut);
  max-width: 1440px; margin-inline: auto;
}
.beat-in {
  max-width: 30rem; padding: 28px 0;
}
.beat-role {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ash); margin-bottom: 14px; letter-spacing: 0.012em;
}
.beat-role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); opacity: 0.8; }
.beat-txt {
  font-weight: 450; font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.16; letter-spacing: 0.01em;
  text-wrap: balance; text-shadow: 0 1px 24px rgba(10, 10, 16, 0.6);
}
@media (max-width: 700px) {
  .hero { padding-top: 104px; }
  .display { font-size: clamp(2.125rem, 9.6vw, 2.5rem); }
  .hero .lede { font-size: 1rem; margin-top: 16px; }
  .eyebrow { font-size: 0.875rem; margin-bottom: 16px; }
    .ctas { margin-top: 24px; }
  .coming { margin-top: 24px; gap: 6px; }
  .coming-label { flex-basis: 100%; margin: 0 0 2px; }
  .logos { gap: 6px; }
  .logos li { height: 28px; padding: 0 10px 0 8px; font-size: 0.8125rem; gap: 6px; }
  .logos svg { width: 13px; height: 13px; }
  .beat { align-items: flex-start; padding-top: 16vh; min-height: min(80vh, 760px); }
}

/* the morning: the report and the question, in one calm panel */
.work {
  min-height: var(--scene-h);
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--gut) 72px;
}
.work-panel {
  width: min(100%, 1040px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(28, 29, 39, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 20px;
}
.work-pre { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.9375rem; color: var(--ash); margin-bottom: 20px; }
.work-pre .who { color: var(--ivory); font-weight: 500; }
.work-text h2 { margin-bottom: 18px; }
.work-text p:not(.work-pre) { color: var(--ash); max-width: 30em; }
.work-text .hint { margin-top: 20px; font-size: 0.9375rem; color: var(--ivory); }
@media (max-width: 860px) {
  .work-panel { grid-template-columns: 1fr; gap: 32px; }
}

/* chat */
.chat {
  position: relative; background: var(--night); border-radius: var(--r);
  padding: 18px 18px 22px; min-height: 520px;
}
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-head .glyph { width: 16px; height: 16px; align-self: center; }
.chat-title { font-weight: 520; font-size: 0.9375rem; }
.chat-sub { font-size: 0.875rem; color: var(--ash); }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; background: var(--panel-2); font-size: 0.9375rem; line-height: 1.5; }
.msg .who { display: block; font-weight: 520; font-size: 0.8125rem; color: var(--ash); margin-bottom: 3px; letter-spacing: 0.012em; }
.msg.me { align-self: flex-end; background: rgba(236, 235, 228, 0.9); color: var(--night); border-bottom-right-radius: 6px; }
.msg.team { border-bottom-left-radius: 6px; }
.msg.ask { position: relative; max-width: 100%; background: var(--panel); border: 1px solid var(--line-2); padding: 16px 18px 18px; }
.ask-q { font-size: 1.1875rem; font-weight: 480; line-height: 1.3; letter-spacing: 0.008em; margin: 2px 0 14px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp {
  position: absolute; right: 14px; top: 14px;
  height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--ivory);
  display: inline-flex; align-items: center; font-size: 0.8125rem; font-weight: 500;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.ask.approved .stamp { opacity: 1; transform: none; }
.ask.decided .ask-actions { opacity: 0.4; pointer-events: none; }
.record-note { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--ash); }
.typing { display: flex; gap: 5px; padding: 14px 6px 0; opacity: 0; transition: opacity 0.3s; }
.typing.on { opacity: 1; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ash); }
.replay {
  margin-top: 16px; background: none; border: 0; padding: 6px 2px; cursor: pointer;
  color: var(--ash); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2);
}
.replay:hover { color: var(--ivory); }
.msg.pending { opacity: 0; transform: translateY(8px); }
.msg { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ---------- after the scene: a calm editorial scroll ---------- */
.index, .pricing, .faq { padding-block: clamp(88px, 12vw, 160px) 0; }
.sec-head { max-width: 44rem; margin-bottom: clamp(48px, 6vw, 72px); }
.sec-head .lede { margin-top: 18px; }
.sec-head .tag { margin-bottom: 22px; }

.index-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 104px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 0.9375rem; color: var(--dim); transition: color 0.3s, border-color 0.3s;
}
.toc a:hover { color: var(--ivory); }
.toc a.on { color: var(--ivory); border-left-color: var(--ivory); }
.panels { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); scroll-margin-top: 96px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-bottom: 24px; }
.panel-head p { color: var(--ash); max-width: 26em; }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 40px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row p { color: var(--ash); max-width: 40em; }
@media (max-width: 900px) {
  .index-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
}

/* pricing */
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--panel); border-radius: var(--r);
}
.plan { padding: clamp(24px, 3.2vw, 40px); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 1rem; font-weight: 500; color: var(--ash); letter-spacing: 0.012em; }
.price { margin-top: 18px; font-size: clamp(2.25rem, 3.6vw, 3rem); font-weight: 460; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.price .cur { font-size: 0.38em; font-weight: 450; color: var(--ash); margin-right: 5px; vertical-align: 0.95em; letter-spacing: 0.02em; }
.price .per { font-size: 0.34em; font-weight: 420; color: var(--ash); letter-spacing: 0.01em; }
.hours { margin-top: 14px; font-size: 0.9375rem; color: var(--ivory); padding-bottom: 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan-lead { margin-top: 18px; font-size: 0.9375rem; color: var(--ash); }
.feats { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan-lead + .feats { margin-top: 10px; }
.feats li { position: relative; padding-left: 20px; font-size: 0.9375rem; }
.feats li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1px; background: var(--ivory); }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 56px; }
.note p + p { margin-top: 8px; }
.billing {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 28px; border-radius: 999px; border: 1px solid var(--line);
}
.billing button {
  height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ash);
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.billing button:hover { color: var(--ivory); }
.billing button[aria-checked="true"] { background: var(--ivory); color: var(--night); }
.billing .save { font-size: 0.75rem; font-weight: 500; color: var(--lamp); }
.billing button[aria-checked="true"] .save { color: #8a5a17; }
.plan { display: flex; flex-direction: column; }
.plan-for { margin-top: 10px; font-size: 0.9375rem; color: var(--ash); min-height: 3em; }
.plan-mid { background: rgba(236, 235, 228, 0.03); }
.bill-note { margin-top: 8px; font-size: 0.8125rem; color: var(--dim); }
.hours span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--ash); }
.every { margin-top: 56px; }
.every h3 { font-size: 1.0625rem; font-weight: 520; margin-bottom: 18px; }
.every ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.every li { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.every b { font-weight: 500; font-size: 0.9375rem; }
.every span { font-size: 0.875rem; color: var(--ash); }
.compare { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 520;
}
.compare summary::-webkit-details-marker { display: none; }
.cmp-scroll { overflow-x: auto; padding-bottom: 24px; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.cmp thead th { font-weight: 500; color: var(--ivory); }
.cmp tbody th { text-align: left; color: var(--ash); padding-left: 0; }
.cmp td { color: var(--ivory); font-variant-numeric: tabular-nums; width: 18%; }
.cmp .grp th { padding-top: 24px; color: var(--dim); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 0; }
.cmp .yes, .cmp .no { display: inline-block; vertical-align: middle; }
.cmp .yes { width: 12px; height: 7px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: rotate(-45deg) translate(1px, -2px); }
.cmp .no { width: 10px; height: 1px; background: var(--dim); }
.price-final { margin-top: 32px; font-size: 0.8125rem; color: var(--dim); }
.note h3 { font-size: 1.0625rem; font-weight: 520; margin-bottom: 10px; }
.note p, .note li { color: var(--ash); font-size: 0.9375rem; }
.note ul:not(.logos) { display: flex; flex-direction: column; gap: 8px; }
.note .logos { justify-content: flex-start; margin-top: 14px; }
.note .logos li { color: var(--ivory); }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .notes { grid-template-columns: 1fr; gap: 32px; }
  .every ul { grid-template-columns: 1fr 1fr; }
  .plan-for { min-height: 0; }
}

/* questions */
.faq-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 1.125rem; font-weight: 480; letter-spacing: 0.008em;
}
.qa summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ivory); transition: transform 0.4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.qa[open] .pm::after { transform: rotate(0deg); }
.qa p { padding: 0 0 24px; color: var(--ash); max-width: 40em; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { padding-top: clamp(112px, 14vw, 176px); }
.sign { text-align: center; max-width: 36rem; margin-inline: auto; }
.sign p { margin-top: 14px; color: var(--ash); font-size: 1.0625rem; }
.horizon { width: 100%; height: 150px; margin-top: 56px; }
.hz { fill: none; stroke: var(--ivory); stroke-opacity: 0.3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hz-far { stroke-opacity: 0.16; }
.hz-house { fill: var(--night); stroke: var(--ivory); stroke-opacity: 0.42; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hz-win { fill: var(--lamp); }
.foot-cols {
  display: grid; grid-auto-flow: column; grid-template-columns: 1.6fr; grid-auto-columns: minmax(0, 1fr); gap: 32px;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.foot-cols .brand { align-self: start; }
.foot-cols h3 { font-size: 0.875rem; font-weight: 500; color: var(--dim); letter-spacing: 0.012em; margin-bottom: 14px; }
.foot-cols li { font-size: 0.9375rem; color: var(--ash); padding: 3px 0; }
.foot-cols a:hover { color: var(--ivory); }
.foot-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 24px 0 40px; border-top: 1px solid var(--line);
}
.lang { display: flex; gap: 6px; }
.lang a {
  height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 0.875rem; color: var(--ash); border: 1px solid var(--line);
}
.lang a:hover { color: var(--ivory); border-color: var(--line-2); }
.lang a[aria-current="page"] { color: var(--night); background: var(--ivory); border-color: var(--ivory); }
.legal { font-size: 0.8125rem; color: var(--dim); max-width: 46em; }
@media (max-width: 860px) {
  .foot-cols { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .foot-cols .brand { grid-column: 1 / -1; }
}

/* 404 */
.lost {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px var(--gut) 0; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #13141b 0%, #1a1c2b 45%, #2e2b40 82%, #3d3447 100%);
}
.lost .brand { position: absolute; top: 24px; left: var(--gut); }
.lost .num404 { font-size: 0.9375rem; color: var(--ash); letter-spacing: 0.04em; margin-bottom: 18px; }
.lost h1 { font-weight: 480; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: 0.012em; max-width: 16em; text-wrap: balance; }
.lost .es { margin-top: 14px; color: var(--ash); font-size: 1.125rem; }
.lost .ctas { margin-bottom: 160px; }
.lost .horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; margin: 0; }
.lost .hz-win { fill: #2a2530; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .scene-canvas { animation: fade 1.2s var(--slow) both; }
  .js .hero-copy > * { animation: rise 1s var(--ease) both; }
  .js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.55s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.7s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 0.85s; }
  .js .strike { animation: strike 0.5s var(--slow) 0.7s both; }
  .js .sw { animation: dimmer 0.6s var(--slow) 0.75s both; }
  .js .swap ins { display: inline-block; animation: arrive 0.7s var(--ease) 1s both; }
  .js .top { animation: fade 0.9s var(--slow) 0.1s both; }

  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes strike { from { transform: scaleX(0); } }
  @keyframes dimmer { from { color: var(--ivory); } }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

  @supports (animation-timeline: view()) {
    .hero-copy { animation: leave linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    .beat-in { animation: beat linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
    .rv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .work-panel { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    @keyframes leave { to { opacity: 0; transform: translateY(-48px); } }
    @keyframes beat {
      0% { opacity: 0; transform: translateY(28px); }
      28%, 72% { opacity: 1; transform: none; }
      100% { opacity: 0; transform: translateY(-28px); }
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
  }
  @supports not (animation-timeline: view()) {
    .js .beat-in, .js .rv, .js .work-panel { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
    .js .beat-in.seen, .js .rv.seen, .js .work-panel.seen { opacity: 1; transform: none; }
  }
  .typing.on i { animation: blink 1.2s infinite ease-in-out; }
  .typing.on i:nth-child(2) { animation-delay: 0.15s; }
  .typing.on i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes blink { 0%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
}

/* ---------- developers page (/developers, /es/desarrolladores) ---------- */
:root { --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; --code-bg: #0e0f15; }
.dhero { padding-block: clamp(132px, 18vh, 180px) clamp(56px, 8vw, 96px); background: linear-gradient(180deg, #13141b 0%, #1a1c2b 70%, #13141b 100%); }
.dhero .tag { margin-bottom: 24px; }
.dhero .display { max-width: 14em; }
.dhero .lede { max-width: 34em; margin-top: 20px; }
.dhero .ctas { justify-content: flex-start; }
.dhero .code { margin-top: 40px; max-width: 52rem; }
.dgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(40px, 6vw, 72px); }
.dbody { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 112px); min-width: 0; }
.dsec { scroll-margin-top: 96px; min-width: 0; }
.dsec-head { margin-bottom: 28px; max-width: 40rem; }
.dsec-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.dsec-head p { margin-top: 12px; color: var(--ash); }
.dsec h3 { font-size: 1.0625rem; font-weight: 520; letter-spacing: 0.006em; }
.dsec h3 + p { margin-top: 6px; color: var(--ash); font-size: 0.9375rem; max-width: 40em; }
.dsec .sub { margin: 40px 0 16px; }

.code {
  position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow-x: auto; margin-top: 14px;
}
.code pre { margin: 0; padding: 18px 20px; font: 400 0.875rem/1.7 var(--mono); white-space: pre; tab-size: 2; }
.code .pr { color: var(--dim); user-select: none; }
.code .cmd { color: var(--ivory); }
.code .out { color: var(--ash); }
.code .cm { color: var(--dim); }
.code-install { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 16px; }
.code-install pre { font-size: 1rem; }
.code-install .copy { flex: none; height: 34px; padding: 0 14px; font-size: 0.875rem; }
a.soon { transition: color 0.2s, border-color 0.2s; }
a.soon:hover { color: var(--ivory); border-color: var(--line-2); }
.log { border-top: 1px solid var(--line); }
.log-e { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.log-e h3 + p { margin-top: 6px; }
.log-e .tag { justify-self: start; }
.dsec .fl { font: 400 0.875em var(--mono); color: var(--ivory); white-space: nowrap; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; background: var(--panel); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.step-n { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 0.875rem; color: var(--ash); font-variant-numeric: tabular-nums; }
.step-b { min-width: 0; }
.exs { display: flex; flex-direction: column; gap: 40px; }
.ex, .pairc { min-width: 0; }
.dsec .row h3 { font-size: 1rem; }
.dsec .row h3 + p { margin-top: 0; }
.dnote { margin-top: 28px; padding: 20px 24px; border-radius: var(--r); background: var(--panel); color: var(--ash); font-size: 0.9375rem; }
.dnote .tag { margin-right: 10px; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 32px; }
#setup .pairc:last-child { grid-column: 1 / -1; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.tbl th { text-align: left; font-weight: 500; font-size: 0.8125rem; color: var(--dim); letter-spacing: 0.012em; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ash); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { white-space: nowrap; }
.tbl code { font: 400 0.875rem/1.5 var(--mono); color: var(--ivory); }
.tbl-exit td:first-child { width: 5rem; }
.dev .foot .sign h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.topnav a[aria-current="page"] { color: var(--ivory); }
@media (max-width: 900px) {
  .dgrid { grid-template-columns: 1fr; }
  .dgrid .toc { display: none; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .code pre { padding: 14px 16px; font-size: 0.8125rem; }
  .code-install { flex-direction: column; align-items: flex-start; padding: 0 0 14px 0; }
  .code-install .copy { margin-left: 16px; }
  .tbl-ref thead { display: none; }
  .tbl-ref tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl-ref tr:last-child { border-bottom: 0; }
  .tbl-ref td { display: block; padding: 0; border: 0; white-space: normal; }
  .tbl-ref td:first-child { white-space: normal; margin-bottom: 4px; }
  .log-e { grid-template-columns: 1fr; }
}

/* home: the strip that leads to the developers page */
.term { padding-top: clamp(88px, 12vw, 160px); }
.term-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  background: var(--panel); border-radius: var(--r); padding: clamp(24px, 3.4vw, 36px) clamp(24px, 3.4vw, 40px);
}
.term h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.term p { margin-top: 8px; color: var(--ash); max-width: 34em; }
.term code { font: 400 0.9375rem var(--mono); color: var(--ivory); }
