/* ============================================================================
   Landing framework: design system + components.
   Palette/type/shadows/motion are tokens in :root (swap them to re-skin).
   Border convention: components draw their hairline from --shadow-card /
   --shadow-control (which begin with a 0 0 0 1px ring), with `border: 0`.
   A plain hairline `border: … var(--hairline)` is only for row dividers that
   have no shadow (fact rows, roadmap, feature-card faces).
   ========================================================================= */
:root {
  color-scheme: light;
  /* loser.app re-skin: monochrome warm-gray + a single blood-crimson accent.
     Crimson is reserved for stakes / danger / the primary CTA only. */
  --ink: #1c1b19;
  --ink-2: #57554e;
  --ink-3: #6a675e; /* WCAG-safe mute */
  --hairline: rgba(28, 27, 25, 0.13); /* ~= #dedbd4 line */
  --crimson: #c8102e; /* the logo dot ONLY */
  --accent: var(--ink); /* monochrome: no accent color anywhere except the logo dot */
  --red: var(--ink);
  --control-bg: #ffffff;
  --pill-bg: #ffffff;
  --tabs-bg: rgba(28, 27, 25, 0.06);
  --bg: #f5f4f0;
  --font-sans:
    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:
    "Space Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --tracking: -0.01em;
  --shadow-card:
    0 0 0 1px rgba(45, 36, 20, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(45, 36, 20, 0.04), 0 6px 16px rgba(45, 36, 20, 0.06);
  --shadow-control:
    0 0 0 1px rgba(45, 36, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(45, 36, 20, 0.08);
  --shadow-control-hover:
    0 0 0 1px rgba(45, 36, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(45, 36, 20, 0.1);
  --shadow-card-hover:
    0 0 0 1px rgba(45, 36, 20, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(45, 36, 20, 0.05), 0 10px 24px rgba(45, 36, 20, 0.08);
  --shadow-pill:
    0 0 0 1px rgba(45, 36, 20, 0.07), 0 1px 2px rgba(45, 36, 20, 0.07);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bloom: cubic-bezier(0.16, 1.02, 0.3, 1);
  --ease-focus: cubic-bezier(0.2, 0.85, 0.25, 1);
  --ease-flip: cubic-bezier(0.77, 0, 0.175, 1);
  --tab-slide: 0.3s var(--ease-smooth);
  --fade: 0.22s var(--ease-out);
  --radius-sm: 8px;
  --radius-md: 11px;
}
@font-face {
  font-family: Inter Fallback;
  src: local("Arial");
  size-adjust: 107.06%;
  ascent-override: 89.77%;
  descent-override: 22.28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: JetBrains Mono Fallback;
  src: local("Menlo");
  size-adjust: 100.5%;
  ascent-override: 77%;
  descent-override: 22%;
  line-gap-override: 0%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  width: 100%;
  min-width: 0;
  max-width: 440px;
  padding: 56px 24px;
}
@media (max-width: 480px) {
  main {
    padding: 36px 18px 44px;
  }
}

/* section entrance stagger (top-level children fade up on load) */
@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: enter 0.6s var(--ease-out) both;
  }
  main > :nth-child(1) { animation-delay: 0ms; }
  main > :nth-child(2) { animation-delay: 80ms; }
  main > :nth-child(3) { animation-delay: 0.16s; }
  main > :nth-child(4) { animation-delay: 0.24s; }
  main > :nth-child(5) { animation-delay: 0.32s; }
  main > :nth-child(6) { animation-delay: 0.4s; }
  main > :nth-child(7) { animation-delay: 0.48s; }
  main > :nth-child(8) { animation-delay: 0.56s; }
  main > :nth-child(9) { animation-delay: 0.64s; }
  main > :nth-child(10) { animation-delay: 0.72s; }
  main > :nth-child(11) { animation-delay: 0.8s; }
  main > :nth-child(12) { animation-delay: 0.88s; }
  main > :nth-child(n + 13) { animation-delay: 0.96s; }
}
@keyframes enter {
  0% { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a {
  -webkit-tap-highlight-color: transparent;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #2d241466;
  border-radius: var(--radius-sm);
}
::selection {
  background: #2d24141f;
  color: var(--ink);
}
.lockable {
  display: inline-flex;
  justify-content: center;
}
kbd {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  border-radius: 5px;
  padding: 2px 5px 3px;
  box-shadow: var(--shadow-pill);
  vertical-align: 1px;
}

/* shared section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking);
  color: var(--ink-2);
}
.section-note {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.section-foot {
  margin: 12px 2px 0;
  font: 400 11px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  text-wrap: pretty;
}
.section-foot kbd {
  font-size: 10px;
  padding: 1px 4px 2px;
}
.section-foot a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent);
  text-underline-offset: 2px;
  transition: color 0.14s ease, text-decoration-color 0.2s var(--ease-out);
}
.section-foot a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
/* above phone widths, keep the masthead on a single row: the download button's
   "Coming soon" swap makes the meta truncate rather than wrap the bar in two.
   (Under 481px the base wrap still lets the button drop below the brand.) */
@media (min-width: 481px) {
  .top {
    flex-wrap: nowrap;
  }
}
.top h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.version {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0; /* allow the group to shrink so the meta yields space before the row wraps */
}
.meta {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  /* display-only: truncate before letting the download button's "Coming soon"
     swap push the topbar onto two lines */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mute-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-3);
  transition: color 0.12s ease, transform 0.12s ease;
}
.mute-btn:hover {
  color: var(--ink);
}
.mute-btn:active {
  transform: scale(0.92);
}
.mute-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}
.mute-btn .ic-off {
  display: none;
}
.mute-btn.muted .ic-on {
  display: none;
}
.mute-btn.muted .ic-off {
  display: block;
}
.dl-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-control);
  transition: color 0.12s ease, transform 0.12s ease, box-shadow 0.16s var(--ease-out);
}
.dl-btn:hover {
  box-shadow: var(--shadow-control-hover);
}
.dl-btn:active {
  transform: scale(0.96);
}
.dl-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: none;
}
.dl-icon svg {
  width: auto;
  height: 12px;
  display: block;
}
.dl-btn .lockable {
  min-width: 6.6ch;
  justify-content: flex-start;
}

