@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 460;
  font-display: swap;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  /* Black cherry: near-black with a red glow, warm blush instead of white. */
  --velvet: #160609;
  --velvet-hi: #511122;
  --cherry: #7a1428;
  --cream: #f3dccf;
  --sand: #ecd6ca;
  --ink: #0f0607;
  --ink-2: #1d0d10;
  --ink-3: #2c1519;

  --on-dark: #f3dccf;
  --on-dark-2: #c3a59c;
  --on-velvet-2: rgb(243 220 207 / 0.74);
  --on-light: #2a0d12;
  --on-light-2: #7a5a52;
  --line-dark: rgb(243 220 207 / 0.12);
  --line-light: rgb(42 13 18 / 0.12);
  --error: #f0a596;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Hanken Grotesk", sans-serif;

  /* Critically damped spring (bounce 0); durations are visible duration × 1.35 so the tail settles. */
  --spring: linear(0, 0.0497, 0.1587, 0.2872, 0.4139, 0.5284, 0.6268, 0.7084, 0.7745, 0.8272, 0.8685, 0.9005, 0.9251, 0.9439, 0.9581, 0.9689, 0.9769, 0.983, 0.9874, 0.9908, 0.9932, 0.995, 0.9964, 0.9973, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(1200px, 100% - 64px);
  margin-inline: auto;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 320;
}

h1 {
  font-size: clamp(60px, 7.8vw, 118px);
  letter-spacing: -0.03em;
  line-height: 0.94;
}

h2 {
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1;
}

h3 {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.logo__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo__word {
  width: 84px;
  height: auto;
}

/* Buttons and links */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: #2a0509;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 100ms ease-out;
}

.btn--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

.btn--small::before {
  content: "";
  position: absolute;
  inset: -2px 0;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.btn:active {
  background: #e6c9bb;
}

.link {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgb(243 220 207 / 0.45);
  cursor: pointer;
  transition: text-decoration-color 100ms ease-out;
}

.link::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: #fbe9df;
    transition-duration: 0ms;
  }
  .link:hover {
    text-decoration-color: currentColor;
    transition-duration: 0ms;
  }
}

/* Nav */

.nav {
  position: relative;
  z-index: 20;
}

.nav--over {
  position: absolute;
  inset: 0 0 auto;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 88px;
}

.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  color: var(--on-velvet-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 100ms ease-out;
}

.nav__links a::before {
  content: "";
  position: absolute;
  inset: -14px -10px;
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    color: var(--cream);
    transition-duration: 0ms;
  }
}

.nav--line {
  border-bottom: 1px solid var(--line-dark);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 75% at 78% 38%, var(--velvet-hi), transparent 72%),
    var(--velvet);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  padding-top: 88px;
}

.hero__copy {
  align-self: center;
  padding: 72px 0 96px;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero__lede {
  max-width: 27em;
  margin-bottom: 40px;
  color: var(--on-velvet-2);
  font-size: 20px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  color: var(--on-velvet-2);
  font-size: 15px;
}

.hero__note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__device {
  --s: 0.88;
  align-self: end;
  justify-self: center;
  height: calc(876px * var(--s) * 0.86);
  overflow: hidden;
  padding: 0 24px;
}

/* Device: an iPhone drawn at 1:1 (393 × 852 screen) and scaled with --s. */

.device-slot {
  --s: 1;
  position: relative;
  width: calc(417px * var(--s));
  height: calc(876px * var(--s));
  flex-shrink: 0;
}

.device {
  position: absolute;
  top: 0;
  left: 0;
  width: 417px;
  height: 876px;
  padding: 3px;
  border-radius: 69px;
  background: linear-gradient(150deg, #a8a29b 0%, #57534f 22%, #2f2c2a 48%, #4c4844 74%, #9a948d 100%);
  box-shadow: 0 60px 120px -40px rgb(0 0 0 / 0.65), 0 24px 48px -24px rgb(0 0 0 / 0.5);
  transform: scale(var(--s));
  transform-origin: 0 0;
}

.device__glass {
  position: relative;
  height: 100%;
  padding: 9px;
  border-radius: 66px;
  background: #050505;
}

.device__island {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 10;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
}

.device__btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6d6863, #a39d96);
}

.device__btn--action { left: -3px; top: 150px; height: 32px; }
.device__btn--up { left: -3px; top: 214px; height: 62px; }
.device__btn--down { left: -3px; top: 290px; height: 62px; }
.device__btn--side { right: -3px; top: 250px; height: 98px; }

.screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 57px;
  background: #0e090a;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-user-select: none;
  user-select: none;
}

