/* =====================================================================
   peer — landing
   Tokens come from /styles/tokens.css. This sheet only does layout,
   atmospheric light, and page-specific components. The desktop app uses
   real macOS window translucency; on the web we fake the same feel with
   soft colored auroras layered behind glass-tinted panels.
   ===================================================================== */

html {
  font-family: var(--font-body);
  background: oklch(0.19 0 0);
  color: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body { overscroll-behavior-y: none; }

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Flat background — solid fill, no atmospheric gradient. */
body {
  background: oklch(0.19 0 0);
}

.aurora,
.grain { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

main { position: relative; z-index: 2; overflow: visible; }
[id] { scroll-margin-top: 88px; }

/* ─── Topbar ──────────────────────────────────────────────────────── */
/* Sticky chrome: Peer mark on the left, primary CTA on the right. Stays
   pinned across scroll so the contact action is always one click away.
   Translucent dark fill + blur picks up the page tint underneath without
   ever fighting the hero for attention. */
.topbar {
  position: sticky; top: 0;
  z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: oklch(0.17 0.006 82 / 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid oklch(1 0 0 / 0.06);
}

.topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.topbar__nav [hidden] { display: none; }

/* Google "G" inside the sign-in button. */
.g-mark { flex: 0 0 auto; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: oklch(0.08 0.003 82 / 0.72);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  cursor: pointer;
}
.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: 8px;
  background: oklch(0.19 0.006 82);
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.38);
}
.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.auth-modal__close:hover {
  background: oklch(1 0 0 / 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.auth-modal__title {
  margin: 0 36px 18px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}
.auth-modal__form {
  display: grid;
  gap: 9px;
}
.auth-modal__label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.auth-modal__input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: oklch(1 0 0 / 0.045);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.auth-modal__input::placeholder { color: var(--muted); }
.auth-modal__input:focus {
  border-color: var(--blue);
  background: oklch(1 0 0 / 0.07);
}
.auth-modal__submit {
  width: 100%;
  height: 46px;
  padding-inline: 16px;
  justify-content: center;
  margin-top: 4px;
}
.auth-modal__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-modal__divider::before,
.auth-modal__divider::after {
  content: "";
  height: 1px;
  background: var(--line-strong);
}
.auth-modal__google {
  width: 100%;
  justify-content: center;
}
.auth-modal__status {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}
.auth-modal__status[hidden] { display: none; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
}
.brand img { width: 24px; height: 24px; display: block; }
.brand:hover { opacity: 0.92; }

.nav-download {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.05);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 500;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.nav-download:hover {
  background: oklch(1 0 0 / 0.10);
  border-color: var(--line-bright);
}

/* ─── Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out) var(--d, 0ms),
              transform 700ms var(--ease-out) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  width: min(100%, calc(var(--max) + var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(28px, 4.2vw, 52px) var(--page-pad) clamp(34px, 5vw, 56px);
}

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.hero__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* "Backed by Y Combinator" pill — sits just above the hero title. Borrows
   the hero__meta language (bordered pill, muted text) but uses the body
   typeface and a slightly larger logo so the YC mark stays legible. */
.hero__yc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.035);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.hero__yc:hover {
  background: oklch(1 0 0 / 0.06);
  border-color: oklch(1 0 0 / 0.22);
  color: var(--text);
}
.hero__yc-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: block;
  flex: 0 0 auto;
}
.hero__yc strong {
  font-weight: 600;
  color: var(--text);
}
.meta-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--blue);
}

/* Title — single line. Mark sits inline to the left so the logo doesn't
   overpower the page like it did before. */
.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7.6vw, 104px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  white-space: nowrap;
}
.hero__title-text { display: inline-block; }
.hero__title-accent { color: var(--blue); }