/* ---------- tagline ---------- */
.tagline {
  margin: 0 0 20px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- marquee ---------- */
.marquee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  min-width: 0;
}
.marquee-label {
  flex: none;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover {
  animation-play-state: paused;
}
.marquee-track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}
.marquee-item {
  white-space: nowrap;
  font: 400 11px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  transition: color 0.16s ease;
}
.marquee-item b {
  font-weight: 560;
  color: var(--ink-2);
  transition: color 0.16s ease;
}
.marquee-item:hover {
  color: var(--ink-2);
}
.marquee-item:hover b {
  color: var(--ink);
}
@keyframes marquee {
  to { transform: translate(-50%); }
}

/* ---------- video demo (one card, always open) ---------- */
.video-demo {
  margin-bottom: 40px;
}
/* the single card owns the border; the frame lives directly inside it */
.vd-card {
  position: relative;
  background: var(--control-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out);
}
.vd-card:hover {
  box-shadow: var(--shadow-card-hover);
}
/* ▶ play overlay: the always-open frame's play button (hover + click cue) */
.vd-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}
.vd-play-btn .vd-ph-badge {
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.vd-play-btn:active .vd-ph-badge {
  transform: scale(0.95);
}
.vd-play-btn:focus-visible .vd-ph-badge {
  box-shadow: 0 0 0 3px rgba(45, 36, 20, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .vd-play-btn:hover .vd-ph-badge {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(45, 36, 20, 0.28);
  }
}
/* once the video is actually playing, the overlay steps aside for native controls */
.video-demo.playing .vd-play-btn {
  opacity: 0;
  visibility: hidden;
}
.vd-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.vd-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.vd-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  background: var(--bg);
  color: var(--ink-3);
}
/* once a real video loads, the frame reveals it */
.video-demo.has-video .vd-placeholder {
  display: none;
}
.vd-ph-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 3px 10px rgba(45, 36, 20, 0.22);
}
.vd-ph-badge svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 2px;
}
.vd-ph-text {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
}

/* (the "nobody wants to be the loser" line now lives in the closing CTA title) */

