:root {
  --ground: #f4f4f1;
  --surface: #fff;
  --soft: #e9e8e4;
  --ink: #15110f;
  --muted: #5d544a;
  --red: #d7263d;
  --red-deep: #a9182d;
  --gold: #b8892b;
  --m: clamp(16px, 2.8vw, 40px);
  --g: clamp(20px, 3vw, 48px);
  --pad: clamp(64px, 9vw, 136px);
  --r: 18px;
  --sm: 15px;
  --mid: clamp(21px, 1.9vw, 28px);
  --rk: clamp(30px, 3.1vw, 44px);
  --l: clamp(38px, 6.2vw, 100px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --lift: 0 22px 44px -20px rgba(21, 17, 15, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 18px/1.5 Archivo, system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, table { margin: 0; }
main p { max-width: 66ch; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
p a:hover { color: var(--red); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; }
.suit { width: 1em; height: 1em; fill: currentColor; flex: none; }

h1, h2, h3, .rank b, .fig, .pot strong {
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
}
h2 { font-size: var(--l); }
.steps-more h3, .tile h3, .more h3, .nope h2, .trio h3, .band h2, .band h3, .sheet caption {
  font-size: var(--mid);
  font-stretch: 80%;
  line-height: 1.05;
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--m);
}
.mark { display: inline-flex; padding: 4px; border-radius: 8px; }
.mark svg { width: 30px; height: 40px; transition: transform .4s var(--ease); }
.mark rect { fill: var(--red); }
.mark use { fill: var(--surface); }
.mark:hover svg { transform: rotate(-8deg); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nav a, .links a {
  padding: 6px 0;
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav a:hover, .links a:hover { background-size: 100% 2px; }

/* buttons */
.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.go:hover { transform: translateY(-3px); background-color: var(--red-deep); }
.go:active { transform: scale(.97); }
.go.alt { background: var(--ink); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: var(--g);
  min-height: min(100svh - 76px, 880px);
  padding: clamp(8px, 1.5vw, 20px) var(--m) clamp(40px, 5vw, 72px);
}
.pitch { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(8px, 3vw, 48px); }
.pitch h1 { font-size: clamp(54px, 22.6cqi, 240px); line-height: .84; }
.pitch h1 span { display: block; white-space: nowrap; }
.lede { max-width: 25em; margin-top: clamp(20px, 2.4vw, 36px); font-size: var(--mid); line-height: 1.3; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 20px; color: var(--muted); font-size: var(--sm); }

.stage {
  --cw: clamp(150px, 17.5vw, 262px);
  position: relative;
  min-height: clamp(380px, 46vw, 660px);
  overflow: hidden;
  border-radius: var(--r);
  background: var(--red);
}
.felt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 26s ease-in-out infinite alternate; }
.felt-suit { position: absolute; right: -14%; top: -12%; width: 86%; height: auto; aspect-ratio: 1; fill: rgba(21, 17, 15, .16); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: rotate(-5deg) scale(1); } to { transform: rotate(7deg) scale(1.08); } }

.card {
  position: relative;
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(21, 17, 15, .1), var(--lift);
}
.red { color: var(--red); }
.rank { position: absolute; left: 14px; top: 12px; display: grid; justify-items: center; gap: 4px; line-height: 1; }
.rank b { font-size: var(--rk); }
.rank .suit { font-size: calc(var(--rk) * .56); }
.rank small { margin-top: 2px; color: var(--ink); font-size: var(--sm); }
.rank.flipped { inset: auto 14px 12px auto; transform: rotate(180deg); }

.fan { position: absolute; left: 42%; bottom: 21%; width: var(--cw); height: calc(var(--cw) * 1.4); }
.fan > li {
  position: absolute;
  inset: 0;
  transform-origin: 50% 115%;
  transform: translateX(var(--x, 0px)) rotate(var(--a)) translateY(var(--up, 0px));
  transition: transform .35s var(--ease);
  animation: deal .9s var(--ease) backwards;
}
.fan > li:hover, .fan > li:focus-within { --up: -5%; }
.fan > li:nth-child(1) { --n: 0; --a: -40deg; animation-delay: .1s; }
.fan > li:nth-child(2) { --n: 1; --a: -28deg; animation-delay: .18s; }
.fan > li:nth-child(3) { --n: 2; --a: -16deg; animation-delay: .26s; }
.fan > li:nth-child(4) { --n: 3; --a: -4deg; animation-delay: .34s; }
.fan > li:nth-child(5) { --n: 4; --a: 8deg; animation-delay: .42s; }
.four > li:nth-child(1) { --a: -28deg; }
.four > li:nth-child(2) { --a: -16deg; }
.four > li:nth-child(3) { --a: -4deg; }
.four > li:nth-child(4) { --a: 8deg; }
.four .card { position: absolute; inset: 0; display: block; text-decoration: none; }
@keyframes deal {
  from { transform: translateX(var(--x, 0px)) rotate(var(--a)) translateY(-14%); opacity: 0; }
  to { transform: translateX(var(--x, 0px)) rotate(var(--a)); opacity: 1; }
}
.pot { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding-top: 12%; text-align: center; }
.pot strong { font-size: calc(var(--cw) * .27); line-height: .8; }
.pot small { color: var(--ink); font-size: var(--sm); line-height: 1.15; }

/* install */
.steps-head, .walk-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--g);
  align-items: end;
}
.steps-head { padding: clamp(40px, 6vw, 96px) var(--m) clamp(28px, 3.4vw, 52px); }
.os { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: var(--r); background: var(--ink); }
.os button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: calc(var(--r) - 4px);
  background: none;
  color: var(--ground);
  font: inherit;
  font-stretch: 80%;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.os button:active { transform: scale(.95); }
.os button[aria-pressed="true"] { background: var(--red); color: #fff; }
.hand { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 2.6vw, 40px);
  padding: clamp(32px, 4vw, 64px) clamp(20px, 2vw, 32px) clamp(28px, 3vw, 44px);
  background: var(--red);
  color: #fff;
}
.field:nth-child(even) { background: var(--ink); color: var(--ground); }
.flip { width: min(236px, 100%); aspect-ratio: 5 / 7; perspective: 900px; transition: transform .2s var(--ease); }
.js .flip { cursor: pointer; }
.js .flip:hover { transform: translateY(-6px); }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flip.down .flip-in { transform: rotateY(180deg); }
.flip .face, .flip .back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .back { transform: rotateY(180deg); }
.back {
  border: 9px solid var(--surface);
  border-radius: var(--r);
  background: var(--red);
  outline: 2px solid rgba(255, 255, 255, .55);
  outline-offset: -16px;
  box-shadow: var(--lift);
}
.pic { position: absolute; inset: 30% 12px auto; display: grid; justify-items: center; gap: 10px; color: var(--ink); line-height: 1.1; text-align: center; }
.pic + .pic { top: 64%; }
.ico { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .pic { top: 27%; }
.js .ico { width: 104px; height: 104px; stroke-width: 2.4; }
.pic b { font-stretch: 80%; font-weight: 800; }
.say { align-self: stretch; display: grid; gap: 12px; font-size: var(--mid); line-height: 1.4; }
.say b { display: block; font-size: var(--sm); font-stretch: 80%; font-weight: 800; text-transform: uppercase; }
.js .say b { display: none; }
.hand[data-os="ios"] [data-os="android"], .hand[data-os="android"] [data-os="ios"] { display: none; }
.steps-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); padding: clamp(36px, 4.4vw, 64px) var(--m) clamp(56px, 7vw, 104px); }
.steps-more h3 { margin-bottom: 10px; }