.sb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 32px 0 54px;
  color: #fff;
  font: 600 17px/1 var(--system);
  letter-spacing: -0.02em;
}

.sb__icons {
  display: flex;
  align-items: center;
  gap: 6px;
  fill: currentColor;
}

.home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 5;
  width: 138px;
  height: 5px;
  margin-left: -69px;
  border-radius: 3px;
  background: #fff;
}

/* Lock screen */

.lock {
  background: #1b1210 url("photos/lockscreen.webp") center / cover no-repeat;
}

.lock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.28), transparent 34%, transparent 62%, rgb(0 0 0 / 0.35));
}

.lock__date,
.lock__time {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  color: rgb(255 255 255 / 0.94);
  font-family: var(--system);
  text-align: center;
}

.lock__date {
  top: 76px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lock__time {
  top: 98px;
  font-size: 112px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.notifs {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 448px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.notif {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 15px 14px 13px;
  border-radius: 23px;
  background: rgb(246 244 242 / 0.8);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  color: #000;
  font-family: var(--system);
  letter-spacing: -0.015em;
}

.notif--stacked {
  margin-bottom: 8px;
}

/* Until home.js runs, keep the arriving notification out of view so it doesn't flash in place first. */
.motion [data-notif-new]:not(.is-in) {
  opacity: 0;
}

.notif--stacked::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  z-index: -1;
  height: 20px;
  border-radius: 0 0 18px 18px;
  background: rgb(246 244 242 / 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.notif__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.notif__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notif__title {
  font-size: 15px;
  font-weight: 600;
}

.notif__time {
  flex-shrink: 0;
  color: rgb(60 60 67 / 0.62);
  font-size: 13px;
}

.notif__body {
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.3;
}

.lock__btn {
  position: absolute;
  bottom: 44px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
}

.lock__btn svg {
  width: 22px;
  height: 22px;
}

.lock__btn--left { left: 46px; }
.lock__btn--right { right: 46px; }

/* App screens */

.app__bar {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  font-size: 17px;
}

.app__bar-title {
  font-weight: 600;
}

.app__bar-left {
  color: var(--on-dark-2);
}

.app__bar-right {
  justify-self: end;
  font-weight: 600;
}

.app__head {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 18px 0 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.app__back {
  width: 24px;
  height: 24px;
  color: var(--cream);
}

.app__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.app__who {
  display: grid;
  flex: 1;
  min-width: 0;
}

.app__name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 600;
}

.app__name svg {
  width: 16px;
  height: 16px;
}

.app__sub {
  color: var(--on-dark-2);
  font-size: 13px;
}

.app__more {
  width: 24px;
  height: 24px;
  color: var(--on-dark-2);
}

.app__body {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 40px;
}

.app__body--chat {
  top: 116px;
  padding: 14px 14px 40px;
}

/* Screen 1: set your cover */

.me {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-bottom: 26px;
}

.me img {
  width: 104px;
  height: 104px;
  margin-bottom: 12px;
  border-radius: 50%;
  object-fit: cover;
}

.me__name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.me__sub {
  color: var(--on-dark-2);
  font-size: 15px;
}

.set {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 22px 24px;
  border-radius: 26px;
  background: var(--ink-2);
}

.set__label {
  color: var(--on-dark-2);
  font-size: 15px;
}

.set__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.set__step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--cream);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.set__amount {
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.set__hint {
  color: var(--on-dark-2);
  font-size: 14px;
  text-align: center;
}

.chips {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.chips span {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--on-dark-2);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chips .on {
  background: var(--cream);
  color: #2a0509;
}

.rows {
  border-radius: 18px;
  background: var(--ink-2);
}

.rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 16px;
}

.rows div + div {
  border-top: 1px solid rgb(255 255 255 / 0.07);
}

.rows span:last-child {
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}

/* Screen 2: send with the cover */

.profile {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.75), transparent 45%);
}

.profile__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.profile__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile__name span {
  font-weight: 400;
}

.profile__name svg {
  width: 20px;
  height: 20px;
}

.profile__sub {
  color: rgb(255 255 255 / 0.8);
  font-size: 15px;
}

.sys {
  margin: 14px 18px;
  color: var(--on-dark-2);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.compose {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 25px;
  background: var(--ink-2);
  font-size: 17px;
}

.compose__caret {
  width: 2px;
  height: 22px;
  margin-left: 1px;
  border-radius: 1px;
  background: var(--cream);
}

.compose--empty {
  justify-content: space-between;
  color: rgb(243 220 207 / 0.38);
}

.compose--empty svg {
  width: 30px;
  height: 30px;
  color: var(--on-dark-2);
}

.send {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 10px;
  border-radius: 28px;
  background: var(--cream);
  color: #2a0509;
  font-size: 17px;
  font-weight: 600;
}

.fine {
  margin-top: 10px;
  color: rgb(195 165 156 / 0.8);
  font-size: 12px;
  text-align: center;
}

/* Screen 3: the reply */

.thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.thread__time {
  margin: 6px 0 12px;
  color: var(--on-dark-2);
  font-size: 12px;
  text-align: center;
}

.bubble {
  max-width: 76%;
  padding: 10px 15px 11px;
  border-radius: 20px;
  font-size: 17px;
  line-height: 1.3;
}

.bubble--in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--ink-3);
}

.bubble--out {
  align-self: flex-end;
  margin-top: 12px;
  border-bottom-right-radius: 6px;
  background: var(--cherry);
  color: #fff4ea;
}

.paid-chip {
  align-self: flex-start;
  margin-left: 4px;
  padding: 4px 10px;
  border: 1px solid rgb(243 220 207 / 0.3);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delivered {
  align-self: flex-end;
  margin-right: 4px;
  color: var(--on-dark-2);
  font-size: 12px;
}

.earned {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 26px 10px 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--ink-2);
}

.earned__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: #2a0509;
}

