/* Alibi landing page. One family, Apple-grade restraint, one bold moment (the receipt). */
:root {
  --paper: #FBFBFD;
  --tint: #F5F5F7;
  --ink: #1D1D1F;
  --graphite: #6E6E73;
  --hairline: #D2D2D7;
  --black: #000000;
  --night-text: #F5F5F7;
  --night-muted: #A1A1A6;
  --blue: #2B59FF;
  --blue-hover: #1F47E6;
  --verified: #1F9D55;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --max: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
section[id], figure[id] { scroll-margin-top: 64px; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; height: 52px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-size: 22px; font-weight: 700; letter-spacing: -0.045em; }
.nav__links { display: flex; gap: 32px; font-size: 13px; color: var(--graphite); }
.nav__links a:hover { color: var(--ink); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 980px;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 17px; font-weight: 500; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  touch-action: manipulation;
}
.pill:hover { background: var(--blue-hover); }
.pill:active { transform: scale(0.97); }
.pill--small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.textlink { color: var(--blue); font-size: 17px; }
.textlink:hover { text-decoration: underline; }

/* Type scale */
.display {
  font-size: clamp(40px, 6vw, 64px); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance;
}
.display--center { text-align: center; }
.lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.43; color: var(--graphite); max-width: 34em; text-wrap: pretty; }
.lede--center { margin: 16px auto 0; text-align: center; }
.lede--dark { color: var(--night-muted); }
.lede + .lede { margin-top: 16px; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 132px) 22px 96px; text-align: center; }
.hero__title {
  font-size: clamp(52px, 9.5vw, 104px); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance;
}
.hero__lede {
  margin: 28px auto 0; max-width: 30em;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--graphite);
}
.hero__actions {
  margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap;
}

/* Stage: the receipt demo */
.stage { margin: clamp(64px, 9vw, 104px) auto 0; max-width: 520px; }
.segmented {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border-radius: 12px; background: rgba(118, 118, 128, 0.12);
}
.segmented button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  min-width: 132px; padding: 8px 18px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--graphite); transition: color 0.3s var(--ease); touch-action: manipulation;
}
.segmented button[aria-selected="true"] { color: var(--ink); }
.segmented__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 9px; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.45s var(--ease);
}
.segmented[data-active="public"] .segmented__thumb { transform: translateX(100%); }