/* login steps */
.walk { padding: clamp(40px, 6vw, 96px) var(--m) var(--pad); }
.walk-head { margin-bottom: clamp(28px, 3.4vw, 52px); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.trio li { padding: clamp(24px, 2.6vw, 40px); transition: transform .3s var(--ease); }
.trio li:nth-child(2) { background: var(--soft); }
.trio li:hover { transform: translateY(-4px); }
.trio .rank { position: static; grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 64px); }
.trio h3 { margin-bottom: 12px; }
.walk-go, .walk-note { margin-top: 28px; }
.walk-note { max-width: 44em; }

/* offer on the phone */
.deck { padding: var(--pad) var(--m); background: var(--surface); }
.deck li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--g); align-items: first baseline; padding-block: clamp(8px, 1vw, 16px); }
.deck h2 { color: var(--muted); }
.deck h3 { font-size: var(--l); transition: transform .3s var(--ease); }
.deck li:hover h3 { color: var(--red); transform: translateX(10px); }
.deck p { position: relative; padding-left: 34px; }
.deck li:first-child p { padding-left: 0; color: var(--muted); }
.deck .suit { position: absolute; left: 0; top: .22em; font-size: 20px; }

/* bonus */
.bonus { padding: var(--pad) var(--m); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 620px; }
.tiles h2 { grid-area: 1 / 1 / 2 / 3; align-self: start; }
.tile {
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 28px 28px 32px;
  border-radius: var(--r);
  background: var(--surface);
  transition: transform .3s var(--ease);
}
.tile:hover { transform: translateY(-6px); }
.t1 { grid-column: 1; }
.t2 { grid-column: 2; min-height: 430px; background: var(--ink); color: var(--ground); }
.t2 h3 { color: #e3b758; }
.t3 { grid-column: 3; min-height: 620px; background: var(--red); color: #fff; }
.fig { font-size: var(--l); }
.fig small { display: block; margin-bottom: 6px; font-size: var(--sm); font-stretch: 100%; font-weight: 500; letter-spacing: 0; line-height: 1.2; text-transform: none; }
.strip {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: auto -28px -32px;
  padding: 0 28px;
  border-radius: 0 0 var(--r) var(--r);
  background: var(--red-deep);
  font-stretch: 80%;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s var(--ease);
}
.strip::after { content: "→"; margin-left: auto; padding-left: 12px; transition: transform .2s var(--ease); }
.strip:hover::after { transform: translateX(6px); }
.strip:active { transform: scale(.985); }
.more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--g); margin-top: clamp(40px, 5vw, 72px); }
.more h3 { margin-bottom: 14px; }

