/* =========================================================================
   Teamgram — website design system ("Midnight")
   Near-black canvas, rose signal. Space Grotesk / Instrument Sans / Geist Mono.
   ========================================================================= */

/* ---------- 1. Typefaces ------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/isans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/isans-latinext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/sgrotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+20AC;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/gmono-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------------------------------------------------- */

:root {
  --bg: #0b0c0f;
  --panel: #12141a;
  --panel-2: #171a21;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --ink: #edeef2;
  --dim: #a6abb6;
  --mut: #787e8a;
  --accent: #d24970;
  --accent-hover: #ff855c;
  --accent-ink: #230b03;
  --amber: #e0b05c;
  --jade: #6cc596;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grotesk: "Space Grotesk", var(--sans);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* biome-ignore lint/correctness/noUnknownProperty: Supported by modern browsers for intrinsic-size transitions. */
  interpolate-size: allow-keywords;
}

/* ---------- 3. Base ------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:where(a) {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 8px;
  translate: 0 -300%;
}
.skip:focus-visible {
  translate: none;
}

/* ---------- 4. Primitives ------------------------------------------------ */

.shell {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  font-family: var(--grotesk);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 20px;
  transition: transform 160ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover {
  background: var(--accent-hover);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 11px 19px;
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}
.btn--ghost.btn--sm {
  padding: 7px 13px;
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.tlink:hover {
  text-decoration: underline;
}
.tlink svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- 5. Header ---------------------------------------------------- */

.header {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: block;
  flex: none;
}
.brand__chip {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-radius: 99px;
  padding: 2px 8px;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--dim);
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--ink);
}
.header .btn {
  flex-shrink: 0;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  translate: -50% -50%;
}
.menu-btn span::before {
  translate: -50% calc(-50% - 5px);
}
.menu-btn span::after {
  translate: -50% calc(-50% + 5px);
}
.mobile-nav {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 8px clamp(20px, 4vw, 40px) 16px;
  flex-direction: column;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), display 200ms
    allow-discrete;
}
.mobile-nav a {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 1rem;
}
.mobile-nav a:first-child {
  border-top: 0;
}
.mobile-nav a[aria-current="page"],
.mobile-nav a:hover {
  color: var(--ink);
}
.header.is-open .mobile-nav {
  display: flex;
  opacity: 1;
  translate: none;
}
@starting-style {
  .header.is-open .mobile-nav {
    opacity: 0;
    translate: 0 -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mobile-nav,
  .header.is-open .mobile-nav {
    translate: none;
    transition: opacity 200ms var(--ease-out), display 200ms allow-discrete;
  }
}

/* ---------- 6. Heroes & section heads ------------------------------------ */

.hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}
.hero .mono {
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.625rem, 7vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 16ch;
  margin: 18px auto 0;
}
.hero p {
  color: var(--dim);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 52ch;
  margin: 22px auto 0;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero__note {
  margin-top: 18px !important;
  font-size: 0.875rem !important;
  color: var(--mut) !important;
}

.page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 56px);
}
.page-hero .mono {
  color: var(--accent);
}
.page-hero h1 {
  font-size: clamp(2.375rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 18ch;
  margin-top: 16px;
}
.page-hero__lede {
  color: var(--dim);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 54ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
}
.page-hero__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--mut);
}

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}
.section--tight {
  padding: clamp(36px, 5vw, 64px) 0;
}
.section-head .mono {
  color: var(--mut);
}
.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  max-width: 24ch;
  margin-top: 14px;
}
.section-head__lede {
  color: var(--dim);
  max-width: 56ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* ---------- 7. Panels, rows, mockups ------------------------------------- */

.panel {
  background: var(--panel);
  border-radius: 14px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  overflow: hidden;
}
.panel__bar {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--dim);
}
.panel__bar b {
  color: var(--ink);
  font-weight: 600;
}
.panel__foot {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 106, 61, 0.07);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.irow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.irow:first-of-type,
.panel__bar + .irow {
  border-top: 0;
}
.irow b {
  font-weight: 600;
}
.irow p {
  color: var(--mut);
  font-size: 0.8125rem;
}
.irow time,
.irow .irow__end {
  margin-left: auto;
  color: var(--mut);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.irow__main {
  min-width: 0;
}

.tick {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
}
.tick--on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tick--on svg {
  width: 11px;
  height: 11px;
}

.av {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #273043;
  color: #aebbd8;
}
.av--b {
  background: #33291f;
  color: #d8bd8f;
}
.av--c {
  background: #24322a;
  color: #9ecdb0;
}
.av--sm {
  width: 28px;
  height: 28px;
  font-size: 0.625rem;
}

.unread {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.unread--off {
  background: var(--line-2);
}

/* App window mockup */

.stage {
  position: relative;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.stage::before {
  content: "";
  position: absolute;
  inset: -10% 8% 20%;
  background: radial-gradient(50% 60% at 50% 30%, rgba(255, 106, 61, 0.09), transparent 70%);
  pointer-events: none;
}
.app {
  position: relative;
  background: var(--panel);
  border-radius: min(1.2vw, 14px);
  outline: 1px solid var(--line-2);
  outline-offset: -1px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  text-align: left;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.app__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.app__bar span {
  margin-left: 10px;
  color: var(--mut);
  font-size: 0.8125rem;
}
.app__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 380px;
}
.app-side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  font-size: 0.875rem;
  color: var(--dim);
}
.app-side__ws {
  font-family: var(--grotesk);
  font-weight: 600;
  color: var(--ink);
  padding: 6px 10px 12px;
  letter-spacing: -0.01em;
}
.app-side__group {
  padding: 14px 10px 6px;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app-side__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 10px;
  border-radius: 7px;
}
.app-side__item b {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.app-side__item.is-on {
  background: var(--panel-2);
  color: var(--ink);
}
.feed {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.msg {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
}
.msg b {
  font-weight: 600;
}
.msg time {
  color: var(--mut);
  font-size: 0.75rem;
  margin-left: 8px;
}
.msg p {
  margin: 3px 0 0;
  color: var(--dim);
  text-wrap: pretty;
}
.msg .msg__thread {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--accent);
}
.compose {
  margin: 4px 22px 18px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--mut);
  font-size: 0.9375rem;
}
.panel .feed {
  padding: 16px 18px;
}
.panel .compose {
  margin: 2px 18px 16px;
}

/* Captures produced by the real desktop renderer in its synthetic marketing mode. */
.app-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: min(1.2vw, 14px);
  background: #19151b;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.app-shot img {
  width: 100%;
  height: auto;
}
.app-shot--login {
  width: min(100%, 380px);
  margin-inline: auto;
}
.section-head > .app-shot {
  margin-top: clamp(28px, 4vw, 44px);
}
.app-shot figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 12, 15, 0.82);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ---------- 8. Spec strip ------------------------------------------------ */

