/* alfriend. Paper, ink and a little silver: the system Titan and Frontrunner are built on, worn black tie. One grotesk
   at a regular weight, mono capitals for labels, white cards with a hairline, soft fields of colour wherever glass needs
   something behind it, and the app itself as the one dark thing on the page. */

/* Chronicle Display, Hoefler & Co (licensed for the web): assets/fonts/. Until they load, headlines are in Georgia. */
@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/ChronicleDisplay-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chronicle Display";
  src: url("assets/fonts/ChronicleDisplay-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paper and ink. Titan: #fdfefa, #f6f7f3, #e9eae6, #e2e2de; #12100e, #1d1b19, #403e3c, #595755, #878784.
     Frontrunner: #f7f6f5 paper, white cards, rgba(0,0,0,.08) hairlines. */
  --paper: #f7f6f4;
  --paper-2: #fdfdfb;
  --card: #ffffff;
  --card-2: #f6f7f3;
  --muted: #ecebe7;
  --line: rgb(18 16 14 / 0.08);
  --line-2: #e2e2de;
  --ink: #12100e;
  --ink-2: #1d1b19;
  --ink-soft: #403e3c;
  --ink-mute: #595755;
  --ink-faint: #878784;
  --olive: #556b2f;

  /* The app's own colours, for its window */
  --text: #f4f4f1;
  --soft: #d9d9d4;
  --mute: #a3a3a6;
  --dim: #8a8a8f;
  --faint: #5c5c61;
  --hair: rgb(255 255 255 / 0.08);
  --hair-2: rgb(255 255 255 / 0.14);
  --handled: #a9d9b6;
  --asks: #e9cf92;
  --platinum: linear-gradient(180deg, #fbfaf7 0%, #ebe9e4 52%, #d8d6d0 100%);

  /* Type: Chronicle Display (Hoefler & Co) for headlines, its Light Italic for the turn of a phrase; Schibsted
     Grotesk, a newspaper grotesk to Chronicle's newspaper serif, for everything else at a regular weight; mono capitals
     for labels (Frontrunner). */
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Chronicle Display", Georgia, "Times New Roman", serif;
  --app: "Google Sans Flex", "Google Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-hero: clamp(2.5rem, 1.7rem + 3vw, 4rem);
  --t-h2: clamp(2.125rem, 1.6rem + 1.7vw, 3rem);
  --t-h3: 1.25rem;
  --t-body: 1.125rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  /* Shape and depth: square, with only a slight round to the corners; Frontrunner's hairlines and its one deep shadow. */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-card: 6px;
  --r-window: 10px;
  --shadow-card: 0 1px 2px rgb(28 27 24 / 0.05), 0 1px 1px rgb(28 27 24 / 0.03);
  --shadow-float: 0 30px 60px -30px rgb(28 27 24 / 0.38), 0 2px 6px rgb(28 27 24 / 0.06);
  --shadow-window: 0 32px 80px -24px rgb(28 27 24 / 0.45), 0 2px 6px rgb(28 27 24 / 0.08);

  /* Fields: soft, out-of-focus colour for glass to sit on, as Titan's blurred backdrops are, made of light alone. */
  --field-stone: radial-gradient(62% 72% at 16% 18%, #f1ede5 0%, rgb(241 237 229 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #8e897f 0%, rgb(142 137 127 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #d2ccc1 0%, rgb(210 204 193 / 0) 70%), linear-gradient(135deg, #ded9cf, #b4aea2);
  --field-slate: radial-gradient(62% 72% at 16% 18%, #e3e6e6 0%, rgb(227 230 230 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #66707a 0%, rgb(102 112 122 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #bcc2c5 0%, rgb(188 194 197 / 0) 70%), linear-gradient(135deg, #c7cbcc, #8a9398);
  --field-olive: radial-gradient(62% 72% at 16% 18%, #e7e8da 0%, rgb(231 232 218 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #646a4d 0%, rgb(100 106 77 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #c6c9b1 0%, rgb(198 201 177 / 0) 70%), linear-gradient(135deg, #d2d4c2, #939a7b);
  --field-graphite: radial-gradient(62% 72% at 16% 18%, #96938d 0%, rgb(150 147 141 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #1c1b19 0%, rgb(28 27 25 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #615f5b 0%, rgb(97 95 91 / 0) 70%), linear-gradient(135deg, #6f6d68, #2d2c2a);
  --field-rose: radial-gradient(62% 72% at 16% 18%, #f2ece8 0%, rgb(242 236 232 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #8d827c 0%, rgb(141 130 124 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #d6cbc5 0%, rgb(214 203 197 / 0) 70%), linear-gradient(135deg, #dcd3ce, #aaa09a);
  --field-sand: radial-gradient(62% 72% at 16% 18%, #f6f1e6 0%, rgb(246 241 230 / 0) 70%), radial-gradient(56% 64% at 86% 84%, #9c8f78 0%, rgb(156 143 120 / 0) 72%), radial-gradient(38% 46% at 68% 26%, #dccfb8 0%, rgb(220 207 184 / 0) 70%), linear-gradient(135deg, #e4dccd, #bcae95);

  --gutter: clamp(16px, 4.5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p,
figure,
blockquote {
  margin: 0;
}
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
button,
input {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1336px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mark {
  display: inline-block;
  width: 24px;
  aspect-ratio: 480 / 377;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='105 232 1040 818'%3E%3Cpath d='M545 235c15 0 27 3 25 10l-95 260-83 2 151 263-168 275H148c-30 0-48-25-36-52l233-481 148-244c12-20 32-33 52-33zM705 235c-15 0-27 3-25 10l95 260 83 2-151 263 168 275h227c30 0 48-25 36-52L905 512 757 268c-12-20-32-33-52-33zM534 434l91 46 91-46v114l-91-45-91 45z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='105 232 1040 818'%3E%3Cpath d='M545 235c15 0 27 3 25 10l-95 260-83 2 151 263-168 275H148c-30 0-48-25-36-52l233-481 148-244c12-20 32-33 52-33zM705 235c-15 0-27 3-25 10l95 260 83 2-151 263 168 275h227c30 0 48-25 36-52L905 512 757 268c-12-20-32-33-52-33zM534 434l91 46 91-46v114l-91-45-91 45z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- type */
/* Labels in mono capitals, as Frontrunner sets them; a badge is one in a hairline box. */
.label {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge .mark {
  width: 14px;
  color: var(--ink);
}
.h-hero {
  font-family: var(--display);
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--display);
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.005em;
}
/* The second thought of a headline, in Chronicle's Light Italic. */
.h-hero em,
.h2 em {
  font-style: italic;
  font-weight: 300;
}
.h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
}
.sub {
  color: var(--ink-mute);
  font-size: var(--t-body);
  line-height: 1.5;
  text-wrap: pretty;
}
.small {
  color: var(--ink-mute);
  font-size: var(--t-small);
  line-height: 1.5;
}
.quiet {
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- buttons: Titan's 52px and regular weight, squared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-ink,
.btn-platinum {
  color: #f6f7f3;
  background: var(--ink-2);
}
.btn-ink:hover,
.btn-platinum:hover {
  background: #33312e;
}
.btn-soft {
  color: var(--ink);
  background: rgb(18 16 14 / 0.06);
}
.btn-soft:hover {
  background: rgb(18 16 14 / 0.1);
}
.btn-paper {
  color: var(--ink);
  background: var(--paper-2);
}
.btn-paper:hover {
  background: #fff;
}
/* Frontrunner's registration marks, framing the one thing to press. */
.crop {
  position: relative;
  display: inline-flex;
  padding: 9px;
}
.crop::before,
.crop::after,
.crop > i::before,
.crop > i::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0 solid var(--ink-faint);
}
.crop::before {
  left: 0;
  top: 0;
  border-width: 1px 0 0 1px;
}
.crop::after {
  right: 0;
  top: 0;
  border-width: 1px 1px 0 0;
}
.crop > i::before {
  left: 0;
  bottom: 0;
  border-width: 0 0 1px 1px;
}
.crop > i::after {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}
.link-on {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: gap 0.3s var(--ease);
}
.link-on::after {
  content: "→";
  text-decoration: none;
}
.link-on:hover {
  gap: 12px;
}

/* ---------------------------------------------------------------- the bar: three floating pieces of clear glass, squared */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(16px, 2.4vw, 28px) 0;
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.glass {
  background: rgb(253 253 251 / 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(28 27 24 / 0.04);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  width: 24px;
}
/* The wordmark: "alfriend" in Chronicle Display Semibold, drawn as outlines (assets/wordmark.svg) in the text colour;
   the word itself stays in the page, unseen. */
.brand-word {
  display: inline-block;
  height: 15px;
  aspect-ratio: 4.6088;
  font-size: 0;
  background: currentColor;
  -webkit-mask: url("assets/wordmark.svg") left center / contain no-repeat;
  mask: url("assets/wordmark.svg") left center / contain no-repeat;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-sm);
}
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--r-xs);
  color: var(--ink-mute);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgb(18 16 14 / 0.05);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgb(18 16 14 / 0.07);
}
.nav-cta {
  margin-left: auto;
  height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}
.nav .glass,
.nav .btn,
.nav-links a {
  transition: background 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
/* Over the dark parts of the page, the glass turns smoked and the button to paper. */
.nav.is-dark .glass {
  color: var(--paper);
  background: rgb(18 16 14 / 0.5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.nav.is-dark .nav-links a {
  color: rgb(247 246 244 / 0.7);
}
.nav.is-dark .nav-links a:hover,
.nav.is-dark .nav-links a[aria-current="page"] {
  color: var(--paper);
  background: rgb(255 255 255 / 0.1);
}
.nav.is-dark .nav-cta {
  color: var(--ink);
  background: var(--paper-2);
}
.nav-menu {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  cursor: pointer;
}
.nav-menu-icon {
  position: relative;
  width: 16px;
  height: 10px;
}
.nav-menu-icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: top 0.35s var(--ease), bottom 0.35s var(--ease), rotate 0.35s var(--ease);
}
.nav-menu-icon i:first-child {
  top: 0;
}
.nav-menu-icon i:last-child {
  bottom: 0;
}
.nav-menu[aria-expanded="true"] .nav-menu-icon i:first-child {
  top: 4.25px;
  rotate: 45deg;
}
.nav-menu[aria-expanded="true"] .nav-menu-icon i:last-child {
  bottom: 4.25px;
  rotate: -45deg;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: rgb(247 246 244 / 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s var(--ease), translate 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.menu-links a::after {
  content: "→";
  color: var(--ink-faint);
  font-size: 1.25rem;
}
.menu-links a[aria-current="page"]::after {
  content: "·";
}
.menu.is-open .menu-links a {
  opacity: 1;
  translate: 0 0;
}
.menu-cta {
  width: 100%;
  margin-top: auto;
}

/* ---------------------------------------------------------------- the opening: the name, cut from the cloth */
/* The opening: only the name, with the app straight beneath it (the show's own top keeps the bar clear). */
.hero {
  padding: calc(env(safe-area-inset-top, 0px) + clamp(88px, 12vh, 124px)) 0 0;
}
/* The name in pinstripe, as Frontrunner sets its own in bars: the suit's cloth, at the size of the page. */
.wordmark {
  --s: clamp(5.5rem, 27.5vw, 24.5rem);
  margin: clamp(20px, 3vw, 40px) 0 0;
  aspect-ratio: 5.0424;
  overflow: hidden;
  font-size: 0;
  /* The pinstripe, cut by "alfriend" in Chronicle Display Black, drawn as outlines (assets/wordmark-hero.svg). */
  background: repeating-linear-gradient(90deg, var(--ink) 0 calc(var(--s) * 0.0105), transparent calc(var(--s) * 0.0105) calc(var(--s) * 0.024));
  -webkit-mask: url("assets/wordmark-hero.svg") center / contain no-repeat;
  mask: url("assets/wordmark-hero.svg") center / contain no-repeat;
  user-select: none;
}
/* After the show: what it is, in a sentence, and the invitation. */
.pitch {
  padding-block: clamp(72px, 9vw, 128px) clamp(24px, 3vw, 40px);
}
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}
.hero-foot .h-hero {
  max-width: 11em;
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  justify-self: end;
  max-width: 420px;
}
.hero-side .label {
  font-size: 0.8125rem;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* ---------------------------------------------------------------- the show: the app, pinned on its desk, walking its rooms */
.show {
  position: relative;
}
.show.is-live {
  height: calc(100svh + var(--chapters, 6) * 62svh);
}
.show.is-live .show-pin {
  position: sticky;
  top: 0;
  height: 100svh;
}
.show-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  padding-bottom: clamp(16px, 3vh, 28px);
}
.show-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex: none;
}
.captions {
  position: relative;
  flex: 1;
  min-width: 0;
}
.is-live .captions {
  height: var(--cap-h, 104px);
}
.show:not(.is-live) .cap:not(:first-child) {
  display: none;
}
.cap {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.is-live .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.cap.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.06s;
}
.cap .sub {
  margin-top: 10px;
}
.chapter {
  flex: none;
  margin-bottom: 6px;
}
.chapter b {
  color: var(--ink);
  font-weight: 400;
}
/* The desk: a field of soft colour the window sits on; it changes with each room. */
.desk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: clamp(14px, 2.6vw, 36px);
  border-radius: var(--r-card);
  background: var(--card-2);
}
.is-live .desk {
  flex: 1;
  min-height: 0;
}
.show:not(.is-live) .desk {
  height: clamp(560px, 76svh, 760px);
}
.tone {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.tone.is-on {
  opacity: 1;
}
.tone-stone,
.f-stone {
  background: var(--field-stone);
}
.tone-slate,
.f-slate {
  background: var(--field-slate);
}
.tone-olive,
.f-olive {
  background: var(--field-olive);
}
.tone-graphite,
.f-graphite {
  background: var(--field-graphite);
}
.tone-rose,
.f-rose {
  background: var(--field-rose);
}
.tone-sand,
.f-sand {
  background: var(--field-sand);
}

/* ---------------------------------------------------------------- the Mac window: the app, as it is */
/* The window is the app itself (demo/mac.html, the real screens on a stand-in core), in a frame laid out at a real
   window's width and scaled to fit (main.js sets --k). The frame is clear: the app paints its own dark veil, as it
   does over the Mac's vibrancy, which this blur of the desk stands in for. */
.mac {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: clamp(520px, 72svh, 720px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--r-window);
  background: rgb(28 28 30 / 0.5);
  -webkit-backdrop-filter: blur(44px) saturate(160%);
  backdrop-filter: blur(44px) saturate(160%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.12), var(--shadow-window);
}
.is-live .mac {
  height: min(100%, 700px);
}
.app-frame {
  display: block;
  border: 0;
  background: transparent;
  /* The app's own scheme, so the frame stays clear wherever the app is. */
  color-scheme: dark;
  /* Watched, not used: the page scrolls on over it. */
  pointer-events: none;
}
.mac-app {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 100%;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}
/* The window's own buttons, which macOS draws over the app, at the window's scale. */
.mac-lights {
  position: absolute;
  top: calc(18px * var(--k, 1));
  left: calc(18px * var(--k, 1));
  z-index: 3;
  display: flex;
  gap: calc(8px * var(--k, 1));
}
.mac-lights i {
  width: calc(12px * var(--k, 1));
  height: calc(12px * var(--k, 1));
  border-radius: 999px;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.28);
}
.mac-lights i:nth-child(2) {
  background: #febc2e;
}
.mac-lights i:nth-child(3) {
  background: #28c840;
}

/* ---------------------------------------------------------------- the app's parts, as the features page draws them (light there: .lite) */
.rp-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.025);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}
.rp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.045);
  font-size: 14px;
}
.rp-row:last-child {
  border-bottom: 0;
}
.rp-row .grow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.rp-row small {
  color: var(--dim);
  font-size: 12.5px;
}
.rp-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
  color: var(--soft);
  font-size: 12.5px;
}
.rp-chip.on {
  background: var(--platinum);
  color: #0a0a0b;
  font-weight: 600;
  box-shadow: none;
}

/* Taste */
.ts-tiers {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}
.ts-tiers button,
.ts-tiers span {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mute);
  font-size: 13.5px;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
}
.ts-tiers [aria-checked="true"],
.ts-tiers .on {
  background: var(--platinum);
  color: #0a0a0b;
  font-weight: 600;
}
.ts-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ts-brands li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--faint);
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
}
.ts-brands li.is-lit {
  color: var(--text);
  background: rgb(255 255 255 / 0.1);
}

/* ---------------------------------------------------------------- sections */
.part {
  padding-block: clamp(80px, 10vw, 144px);
}
.part + .part {
  padding-top: 0;
}
.part-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.part-head.center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}
.fine {
  max-width: 760px;
  margin-top: 24px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.55;
}
.fine a {
  color: var(--ink-mute);
}

