@font-face {
  font-family: Inter;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Inter-Bold.latin.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Inter-SemiBold.latin.woff2") format("woff2");
}

/* One colour, committed to as onestack commits to its yellow: the app's felt, a shade under the
   game's own so a phone's screen reads lit against it. Cream ink, gold for the slabs. */
:root {
  color-scheme: dark;
  --page: #17522c;
  --screen: #1f6b3a;
  --deep: #0e3a1f;
  --night: #0a2615;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.84);
  --faint: rgba(244, 241, 234, 0.74);
  --gold: #f2c14e;
  --line: rgba(255, 255, 255, 0.14);
  --well: rgba(0, 0, 0, 0.2);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --col: 1120px;
  --gutter: 16px;
  --gap: 120px;
  /* The app's press (src/ui/motion.ts PRESS_IN_MS / PRESS_OUT_MS, quad out). */
  --quad-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  box-sizing: border-box;
}

/* `hidden` wins over a component's display (a .btn is inline-flex). */
[hidden] {
  display: none !important;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font:
    600 17px / 1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The page is one flat sheet of felt laid on a darker table, its top corners rounded. */
.sheet {
  margin-top: 8px;
  border-radius: 28px 28px 0 0;
  overflow-x: clip;
  background: var(--page);
  min-height: 100vh;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline-color: var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--deep);
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
}

/* Nav: the brand alone. The buttons are in the hero, and the bar below keeps them in reach. */
.top {
  max-width: var(--col);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  align-items: center;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Buttons: the app's card stock (src/ui/menu-draw.ts drawStack/drawFace). A face over three card
   edges, 2, 4 and 6 px down (STACK 6), its shadow under them (0.38, blur 7, 10 px down), radius 14
   (STOCK_RADIUS), a 1 px edge inside the face. Pressed, the face sinks 4.5 px into the stack (SINK)
   in 120 ms and comes back in 160 ms; a hover lifts it 2 px and brightens it 7% (HOVER_LIFT,
   HOVER_GLOW). Gold is Resume, the main button; cream is New deal, the second. */
.btn {
  --face: #fffdf7;
  --edge: #d3ccbc;
  --l1: #ece6d8;
  --l2: #ddd6c4;
  --l3: #c9c1ab;
  --ink-btn: #1b1b1b;
  --stack:
    0 2px 0 var(--l1), 0 4px 0 var(--l2), 0 6px 0 var(--l3), 0 10px 14px -2px rgba(0, 0, 0, 0.38);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 6px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--face);
  color: var(--ink-btn);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px var(--edge),
    var(--stack);
  transition:
    transform 160ms var(--quad-out),
    box-shadow 160ms var(--quad-out),
    filter 160ms var(--quad-out);
  -webkit-tap-highlight-color: transparent;
}
.btn.gold {
  --face: #ffd54a;
  --edge: #e0b02a;
  --l1: #f2c43c;
  --l2: #ddae2c;
  --l3: #c3951f;
  --ink-btn: #352600;
  font-size: 20px;
}
.btn svg {
  flex: none;
}
/* A store button: the store badge's two lines ("Download on the" over "App Store"), in the app's
   stock and without the Apple or Google mark, which may only appear inside the official badge
   artwork. */
.btn.store {
  flex-direction: column;
  gap: 1px;
  padding: 0 24px;
  font-size: 20px;
  line-height: 1.05;
}
.btn.store small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.82;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow:
      inset 0 0 0 1px var(--edge),
      0 4px 0 var(--l1),
      0 6px 0 var(--l2),
      0 8px 0 var(--l3),
      0 12px 16px -2px rgba(0, 0, 0, 0.38);
  }
}
.btn:active {
  transform: translateY(4.5px);
  filter: none;
  box-shadow:
    inset 0 0 0 1px var(--edge),
    0 1.5px 0 var(--l3),
    0 5.5px 10px -2px rgba(0, 0, 0, 0.38);
  transition-duration: 120ms;
}
.btn.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Which download button shows (site.js sets data-os and, once Google Play is live, data-play).
   Without the script: the App Store and the browser game. */