.tab { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; }
.tab caption { padding-bottom: 14px; font-weight: 800; line-height: 1.3; text-align: left; }
.tab th, .tab td { padding: 13px 16px 13px 0; border-top: 1px solid rgba(21, 17, 15, .16); vertical-align: top; }
.tab thead th { border-top: 0; color: var(--muted); font-size: var(--sm); font-weight: 500; }
.tab tbody th { font-weight: 800; }
.tab tr:last-child > * { border-bottom: 1px solid rgba(21, 17, 15, .16); }

/* the no list */
.nope { padding: var(--pad) var(--m); background: var(--red); color: #fff; }
.nope h2 { margin-bottom: clamp(28px, 4vw, 56px); }
.nope li { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--g); align-items: last baseline; }
.nope h3 { font-size: clamp(44px, 10vw + 10px, 152px); line-height: .88; white-space: nowrap; transition: transform .3s var(--ease); }
.nope li:hover h3 { color: var(--ink); transform: translateX(12px); }
.nope p { padding-bottom: .5em; line-height: 1.4; }

/* fact card */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g); align-items: center; padding: var(--pad) var(--m); }
.hot { background: var(--red); color: #fff; }
.told { display: grid; gap: 22px; justify-items: start; }
.snap { width: clamp(150px, 15vw, 210px); height: auto; aspect-ratio: 5 / 7; margin-bottom: 12px; object-fit: cover; border: 9px solid var(--surface); border-radius: var(--r); box-shadow: var(--lift); rotate: -5deg; }
.snap.back { display: grid; place-items: center; }
.snap .suit { padding: .22em; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: clamp(56px, 6vw, 84px); box-shadow: 0 0 0 4px var(--gold); }
.sheet { padding: clamp(84px, 8vw, 112px) clamp(20px, 3vw, 44px) clamp(24px, 3vw, 40px); }
.sheet caption { text-transform: uppercase; }
.sheet tbody th { width: 34%; color: var(--muted); font-weight: 500; }

/* faq */
.faq-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: clamp(220px, 34svh, 360px);
  padding: 40px var(--m);
  overflow: hidden;
  background: var(--ink);
  color: var(--ground);
}
.faq-head .suit { margin: 0 2vw -6vw 0; color: var(--red); font-size: clamp(120px, 22vw, 320px); rotate: 12deg; }
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--g); padding: clamp(32px, 4vw, 56px) var(--m); background: var(--surface); }
.band:nth-child(odd) { background: var(--ground); }
.band h3 { text-transform: none; }
.band p { max-width: 60ch; }
.lines { display: grid; gap: 8px; margin-top: 16px; }
.lines li { padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: var(--ground); font-weight: 800; }