/* The sites: Titan's row of grey marks between hairlines, cycling slowly past. */
.logos {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 2fr);
  gap: 24px 48px;
  align-items: center;
  padding-block: 40px;
  border-block: 1px solid var(--line-2);
}
.logos .h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
.logos .small {
  margin-top: 8px;
  color: var(--ink-faint);
}
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 56s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.logo-set {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
}
.logo-set img {
  width: auto;
  height: var(--h, 22px);
  filter: brightness(0);
  opacity: 0.5;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* One line of character, with the room to itself. */
.statement-part {
  padding-block: clamp(120px, 15vw, 220px);
}
.statement {
  max-width: 19em;
  margin-inline: auto;
  font-family: var(--display);
  font-size: var(--t-h2);
  line-height: 1.24;
  letter-spacing: -0.005em;
  text-align: center;
  text-wrap: balance;
}
.statement .quiet {
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 300;
}

/* Errands: Titan's underlined tabs; each answer floats in frosted glass on a field of its own. */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-2);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  position: relative;
  flex: none;
  padding: 16px 18px;
  border: 0;
  background: none;
  color: var(--ink-faint);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s;
}
.tab:hover,
.tab[aria-selected="true"] {
  color: var(--ink);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--line-2);
}
.tab .tab-time {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: var(--p, 0%);
  background: var(--ink);
}
.is-chosen .tab[aria-selected="true"] .tab-time {
  width: 100%;
}
.panels {
  display: grid;
  margin-top: clamp(28px, 4vw, 48px);
}
.panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.panel.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.panel-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 26em;
}
.panel-text .h3::before {
  content: "“";
}
.panel-text .h3::after {
  content: "”";
}
.setting {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(400px, 36vw, 500px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--r-card);
}
/* Frosted white glass, as Titan floats its cards: a pane of it holding a clean white card. */
.frost {
  background: rgb(255 255 255 / 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55), var(--shadow-float);
}
.pane {
  width: min(100%, 420px);
  padding: 10px;
  border-radius: var(--r-card);
}
.result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  border-radius: var(--r-xs);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chip {
  padding: 5px 10px;
  border-radius: var(--r-xs);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  white-space: nowrap;
}
.chip.ok {
  color: var(--olive);
  background: rgb(85 107 47 / 0.08);
  box-shadow: none;
}
.result h4 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.result .small {
  margin-top: -8px;
}
.result-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.result-price b {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.progress i {
  height: 3px;
  border-radius: 1px;
  background: var(--muted);
}
.progress i.done {
  background: var(--ink);
}

/* Silver: the result as a card of brushed platinum, engraved in ink, held up in a pane of glass. */
.result.silver {
  color: #23221f;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.06) 0 1px, rgb(0 0 0 / 0.022) 1px 2px),
    linear-gradient(112deg, rgb(255 255 255 / 0) 24%, rgb(255 255 255 / 0.55) 41%, rgb(255 255 255 / 0) 57%),
    linear-gradient(160deg, #efede8 0%, #cfcdc7 38%, #e7e5e0 62%, #bcbab4 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(0 0 0 / 0.12), inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.result.silver .label {
  color: #4b4945;
}
.result.silver .small {
  color: #4b4945;
}
.result.silver h4,
.result.silver .result-price b {
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
}
.result.silver .chip {
  color: #3d3b38;
  background: rgb(255 255 255 / 0.35);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1);
}
.result.silver .chip.ok {
  color: #3f5222;
}
.result.silver .result-price {
  border-top-color: rgb(0 0 0 / 0.14);
}
.result.silver .progress i {
  background: rgb(0 0 0 / 0.12);
}
.result.silver .progress i.done {
  background: #2b2a27;
}

/* Black steel: near-black with brushed steel laid over it, as the app makes its own cards; the dark still leads. */
.steel {
  isolation: isolate;
}
.steel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("assets/app/metal.jpg") center / cover no-repeat;
  opacity: 0.5;
  filter: brightness(0.78) contrast(0.9);
  pointer-events: none;
}