.ctas [data-store="play"] {
  display: none;
}
[data-play="live"]:not([data-os="ios"]) .ctas [data-store="play"] {
  display: inline-flex;
}
[data-os="android"] .ctas [data-store="app"],
[data-os="android"] .ios-only {
  display: none;
}
/* Android with no store to send it to: the browser game is the main button. */
[data-os="android"]:not([data-play="live"]) .ctas .browser {
  --face: #ffd54a;
  --edge: #e0b02a;
  --l1: #f2c43c;
  --l2: #ddae2c;
  --l3: #c3951f;
  --ink-btn: #352600;
  font-size: 20px;
}
.foot-links [data-store="play"] {
  display: none;
}
[data-play="live"]:not([data-os="ios"]) .foot-links [data-store="play"] {
  display: inline;
}

main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The eyebrow: a gold slab with mono type, set a little crooked, over every claim. */
.tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 3px 9px 2px;
  background: var(--gold);
  color: var(--deep);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  transform: rotate(-1.5deg);
  border-radius: 2px;
  align-self: flex-start;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.047em;
}

h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
/* A two-sentence claim: each sentence its own line where there is room. */
@media (min-width: 861px) {
  h2 .line {
    display: block;
  }
}

.lede {
  margin: 24px 0 0;
  max-width: 36ch;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.42;
  text-wrap: pretty;
}

