/* ─────────────────────────────────────────────────────────────────────
   Minne — product site
   Type: Familjen Grotesk (display/UI), Source Serif 4 (prose),
         IBM Plex Mono (labels and captions). All vendored, OFL.
   The page is built around one thing: the demo stage in the middle.
   ───────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("assets/fonts/familjen-grotesk-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-var.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-var-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #06070a;
  --line: #202632;
  --line-soft: #171d27;
  --chalk: #eef1f7;
  --prose: #a9b2c1;
  --mute: #6a7484;
  --spark: #3478f6;
  --spark-lift: #7aa9ff;
  /* the same accent, deepened for white surfaces — the app's own blue */
  --spark-ink: #0a5cde;

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --system: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --ease: cubic-bezier(0.2, 0.65, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--prose);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--spark-lift);
  text-decoration-color: rgba(122, 169, 255, 0.35);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--spark);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 100;
  font-family: var(--display);
  text-decoration: none;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ── shared type ─────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.h2 {
  font-family: var(--display);
  color: var(--chalk);
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.05rem, 4.4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.lede {
  font-size: clamp(1.1rem, 1.35vw, 1.24rem);
  line-height: 1.62;
  color: var(--prose);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.02em;
  color: var(--mute);
  margin: 0;
}
.eyebrow--link {
  color: var(--spark-lift);
  opacity: 0.75;
}

.section {
  padding-block: clamp(84px, 10vw, 140px);
  scroll-margin-top: 72px;
  position: relative;
}

.section__head {
  max-width: 34rem;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.section__head--wide {
  max-width: 42rem;
}
.section__head .h2 {
  margin-block: 0.7rem 1.1rem;
}

/* ── buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.btn--lg {
  font-size: 1.02rem;
  padding: 0.95rem 1.5rem;
}
.btn--solid {
  background: var(--spark);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(52, 120, 246, 0.9);
}
.btn--solid:hover {
  background: #4b88ff;
  transform: translateY(-1px);
}
.btn--quiet {
  border-color: var(--line);
  color: var(--chalk);
  background: rgba(255, 255, 255, 0.015);
}
.btn--quiet:hover {
  border-color: #37455c;
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost {
  color: var(--prose);
  padding-inline: 0.55rem;
}
.btn--ghost:hover {
  color: var(--chalk);
}

/* ── nav ─────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(6, 7, 10, 0);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--chalk);
  text-decoration: none;
}
.spark {
  width: 1em;
  height: 1em;
  fill: var(--spark);
  flex: none;
}
.nav__links {
  display: flex;
  gap: 1.35rem;
  margin-inline: auto;
  font-family: var(--mono);
  font-size: 0.79rem;
}
.nav__links a {
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--chalk);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__links + .nav__cta {
  margin-left: 0;
}

/* ── hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(88svh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 150px 84px;
  isolation: isolate;
  overflow: hidden;
}

/* The memory graph, standing still: identity, not spectacle — the demo
   below is where the motion belongs. */
.hero__field {
  position: absolute;
  inset: -6% -4% -10% -4%;
  z-index: -2;
  background: url("assets/hero-static.svg") center right / cover no-repeat;
  opacity: 0.72;
  animation: sway 48s ease-in-out infinite alternate;
}
@keyframes sway {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.2%, -1.4%, 0) scale(1.06);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 44% at 26% 46%, rgba(6, 7, 10, 0.97) 0%, rgba(6, 7, 10, 0.84) 55%, transparent 100%),
    radial-gradient(80% 70% at 14% 50%, rgba(6, 7, 10, 0.88) 0%, rgba(6, 7, 10, 0.5) 52%, transparent 82%),
    linear-gradient(to bottom, rgba(6, 7, 10, 0.9) 0%, transparent 24%, transparent 58%, var(--void) 97%);
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  color: var(--chalk);
  font-size: clamp(2.55rem, 5.6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.042em;
  margin: 1.1rem 0 0;
  max-width: 16ch;
}
.hero__lede {
  max-width: 33rem;
  margin: 1.5rem 0 0;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.1rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--mute);
}
.hero__meta span + span::before {
  content: "·";
  margin-right: 1.1rem;
  color: #3a4353;
}

