@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/figtree-400.woff2") format("woff2");
}

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/figtree-500.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
}

:root {
  --canvas: #fbf8f4;
  --surface: #ffffff;
  --ink: #080912;
  --ink-soft: #6e6a64;
  --sand: #c5bcae;
  --olive: #666a54;
  --clay: #b5563f;
  --line: #f1f1f1;
  --radius-card: 20px;
  --radius-pill: 30px;
  --shadow: 0 8px 24px rgba(8, 9, 18, 0.06);
  --measure: 40rem;
  --page: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2.5rem, 42rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 1.25rem;
}

.wordmark {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.eyebrow {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1,
.display {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2,
.title {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lede,
.soft {
  color: var(--ink-soft);
}

.lede {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.hero {
  padding: 2.5rem 0 4.5rem;
  display: grid;
  gap: 3rem;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.btn:hover {
  background: #14151f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
}

.mock {
  --cycle: 7.5s;
  --surface-muted: #f9f9f9;
  width: min(100%, 22rem);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  padding: 1rem 1rem 1.15rem;
  background: var(--canvas);
  border: 1px solid #ddd6c9;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  contain: layout;
  overflow: hidden;
}

.mock-hud {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-exit,
.mock-undo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--ink);
}

.mock-exit {
  border-radius: 22px;
  background: var(--surface);
}

.mock-undo {
  opacity: 0.4;
}

.mock-exit svg,
.mock-undo svg {
  width: 16px;
  height: 16px;
}

.mock-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.mock-count,
.mock-bin {
  position: relative;
  overflow: hidden;
}

.mock-count {
  flex: 0 0 3.75rem;
  height: 1.15em;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.mock-bin {
  flex: 0 0 4.85rem;
  width: 4.85rem;
  height: 1.5rem;
}

.mock-count span,
.mock-bin span {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  white-space: nowrap;
  animation-duration: var(--cycle);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.mock-count span:nth-child(1) {
  animation-name: mock-tick-0;
}

.mock-count span:nth-child(2) {
  animation-name: mock-tick-1;
}

.mock-count span:nth-child(3) {
  animation-name: mock-tick-2;
}

.mock-bin span {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.mock-bin span:nth-child(1) {
  animation-name: mock-bin-0;
}

.mock-bin span:nth-child(2) {
  animation-name: mock-bin-1;
}

.mock-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #e6e0d6;
  overflow: hidden;
}

.mock-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sand);
  transform: scaleX(0.25);
  transform-origin: left center;
  animation: mock-progress var(--cycle) linear infinite;
}

.mock-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}

.mock-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
  will-change: transform;
  animation: mock-card var(--cycle) linear infinite, mock-layer var(--cycle) linear infinite;
}

.mock-card:nth-child(1) {
  --dir: 1;
  z-index: 3;
}

.mock-card:nth-child(2) {
  --dir: -1;
  z-index: 2;
  transform: scale(0.96);
  animation-delay: calc(var(--cycle) * -2 / 3), calc(var(--cycle) * -2 / 3);
}

.mock-card:nth-child(3) {
  --dir: 1;
  z-index: 1;
  transform: scale(0.92);
  animation-delay: calc(var(--cycle) * -1 / 3), calc(var(--cycle) * -1 / 3);
}

.mock-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mock-stamp {
  position: absolute;
  top: 1.5rem;
  border: 2px solid;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: mock-stamp var(--cycle) linear infinite;
}

.mock-keep {
  left: 1.5rem;
  border-color: var(--olive);
  color: var(--olive);
}

.mock-drop {
  right: 1.5rem;
  border-color: var(--clay);
  color: var(--clay);
}

.mock-card:nth-child(2) .mock-stamp {
  animation-delay: calc(var(--cycle) * -2 / 3);
}

.mock-card:nth-child(3) .mock-stamp {
  animation-delay: calc(var(--cycle) * -1 / 3);
}

.mock-card:nth-child(1) .mock-drop,
.mock-card:nth-child(2) .mock-keep,
.mock-card:nth-child(3) .mock-drop {
  animation: none;
  opacity: 0;
}

.mock-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.mock-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.mock-act-letgo {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.mock-act-keep {
  background: var(--ink);
  color: var(--surface);
}

.mock-hint {
  text-align: center;
}

.mock.is-paused,
.mock.is-paused * {
  animation-play-state: paused;
}

/*
  One card's life over a 7.5s cycle (each card is offset by a third):
    0–14%     idle on top
    14–24%    drag (750ms, ease-in-out)
    24–27%    fly out (225ms, ease-out cubic — same as the app's exit)
    27–27.4%  invisible: snap to the bottom of the stack, z-index drops
    27.4–60.3 waits at the bottom (scale .92)
    60.3–62%  promoted to middle (scale .96, ~130ms) as the next card exits
    93.7–95.5 promoted to top (scale 1, ~135ms) as the following card exits
  Cards exit at 27%, 60.3%, 93.7% of the global cycle; the HUD ticks at those moments.
*/
@keyframes mock-card {
  0%,
  14% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    animation-timing-function: ease-in-out;
  }

  24% {
    transform: translate3d(calc(var(--dir) * 22%), 6%, 0) rotate(calc(var(--dir) * 8deg)) scale(1);
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }

  27% {
    transform: translate3d(calc(var(--dir) * 150%), 10%, 0) rotate(calc(var(--dir) * 12deg)) scale(1);
    opacity: 1;
  }

  27.1% {
    transform: translate3d(calc(var(--dir) * 150%), 10%, 0) rotate(calc(var(--dir) * 12deg)) scale(1);
    opacity: 0;
  }

  27.3% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.92);
    opacity: 0;
  }

  27.4%,
  60.3% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.92);
    opacity: 1;
    animation-timing-function: ease-out;
  }

  62%,
  93.7% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.96);
    animation-timing-function: ease-out;
  }

  95.5%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes mock-layer {
  0%,
  27.2% {
    z-index: 3;
  }

  27.3%,
  60.2% {
    z-index: 1;
  }

  60.3%,
  93.6% {
    z-index: 2;
  }

  93.7%,
  100% {
    z-index: 3;
  }
}