.hero__mark {
  display: inline-grid;
  place-items: center;
  width: clamp(56px, 8.4vw, 112px);
  height: clamp(56px, 8.4vw, 112px);
  color: var(--text);
  flex: 0 0 auto;
  overflow: visible;
}
.hero__mark .face-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.face-glasses {
  transition: transform 90ms linear;
}
/* Page-background colored covers hide the head ring beneath each lens. Keep
   their edge under the white stroke so antialiasing cannot create a rim. */
.face-lens-cover {
  fill: oklch(0.19 0 0);
  stroke: none;
}

.hero__lede {
  max-width: 1040px;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero__actions {
  display: inline-flex; gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.hero__shortcut {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: -0.005em;
}

/* Sign-in feedback under the hero actions. */
.hero__auth-msg {
  margin: 0 auto;
  max-width: 460px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.hero__auth-msg[hidden] { display: none; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.button--primary {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
}
.button--primary:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
}
.button:disabled {
  cursor: wait;
  opacity: 0.78;
}
.button--primary:disabled,
.button--primary:disabled:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.button--ghost {
  background: oklch(1 0 0 / 0.04);
}
.button--ghost:hover {
  background: oklch(1 0 0 / 0.09);
  border-color: var(--line-bright);
}
.button--lg { height: 54px; padding: 0 28px; font-size: 15px; }
.button--sm { height: 34px; padding: 0 16px; font-size: 13px; gap: 6px; }
.btn-arrow { font-size: 13px; opacity: 0.85; }
.btn-arrow--right { font-size: 14px; }

@media (max-width: 520px) {
  .auth-modal {
    align-items: end;
    padding: 12px;
  }
  .auth-modal__panel {
    width: 100%;
    padding: 22px 18px 18px;
  }
  .auth-modal__submit {
    width: 100%;
    justify-content: center;
  }
}

kbd {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px;
  border: 1px solid var(--line-bright);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: oklch(1 0 0 / 0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ─── Demo video ───────────────────────────────────────────────────── */
.app-window {
  width: min(100%, 980px);
  margin: 0 auto;
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: oklch(0.22 0.006 82);
  overflow: hidden;
}
.app-window--video {
  --demo-width: 760px;
  width: min(100%, var(--demo-width));
  max-width: 980px;
  aspect-ratio: 1800 / 1170;
  border-radius: 22px;
  border: 0;
  background: #050505;
  box-shadow: none;
}
.app-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.app-window__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 0 16px;
}
.tl {
  width: 11px; height: 11px; border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
}
.tl--r { background: #ff5f57; }
.tl--y { background: #febc2e; }
.tl--g { background: #28c840; }

.app-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 18px 14px 18px;
}
.app-window__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text);
}
.app-window__tabs {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 6px;
}
.aw-tab {
  appearance: none;
  display: inline-flex; align-items: center; gap: 7px;
  background: oklch(1 0 0 / 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px; font-weight: 500;
  cursor: default;
}
.aw-tab--active {
  background: oklch(1 0 0 / 0.14);
  border-color: oklch(1 0 0 / 0.22);
  color: var(--text);
}
.app-window__gear {
  justify-self: end;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--dim);
}

.aw-feed {
  list-style: none;
  margin: 0;
  padding: 4px 14px 22px 14px;
  display: flex; flex-direction: column;
  gap: 2px;
}
/* Mirrors .card in result.css (Tasks tab): bookmark | title.
   Saved state is conveyed by the filled blue bookmark on the left.
   Rendered flat — no hover affordances, since the mockup is illustrative
   and shouldn't suggest the page rows are clickable. */
.aw-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
}

.aw-card__bookmark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--dim);
}
.aw-card__bookmark--saved { color: var(--blue); }

.aw-card__title {
  font-size: 14.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Floating action button — bottom-right of the app-window mockup, mirrors
   .fab in result.css. Accent-blue puck with a plus glyph, soft drop shadow,
   matches the topbar brand orb so it doesn't outweigh the logo. */
.aw-fab {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

/* ─── Section shell ───────────────────────────────────────────────── */
.section {
  width: min(100%, calc(var(--max) + var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--page-pad);
  position: relative;
}

.section__num {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.section__head {
  margin-bottom: 40px;
}
.section__head--center {
  text-align: center;
}
.section__head--center .section__lede {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
}

/* Force the how-it-works title onto one line on wider viewports; the
   string is longer than the other section titles so cap its font a
   touch lower than the global clamp would give it. */
@media (min-width: 1100px) {
  #how-title {
    white-space: nowrap;
    font-size: clamp(38px, 4.4vw, 52px);
  }
}

.section__lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

/* ─── Walkthrough ─────────────────────────────────────────────────────
   Three visual stages — pill recording, pill analyzing, prompt result.
   Each is a glass card with a visual hero on top and a label + caption
   below, so the section *shows* the loop rather than describes it. */
.walk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.walk-stage {
  position: relative;
  padding: 0 0 26px;
  background: oklch(0.22 0.006 82);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.walk-stage:hover {
  border-color: var(--line-bright);
}

.walk-stage__visual {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  padding: 28px 22px 22px;
  border-bottom: 1px solid var(--line);
}
.walk-stage__visual--output { padding-top: 24px; }

.walk-caption {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.walk-caption__time { color: var(--text); }
.walk-caption__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.walk-caption__dot--rec {
  background: var(--red);
  animation: aw-pip-pulse 1.2s ease-in-out infinite;
}
.walk-caption__dot--analyze {
  background: var(--blue);
  animation: aw-pip-pulse 1.6s ease-in-out infinite;
}

.walk-stage__copy {
  padding: 22px 24px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.walk-stage h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text);
}
.walk-stage h3 kbd {
  margin: 0 2px 0 0;
  font-size: 11.5px;
  vertical-align: 2px;
}
.walk-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Pill mockup — proportions follow src/pill/pill.css (the live capsule is
   40px wide), scaled ~2.2x so it reads as a clear, polished graphic inside
   the workflow card instead of a tiny icon. Rim tints red (recording) or
   blue (processing); processing also pulses the glasses opacity, exactly
   like the live pill's .logo[data-state='processing'] rule. */
.pill-mock {
  position: relative;
  width: 88px;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 13px 0 18px;
  gap: 13px;
  border-radius: 48px;
  border: 2px solid oklch(1 0 0 / 0.14);
  background: oklch(0.19 0 0);
  box-sizing: border-box;
}
.pill-mock::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}
.pill-mock[data-state='recording'] {
  border-color: oklch(0.66 0.22 22 / 0.9);
}
.pill-mock[data-state='recording']::after {
  border-color: oklch(0.66 0.22 22 / 0.75);
}
.pill-mock[data-state='processing'] {
  border-color: rgba(142, 197, 255, 0.72);
}
.pill-mock[data-state='processing']::after {
  border-color: rgba(142, 197, 255, 0.56);
}

.pill-mock__core {
  width: 66px; height: 66px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: default;
  color: oklch(1 0 0);
}
.pill-mock__logo {
  display: block;
  overflow: visible;
  width: 58px;
  height: 58px;
}
.pill-mock__handle {
  display: flex; gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px 4px 18px;
}
.pill-mock__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(1 0 0);
  opacity: 0.85;
}

/* Recording: gravity-feel bounce on each dot, staggered left → right.
   Mirrors .pill[data-state='recording'] .pill__dot in src/pill/pill.css —
   peak height scaled for the larger mock dots. */
.pill-mock[data-state='recording'] .pill-mock__dot {
  animation: pill-dot-bounce 1.4s infinite;
}
.pill-mock[data-state='recording'] .pill-mock__dot:nth-child(2) { animation-delay: 0.18s; }
.pill-mock[data-state='recording'] .pill-mock__dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes pill-dot-bounce {
  0%   { transform: translateY(0);    animation-timing-function: cubic-bezier(0.20, 0.65, 0.40, 1); }
  35%  { transform: translateY(-15px); animation-timing-function: cubic-bezier(0.65, 0, 0.85, 0.40); }
  70%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* Processing: brightness/scale wave sweeps left → right across the dots
   — no vertical motion so it reads as "thinking" not "live". Mirrors
   .pill[data-state='processing'] .pill__dot. The face stays still. */
.pill-mock[data-state='processing'] .pill-mock__dot {
  animation: pill-dot-wave 1.2s ease-in-out infinite;
}
.pill-mock[data-state='processing'] .pill-mock__dot:nth-child(2) { animation-delay: 0.15s; }
.pill-mock[data-state='processing'] .pill-mock__dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes pill-dot-wave {
  0%, 60%, 100% { opacity: 0.35; transform: scale(1); }
  25%           { opacity: 1;    transform: scale(1.25); }
}

/* Output mock — miniature of the real recording-page: a back-button +
   title + meta bar on top, markdown body below. Same translucent recipe
   as the live result window so it reads as a real screenshot. */
.prompt-mock {
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: oklch(0.18 0.006 82);
  overflow: hidden;
  font-family: var(--font-display);
}

/* Copy button mock - mirrors the desktop recording view's round accent-blue
   puck at the bottom-right. */
.prompt-mock__run {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--bg);
  cursor: default;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  animation: prompt-mock-run-breathe 2.6s ease-in-out infinite;
}
@keyframes prompt-mock-run-breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), 0 0 0 0   rgba(142, 197, 255, 0.45); }
  50%      { transform: scale(1.05); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(142, 197, 255, 0);    }
}
.prompt-mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid oklch(1 0 0 / 0.05);
}
.prompt-mock__back {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px 4px 7px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: oklch(1 0 0 / 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
}
.prompt-mock__heading {
  display: flex; flex-direction: column;
  min-width: 0;
}
.prompt-mock__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prompt-mock__meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0;
}