/* ── the demo ────────────────────────────────────────────────────── */

.demo {
  padding-top: clamp(40px, 5vw, 72px);
}

.demo__stage {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.rail {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

/* tabs */

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.tab {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
  border-radius: 12px;
  padding: 0.72rem 0.9rem 0.78rem;
  text-align: left;
  cursor: pointer;
  color: var(--mute);
  font-family: var(--display);
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.tab:hover {
  border-color: #2b3444;
  color: var(--prose);
}
.tab__n {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--prose);
  transition: color 0.3s var(--ease);
}
.tab__d {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-top: 0.12rem;
}
.tab.is-on {
  border-color: #2f4570;
  background: rgba(52, 120, 246, 0.08);
  color: var(--spark-lift);
}
.tab.is-on .tab__n {
  color: var(--chalk);
}
/* the auto-advance clock, drawn as the tab's underline */
.tab__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--spark);
  opacity: 0;
}
.tab.is-on .tab__bar {
  opacity: 1;
  animation: run var(--run, 12s) linear forwards;
}
@keyframes run {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* the stage: a lit desk the app windows sit on */

.stage {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(52, 120, 246, 0.09), transparent 62%),
    linear-gradient(180deg, #0b0e14, #080a0f);
  padding: clamp(18px, 3.4vw, 40px);
  min-height: 26rem;
  overflow: hidden;
}
.stage__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(52, 120, 246, 0.16), transparent 70%);
  pointer-events: none;
}

.scene {
  position: relative;
}
.js .scene {
  display: none;
}
.js .scene.is-on {
  display: block;
}
/* Without JavaScript the four moments simply stack, each already finished. */
html:not(.js) .scene + .scene {
  margin-top: 1.6rem;
}
html:not(.js) .tabs,
html:not(.js) .keycap,
html:not(.js) .composer__label {
  display: none;
}
.scene.is-fading {
  animation: sceneIn 0.5s var(--ease) both;
}
@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* the app window inside the stage */

.win {
  position: relative;
  width: min(100%, 38rem);
  margin-inline: auto;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  color: #16171a;
  font-family: var(--system);
  box-shadow:
    0 50px 90px -34px rgba(0, 0, 0, 0.92),
    0 2px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.win__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  background: linear-gradient(#f7f7f8, #ececee);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.win__lights {
  display: flex;
  gap: 6px;
}
.win__lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #febc2e;
}
.win__lights i:first-child {
  background: #ff5f57;
}
.win__lights i:last-child {
  background: #28c840;
}
.win__title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #4c4d55;
}
.win__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 15.5rem;
  align-content: start;
}

.thread__day,
.mail__subject,
.doc__title {
  margin: 0;
  font-size: 12px;
  color: #8b8c94;
  text-align: center;
}
.mail__subject {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #16171a;
}
.doc__title {
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: #16171a;
}