/* ---------- interactive demo stage (shell) ---------- */
.stage-wrap {
  margin-bottom: 40px;
}
.stage {
  position: relative;
  aspect-ratio: 1560 / 1014;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hairline);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.stage.tool-spotlight {
  cursor: none;
}
.ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fx-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 7, 11, 0.64) 0%, rgba(10, 11, 16, 0.52) 58%, rgba(14, 15, 22, 0.52) 100%);
  backdrop-filter: blur(4px) saturate(1.05);
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.stage.open .scrim {
  opacity: 1;
}
.hud {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.hud-chip {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: #fff;
  background: rgba(28, 28, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
}
.turn-off {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(28, 28, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font: 500 10px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  padding: 6px 10px 6px 8px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), background-color 0.14s ease;
}
.turn-off svg {
  width: 11px;
  height: 11px;
}
.turn-off:hover {
  background: rgba(28, 28, 32, 0.82);
}
.turn-off:active {
  transform: scale(0.96);
}
.stage.has-tool .turn-off {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage.open .turn-off {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 0;
  background: var(--control-bg);
  color: var(--ink);
  font: 500 13px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  padding: 11px 17px;
  border-radius: 999px;
  box-shadow: var(--shadow-control);
  transition: opacity 0.24s var(--ease-out), box-shadow 0.16s ease, transform 0.12s ease;
}
@media (hover: hover) and (pointer: fine) {
  .prompt:hover {
    box-shadow: var(--shadow-control-hover);
  }
}
.prompt:active {
  transform: translate(-50%, -50%) scale(0.97);
}
.prompt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(28, 26, 23, 0.2);
  opacity: 0;
  pointer-events: none;
  animation: prompt-pulse 2.8s var(--ease-out) infinite;
}
@keyframes prompt-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.16); }
}
.stage.open .prompt,
.stage.has-tool .prompt {
  opacity: 0;
  pointer-events: none;
}
.stage.open .prompt::after,
.stage.has-tool .prompt::after {
  animation-play-state: paused;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font: 600 11px/1 var(--font-sans);
  color: #fff;
  background: rgba(28, 28, 32, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- fact rows ---------- */
.rows {
  margin-bottom: 44px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--hairline);
}
.row:first-child {
  border-top: 0;
}
.row:last-child {
  border-bottom: 0;
}
.row-name {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.row-value {
  font: 560 13px/1.3 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-align: right;
}

/* ---------- features (flip cards) ---------- */
.features {
  margin-bottom: 44px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 8px;
}
.feature-card {
  position: relative;
  height: 76px;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  perspective: 700px;
  transition:
    height 0.46s var(--ease-flip),
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
/* left card widens right (pushes neighbours); middle/right grow taller only
   when the text overflows the flat card */
.feature-card.flipped.expand-right {
  grid-column: span 2;
}
.feature-card.flipped.expand-down {
  height: 148px;
}
.fc-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.46s var(--ease-flip);
}
.feature-card.flipped .fc-inner {
  transform: rotateY(180deg);
}
.fc-front,
.fc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(55, 45, 25, 0.025);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.fc-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px 13px;
}
.fc-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 13px;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .fc-front,
  .feature-card:hover .fc-back {
    border-color: #2d241426;
    background: rgba(55, 45, 25, 0.05);
  }
}
/* opaque + lifted while open (after :hover so it wins under the pointer) */
.feature-card.flipped .fc-front,
.feature-card.flipped .fc-back,
.feature-card.flipped:hover .fc-front,
.feature-card.flipped:hover .fc-back {
  background: #fff;
  border-color: var(--hairline);
  box-shadow: 0 14px 34px -10px rgba(30, 24, 12, 0.26);
}
.feature-card:focus-visible {
  outline: none;
}
.feature-card:focus-visible .fc-inner {
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #2d241466;
}
.feature-grid.stagger .feature-card {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.feature-grid.stagger.in .feature-card {
  opacity: 1;
  transform: none;
}
.fc-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}
.fc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fc-name {
  font: 560 11.5px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.fc-name-sm {
  font: 600 10.5px/1.2 var(--font-sans);
  text-align: left;
  text-wrap: pretty;
}
.fc-desc {
  font: 400 10px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-align: left;
  text-wrap: pretty;
}
@media (max-width: 420px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- video features (flip → video clip) ---------- */
.vfeatures {
  margin-bottom: 44px;
}
.vfeature-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column so an opened card expands full-width, like the video demo, with no grid gaps */
  align-items: start;
  gap: 8px;
}
.vfeature-card {
  position: relative;
  height: 76px;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  perspective: 800px;
  transition:
    height 0.46s var(--ease-flip),
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
.vfeature-card.flipped {
  height: 300px; /* grows tall for a big video, pushing the cards below down */
  z-index: 2;
}
.vfc-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.46s var(--ease-flip);
}
.vfeature-card.flipped .vfc-inner {
  transform: rotateY(180deg);
}
.vfc-front,
.vfc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(55, 45, 25, 0.025);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.vfc-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px 13px;
}
.vfc-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}
.vfc-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff; /* matches the video-demo frame fill */
  overflow: hidden;
}
.vfc-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.vfc-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, #fffefb 0%, #f4f1ea 100%);
}
.vfc-ph-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 3px 10px rgba(45, 36, 20, 0.22);
}
.vfc-ph-badge svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  margin-left: 2px;
}
.vfeature-card.has-video .vfc-ph {
  display: none;
}
.vfc-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px 10px;
}
.vfc-cap b {
  font: 600 11px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.vfc-cap span {
  font: 400 10px/1.35 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .vfeature-card:hover .vfc-front {
    border-color: #2d241426;
    background: rgba(55, 45, 25, 0.05);
  }
}
/* opaque + lifted while open (after :hover so it wins under the pointer) */
.vfeature-card.flipped .vfc-front,
.vfeature-card.flipped .vfc-back,
.vfeature-card.flipped:hover .vfc-front,
.vfeature-card.flipped:hover .vfc-back {
  background: #fff;
  border-color: var(--hairline);
  box-shadow: 0 14px 34px -10px rgba(30, 24, 12, 0.26);
}
.vfeature-card:focus-visible {
  outline: none;
}
.vfeature-card:focus-visible .vfc-inner {
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #2d241466;
}
.vfeature-grid.stagger .vfeature-card {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.vfeature-grid.stagger.in .vfeature-card {
  opacity: 1;
  transform: none;
}
@media (max-width: 480px) {
  .vfeature-grid {
    grid-template-columns: 1fr;
  }
  .vfeature-card.flipped {
    height: 270px;
  }
}

/* ---------- pricing ---------- */
.pricing {
  margin-bottom: 44px;
}
.tabs {
  position: relative;
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: var(--tabs-bg);
}
.tab {
  appearance: none;
  border: 0;
  font: 500 11.5px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  background: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: color 0.16s var(--ease-out);
}
.tab:hover,
.tab.active {
  color: var(--ink);
}
@supports (anchor-name: --a) {
  .tab.active {
    anchor-name: --tab;
  }
  .tab:is(:hover, :focus-visible) {
    anchor-name: --tab;
  }
  .tabs:has(.tab:is(:hover, :focus-visible)) .tab.active:not(:hover, :focus-visible) {
    anchor-name: none;
  }
  .tabs:before {
    content: "";
    position: absolute;
    z-index: 0;
    position-anchor: --tab;
    inset: anchor(top) anchor(right) anchor(bottom) anchor(left);
    border-radius: var(--radius-sm);
    background: var(--pill-bg);
    box-shadow: var(--shadow-pill);
    transition: inset var(--tab-slide);
  }
}
@supports not (anchor-name: --a) {
  .tab.active {
    background: var(--pill-bg);
    box-shadow: var(--shadow-pill);
  }
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  /* display card (not clickable) : the features-card tint + a flat hairline,
     never the white "control" fill (white is reserved for clickable things) */
  background: rgba(55, 45, 25, 0.025);
  border-radius: 12px;
  padding: 14px 13px 13px;
  box-shadow: 0 0 0 1px var(--hairline);
  transition: box-shadow 0.2s var(--ease-out), transform 0.14s ease;
}
.price-card:hover {
  box-shadow: 0 0 0 1px rgba(45, 36, 20, 0.2);
}
/* featured tier: inked-black fill (black is fine as emphasis on the featured plan + the CTA) */
.price-card.featured {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(28, 26, 23, 0.9), 0 14px 30px -10px rgba(30, 24, 12, 0.4);
}
/* plan name + optional badge on one line (badge sits just right of the title,
   with a deliberate gap; min-height keeps prices aligned across cards) */
.pc-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 16px;
}
.pc-badge {
  flex: none;
  font: 600 8.5px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 3px 7px;
}
.pc-name {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: inherit;
}
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.pc-price {
  font: 700 22px/1 var(--font-sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: inherit;
  transition: opacity 0.18s var(--ease-out);
}
.pc-price.swap {
  opacity: 0;
}
.pc-period {
  font: 400 10.5px/1 var(--font-mono);
  color: var(--ink-3);
}
.price-card.featured .pc-period {
  color: rgba(255, 255, 255, 0.55);
}
.pc-desc {
  font: 400 11px/1.45 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
  min-height: 31px;
}
.price-card.featured .pc-desc {
  color: rgba(255, 255, 255, 0.72);
}
.pc-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pc-feats li {
  position: relative;
  padding-left: 15px;
  font: 400 11px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
.price-card.featured .pc-feats li {
  color: rgba(255, 255, 255, 0.82);
}
.pc-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6.5px;
  width: 5px;
  height: 3px;
  border-left: 1.4px solid var(--ink-3);
  border-bottom: 1.4px solid var(--ink-3);
  transform: rotate(-45deg);
}
.price-card.featured .pc-feats li::before {
  border-color: rgba(255, 255, 255, 0.6);
}
.pc-cta {
  appearance: none;
  border: 0;
  margin-top: 4px;
  width: 100%;
  font: 560 12px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  box-shadow: var(--shadow-control);
  transition: box-shadow 0.16s var(--ease-out), transform 0.12s ease;
}
.pc-cta:hover {
  box-shadow: var(--shadow-control-hover);
}
.pc-cta:active {
  transform: scale(0.97);
}
.price-card.featured .pc-cta {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
/* two-tier layout (Free + Pro) above the usage slider */
.price-grid.price-grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
}

/* ---------- usage slider (a per-seat plan; shared with the /pricing gallery) ---------- */
.pv-slider {
  background: var(--control-bg);
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out);
}
/* main-page Team card: a recessed "well" instead of a raised card. It sinks into
   the page (soft inset shadow + the system track tint) rather than popping like
   the Free/Pro cards above, reading honestly as a control you adjust. No white
   field on the container; the range + CTA inside keep their interactive look.
   Hairline is an inset ring (border:0), never a doubled CSS border. */
#price-slider {
  background: var(--tabs-bg);
  box-shadow:
    inset 0 2px 4px rgba(45, 36, 20, 0.07),
    inset 0 0 0 1px var(--hairline);
}
.pvs-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pvs-plan {
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.pvs-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.pvs-amount {
  font: 700 26px/1 var(--font-sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transform-origin: right center;
  transition: transform 0.18s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .pvs-amount.pop {
    transform: scale(1.08);
  }
}
.pvs-per {
  font: 400 11px/1 var(--font-mono);
  color: var(--ink-2);
}
.pvs-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--tabs-bg);
  outline: none;
  margin: 4px 0 2px;
}
.pvs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(28, 26, 23, 0.3);
  cursor: grab;
  transition: transform 0.12s ease;
}
.pvs-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
}
.pvs-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(28, 26, 23, 0.3);
  cursor: grab;
}
.pvs-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 16px;
  font: 400 11.5px/1.3 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
}
.pvs-labels b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pvs-feats {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.pvs-feats li {
  position: relative;
  padding-left: 15px;
  font: 400 11.5px/1.4 var(--font-sans);
  color: var(--ink-2);
}
.pvs-feats li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg);
}
@media (max-width: 560px) {
  .price-grid,
  .price-grid.price-grid-2 {
    grid-template-columns: 1fr;
  }
  .pc-desc {
    min-height: 0;
  }
}