.specs {
  border-block: 1px solid var(--line);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.spec {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--dim);
}
.spec:first-child {
  border-left: 0;
  padding-left: 0;
}
.spec b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- 9. Splits, checks, features ---------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}
.split--panel-first > .split__panel {
  order: -1;
}
.split h3 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.split h3 + p {
  color: var(--dim);
  margin-top: 12px;
  text-wrap: pretty;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  color: var(--dim);
}
.checks svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(28px, 4vw, 48px);
  margin: clamp(30px, 4vw, 44px) 0 0;
}
.features--two {
  grid-template-columns: repeat(2, 1fr);
}
.feature {
  border-top: 1px solid var(--line-2);
  padding: 22px 0 26px;
  margin: 0;
}
.feature dt {
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.feature dt span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.feature dd {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* ---------- 10. Bands, pull, CTA ----------------------------------------- */

.band {
  border-block: 1px solid var(--line);
  background: var(--panel);
}
.band__inner {
  padding: clamp(56px, 8vw, 96px) 0;
  max-width: 780px;
}
.band h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  max-width: 24ch;
  margin-top: 14px;
}
.band .mono {
  color: var(--mut);
}
.band p {
  color: var(--dim);
  max-width: 56ch;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.band .tlink {
  margin-top: 22px;
}

.cta {
  text-align: center;
  padding: clamp(72px, 10vw, 130px) 0;
}
.cta h2 {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta p {
  color: var(--dim);
  max-width: 48ch;
  margin: 18px auto 0;
  text-wrap: pretty;
}
.cta .btn {
  margin-top: 30px;
}

/* ---------- 11. Footer --------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.875rem;
  color: var(--mut);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}
.footer__row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}
.footer__row a:hover {
  color: var(--ink);
}
.footer__legal {
  margin-top: 20px;
  max-width: 72ch;
  text-wrap: pretty;
}

.credit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  list-style: none;
  margin-top: 28px;
}
.credit-list li {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
  padding: 22px 24px 22px 0;
}
.credit-list li:nth-child(even) {
  border-left: 1px solid var(--line-2);
  padding-left: 24px;
}
.credit-list span,
.credit-note {
  color: var(--dim);
}
.credit-list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.credit-note {
  max-width: 72ch;
  margin-top: 28px;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .credit-list {
    grid-template-columns: 1fr;
  }
  .credit-list li:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---------- 12. Changelog ------------------------------------------------ */

.rel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line-2);
  padding: clamp(28px, 4vw, 40px) 0;
}
.rel__ver {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.rel__date {
  display: block;
  color: var(--mut);
  font-size: 0.8125rem;
  margin-top: 6px;
}
.rel__badge {
  display: block;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-radius: 99px;
  padding: 2px 9px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rel h2 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.rel__body > p {
  color: var(--dim);
  margin-top: 10px;
  max-width: 62ch;
  text-wrap: pretty;
}
.rel ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rel li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--dim);
  font-size: 0.9375rem;
}
.rel li > span:first-child {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 2px 9px;
  color: var(--dim);
}
.rel li[data-k="new"] > span:first-child {
  color: var(--accent);
  border-color: rgba(255, 106, 61, 0.4);
}
.rel li[data-k="safer"] > span:first-child {
  color: var(--jade);
  border-color: rgba(108, 197, 150, 0.35);
}
.rel li[data-k="fixed"] > span:first-child {
  color: var(--amber);
  border-color: rgba(224, 176, 92, 0.35);
}
.release-notes > p:first-child {
  max-width: 68ch;
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
}
.release-notes {
  line-height: 1.75;
}
.release-notes h1,
.release-notes h2,
.release-notes h3,
.release-notes h4 {
  margin-top: 30px;
  font-family: var(--grotesk);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.release-notes h1,
.release-notes h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.release-notes h3,
.release-notes h4 {
  font-size: 1.0625rem;
}
.release-notes p {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--dim);
  text-wrap: pretty;
}
.rel .release-notes ul,
.rel .release-notes ol {
  display: block;
  max-width: 68ch;
  margin: 18px 0 0;
  padding-left: 22px;
  list-style: disc;
}
.rel .release-notes ol {
  list-style: decimal;
}
.rel .release-notes li {
  display: list-item;
  padding: 4px 0 4px 6px;
  color: var(--dim);
}
.release-notes strong {
  color: var(--ink);
}
.release-notes code {
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel-2);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 0.86em;
}
.release-notes pre {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 16px;
}
.release-notes pre code {
  border: 0;
  background: transparent;
  padding: 0;
}
.release-notes blockquote {
  max-width: 68ch;
  margin: 22px 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}