.msg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, #6d7a8d, #47536a);
  letter-spacing: 0.02em;
}
.ava--b {
  background: linear-gradient(150deg, #8d7d6d, #6a5847);
}
.msg__who {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
}
.msg__who span {
  font-weight: 400;
  color: #9a9aa2;
}
.msg__text {
  margin: 0;
  background: #f1f2f5;
  border-radius: 4px 14px 14px 14px;
  padding: 9px 13px;
}

/* the field being written into */

.composer {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 11px;
  padding: 11px 13px 12px;
  min-height: 5.4rem;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fff;
}
.composer--doc {
  border: 0;
  padding-inline: 0;
  min-height: 7.5rem;
}
.composer--chat {
  min-height: 0;
  background: #f1f1f4;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
}
.composer__label {
  margin: 0;
  color: #a3a3ab;
}
.composer__text {
  margin: 0;
  white-space: pre-wrap;
}
.composer__text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--spark);
  opacity: 0;
}
.scene.is-caret .composer__text::after,
.scene.is-landing .composer__text::after {
  opacity: 1;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
/* Once there is text in the field, the placeholder is gone. */
.scene.has-text .composer__label {
  display: none;
}
.composer__send {
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: #c3c6cd;
  border-radius: 999px;
  padding: 5px 14px;
  transition: background-color 0.35s var(--ease);
}
.scene.has-text .composer__send {
  background: var(--spark);
}

/* the chat scene */

.win__body--chat {
  gap: 10px;
}
.chat__ask {
  justify-self: end;
  max-width: 84%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 16px;
  background: #edeff2;
  min-height: 1.2em;
}
.chat__tool {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  color: #8b8c94;
}
.chat__spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.6px solid rgba(0, 0, 0, 0.16);
  border-top-color: var(--spark);
  animation: spin 0.8s linear infinite;
  flex: none;
}
.scene.is-answered .chat__spin {
  border: 0;
  animation: none;
}
.scene.is-answered .chat__spin::before {
  content: "✓";
  font-size: 12px;
  line-height: 1;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.chat__answer p {
  margin: 0 0 0.4rem;
}
.chat__answer ul {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.chat__answer li {
  padding-left: 0.9rem;
  position: relative;
}
.chat__answer li::before {
  content: "·";
  position: absolute;
  left: 0.2rem;
  color: #8b8c94;
}
.chat__from {
  font-size: 12.5px;
  color: #8b8c94;
}
.js .scene--chat .chat__tool,
.js .scene--chat .chat__answer {
  display: none;
}
.js .scene--chat.is-searching .chat__tool,
.js .scene--chat.is-answered .chat__tool {
  display: flex;
}
.js .scene--chat.is-answered .chat__answer {
  display: block;
}

/* the overlay Minne puts at your caret */

.key {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(18px, 3.4vw, 40px);
  transform: translate(-50%, 10px);
  width: min(26rem, calc(100% - 2rem));
  background: #fff;
  border-radius: 14px;
  /* one inset, every side, matching the app's grid */
  padding: 14px;
  color: #12141a;
  font-family: var(--system);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  box-shadow:
    0 40px 70px -22px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(10, 26, 64, 0.16);
}
.stage.is-open .key {
  opacity: 1;
  transform: translate(-50%, 0);
}
.key__head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 14.5px;
  /* the panel's one rule, at the same inset as everything below it */
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(10, 26, 64, 0.11);
}
.key__head .spark {
  width: 15px;
  height: 15px;
  fill: var(--spark-ink);
}
.key__name {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.key__ctx {
  color: rgba(18, 20, 26, 0.38);
}
.key__ctx:not(:empty)::before {
  content: "·";
  margin-right: 0.32rem;
}
.key__dots {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.key__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--spark-ink);
  animation: blink 1.1s var(--ease) infinite;
}
.key__dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.key__dots i:nth-child(3) {
  animation-delay: 0.32s;
}
.stage.is-thinking .key__dots {
  opacity: 1;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.28;
  }
  45% {
    opacity: 1;
  }
}
.key__status {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(18, 20, 26, 0.62);
}
/* No card behind the draft: it sits on the panel's white, on the same grid
   as the status line above it and the capsules below. */