/* ---------- roadmap (accordion) ---------- */
.roadmap {
  margin-bottom: 8px;
}
.roadmap-grid {
  display: flex;
  flex-direction: column;
}
.roadmap-phase {
  border-top: 1px solid var(--hairline);
  transition: border-color 0.2s var(--ease-out);
}
.roadmap-phase:last-child {
  border-bottom: 1px solid var(--hairline);
}
.roadmap-phase:hover,
.roadmap-phase:hover + .roadmap-phase {
  border-top-color: #2d241426;
}
/* scroll-in: phases fade up one after another (border-color kept for hover) */
@media (prefers-reduced-motion: no-preference) {
  .roadmap-grid.stagger .roadmap-phase {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.5s var(--ease-out) calc(var(--i, 0) * 55ms),
      transform 0.5s var(--ease-out) calc(var(--i, 0) * 55ms),
      border-color 0.2s var(--ease-out);
  }
  .roadmap-grid.stagger.in .roadmap-phase {
    opacity: 1;
    transform: none;
  }
}
.phase-head {
  display: flex;
  align-items: center;
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  padding: 16px 2px;
  cursor: pointer;
  text-align: left;
}
.phase-dot {
  flex: none;
  margin-right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.6px solid var(--ink-3);
}
.roadmap-phase.done .phase-dot {
  background: var(--ink);
  border-color: var(--ink);
}
.roadmap-phase.now .phase-dot {
  border-color: var(--ink);
  border-style: dashed;
}
/* animated status markers (ported from the Workbox roadmap): the main roadmap
   uses these; the static .phase-dot above is kept for the /roadmap gallery. The
   "now" phase's arc spins; the marker crossfades to a "−" when the phase opens. */