.prompt-mock__body {
  padding: 12px 16px 48px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-mock__caret {
  display: inline-block;
  width: 5px; height: 0.95em;
  background: var(--blue);
  border-radius: 1px;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0 } }

/* Section title can host a kbd inline (e.g. "Press fn…"). */
.title-kbd {
  display: inline-block;
  vertical-align: 6px;
  margin: 0 4px 0 2px;
  padding: 4px 10px 5px;
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  font-family: var(--font-mono);
  color: var(--text);
  background: oklch(1 0 0 / 0.06);
  border: 1px solid var(--line-bright);
  border-bottom-width: 2px;
  border-radius: 8px;
}

/* ─── Install guide ───────────────────────────────────────────────── */
.install { border-top: 1px solid var(--line); }
.install-page .install { border-top: 0; }
.install--standalone {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.install-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: oklch(0.22 0.006 82);
  overflow: hidden;
}
.install-card__visual {
  height: 250px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.install-card h2,
.install-card h3 {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--text);
}
.install-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.dmg-mock {
  width: min(100%, 280px);
  height: 170px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background: oklch(0.18 0.006 82);
  position: relative;
  padding-top: 24px;
  text-align: center;
}
.dmg-mock__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.dmg-mock__hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.dmg-mock__row {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dmg-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.dmg-icon--peer {
  background: oklch(0.12 0.006 82);
  border: 1px solid oklch(1 0 0 / 0.18);
}
.dmg-icon--peer img {
  width: 30px;
  height: 30px;
}
.dmg-icon--apps {
  background: oklch(0.74 0.03 250);
  border-radius: 9px;
}
.dmg-icon--apps span {
  width: 24px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid oklch(0.18 0.006 82 / 0.75);
  border-top-width: 7px;
}
.dmg-arrow {
  width: 74px;
  height: 7px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.6);
  position: relative;
}
.dmg-arrow::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 22px solid oklch(1 0 0 / 0.92);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}