.key__draft {
  margin-top: 12px;
  min-height: 3.5rem;
}
.key__skeleton {
  display: grid;
  gap: 8px;
}
.key__skeleton span {
  display: block;
  height: 9px;
  border-radius: 4.5px;
  background: linear-gradient(
    100deg,
    rgba(10, 92, 222, 0.1) 20%,
    rgba(10, 92, 222, 0.22) 42%,
    rgba(10, 92, 222, 0.1) 66%
  );
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.key__skeleton span:nth-child(2) {
  width: 88%;
  animation-delay: 0.12s;
}
.key__skeleton span:nth-child(3) {
  width: 54%;
  animation-delay: 0.24s;
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -80% 0;
  }
}
.key__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.key__text::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.16em;
  background: var(--spark-ink);
  opacity: 0;
}
.stage.is-writing .key__text::after {
  opacity: 1;
  animation: caret 1s steps(1) infinite;
}
.stage.is-thinking .key__text {
  display: none;
}
.stage:not(.is-thinking) .key__skeleton {
  display: none;
}
.key__buttons {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
/* Outlines, not grey fills: one capsule is filled blue and it is the answer;
   the rest are the ways out and weigh almost nothing on white. */
.key__btn {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(10, 26, 64, 0.18);
  color: rgba(18, 20, 26, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    opacity 0.3s var(--ease),
    max-width 0.35s var(--ease),
    padding 0.35s var(--ease),
    margin 0.35s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.key__btn b {
  font-weight: 500;
  opacity: 0.45;
}
.key__btn--primary {
  background: var(--spark-ink);
  border-color: transparent;
  color: #fff;
}
.key__btn--primary b {
  opacity: 0.72;
}
/* Until the draft is whole there is nothing to do but walk away. */
.key__btn:not(:last-child) {
  max-width: 9rem;
  overflow: hidden;
}
.stage.is-thinking .key__btn:not(:last-child),
.stage.is-writing .key__btn:not(:last-child) {
  opacity: 0;
  max-width: 0;
  padding-inline: 0;
  margin-right: -8px;
}
.stage.is-inserting .key__btn--primary {
  transform: scale(0.96);
  box-shadow: 0 0 0 4px rgba(10, 92, 222, 0.25);
}

/* the keycap and the line that says what just happened */

.hud {
  display: grid;
  gap: 1rem 1.4rem;
  align-items: center;
}
.keycap {
  position: absolute;
  left: clamp(18px, 3.4vw, 40px);
  bottom: clamp(18px, 3.4vw, 34px);
  z-index: 2;
  display: inline-grid;
  justify-items: center;
  gap: 0.45rem;
  width: max-content;
}
.keycap__key {
  display: grid;
  place-items: center;
  min-width: 3.1rem;
  height: 2.7rem;
  padding-inline: 0.75rem;
  white-space: nowrap;
  border-radius: 9px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--chalk);
  background: linear-gradient(180deg, #222834, #161b24);
  box-shadow:
    0 4px 0 #0e1219,
    0 8px 16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition:
    transform 0.09s var(--ease),
    box-shadow 0.09s var(--ease),
    color 0.2s var(--ease);
}
.keycap.is-down .keycap__key {
  transform: translateY(4px);
  color: #cfe0ff;
  box-shadow:
    0 0 0 #0e1219,
    0 3px 10px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(52, 120, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.keycap__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--mute);
}
.hud__say {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--prose);
  max-width: 34rem;
}

.demo__foot {
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line);
  color: var(--mute);
  font-size: 0.98rem;
  max-width: 40rem;
}

/* ── what you get ────────────────────────────────────────────────── */

.gets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
}
.gets li {
  max-width: 30rem;
}
.gets__lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--chalk);
  margin: 0 0 0.45rem;
}
.gets p + p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.62;
}

/* ── your Mac only ───────────────────────────────────────────────── */

.section--yours {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.014), transparent);
}
.yours {
  display: grid;
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}
.yours__text .h2 {
  margin-block: 0.7rem 1.1rem;
}
.promise {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}
.promise li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.02rem;
  line-height: 1.6;
}
.promise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 14px rgba(52, 120, 246, 0.65);
}

/* The egress ledger: the trust claim stated as an audit, not a vibe. */
.egress {
  margin-top: clamp(52px, 6vw, 84px);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(36px, 4vw, 52px);
}
.egress__title {
  font-family: var(--display);
  color: var(--chalk);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin: 0.7rem 0 0.9rem;
}
.egress__intro,
.egress__note {
  color: var(--prose);
  line-height: 1.62;
  max-width: 44rem;
  margin: 0;
}
.egress__ledger {
  margin: 1.6rem 0;
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}
.egress__ledger > div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}
.egress__ledger dt {
  font-family: var(--mono);
  font-size: 0.775rem;
  letter-spacing: 0.02em;
  color: var(--spark-lift);
}
.egress__ledger dd {
  margin: 0;
  color: var(--prose);
  line-height: 1.6;
}
.egress__note {
  color: var(--mute);
}