.release-notes a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.release-notes img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: 10px;
}
.release-notes table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border-collapse: collapse;
}
.release-notes th,
.release-notes td {
  border: 1px solid var(--line-2);
  padding: 8px 10px;
  text-align: left;
}
.rel--loading,
.rel--error {
  min-height: 180px;
}
.rel--error {
  grid-template-columns: 1fr;
}

/* ---------- 13. Trust page ----------------------------------------------- */

.map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(30px, 4vw, 48px);
}
.map__col {
  background: var(--panel);
  border-radius: 14px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  padding: 22px;
}
.map__col--hot {
  outline-color: rgba(255, 106, 61, 0.45);
}
.map__col .mono {
  color: var(--mut);
}
.map__col--hot .mono {
  color: var(--accent);
}
.map__col b {
  display: block;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  margin-top: 8px;
}
.map__col ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map__col li {
  font-size: 0.9375rem;
  color: var(--dim);
  padding-left: 16px;
  position: relative;
}
.map__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1.5px;
  background: var(--mut);
}
.map__note {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--dim);
  text-wrap: pretty;
}
.map__note b {
  font-weight: 600;
  color: var(--ink);
}

.faq {
  margin-top: clamp(28px, 4vw, 44px);
}
.faq details {
  border-top: 1px solid var(--line-2);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--mut);
}
.faq details[open] summary::after {
  content: "–";
  color: var(--accent);
}
.faq summary:hover {
  color: var(--accent);
}
.faq details::details-content {
  opacity: 1;
  block-size: auto;
  overflow-y: clip;
  transition: block-size 250ms var(--ease-out), opacity 250ms var(--ease-out), content-visibility
    250ms allow-discrete;
}
.faq details:not([open])::details-content {
  opacity: 0;
  block-size: 0;
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content {
    transition: opacity 200ms var(--ease-out), content-visibility 200ms allow-discrete;
  }
}
.faq .faq__a {
  padding: 0 0 22px;
  max-width: 68ch;
}
.faq .faq__a p {
  color: var(--dim);
  text-wrap: pretty;
}
.faq .faq__a p + p {
  margin-top: 12px;
}

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}
.ledger__col {
  border-top: 2px solid var(--line-2);
  padding-top: 18px;
}
.ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ledger__head b {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}
.ledger__head .mono {
  color: var(--mut);
}
.ledger ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ledger li {
  display: flex;
  gap: 12px;
  color: var(--dim);
  font-size: 0.9375rem;
}
.ledger li svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 5px;
  color: var(--mut);
}
.ledger__col--yes li svg {
  color: var(--accent);
}