.finder-mock {
  width: min(100%, 280px);
  height: 170px;
  border-radius: 14px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background: oklch(0.20 0.006 82);
  position: relative;
  overflow: hidden;
}
.finder-mock__sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 58px;
  background: oklch(1 0 0 / 0.05);
  border-right: 1px solid oklch(1 0 0 / 0.08);
}
.finder-mock__title {
  position: absolute;
  left: 74px;
  top: 18px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.finder-mock__app {
  position: absolute;
  left: 116px;
  top: 56px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 11px;
  z-index: 2;
}
.finder-mock__app img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.context-menu {
  position: absolute;
  right: 16px;
  top: 30px;
  width: 112px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(0.28 0.006 82);
  display: grid;
  gap: 2px;
}
.context-menu span {
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}
.context-menu span:first-child {
  background: var(--blue);
  color: var(--ink);
  font-weight: 700;
}
.launch-click {
  position: absolute;
  right: 22px;
  top: 70px;
  width: 70px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  background: var(--blue);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset,
              0 10px 24px oklch(0 0 0 / 0.28);
  z-index: 1;
}

.gatekeeper-mock {
  width: min(100%, 280px);
  min-height: 170px;
  border-radius: 26px;
  border: 1px solid oklch(1 0 0 / 0.18);
  background: oklch(0.15 0.006 82);
  padding: 20px 20px 18px;
}
.gatekeeper-mock__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.86 0.18 86);
  color: oklch(0.16 0.006 82);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
}
.gatekeeper-mock__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.gatekeeper-mock__copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.gatekeeper-mock__buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.gatekeeper-mock__buttons span,
.gatekeeper-mock__buttons strong {
  flex: 1;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.gatekeeper-mock__buttons span {
  background: oklch(1 0 0 / 0.08);
  color: var(--muted);
}
.gatekeeper-mock__buttons strong {
  background: var(--blue);
  color: var(--ink);
}

.settings-mock {
  width: min(100%, 300px);
  min-height: 176px;
  border-radius: 18px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background:
    linear-gradient(180deg, oklch(0.31 0.007 82), oklch(0.21 0.006 82));
  box-shadow: 0 18px 44px oklch(0 0 0 / 0.40);
  padding: 14px;
}
.settings-mock__chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.settings-mock__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.18);
}
.settings-mock__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.settings-mock__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.09);
}
.settings-mock__row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text);
}
.settings-mock__row span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.settings-mock__row b {
  display: inline-grid;
  place-items: center;
  min-width: 94px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.privacy-pane,
.privacy-mini {
  border: 1px solid oklch(1 0 0 / 0.13);
  background: oklch(0.24 0.007 82);
  box-shadow: 0 18px 44px oklch(0 0 0 / 0.40);
}
.privacy-pane {
  width: min(100%, 312px);
  border-radius: 20px;
  padding: 14px;
}
.privacy-pane__nav {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.privacy-pane__nav span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.20);
}
.privacy-pane__title,
.privacy-mini__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.012em;
}
.privacy-pane__title {
  font-size: 15px;
}
.privacy-pane__copy {
  max-width: 24ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.privacy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid oklch(1 0 0 / 0.10);
  color: var(--text-2);
}
.privacy-row--compact {
  margin-top: 10px;
  padding-top: 10px;
}
.privacy-row__app {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.privacy-row__app img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.privacy-row b {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
  position: relative;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset;
}
.privacy-row b::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
}
.privacy-stack {
  width: min(100%, 312px);
  display: grid;
  gap: 10px;
}
.privacy-mini {
  border-radius: 16px;
  padding: 13px 14px 12px;
}
.privacy-mini__title {
  font-size: 14px;
}