/* Flourishes: the app's own platinum scrollwork, tucked into two opposite corners as the app sets them on its cards;
   the hairlines fade out from the scroll rather than stopping short (the email's are drawn the same way). */
.ornate {
  position: relative;
}
.orn {
  position: absolute;
  width: var(--orn, 84px);
  aspect-ratio: 1;
  background: url("assets/app/corner.png") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle at 18% 18%, #000 0 30%, rgb(0 0 0 / 0.55) 52%, transparent 82%);
  mask-image: radial-gradient(circle at 18% 18%, #000 0 30%, rgb(0 0 0 / 0.55) 52%, transparent 82%);
  pointer-events: none;
}
.orn.tl {
  left: var(--orn-in, 12px);
  top: var(--orn-in, 12px);
}
.orn.tr {
  right: var(--orn-in, 12px);
  top: var(--orn-in, 12px);
  transform: scaleX(-1);
}
.orn.bl {
  left: var(--orn-in, 12px);
  bottom: var(--orn-in, 12px);
  transform: scaleY(-1);
}
.orn.br {
  right: var(--orn-in, 12px);
  bottom: var(--orn-in, 12px);
  transform: rotate(180deg);
}

/* Your phone: the lock screen, on a field. */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.duo .part-head {
  margin-bottom: 0;
}
.duo .setting {
  height: clamp(560px, 52vw, 700px);
  padding: clamp(24px, 3.5vw, 48px);
}

/* Cards: white on the paper with a hairline, as Frontrunner sets them, at Titan's 16px corner. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.card .label {
  margin-bottom: auto;
  padding-bottom: 32px;
}
.card .h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--ink-mute);
  font-size: var(--t-small);
}

/* ---------------------------------------------------------------- the close: black tie, at last */
.closing {
  padding: 0 var(--gutter) clamp(16px, 2vw, 24px);
}
.closing-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1336px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter);
  border-radius: var(--r-card);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.closing-panel {
  --orn: clamp(76px, 8vw, 104px);
  --orn-in: 2px;
}
.closing-panel > .orn {
  filter: brightness(0.95) saturate(0);
  opacity: 0.36;
}
.invite-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 620px);
  padding: 44px clamp(20px, 5vw, 60px);
}
.closing-panel .badge {
  border-color: rgb(255 255 255 / 0.14);
  background: transparent;
  color: rgb(247 246 244 / 0.66);
}
.closing-panel .badge .mark {
  color: var(--paper);
}
.closing-panel .h2 {
  margin-top: 24px;
}
.closing-panel .sub {
  margin-top: 12px;
  color: rgb(247 246 244 / 0.62);
}
.invite-form {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 460px;
  margin-top: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  transition: box-shadow 0.25s;
}
.invite-form:focus-within {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
}
.invite-form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1rem;
  outline: none;
}
.invite-form input::placeholder {
  color: rgb(247 246 244 / 0.4);
}
.invite-form .btn {
  height: 46px;
}
.invite-form.is-invalid {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}
.invite-note {
  min-height: 1.5em;
  margin-top: 14px;
  color: rgb(247 246 244 / 0.5);
  font-size: 0.875rem;
}
.invite-done {
  margin-top: 36px;
  font-size: 1.25rem;
}