/* ---------- 14. Download page -------------------------------------------- */

.dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
.dl__card {
  position: relative;
  background: var(--panel);
  border-radius: 14px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.dl__badge {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-radius: 99px;
  padding: 3px 9px;
}
.dl__card.is-detected {
  outline-color: rgba(255, 106, 61, 0.45);
}
.dl__card.is-detected .dl__badge {
  display: inline-block;
}
.dl__glyph {
  color: var(--dim);
}
.dl__glyph svg {
  width: 30px;
  height: 30px;
}
.dl__card h2 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.dl__card > p {
  color: var(--dim);
  font-size: 0.9375rem;
  text-wrap: pretty;
}
.dl__arch {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
}
.dl__card .btn {
  margin-top: 6px;
}
.dl__foot {
  font-size: 0.8125rem;
  color: var(--mut);
}
.dl__builds {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.dl__build {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 10px 13px;
  transition: transform 160ms var(--ease-out);
}
.dl__build:not(.is-loading, .is-unavailable):hover {
  border-color: rgba(255, 106, 61, 0.65);
  transform: translateY(-1px);
}
.dl__build > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.dl__build b {
  font-size: 0.9375rem;
  font-weight: 600;
}
.dl__build small {
  overflow: hidden;
  color: var(--mut);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.dl__match {
  display: none;
  border: 1px solid rgba(255, 106, 61, 0.4);
  border-radius: 99px;
  padding: 2px 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dl__build.is-recommended {
  border-color: rgba(255, 106, 61, 0.65);
}
.dl__build.is-recommended .dl__match {
  display: inline;
}
.dl__build.is-loading,
.dl__build.is-unavailable {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}
.dl__arrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1rem;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 44px);
}
.note {
  border-top: 1px solid var(--line-2);
  padding: 20px 0 26px;
}
.note .mono {
  color: var(--accent);
}
.note b {
  display: block;
  font-weight: 600;
  margin-top: 8px;
}
.note p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}
.step {
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.step::before {
  counter-increment: step;
  content: "Step 0" counter(step);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.step h3 {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  margin-top: 10px;
}
.step p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* ---------- 15. Motion --------------------------------------------------- */

/* Homepage hero entrance — one shot per pageview */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 12px;
    }
  }
  @keyframes settle-in {
    from {
      opacity: 0;
      scale: 0.98;
    }
  }
  .hero .shell > * {
    animation: rise-in 500ms var(--ease-out) backwards;
  }
  .hero .shell > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero .shell > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero .shell > :nth-child(4) {
    animation-delay: 180ms;
  }
  .hero .shell > :nth-child(5) {
    animation-delay: 240ms;
  }
  .stage .app-shot {
    animation: settle-in 600ms var(--ease-out) 200ms backwards;
  }
}

/* ---------- 16. Responsive ----------------------------------------------- */

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .header__inner > .btn {
    display: none;
  }
  .menu-btn {
    display: block;
    margin-left: auto;
  }
  .nav + .btn,
  .header .btn {
    margin-left: 0;
  }
  .header__inner {
    gap: 14px;
  }
  .header__inner .brand {
    margin-right: auto;
  }

  .app__body {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
  .specs__grid {
    grid-template-columns: 1fr 1fr;
  }
  .spec {
    padding: 18px 20px;
  }
  .spec:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .spec:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split {
    grid-template-columns: 1fr;
  }
  .split--panel-first > .split__panel {
    order: 0;
  }
  .features,
  .features--two,
  .notes {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .map {
    grid-template-columns: 1fr;
  }
  .ledger {
    grid-template-columns: 1fr;
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .rel {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