/* ─── Use cases ─────────────────────────────────────────────────────
   No cards. A clean vertical list of concrete tasks, separated by
   hairlines, with a small accent arrow on the left and a category
   tag on the right. Reads as a real menu of what Peer does. */
.cases__title { white-space: nowrap; }

.cases-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cases-row {
  display: grid;
  grid-template-columns: 28px minmax(0, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out);
}
.cases-row:hover {
  background: oklch(1 0 0 / 0.03);
  padding-left: 14px;
}
.cases-row:hover .cases-row__arrow {
  color: var(--blue);
  transform: translateX(2px);
}

.cases-row__arrow {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--dim);
  font-weight: 500;
  transition: color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.cases-row__lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cases-row__detail {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--muted);
  min-width: 0;
}
.cases-row__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}

/* ─── Final CTA ───────────────────────────────────────────────────── */
.section--cta {
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta__title {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
}
.cta__hl { color: var(--blue); }
.cta__actions {
  display: inline-flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: center;
}
.cta__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--page-pad);
}
.footer__row {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .walk { grid-template-columns: 1fr; }
  .walk-stage__visual { height: 220px; }
  .hero__title { font-size: clamp(40px, 9vw, 68px); gap: 14px; }
  .hero__mark  { width: clamp(48px, 11vw, 72px); height: clamp(48px, 11vw, 72px); }
}