.phase-status {
  flex: none;
  margin-right: 12px;
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.phase-status svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mk-closed {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.mk-open {
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}
.roadmap-phase.open .mk-closed {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}
.roadmap-phase.open .mk-open {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.roadmap-phase.done .phase-status,
.roadmap-phase.now .phase-status {
  color: var(--ink);
}
.roadmap-phase.next .phase-status {
  color: var(--ink-2);
}
.roadmap-phase.later .phase-status {
  color: var(--ink-3);
}
.roadmap-phase.now .mk-closed path:last-child {
  transform-origin: 10px 10px;
  animation: road-spin 2.4s linear infinite;
}
@keyframes road-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-phase.now .mk-closed path:last-child {
    animation: none;
  }
  .phase-status svg {
    transition: opacity 0.2s ease;
    transform: none;
  }
}
.phase-label {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 60px;
  flex: none;
  margin-right: 4px;
}
.roadmap-phase.done .phase-label,
.roadmap-phase.now .phase-label {
  color: var(--ink);
}
.phase-title {
  flex: 1;
  font: 500 13.5px/1 var(--font-sans);
  color: var(--ink);
  letter-spacing: var(--tracking);
}
.phase-count {
  font: 500 12px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  margin-left: 12px;
}
.phase-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  margin-left: 12px;
  flex: none;
  transition: transform 0.4s var(--ease-smooth), color 0.2s var(--ease-out);
}
.roadmap-phase.open .phase-chevron {
  transform: rotate(180deg);
  color: var(--ink-2);
}
.phase-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease-out);
}
.roadmap-phase.open .phase-body {
  grid-template-rows: 1fr;
}
.phase-content {
  overflow: hidden;
}
.phase-list {
  list-style: none;
  margin: 0;
  padding: 0 2px 18px 76px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-list li {
  font: 400 13px/1.5 var(--font-sans);
  color: var(--ink-2);
  letter-spacing: var(--tracking);
  position: relative;
  padding-left: 16px;
  text-wrap: pretty;
}
.phase-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* ---------- how it works (numbered steps) ---------- */
.steps {
  margin-bottom: 44px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px 2px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
/* connector line joining the numbered badges (masked by the opaque badges) */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 27px;
  bottom: -27px;
  width: 1px;
  background: var(--hairline);
  transform-origin: top;
}
.step-num {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(28, 26, 23, 0.22);
  font: 600 10.5px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #fff;
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.step-ic {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.step-ic svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-desc {
  font: 400 12.5px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
/* scroll-in: steps fade up, connector lines draw downward */
.steps-list.stagger .step {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.steps-list.stagger.in .step {
  opacity: 1;
  transform: none;
}
.steps-list.stagger .step::before {
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.steps-list.stagger.in .step::before {
  transform: scaleY(1);
}

/* ---------- testimonials (quote cards) ---------- */
.testimonials {
  margin-bottom: 44px;
}
.tm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.tm-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  background: var(--control-bg);
  border-radius: 12px;
  padding: 14px 13px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out), opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.tm-card:hover {
  box-shadow: var(--shadow-card-hover);
}
/* featured pull-quote spans the full width with larger type */
.tm-card.featured {
  grid-column: 1 / -1;
  padding: 18px 17px;
}
.tm-card.featured .tm-quote {
  font-size: 15px;
  line-height: 1.55;
  max-width: 46ch;
}
.tm-quote {
  margin: 0;
  flex: 1;
  font: 400 12.5px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-wrap: pretty;
}
.tm-cite {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tm-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--tabs-bg);
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.tm-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tm-name {
  font: 600 11px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.tm-role {
  font: 400 10px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
/* scroll-in: cards fade up in sequence */
.tm-grid.stagger .tm-card {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.tm-grid.stagger.in .tm-card {
  opacity: 1;
  transform: none;
}
@media (max-width: 480px) {
  .tm-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- faq (accordion) ---------- */
.faq {
  margin-bottom: 44px;
}
.faq-grid {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--hairline);
  transition: border-color 0.2s var(--ease-out);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.faq-item:hover,
.faq-item:hover + .faq-item {
  border-top-color: #2d241426;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  padding: 15px 2px;
  cursor: pointer;
  text-align: left;
}
.faq-q-text {
  flex: 1;
  font: 500 13px/1.35 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-wrap: pretty;
}
/* +/− toggle (reads more "expandable" than a chevron) */
.faq-ic {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease-out);
}
.faq-ic::before,
.faq-ic::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.28s var(--ease-smooth), opacity 0.2s var(--ease-out);
}
.faq-ic::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-ic::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item.open .faq-ic {
  color: var(--ink-2);
}
.faq-item.open .faq-ic::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease-out);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a p {
  margin: 0;
  padding: 0 28px 16px 2px;
  font: 400 12.5px/1.55 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- closing CTA band ---------- */
.cta-band {
  margin: 8px 0 12px;
}
.cta-band-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: #fff;
  border-radius: 16px;
  padding: 34px 24px 30px;
  /* inked panel with a soft radial glow + inset top highlight (black as the closing accent) */
  background: radial-gradient(130% 120% at 50% -10%, #332f2b 0%, var(--ink) 55%);
  box-shadow: 0 0 0 1px rgba(28, 26, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px -14px rgba(30, 24, 12, 0.4);
}
/* faint brand glyph watermark, cropped into the corner */
.cta-glyph {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.cta-band-inner > :not(.cta-glyph) {
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.cta-title {
  margin: 0;
  font: 600 16px/1.35 var(--font-sans);
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.cta-title-sub {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.cta-sub {
  margin: 0;
  max-width: 32ch;
  font: 400 13px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: rgba(255, 255, 255, 0.66);
  text-wrap: pretty;
}
.cta-band-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  font: 560 13px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.16s var(--ease-out), transform 0.12s ease;
}
.cta-band-btn:hover {
  box-shadow: 0 7px 20px -5px rgba(0, 0, 0, 0.55);
}
.cta-band-btn:active {
  transform: scale(0.97);
}
.cta-band-btn .lockable {
  min-width: 6ch;
}
/* secondary ghost button (transparent, ringed) */
.cta-band-btn.ghost {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.cta-band-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.cta-band-btn[hidden] {
  display: none; /* class display:inline-flex would otherwise override [hidden] */
}
.cta-note {
  margin: 3px 0 0;
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: var(--tracking);
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- bento grid ---------- */
.bento {
  margin-bottom: 44px;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
/* not clickable → same subtle tint + hairline as the Feature cards, NOT the white control field */
.bento-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 104px;
  padding: 15px 14px;
  background: rgba(55, 45, 25, 0.025);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.bento-cell.span2 {
  grid-column: 1 / -1;
}
.bc-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}
.bc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bc-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bc-title {
  font: 600 13px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: inherit;
}
.bc-desc {
  font: 400 11.5px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
.bento-cell.stat {
  justify-content: center;
  gap: 4px;
}
.bc-stat {
  font: 600 13px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bc-stat-label {
  font: 400 11px/1.35 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) {
  .bento-cell:hover {
    border-color: #2d241426;
    background: rgba(55, 45, 25, 0.05);
  }
}

/* ---------- feature spotlights ---------- */
.spotlights-sec {
  margin-bottom: 44px;
}
.spotlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spotlight {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  background: var(--control-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out);
}
.spotlight:nth-child(even) {
  flex-direction: row-reverse;
}
@media (hover: hover) and (pointer: fine) {
  .spotlight:hover {
    box-shadow: var(--shadow-card-hover);
  }
}
.sp-media {
  position: relative;
  flex: none;
  width: 134px;
  height: 106px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f1ea;
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: grid;
  place-items: center;
}
.sp-mock {
  position: absolute;
  inset: 0;
}
.sp-mock svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotlight.has-media .sp-mock {
  display: none;
}
.sp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-title {
  font: 600 13px/1.2 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.sp-desc {
  margin: 0;
  font: 400 12px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
  /* never exceed two lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.sp-points {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-points li {
  position: relative;
  padding-left: 15px;
  font: 400 11px/1.35 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
}
.sp-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-45deg);
}
@media (max-width: 480px) {
  .spotlight,
  .spotlight:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
  }
  .sp-media {
    width: 100%;
    height: 128px;
  }
}

/* ---------- comparison (the old way vs) ---------- */
.compare {
  margin-bottom: 44px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.compare-col {
  border-radius: 12px;
  padding: 16px 15px;
}
/* old = flat + recessed (muted); new = a raised light card (the recommended path).
   Emphasis comes from muted-vs-crisp content + elevation, not a black fill. */
.compare-col.old {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.compare-col.new {
  background: var(--control-bg);
  box-shadow: var(--shadow-card);
}
.compare-head {
  display: block;
  margin-bottom: 13px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.compare-col.old .compare-head {
  color: var(--ink-3);
}
.compare-col.new .compare-head {
  color: var(--ink);
}
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-list li {
  position: relative;
  padding-left: 19px;
  font: 400 12px/1.35 var(--font-sans);
  letter-spacing: var(--tracking);
  text-wrap: pretty;
}
.compare-col.old li {
  color: var(--ink-2);
}
.compare-col.new li {
  color: var(--ink);
}
.compare-col.old li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink-3);
}
.compare-col.new li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(-45deg);
}
@media (max-width: 480px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- integrations ---------- */
.integrations {
  margin-bottom: 44px;
}
.intg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* flat hairline pills: display only, not the raised "clickable field" look */
.intg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  background: var(--control-bg);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--hairline);
  font: 500 12px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
/* real brand logo (simple-icons SVG) tinted to ink via CSS mask */
.intg-logo {
  flex: none;
  width: 17px;
  height: 17px;
  background-color: var(--ink-2);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.intg-chip.intg-more {
  padding: 7px 12px;
  background: none;
  box-shadow: none;
  color: var(--ink-3);
}

/* scroll-in stagger shared by the four grid sections above */
@media (prefers-reduced-motion: no-preference) {
  .bento-grid.stagger .bento-cell,
  .spotlights.stagger .spotlight,
  .compare-grid.stagger .compare-col,
  .intg-grid.stagger .intg-chip {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.5s var(--ease-out) calc(var(--i, 0) * 55ms),
      transform 0.5s var(--ease-out) calc(var(--i, 0) * 55ms),
      box-shadow 0.2s var(--ease-out);
  }
  .bento-grid.stagger.in .bento-cell,
  .spotlights.stagger.in .spotlight,
  .compare-grid.stagger.in .compare-col,
  .intg-grid.stagger.in .intg-chip {
    opacity: 1;
    transform: none;
  }
}

/* ---------- footer ---------- */
.footer2 {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.footer2 a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.14s ease, text-decoration-color 0.2s var(--ease-out);
}
.footer2 a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.f2-brand {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.f2-wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 12.5px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.f2-wordmark img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.f2-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  line-height: 1;
}

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .top-right {
    gap: 8px;
  }
  .tagline {
    margin-bottom: 28px;
  }
  .marquee-row {
    margin-bottom: 32px;
  }
  .rows {
    margin-bottom: 36px;
  }
  .footer2 {
    margin-top: 36px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
  .prompt::after {
    animation: none;
  }
  .feature-grid.stagger .feature-card {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .feature-card,
  .fc-inner,
  .turn-off,
  .stage.has-tool .turn-off,
  .stage.open .turn-off {
    transition: none;
    transform: none;
  }
  .vd-play-btn,
  .vd-play-btn .vd-ph-badge {
    transition: none;
  }
  /* flip cards crossfade instead of rotating */
  .feature-card.flipped .fc-inner {
    transform: none;
  }
  .fc-back {
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .fc-front {
    transition: opacity 0.2s ease;
  }
  .feature-card.flipped .fc-back {
    opacity: 1;
  }
  .feature-card.flipped .fc-front {
    opacity: 0;
  }
  /* video-feature cards: crossfade instead of rotating */
  .vfeature-grid.stagger .vfeature-card {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .vfeature-card,
  .vfc-inner {
    transition: none;
    transform: none;
  }
  .vfeature-card.flipped .vfc-inner {
    transform: none;
  }
  .vfc-back {
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .vfc-front {
    transition: opacity 0.2s ease;
  }
  .vfeature-card.flipped .vfc-back {
    opacity: 1;
  }
  .vfeature-card.flipped .vfc-front {
    opacity: 0;
  }
  .pc-price {
    transition: none;
  }
}

/* ============================================================================
   loser.app re-skin overrides
   Crimson (#c8102e) appears ONLY on stakes, danger, and the primary CTA.
   Appended after the base so these win; :root above carries palette + fonts.
   ========================================================================= */

/* ---- wordmark crimson dot (header + footer) ---- */
.wm-dot {
  color: var(--crimson);
}

/* ---- tagline lead line in crisp ink ---- */
.tagline b {
  color: var(--ink);
  font-weight: 600;
}

/* ---- header Download button: light (per the base), just the pill shape ---- */
.dl-btn {
  border-radius: 999px;
}

/* ---- STAKES marquee: ink, monochrome ---- */
.stakes-row .marquee-label {
  color: var(--ink);
}
.stakes-row .marquee-item b,
.stakes-row .marquee-item:hover b {
  color: var(--ink);
  font-weight: 700;
}

/* ---- closing CTA band: inked panel, neutral glow, white primary ---- */
.cta-band-inner {
  background: radial-gradient(130% 120% at 50% -10%, #2e2a26 0%, var(--ink) 52%);
}
.cta-glyph {
  color: rgba(255, 255, 255, 0.07);
}
#cta-band-btn {
  color: var(--ink);
  background: #fff;
}

/* ============================================================================
   Interactive demo = THE CONTRACT (frosted glass · draw-to-sign · hold-to-accept)
   ========================================================================= */
.stage {
  aspect-ratio: 5 / 4;
}
@media (max-width: 480px) {
  .stage {
    aspect-ratio: 4 / 5;
  }
}

/* centered contract layer, revealed on .stage.open */
.contract {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out);
}
.stage.open .contract {
  opacity: 1;
  pointer-events: auto;
}

/* frosted glass card */
.ct-card {
  box-sizing: border-box;
  width: min(340px, 100%);
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 15px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 18px 40px -16px rgba(40, 30, 25, 0.4),
    0 3px 10px -4px rgba(40, 30, 25, 0.18);
}
.ct-card[hidden] {
  display: none;
}
.ct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ct-label {
  font: 700 9.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ct-stake-tag {
  font: 700 8.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--tabs-bg);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 4px 6px;
  border-radius: 4px;
}
.ct-terms {
  margin: 0;
  font: 400 12.5px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
}
.ct-terms b {
  color: var(--ink);
  font-weight: 600;
}
.ct-terms .ct-stake {
  color: var(--ink);
  font-weight: 700;
}

/* signature surface */
.ct-sign {
  position: relative;
  height: 82px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
  overflow: hidden;
}
.ct-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.ct-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 12px/1 var(--font-sans);
  color: var(--ink-3);
  pointer-events: none;
}
.ct-hint[hidden] {
  display: none;
}
.ct-sign-line {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 1px;
  background: var(--hairline);
  pointer-events: none;
}
.ct-sign-cap {
  position: absolute;
  left: 14px;
  bottom: 8px;
  font: 400 8.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  pointer-events: none;
}

/* actions: ghost clear + ink→crimson hold-to-accept */
.ct-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.ct-clear {
  appearance: none;
  flex: none;
  border: 0;
  padding: 0 13px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font: 500 11.5px/1 var(--font-sans);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
  transition: color 0.14s ease, transform 0.1s ease;
}
.ct-clear:hover {
  color: var(--ink);
}
.ct-clear:active {
  transform: scale(0.96);
}
.ct-accept {
  position: relative;
  overflow: hidden;
  appearance: none;
  flex: 1;
  border: 0;
  height: 40px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.ct-accept:disabled {
  opacity: 0.4;
  cursor: default;
}
.ct-accept:active {
  transform: scale(0.99);
}
.ct-accept-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.12s linear;
}
.ct-accept.holding .ct-accept-fill {
  transform: scaleX(1);
  transition: transform 1s linear;
}
.ct-accept-label {
  position: relative;
  z-index: 1;
  font: 600 12.5px/1 var(--font-sans);
  letter-spacing: 0.02em;
}

/* signed confirmation */
.ct-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.ct-done[hidden] {
  display: none;
}
.ct-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--tabs-bg);
  box-shadow: inset 0 0 0 2px rgba(45, 36, 20, 0.35);
  transform: rotate(-8deg);
}
.ct-seal svg {
  width: 26px;
  height: 26px;
}
.ct-done-title {
  font: 700 18px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ct-done-sub {
  font: 400 12px/1 var(--font-mono);
  text-transform: lowercase;
  color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .ct-done:not([hidden]) .ct-seal {
    animation: ct-stamp 0.42s var(--ease-bloom) both;
  }
  .ct-done:not([hidden]) .ct-done-title,
  .ct-done:not([hidden]) .ct-done-sub {
    animation: enter 0.5s var(--ease-out) 0.12s both;
  }
}
@keyframes ct-stamp {
  0% {
    transform: rotate(-8deg) scale(1.5);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: rotate(-8deg) scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contract {
    transition: none;
  }
}