.earned__icon svg {
  width: 20px;
  height: 20px;
}

.earned__title {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.earned__sub {
  color: var(--on-dark-2);
  font-size: 13px;
}

/* How it works */

.how {
  padding: 132px 0 140px;
  background: var(--sand);
  color: var(--on-light);
  color-scheme: light;
}

.how__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}

.how__head p {
  max-width: 24em;
  color: var(--on-light-2);
}

.how__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.how__item .device-slot {
  --s: 0.68;
  margin: 0 auto 40px;
}

.how__item > h3 {
  margin-bottom: 8px;
}

.how__item > p {
  max-width: 22em;
  color: var(--on-light-2);
  font-size: 17px;
}

/* Membership */

.club {
  padding: 140px 0;
}

.club__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 104px;
}

.club__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background: var(--ink-2);
}

.club__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club h2 {
  margin-bottom: 28px;
}

.club p {
  max-width: 28em;
  color: var(--on-dark-2);
  font-size: 19px;
}

.club p + p {
  margin-top: 18px;
}

.club .hero__actions {
  margin-top: 44px;
}

/* Footer */

.footer {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line-dark);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer__links a {
  position: relative;
  color: var(--on-dark-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 100ms ease-out;
}

.footer__links a::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover {
    color: var(--cream);
    transition-duration: 0ms;
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: #8c6f68;
  font-size: 14px;
}

/* Inner pages */

.page {
  padding: 104px 0 140px;
}

.page__head {
  max-width: 760px;
  margin-bottom: 80px;
}

.page__head h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 88px);
}

.page__head p {
  color: var(--on-dark-2);
  font-size: 20px;
}

.rulebook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rule {
  padding: 34px 36px 38px;
  border-radius: 28px;
  background: var(--ink-2);
}