.folder {
  margin: 0;
}
.folder__win {
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  font-family: var(--system);
  color: #16171a;
  box-shadow:
    0 50px 90px -36px rgba(0, 0, 0, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.folder__list {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  font-size: 14px;
}
.folder__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
}
.folder__list li:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}
.folder__meta {
  margin-left: auto;
  font-size: 12px;
  color: #9a9aa2;
}
.folder__icon {
  width: 15px;
  height: 19px;
  border-radius: 2px 4px 2px 2px;
  background: linear-gradient(160deg, #dfe3ea, #c7ccd6);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: none;
}
.folder figcaption {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--mute);
  margin-top: 1rem;
}

/* ── closing ─────────────────────────────────────────────────────── */

.closing {
  text-align: center;
  padding-top: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(64px, 8vw, 110px);
}
.define {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.define__word {
  font-family: var(--display);
  font-weight: 600;
  color: var(--chalk);
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0;
}
.define__gloss {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0.6rem 0 0;
}
.define__gloss span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.8em;
  margin-right: 0.35rem;
}
.closing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.closing__note {
  margin: 1.6rem 0 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--mute);
}

/* ── footer ──────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.4rem 3rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.foot__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--chalk);
  margin: 0;
}
.foot__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.7;
  color: var(--mute);
  flex: 1 1 18rem;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
}
.foot__links a {
  color: var(--mute);
  text-decoration: none;
}
.foot__links a:hover {
  color: var(--chalk);
}

/* ── reveals ─────────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── at width ────────────────────────────────────────────────────── */

@media (min-width: 700px) {
  .tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hud {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (min-width: 900px) {
  .gets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.6rem 3.5rem;
  }
  .yours {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  }

  /* Controls and commentary on the left, the moment itself on the right. */
  .demo__stage {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
  }
  .tabs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
  .rail {
    position: sticky;
    top: 96px;
  }
  .hud {
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: 0.4rem;
  }
  .hud__say {
    font-size: 0.98rem;
  }

  .stage {
    min-height: 30rem;
  }
  .win {
    margin-inline: 0;
    width: min(100%, 34rem);
  }
  /* Minne opens under the caret, at the field's edge — not on top of it. */
  .key {
    left: auto;
    right: 0;
    bottom: clamp(20px, 3vw, 34px);
    width: 24rem;
    transform: translate(0, 12px);
  }
  .stage.is-open .key {
    transform: translate(0, 0);
  }
}

@media (max-width: 899px) {
  /* Stacked: the key you press, the app, then Minne under it. */
  .keycap {
    position: static;
    justify-self: center;
    margin-bottom: 1.1rem;
  }
  .stage {
    display: grid;
  }
  .win {
    width: 100%;
  }
  .win__body {
    min-height: 13rem;
  }
  .key {
    position: relative;
    left: auto;
    bottom: auto;
    transform: translateY(10px);
    width: 100%;
    margin-top: 1rem;
  }
  .stage.is-open .key {
    transform: none;
  }
  /* Reserve the overlay's room so the stage does not jump when it appears. */
  .stage {
    min-height: 40rem;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .br-lg {
    display: none;
  }
  .hero {
    padding-block: 118px 72px;
  }
  .hero__meta {
    gap: 0.3rem 0.9rem;
  }
  .hero__meta span + span::before {
    content: none;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .win__body {
    padding: 14px 14px 16px;
    font-size: 14px;
  }
  .key {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__field {
    animation: none;
  }
  .btn,
  .key,
  .key__btn {
    transition: none;
  }
  .tab.is-on .tab__bar {
    animation: none;
    transform: scaleX(1);
    opacity: 0.35;
  }
  .key__skeleton span,
  .chat__spin,
  .key__dots i {
    animation: none;
  }
  .composer__text::after,
  .key__text::after {
    animation: none;
  }
}