.body {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* The phone: a device frame around a real capture of the web build, drawn in CSS so it is crisp
   at every size and costs nothing to load. Sizes are in the device's points (--pt), so one frame
   scales to any width: an iPhone 15 Pro / 16 class screen (393x852 pt, corners 55), a black bezel
   9.5 pt, a titanium band 4.5 pt with its buttons, the status bar, Dynamic Island and home
   indicator from /img/frame/iphone.svg. `.device.pixel` is a Pixel 9 class phone (412x923 dp).
   The band's light is a conic gradient turned against the phone's tilt (--tilt), so a phone fanned
   in the hand keeps its highlight where the page's light is, top left. */
.phone {
  margin: 0;
  width: 280px;
  container-type: inline-size;
  --tilt: 0deg;
}
.device {
  --sw: 393;
  --sh: 852;
  --r: 55;
  --bz: 9.5;
  --band: 4.5;
  --pt: calc(100cqw / (var(--sw) + 2 * (var(--bz) + var(--band))));
  --light: -40deg;
  --chrome: url("/img/frame/iphone.svg");
  position: relative;
  padding: calc(var(--band) * var(--pt));
  border-radius: calc((var(--r) + var(--bz) + var(--band)) * var(--pt));
  /* Graphite titanium: bright where the light catches the edge, dark along the far sides. */
  background: conic-gradient(
    from calc(var(--light) - var(--tilt)),
    #f1f2f3 0deg,
    #8b8f94 22deg,
    #3a3d41 70deg,
    #24262a 120deg,
    #4d5156 165deg,
    #a7abb0 182deg,
    #44474c 200deg,
    #1f2124 250deg,
    #2f3236 300deg,
    #9da1a6 340deg,
    #f1f2f3 360deg
  );
  box-shadow:
    inset 0 0 0 calc(0.6 * var(--pt)) rgba(255, 255, 255, 0.28),
    0 calc(1 * var(--pt)) calc(2 * var(--pt)) rgba(0, 0, 0, 0.4),
    0 calc(24 * var(--pt)) calc(48 * var(--pt)) calc(-8 * var(--pt)) rgba(0, 0, 0, 0.5),
    0 calc(60 * var(--pt)) calc(110 * var(--pt)) calc(-30 * var(--pt)) rgba(0, 0, 0, 0.42);
}
/* The buttons, standing 1.6 pt proud of the band: Action and volume on the left, the side button
   and Camera Control (flush, darker sapphire) on the right; positions from the device's top. */
.device::before,
.device::after {
  content: "";
  position: absolute;
  top: 0;
  width: calc(2.2 * var(--pt));
  height: 100%;
  background-repeat: no-repeat;
  --btn: linear-gradient(90deg, #2a2c30, #8c9095 45%, #3a3d41);
}
.device::before {
  left: calc(-1.6 * var(--pt));
  border-radius: calc(1 * var(--pt)) 0 0 calc(1 * var(--pt));
  background-image: var(--btn), var(--btn), var(--btn);
  background-size:
    100% calc(32 * var(--pt)),
    100% calc(62 * var(--pt)),
    100% calc(62 * var(--pt));
  background-position:
    0 calc(118 * var(--pt)),
    0 calc(184 * var(--pt)),
    0 calc(260 * var(--pt));
}
.device::after {
  right: calc(-1.6 * var(--pt));
  background-image: var(--btn), linear-gradient(90deg, #15171a, #3b3f45 60%, #15171a);
  background-size:
    100% calc(96 * var(--pt)),
    100% calc(56 * var(--pt));
  background-position:
    0 calc(206 * var(--pt)),
    0 calc(560 * var(--pt));
}
.screen {
  position: relative;
  box-sizing: content-box;
  width: calc(var(--sw) * var(--pt));
  aspect-ratio: var(--sw) / var(--sh);
  border: calc(var(--bz) * var(--pt)) solid #050506;
  border-radius: calc((var(--r) + var(--bz)) * var(--pt));
  overflow: hidden;
  background: var(--screen);
  /* The seam where glass meets metal. */
  box-shadow: 0 0 0 calc(0.6 * var(--pt)) #0b0c0e;
}
/* Corners are clipped on the display itself too: Safari does not clip video to a parent's radius
   on every version. */
.screen video,
.screen img,
.screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: calc(var(--r) * var(--pt));
}
/* The status bar, island and home indicator, over the capture. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome) center / 100% 100% no-repeat;
  pointer-events: none;
}
/* The live game in the hero phone has no insets of its own: it sits between the bars. */
.screen iframe {
  position: absolute;
  left: 0;
  top: calc(59 * var(--pt));
  height: calc((var(--sh) - 59 - 34) * var(--pt));
  border-radius: 0;
}
.device.pixel {
  --sw: 412;
  --sh: 923;
  --r: 46;
  --bz: 10.5;
  --band: 4;
  --chrome: url("/img/frame/pixel.svg");
  /* Flat aluminium: a satin edge, lighter and more even than titanium. */
  background: conic-gradient(
    from calc(var(--light) - var(--tilt)),
    #e9eaec 0deg,
    #b4b7bb 30deg,
    #7d8186 90deg,
    #6a6e73 170deg,
    #9a9ea3 200deg,
    #64686d 260deg,
    #8a8e93 320deg,
    #e9eaec 360deg
  );
}
.device.pixel::before {
  display: none;
}
.device.pixel::after {
  --btn: linear-gradient(90deg, #6a6e73, #c7cace 50%, #7a7e83);
  background-image: var(--btn), var(--btn);
  background-size:
    100% calc(52 * var(--pt)),
    100% calc(104 * var(--pt));
  background-position:
    0 calc(214 * var(--pt)),
    0 calc(296 * var(--pt));
}
/* Safari draws its own play glyph over a poster when autoplay is refused (Low Power Mode): the
   poster stands alone instead. Under reduced motion the controls are wanted. */
:root:not([data-calm]) video.loop::-webkit-media-controls-start-playback-button,
:root:not([data-calm]) video.loop::-webkit-media-controls-overlay-play-button,
:root:not([data-calm]) video.loop::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

figure figcaption {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* Hero: onestack's column, the claim over the product, and the product is a hand of three. */
.hero {
  padding: 64px 0 0;
}
/* The fold shows only the phones' tops at 1440, so the side phones sit nearly level with the
   middle one: enough of Royal (its crown is 28-45% down the screen) and the dealt columns shows. */
.fan {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.fan .middle {
  width: 310px;
  position: relative;
  z-index: 1;
}
.fan .side {
  width: 278px;
  margin-top: 14px;
}
.fan .left {
  --tilt: -7deg;
  margin-right: -26px;
  transform: rotate(var(--tilt));
  transform-origin: 100% 100%;
}
.fan .right {
  --tilt: 7deg;
  margin-left: -26px;
  transform: rotate(var(--tilt));
  transform-origin: 0 100%;
}

/* Sections: eyebrow, claim, a line or two, and a typographic proof only where it carries the
   claim, as onestack's are. */
.block {
  padding-top: var(--gap);
}

/* The fair-deal counts, drawn the way onestack draws a benchmark: bars, numbers, the method. */
.chart {
  margin: 36px 0 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
}
.chart .row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bar {
  height: 28px;
  border-radius: 4px;
  background: var(--ink);
  /* The bar's share of the row, leaving room for the longest number after it. */
  width: calc((100% - 110px) * var(--w));
  flex: none;
}
.num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.foot-note {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--faint);
}

/* Two claims side by side. */
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 80px;
}
.two section {
  display: flex;
  flex-direction: column;
}

.chips {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.chips .rare {
  color: var(--gold);
}

.plus-head h2 {
  max-width: none;
}

.plans {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.plan {
  padding: 32px;
  border-radius: 24px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan.plus {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.plan h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.plan.plus h3 {
  color: var(--gold);
}

.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg);
}
.ticks b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.end {
  padding: var(--gap) 0 120px;
  text-align: center;
}
.end-icon {
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.end .ctas {
  justify-content: center;
}

/* The dock, the bottom bar (landing page only): the app's own bar, the same two buttons floating on a
   strip of darkened, blurred felt. It rises once the hero's buttons have scrolled away and sinks
   while they or the closing buttons are in view (site.js). Translate and opacity only, on a short
   spring with a little overshoot, the app's press release in feel; under reduced motion it just
   appears. */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  background: rgba(10, 38, 21, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 260ms var(--quad-out),
    opacity 200ms linear;
}
.dock.up {
  transform: none;
  opacity: 1;
  transition:
    transform 460ms cubic-bezier(0.34, 1.32, 0.5, 1),
    opacity 160ms linear;
}
.dock .ctas {
  margin: 0;
  flex-wrap: nowrap;
  gap: 12px;
}
[data-calm] .dock {
  transition: none;
}
/* Room under the footer so the dock never covers its links. */
.has-bar footer {
  padding-bottom: 140px;
}

/* Support and privacy: one reading column on the same sheet, on the page's left edge. */
.doc {
  padding-top: 80px;
  padding-bottom: 120px;
}
.doc > * {
  max-width: 640px;
}
.doc h1 {
  font-size: clamp(44px, 6vw, 72px);
  max-width: none;
}
.doc .lede {
  max-width: 40ch;
}
.doc .lede a,
.doc p a {
  color: var(--gold);
}
.doc h2 {
  margin-top: 56px;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.doc p {
  margin: 12px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}
.doc .updated {
  margin-top: 16px;
  color: var(--faint);
}

/* Footer: peach's plain links, onestack's one-line credit. */
footer {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  font-size: 15px;
}
.foot {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.foot .brand {
  font-size: 16px;
}
.foot .brand img {
  border-radius: 7px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot-links a {
  text-decoration: none;
}
.foot-links a:hover {
  text-decoration: underline;
}
.credit {
  margin: 20px 0 0;
  color: var(--faint);
}

@media (max-width: 860px) {
  :root {
    --gap: 96px;
  }
  .hero {
    padding-top: 48px;
  }
  .fan {
    margin-top: 48px;
  }
  /* One phone at phone width: three would be too small to read. */
  .fan .side {
    display: none;
  }
  .fan .middle {
    width: min(290px, 76vw);
  }
  .two {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }
  .chart {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }
  .num {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 16px;
  }
  .ctas > * {
    width: 100%;
  }
  /* The bar's two buttons share the row at phone width. */
  .dock .ctas {
    width: 100%;
  }
  .dock .ctas > * {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0 10px;
    font-size: 15px;
  }
  .plan {
    padding: 24px 20px;
  }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-links {
    flex-direction: column;
    gap: 12px;
  }
}