.rule h2 {
  margin-bottom: 10px;
  font-size: 31px;
  font-weight: 360;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.rule p {
  color: var(--on-dark-2);
  font-size: 17px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  margin-top: 140px;
}

.faq h2 {
  font-size: clamp(38px, 4vw, 56px);
}

.faq__list {
  border-top: 1px solid var(--line-dark);
}

.faq details {
  border-bottom: 1px solid var(--line-dark);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 380;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor 0 0) center / 1.5px 14px no-repeat;
  opacity: 0.7;
  transition: rotate 0.406s var(--spring);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.541s var(--spring), content-visibility 0.541s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

.faq details p {
  max-width: 34em;
  padding-bottom: 26px;
  color: var(--on-dark-2);
  font-size: 17px;
}

.legal {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.legal section {
  padding: 34px 36px 38px;
  border-radius: 28px;
  background: var(--ink-2);
  scroll-margin-top: 24px;
}

.legal h2 {
  margin-bottom: 10px;
  font-size: 31px;
  font-weight: 360;
  letter-spacing: -0.015em;
}

.legal p {
  color: var(--on-dark-2);
  font-size: 17px;
}

.page__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 88px;
}

/* Application */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 100svh;
}

.apply__panel {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 45%, var(--velvet-hi), transparent 75%),
    var(--velvet);
}

.apply__panel .device-slot {
  --s: 0.8;
}

.apply__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.apply__side .nav__inner {
  width: min(560px, 100% - 64px);
  margin-inline: auto;
}

.apply__main {
  flex: 1;
  display: grid;
  align-content: center;
  width: min(520px, 100% - 64px);
  margin-inline: auto;
  padding: 24px 0 96px;
}

.progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  color: var(--on-dark-2);
  font-size: 15px;
}

.progress__track {
  position: relative;
  flex: 1;
  max-width: 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-3);
}

.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress, 0.5) * 100%);
  border-radius: inherit;
  background: var(--cream);
  transition: width 0.406s var(--spring);
}

.flow {
  position: relative;
}

.step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.js .step:not(.is-on):not(.is-leaving) {
  display: none;
}

.js .flow .is-leaving {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

html:not(.js) [data-next],
html:not(.js) [data-back],
html:not(.js) .progress {
  display: none;
}

html:not(.js) .step + .step {
  margin-top: 64px;
}

.step legend {
  padding: 0;
}

.step h1,
.done h1 {
  margin-bottom: 12px;
  font-size: clamp(44px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.step__sub {
  margin-bottom: 36px;
  color: var(--on-dark-2);
  font-size: 17px;
}

.choices {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 4px 20px;
  padding: 22px 22px 24px 24px;
  border: 1.5px solid transparent;
  border-radius: 22px;
  background: var(--ink-2);
  cursor: pointer;
  transition: border-color 100ms ease-out, background-color 100ms ease-out;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__title {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.choice__body {
  grid-column: 1;
  color: var(--on-dark-2);
  font-size: 16px;
  line-height: 1.45;
}

.choice__mark {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgb(243 220 207 / 0.35);
  border-radius: 50%;
  transition: border-color 100ms ease-out, box-shadow 0.338s var(--spring);
}

.choice:has(input:checked) {
  border-color: var(--cream);
}

.choice:has(input:checked) .choice__mark {
  border-color: var(--cream);
  box-shadow: inset 0 0 0 5px var(--ink-2), inset 0 0 0 12px var(--cream);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .choice:hover {
    background: #261316;
    transition-duration: 0ms;
  }
}

.invite {
  margin-bottom: 32px;
}

.invite summary {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgb(243 220 207 / 0.4);
  cursor: pointer;
  list-style: none;
}

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

.invite summary::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}

.invite::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.406s var(--spring), content-visibility 0.406s allow-discrete;
}

.invite[open]::details-content {
  block-size: auto;
}

.invite.is-instant::details-content {
  transition: none;
}

.invite .field {
  padding-top: 20px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  margin-bottom: 28px;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  color: var(--on-dark-2);
  font-size: 15px;
  font-weight: 500;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--ink-2);
  transition: border-color 100ms ease-out;
}

.field__control:focus-within {
  border-color: rgb(243 220 207 / 0.6);
}

.field__prefix {
  padding-right: 2px;
  color: var(--on-dark-2);
  font-size: 17px;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: rgb(243 220 207 / 0.32);
}

.field select {
  padding-right: 24px;
  cursor: pointer;
}

.field select option {
  background: var(--ink-2);
  color: var(--cream);
}

.field__control--select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--on-dark-2);
  border-bottom: 1.5px solid var(--on-dark-2);
  rotate: 45deg;
  pointer-events: none;
}