/* ---------------------------------------------------------------- an iPhone, properly: the app on a phone */
/* The desk's notification, as macOS draws one: frosted, with Apple's roundness. */
.desk-note {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: min(344px, 42%);
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.desk-note.is-on {
  opacity: 1;
  transform: none;
}
.desk-note img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.desk-note p {
  font-family: -apple-system, BlinkMacSystemFont, var(--app);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.desk-note p:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}
.desk-note b {
  font-weight: 600;
}
.desk-note span {
  color: var(--ink-faint);
  font-size: 12px;
}

/* On the desk, the iPhone stands in for the Mac only on a phone's screen. */
.desk .iphone {
  display: none;
}
/* The phone: laid out at an iPhone's own size (393 by 852 points), then scaled to fit, so every proportion is true.
   A slim titanium edge, a thin black bezel, the Dynamic Island, the status bar and the home indicator; nothing more. */
.iphone {
  position: relative;
  flex: none;
  aspect-ratio: 419 / 878;
  height: 100%;
  max-height: 720px;
  max-width: 100%;
  filter: drop-shadow(0 34px 44px rgb(28 27 24 / 0.32)) drop-shadow(0 4px 8px rgb(28 27 24 / 0.12));
}
.iphone-device {
  position: absolute;
  left: 0;
  top: 0;
  width: 419px;
  height: 878px;
  padding: 3px;
  border-radius: 70px;
  background: linear-gradient(140deg, #e3e3e6 0%, #8d8d92 22%, #d9d9dc 44%, #6f6f74 68%, #c9c9ce 86%, #9a9a9f 100%);
  transform: scale(var(--k, 0.66));
  transform-origin: 0 0;
}
.iphone-bezel {
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 67px;
  background: #050505;
}
.iphone-screen {
  position: relative;
  display: grid;
  grid-template-rows: 54px auto minmax(0, 1fr) auto;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 57px;
  color: var(--text);
  font-family: var(--app);
  background: #0c0c0d;
}
/* The phone app itself (demo/phone.html), the whole screen; iOS draws the status bar over it. */
.iphone-screen.app {
  display: block;
}
.ph-app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.iphone-screen.app .ios-status {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
}
.island {
  position: absolute;
  z-index: 6;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  border-radius: 20px;
  background: #000;
  translate: -50% 0;
}
.ios-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 50px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--app);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ios-glyphs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ios-glyphs svg {
  display: block;
  fill: currentColor;
}
.ios-home {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 8px;
  width: 136px;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.9);
  translate: -50% 0;
}