@media (max-width: 1180px) {
  .install-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-window__bar { grid-template-columns: 1fr auto; }
  .app-window__tabs { display: none; }
  .cases__title { white-space: normal; }
  .cases-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px 6px;
  }
  .cases-row__detail {
    grid-column: 2 / 4;
    grid-row: 2;
    font-size: 15px;
  }
  .cases-row__tag {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  :root { --page-pad: 18px; }
  .hero { padding-top: 48px; }
  .hero__title { white-space: normal; flex-direction: column; gap: 8px; }
  .button { width: 100%; justify-content: center; }
  .topbar .button { width: auto; }
  .hero__actions { width: 100%; }
  .install-steps { grid-template-columns: 1fr; }
  .cases-row__tag { display: none; }
  .footer__row {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* ─── Lead modal ──────────────────────────────────────────────────────
   Contact-sales modal — scrim sits behind a glass panel that mirrors
   the .app-window mockup. */
html.lead-modal-open { overflow: hidden; }

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lead-modal[hidden] { display: none; }

.lead-modal__scrim {
  position: absolute;
  inset: 0;
  background: oklch(0.13 0 0 / 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lead-modal-scrim 200ms var(--ease-out);
}
@keyframes lead-modal-scrim {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lead-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px 26px;
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, oklch(0.27 0.008 82 / 0.92), oklch(0.18 0.005 82 / 0.94));
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.08) inset,
    0 40px 80px oklch(0 0 0 / 0.55),
    0 8px 28px oklch(0 0 0 / 0.35);
  animation: lead-modal-rise 220ms var(--ease-out);
}
.lead-modal__panel--compact { width: min(100%, 440px); }
@keyframes lead-modal-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.lead-modal__close:hover {
  background: oklch(1 0 0 / 0.10);
  color: var(--text);
}

.lead-modal__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--text);
}
.lead-modal__lede {
  margin: 0 0 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-form__label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.lead-form__input {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.lead-form__input:focus {
  outline: none;
  border-color: var(--blue);
  background: oklch(1 0 0 / 0.07);
}
/* Safari/Chrome paint autofilled inputs with an opaque pale-yellow/white
   background that ignores our dark theme. Override with an inset shadow
   matching the panel tint and force the text color to stay light. */
.lead-form__input:-webkit-autofill,
.lead-form__input:-webkit-autofill:hover,
.lead-form__input:-webkit-autofill:focus,
.lead-form__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px oklch(0.24 0.007 82) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
.lead-form__input--area {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.lead-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form__status {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}
.lead-form__status--error { color: var(--red-2); }
.lead-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.lead-form__actions .button { height: 44px; padding: 0 18px; font-size: 14px; }
.lead-form__actions .button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

@media (max-width: 520px) {
  .lead-modal { padding: 14px; }
  .lead-modal__panel { padding: 26px 20px 22px; }
  .lead-form__actions { flex-direction: column-reverse; }
  .lead-form__actions .button { width: 100%; }
}