.field__hint {
  color: #957970;
  font-size: 14px;
}

.field.is-invalid .field__control {
  border-color: var(--error);
}

.field__error {
  color: var(--error);
  font-size: 14px;
}

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 32px;
  color: var(--on-dark-2);
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid rgb(243 220 207 / 0.4);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 100ms ease-out, border-color 100ms ease-out;
}

.check input:checked {
  border-color: var(--cream);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%232a0509' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.check.is-invalid input {
  border-color: var(--error);
}

.check .field__error {
  grid-column: 2;
  margin-top: -6px;
}

.check a {
  color: var(--cream);
  text-underline-offset: 3px;
}

.step__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-error {
  margin: -12px 0 22px;
  color: var(--error);
  font-size: 15px;
}

.done__kicker {
  margin-bottom: 16px;
  color: var(--on-dark-2);
  font-size: 15px;
  font-weight: 500;
}

.done__sub {
  margin-bottom: 36px;
  color: var(--on-dark-2);
  font-size: 18px;
}

.done__sub strong {
  color: var(--cream);
  font-weight: 500;
}

.next {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
}

.next li {
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: var(--ink-2);
}

.next h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.next p {
  color: var(--on-dark-2);
  font-size: 16px;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 1100px) {
  .how__list {
    display: flex;
    gap: 28px;
    margin: 0 -32px;
    padding: 0 32px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 32px;
    scrollbar-width: none;
  }
  .how__list::-webkit-scrollbar {
    display: none;
  }
  .how__item {
    flex: 0 0 300px;
    scroll-snap-align: start;
  }
  .how__item .device-slot {
    --s: 0.66;
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero__copy {
    padding: 48px 0 56px;
  }
  /* Show the part of the lock screen that matters: drop the clock, keep the notifications. */
  /* The top of the phone, frame and all, rises from the bottom of the screen with the notifications in view. */
  .hero__device {
    --s: 0.7;
    height: calc(690px * var(--s));
    padding: 0;
  }
  .hero__device .lock__time {
    display: none;
  }
  .hero__device .lock__date {
    top: 90px;
  }
  .hero__device .notifs {
    top: 150px;
  }
  .hero__copy {
    padding-bottom: 40px;
  }
  .club__grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .club__photo {
    max-width: 520px;
  }
  .how__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
  }
  .rulebook {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply {
    grid-template-columns: minmax(0, 1fr);
  }
  .apply__panel {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .wrap {
    width: min(1200px, 100% - 40px);
  }
  .nav__inner {
    height: 72px;
  }
  .hero__grid {
    padding-top: 72px;
  }
  .hero__copy {
    padding: 32px 0 44px;
  }
  .hero h1 {
    margin-bottom: 22px;
  }
  .hero__lede {
    margin-bottom: 32px;
    font-size: 18px;
  }
  .hero__actions {
    gap: 22px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__note {
    margin-top: 28px;
    font-size: 14px;
  }
  .hero__device {
    --s: 0.82;
    height: calc(470px * var(--s));
  }
  .hero__copy {
    padding-bottom: 36px;
  }
  .how {
    padding: 96px 0 104px;
  }
  .how__list {
    margin: 0 -20px;
    padding: 0 20px 8px;
    scroll-padding: 0 20px;
  }
  .how__item {
    flex-basis: 272px;
  }
  .how__item .device-slot {
    --s: 0.62;
  }
  .club {
    padding: 104px 0;
  }
  .club p {
    font-size: 17px;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .page {
    padding: 64px 0 104px;
  }
  .page__head {
    margin-bottom: 56px;
  }
  .page__head p {
    font-size: 18px;
  }
  .rule,
  .legal section {
    padding: 26px 24px 30px;
    border-radius: 22px;
  }
  .faq {
    margin-top: 104px;
    gap: 36px;
  }
  .faq summary {
    font-size: 18px;
  }
  .apply__side .nav__inner,
  .apply__main {
    width: min(520px, 100% - 40px);
  }
  .apply__main {
    align-content: start;
    padding: 24px 0 72px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .step__nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }
  .step__nav .link {
    align-self: center;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .apply__panel .device-slot {
    --s: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress__fill,
  .faq summary::after,
  .faq details::details-content,
  .invite::details-content {
    transition: none;
  }
}