/* footer */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--g);
  padding: var(--pad) var(--m) clamp(32px, 4vw, 56px);
  overflow: hidden;
  background: var(--ink);
  color: var(--ground);
}
.bye { display: grid; gap: 28px; justify-items: start; }
.links { display: grid; gap: 6px; align-content: start; justify-items: start; }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(40px, 6vw, 96px); font-size: var(--sm); }

.byline { display: flex; gap: 16px; align-items: center; max-width: none; padding: 22px var(--m); border-top: 1px solid rgba(21, 17, 15, .14); background: var(--surface); color: var(--muted); font-size: var(--sm); line-height: 1.5; }
.byline strong { color: var(--ink); }
.byline__photo { flex: none; width: 64px; height: 64px; border-radius: 15px; object-fit: cover; }

.stick { display: none; }

/* entrances */
.js .rise { opacity: 0; transform: translateY(26px); }
.js .foot .rise { opacity: 1; }
.js .rise.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero, .steps-head, .steps-more, .walk-head, .trio, .more, .split, .foot { grid-template-columns: minmax(0, 1fr); }
  .stage { --cw: clamp(150px, 30vw, 230px); min-height: clamp(330px, 62vw, 480px); }
  .hand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field:nth-child(3) { background: var(--ink); color: var(--ground); }
  .field:nth-child(4) { background: var(--red); color: #fff; }
  .deck li { gap: 8px; grid-template-columns: minmax(0, 1fr); padding-block: 14px; }
  .tiles { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tiles h2, .tile { grid-area: auto; min-height: 0; }
  .tiles h2 { margin-bottom: 16px; }
  .nope li { gap: 6px; grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
  .nope p { max-width: 34em; padding-bottom: 0; }
  .band { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .trio .rank { margin-bottom: 20px; }
  .legal { display: grid; }
}

@media (max-width: 600px) {
  .nav { column-gap: 12px; font-size: var(--sm); }
  .hand { grid-template-columns: minmax(0, 1fr); }
  .field { flex-direction: row; gap: 20px; padding: 28px var(--m); }
  .field:nth-child(3) { background: var(--red); color: #fff; }
  .field:nth-child(4) { background: var(--ink); color: var(--ground); }
  .flip { width: 132px; flex: none; }
  .pic { font-size: var(--sm); }
  .js .ico { width: 60px; height: 60px; stroke-width: 3; }
  .stage { --cw: 130px; min-height: 290px; }
  .fan { --k: 4; inset: auto 12px 44px; width: auto; container-type: inline-size; }
  .fan.four { --k: 3; }
  .fan > li { right: auto; width: var(--cw); transform-origin: 50% 120%; --x: calc(var(--n) * (100cqw - var(--cw)) / var(--k)); }
  .fan > li:nth-child(1) { --a: -6deg; }
  .fan > li:nth-child(2) { --a: -3deg; }
  .fan > li:nth-child(3) { --a: 0deg; }
  .fan > li:nth-child(4) { --a: 3deg; }
  .fan > li:nth-child(5) { --a: 6deg; }
  .four > li:nth-child(1) { --a: -4.5deg; }
  .four > li:nth-child(2) { --a: -1.5deg; }
  .four > li:nth-child(3) { --a: 1.5deg; }
  .four > li:nth-child(4) { --a: 4.5deg; }
  .fan .rank { left: 10px; }
  .fan .rank.flipped { inset: auto 10px 12px auto; }
  .fan .rank small { font-size: 13px; font-stretch: 75%; }
  .fan .pot { gap: 4px; padding-top: 30%; }
  .fan .pot small { font-size: 13px; font-stretch: 85%; }
  .deck h3 { font-size: 30px; }
  .t3 { order: -1; }
  .tiles h2 { order: -2; }
  .sheet tbody th { width: 42%; }
  .go { width: 100%; }
  .stick {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    color: var(--ground);
    font-size: var(--sm);
    line-height: 1.2;
    box-shadow: 0 -12px 30px -12px rgba(21, 17, 15, .5);
    transition: transform .4s var(--ease);
  }
  .stick .go { width: auto; min-height: 48px; flex: none; margin-left: auto; padding: 0 18px; }
  .js .stick { transform: translateY(110%); }
  .js .stick.on { transform: none; }
  body:has(.stick) .foot { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}