/* The lock screen: the time, and alfriend's notifications as iOS draws them. */
.lock .iphone-screen {
  grid-template-rows: 54px auto minmax(0, 1fr);
  background:
    radial-gradient(70% 50% at 30% 18%, #59636b 0%, rgb(89 99 107 / 0) 70%),
    radial-gradient(60% 60% at 80% 85%, #2a2f33 0%, rgb(42 47 51 / 0) 70%),
    linear-gradient(170deg, #3e464c, #1c2124);
}
.lock-head {
  padding-top: 26px;
  color: rgb(255 255 255 / 0.92);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--app);
}
.lock-date {
  font-size: 19px;
  font-weight: 500;
}
.lock-time {
  margin-top: -6px;
  font-size: 104px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.notes {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 10px 64px;
}
.note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px 15px 14px 13px;
  border-radius: 24px;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--app);
  background: rgb(246 246 246 / 0.74);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
}
.note-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.note-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.note-head b {
  font-weight: 600;
}
.note-head span {
  color: rgb(60 60 67 / 0.6);
  font-size: 13px;
}
.note p + p {
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.3;
}
.note-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.note-actions span {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
[data-notes] .note {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 240ms + 160ms);
}
[data-notes].is-in .note {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- the footer */
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 36px 44px;
}
.foot .brand {
  height: auto;
  padding: 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot-links a {
  color: var(--ink-mute);
  font-size: 0.875rem;
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
}
.copy {
  color: var(--ink-faint);
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------- inner pages */
.page-hero {
  padding: calc(env(safe-area-inset-top, 0px) + clamp(136px, 18vh, 184px)) 0 clamp(56px, 7vw, 96px);
}
.page-hero .h-hero {
  max-width: 12em;
  margin-top: 24px;
}
.page-hero .sub {
  max-width: 32em;
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.split.flip > :first-child {
  order: 2;
}
.split .part-head {
  margin-bottom: 0;
}
/* Inside a pane, the app's own parts keep the app's dark ground. */
.app-card {
  width: min(100%, 440px);
  padding: 22px;
  border-radius: var(--r-card);
  background: #141416;
  color: var(--text);
  font-family: var(--app);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.app-card .rp-list {
  margin-top: 14px;
}

/* The app's controls, set light for the page: the same parts as in the window, in the site's paper and ink. */
.lite .ts-tiers {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lite .ts-tiers button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink-mute);
  font-size: 13.5px;
  cursor: pointer;
}
.lite .ts-tiers [aria-checked="true"] {
  color: var(--paper);
  background: var(--ink-2);
}
.lite .ts-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lite .ts-brands li {
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: var(--card-2);
  color: var(--ink-faint);
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
}
.lite .ts-brands li.is-lit {
  color: var(--ink);
  background: var(--muted);
}
.lite .rp-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.lite .rp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.lite .rp-row:last-child {
  border-bottom: 0;
}
.lite .rp-row .grow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.lite .rp-row small {
  color: var(--ink-faint);
  font-size: 12.5px;
}
.lite .rp-chip {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--r-xs);
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-mute);
  font-size: 12.5px;
}
.lite .rp-chip.on {
  color: var(--paper);
  background: var(--ink-2);
  box-shadow: none;
}

/* Pricing: the membership as a platinum card, brushed. */
.membership {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.membership .setting {
  min-height: clamp(440px, 40vw, 560px);
}
.metal {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.586;
  width: min(100%, 420px);
  padding: 24px 26px;
  border-radius: 10px;
  color: #2b2a28;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.07) 0 1px, rgb(0 0 0 / 0.025) 1px 2px),
    linear-gradient(115deg, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0.55) 46%, rgb(255 255 255 / 0) 60%),
    linear-gradient(160deg, #eceae5 0%, #c9c7c1 38%, #e3e1dc 62%, #b9b7b1 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 0 1px rgb(0 0 0 / 0.06), 0 40px 60px -30px rgb(28 27 24 / 0.55), 0 8px 18px -8px rgb(28 27 24 / 0.25);
  transform: perspective(1200px) rotateX(10deg) rotateY(-14deg) rotateZ(3deg);
  transition: transform 1s var(--ease);
}
.metal:hover {
  transform: perspective(1200px) rotateX(3deg) rotateY(-5deg);
}
/* Two flourishes in opposite corners, faint, as the app sets them; the price and the name take the other two. */
.metal {
  --orn: 66px;
  --orn-in: 2px;
}
.metal .orn {
  filter: brightness(0.5) saturate(0);
  opacity: 0.3;
}
/* The pair: the black card behind, the platinum in front, fanned as they'd sit on a table, in one 3D space. They turn
   toward the pointer (--tx, --ty from -1 to 1), or drift a little when left alone, and the black card fans out while
   the pointer is over them (--fan, 0 to 1): main.js sets all three. The black card sits deeper, so it moves less. */
.card-pair {
  --tx: 0;
  --ty: 0;
  --fan: 0;
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.586;
  margin: 8% 0 0 6%;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.card-pair .metal {
  position: absolute;
  inset: 0;
  width: 100%;
  transition: none;
}
.card-pair .metal.black {
  transform: rotateX(calc(10deg - 7deg * var(--ty))) rotateY(calc(-14deg + 10deg * var(--tx))) rotateZ(calc(-7deg - 3deg * var(--fan)))
    translate3d(calc(-12% - 4% * var(--fan)), calc(-15% - 4% * var(--fan)), -40px);
}
.card-pair .metal:not(.black) {
  transform: rotateX(calc(10deg - 11deg * var(--ty))) rotateY(calc(-14deg + 15deg * var(--tx))) rotateZ(3deg) translate3d(4%, 6%, 0);
}
/* The light glides across the metal as the cards turn. */
.card-pair .metal:not(.black) {
  background-size: auto, 240% 100%, auto;
  background-position: 0 0, calc(50% - 25% * var(--tx)) 0, 0 0;
}
.card-pair .metal.black {
  background-size: 240% 100%, auto;
  background-position: calc(50% - 25% * var(--tx)) 0, 0 0;
}
.card-pair .steel::before {
  background-position: calc(50% + 8% * var(--tx)) calc(50% + 8% * var(--ty));
}
.metal.black {
  color: #d9d8d3;
  background:
    linear-gradient(112deg, rgb(255 255 255 / 0) 32%, rgb(255 255 255 / 0.05) 46%, rgb(255 255 255 / 0) 58%),
    #0e0e0f;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.07), 0 40px 60px -30px rgb(0 0 0 / 0.7), 0 8px 18px -8px rgb(0 0 0 / 0.4);
}
.metal.black .orn {
  filter: brightness(0.95) saturate(0);
  opacity: 0.34;
}
.metal.black .mark {
  color: #d9d8d3;
}
.metal.black .metal-name,
.metal.black .metal-price {
  text-shadow: none;
}
.metal.black .metal-name span,
.metal.black .metal-price,
.metal.black .metal-number {
  background: linear-gradient(180deg, #f4f4f1, #9fa1a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.metal.black .metal-name b {
  background: linear-gradient(180deg, #f4f4f1, #9fa1a5);
}
.metal .mark {
  width: 26px;
  margin-bottom: 10px;
  color: #3a3936;
}
.metal-name {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
}
.metal-name b {
  display: block;
  height: 16px;
  aspect-ratio: 4.6088;
  font-size: 0;
  background: currentColor;
  -webkit-mask: url("assets/wordmark.svg") left center / contain no-repeat;
  mask: url("assets/wordmark.svg") left center / contain no-repeat;
}
/* The card's number, engraved: only its last four, the rest as dots (the mono's own are too small). */
.metal-number {
  position: absolute;
  left: 26px;
  top: 47%;
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
}
.metal-number .dots {
  font-size: 1.5em;
  line-height: 0;
  letter-spacing: 0.04em;
  vertical-align: -0.06em;
}
.metal-name span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.metal-price {
  position: absolute;
  right: 26px;
  top: 22px;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6);
}
.metal-price small {
  font-size: 0.8125rem;
  letter-spacing: 0;
}
.plan-list {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line-2);
}
.plan-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 1rem;
}
.plan-list li span {
  color: var(--ink-faint);
  text-align: right;
}
.plan-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

/* Questions, as Titan sets its own: one per row, between hairlines. */
.faq-group + .faq-group {
  margin-top: clamp(48px, 6vw, 72px);
}
.faq-group > .label {
  margin-bottom: 12px;
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq details:first-child {
  border-top: 1px solid var(--line-2);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--ink-faint);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  max-width: 680px;
  padding-bottom: 26px;
  color: var(--ink-mute);
}
.faq .answer p + p {
  margin-top: 10px;
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 980px) {
  .hero-foot,
  .logos,
  .panel,
  .duo,
  .split,
  .split.flip,
  .membership {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side {
    justify-self: start;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    min-height: 0;
  }
  .tabs {
    justify-content: flex-start;
  }
  .logo-row {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-menu,
  .menu {
    display: flex;
  }
}
@media (max-width: 760px) {
  .mac {
    border-radius: var(--r-window);
  }
  .chapter {
    display: none;
  }
  .desk {
    padding: 10px;
  }
  .desk .mac,
  .desk-note {
    display: none;
  }
  .desk .iphone {
    display: block;
  }
  .duo .setting {
    height: 560px;
  }
}
@media (max-width: 600px) {
  .nav-cta {
    display: none;
  }
  .nav-menu {
    margin-left: auto;
  }
  .invite-form {
    flex-direction: column;
  }
  .invite-form input {
    height: 46px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Without motion, the logos sit still in one row. */
  .logo-set[aria-hidden="true"] {
    display: none;
  }
  .marquee {
    -webkit-mask: none;
    mask: none;
  }
  .logo-set {
    flex-wrap: wrap;
    gap: 24px 40px;
    padding-right: 0;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