@keyframes mock-stamp {
  0%,
  13% {
    opacity: 0;
  }

  24%,
  27% {
    opacity: 1;
  }

  27.1%,
  100% {
    opacity: 0;
  }
}

@keyframes mock-tick-0 {
  0%,
  27% {
    opacity: 1;
  }

  27.1%,
  93.6% {
    opacity: 0;
  }

  93.7%,
  100% {
    opacity: 1;
  }
}

@keyframes mock-tick-1 {
  0%,
  27% {
    opacity: 0;
  }

  27.1%,
  60.2% {
    opacity: 1;
  }

  60.3%,
  100% {
    opacity: 0;
  }
}

@keyframes mock-tick-2 {
  0%,
  60.2% {
    opacity: 0;
  }

  60.3%,
  93.6% {
    opacity: 1;
  }

  93.7%,
  100% {
    opacity: 0;
  }
}

@keyframes mock-bin-0 {
  0%,
  60.2% {
    opacity: 1;
  }

  60.3%,
  93.6% {
    opacity: 0;
  }

  93.7%,
  100% {
    opacity: 1;
  }
}

@keyframes mock-bin-1 {
  0%,
  60.2% {
    opacity: 0;
  }

  60.3%,
  93.6% {
    opacity: 1;
  }

  93.7%,
  100% {
    opacity: 0;
  }
}

@keyframes mock-progress {
  0%,
  27% {
    transform: scaleX(0.25);
  }

  27.1%,
  60.2% {
    transform: scaleX(0.27083);
  }

  60.3%,
  93.6% {
    transform: scaleX(0.29167);
  }

  93.7%,
  100% {
    transform: scaleX(0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-card,
  .mock-stamp,
  .mock-count span,
  .mock-bin span,
  .mock-fill {
    animation: none;
  }

  .mock-count span:nth-child(1),
  .mock-bin span:nth-child(1) {
    opacity: 1;
  }
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid #ddd6c9;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-num {
  color: var(--sand);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.modes {
  display: grid;
  gap: 1rem;
}

.mode {
  padding: 1.35rem 1.3rem 1.4rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.mode h3 {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.privacy-panel {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

.faq details {
  padding: 1.15rem 1.3rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.faq summary {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--sand);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

.faq a {
  text-underline-offset: 0.15em;
}

.site-footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid #ddd6c9;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a,
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.legal-page {
  padding-bottom: 4rem;
}

.crumb {
  display: inline-block;
  margin: 0.5rem 0 1.75rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.875rem;
}

.prose {
  display: grid;
  gap: 1rem;
}

.prose h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin-bottom: 0.25rem;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.prose h3 {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose td code {
  white-space: nowrap;
}

.legal-summary {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.legal-summary ul {
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.prose a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
}

.legal-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.legal-list a {
  text-decoration: none;
}

.legal-list li {
  padding: 1.25rem 1.3rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 4rem, var(--page));
  }

  .wrap-narrow {
    width: min(100% - 4rem, 42rem);
  }

  .site-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  .mock {
    width: min(100%, 24rem);
    justify-self: center;
    align-self: center;
    margin-inline: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }

  .step {
    border-top: 0;
    padding: 0;
  }

  .modes {
    grid-template-columns: 1fr 1fr;
  }
}