.receipt {
  margin-top: 28px; padding: 32px 32px 18px; text-align: left;
  background: #fff; border-radius: 28px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 24px 64px -16px rgba(29, 29, 31, 0.22);
}
.receipt__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--graphite); }
.receipt__status { color: var(--verified); font-weight: 600; }
.receipt__amount { margin: 18px 0 22px; font-size: 22px; font-weight: 600; color: var(--graphite); }
.receipt__amount span {
  font-size: 64px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.receipt__rows { margin: 0; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0; border-top: 1px solid var(--tint); font-size: 16px;
}
.row dt { color: var(--graphite); }
.row dd { margin: 0; position: relative; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* The frost: what the public sees over your details */
.row--secret dd { min-width: 11.5em; min-height: 1.5em; }
/* Frost amount per row: 0 = clear, 1 = frosted. Scroll sets --f1/--f2 inline (motion.js);
   a tap on the toggle removes them so the data-view defaults below take over. */
.receipt { --frost: 1; }
.receipt[data-view="you"] { --frost: 0; }
.row--secret { --rf: var(--f1, var(--frost)); }
.row--secret + .row--secret { --rf: var(--f2, var(--frost)); }
.secret__value {
  filter: blur(calc(var(--rf) * 6px)); opacity: calc(1 - var(--rf) * 0.45);
  transition: filter 0.7s var(--ease), opacity 0.7s var(--ease);
}
.secret__veil {
  position: absolute; inset: -6px -10px; border-radius: 10px;
  background: linear-gradient(110deg, rgba(228, 231, 238, 0.55), rgba(250, 250, 252, 0.35) 45%, rgba(222, 226, 235, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px) saturate(140%); -webkit-backdrop-filter: blur(4px) saturate(140%);
  transform-origin: left center; transform: scaleX(var(--rf));
  transition: transform 0.7s var(--ease);
}
.secret__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  font-size: 14px; font-weight: 600; color: var(--graphite);
  opacity: clamp(0, calc(var(--rf) * 2 - 1), 1); transition: opacity 0.4s var(--ease);
}
/* While scroll drives the frost, keep transitions short so it tracks the finger. */
.motion .receipt:not([data-manual]) :is(.secret__value, .secret__veil, .secret__label) { transition-duration: 0.12s; }
.stage__caption { margin-top: 22px; font-size: 15px; color: var(--graphite); }

/* Dark section: Proof of Source */
.dark { background: var(--black); color: var(--night-text); padding: clamp(96px, 13vw, 160px) 22px; }
.split {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: center;
}
.split__copy .display { margin-bottom: 24px; }
.report {
  background: linear-gradient(180deg, #1C1C1E, #141416); border-radius: 24px; padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.report__title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.report__sub { margin-top: 4px; font-size: 14px; color: var(--night-muted); }
.report__list { list-style: none; margin: 24px 0 0; padding: 0; }
.report__list li {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 16px;
}
.report__when { color: var(--night-muted); font-variant-numeric: tabular-nums; }
.report__checks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.report__checks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.report__checks svg {
  width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--verified);
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.report__foot { margin-top: 18px; font-size: 13px; color: var(--night-muted); }

/* Generic sections */
.section { padding: clamp(96px, 12vw, 150px) 22px; }
.section--tint { background: var(--tint); }

/* Steps: a real sequence, so numbered */
.steps {
  list-style: none; max-width: var(--max); margin: 72px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink);
  font-size: 17px; font-weight: 600;
}
.step h3 { margin-top: 22px; font-size: 28px; font-weight: 700; letter-spacing: -0.035em; }
.step p { margin-top: 10px; color: var(--graphite); max-width: 22em; }

/* Tiles: mixed sizes and tones */
.tiles {
  max-width: var(--max); margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tile { background: #fff; border-radius: 28px; padding: 40px; }
.tile h3 { font-size: 24px; font-weight: 700; line-height: 1.17; letter-spacing: -0.03em; }
.tile p { margin-top: 12px; color: var(--graphite); }
.tile--hero { grid-column: span 2; padding: 56px; }
.tile--hero h3 { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; max-width: 12em; }
.tile--hero p { font-size: 19px; max-width: 30em; }
.tile--dark { background: var(--black); color: var(--night-text); }
.tile--dark p { color: var(--night-muted); }
.tile__big {
  font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(160deg, #FFFFFF 20%, #C7D2FF 60%, #7D93FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile--dark h3 { margin-top: 8px; }
.tile--wide { grid-column: span 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.fees { margin: 0; flex: none; min-width: 220px; }
.fees div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.fees dt { color: var(--graphite); }
.fees dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Waitlist */
.join {
  margin: 40px auto 0; max-width: 520px; display: flex; gap: 12px;
}
.join input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px;
  border: 1px solid var(--hairline); border-radius: 14px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink);
}
.join input:focus-visible { outline: 3px solid rgba(43, 89, 255, 0.35); outline-offset: 0; border-color: var(--blue); }
.join .pill { min-height: 52px; border-radius: 14px; }
.join__msg { margin-top: 16px; min-height: 1.5em; text-align: center; font-size: 15px; color: var(--graphite); }
.join__msg[data-state="error"] { color: #D70015; }
.join__msg[data-state="ok"] { color: var(--verified); }

/* Footer */
.footer { border-top: 1px solid var(--hairline); background: var(--tint); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px 22px 40px;
  font-size: 12px; line-height: 1.6; color: var(--graphite);
}
.footer__inner p + p { margin-top: 6px; }
.footer__inner .footer__small { margin-top: 14px; }
.footer__link { color: var(--ink); }
.footer__link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1020px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--wide { flex-direction: column; align-items: stretch; }
  .hero__lede, .step p, .tile p { text-wrap: pretty; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; max-width: 520px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--hero, .tile--wide { grid-column: auto; }
  .tile--hero { padding: 40px; }
  .tile--wide { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .receipt { padding: 24px 20px 12px; border-radius: 22px; }
  .receipt__amount span { font-size: 52px; }
  .row--secret dd { min-width: 9.5em; }
  .segmented button { min-width: 116px; padding: 8px 12px; }
  .join { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
