/* Ezfit website. Colors come from the app (src/theme/index.ts); type is Outfit, like the app. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ───────────── tokens ───────────── */

:root {
  color-scheme: light dark;

  --bg: #f6f6fb;
  --card: #ffffff;
  --ink: #1d1b2e;
  --ink2: #4a4860;
  --muted: #6c6a84;
  --line: #ecebf3;
  --line-strong: #dcdbe8;

  --primary: #5856e8;
  --primary-ink: #4744d6;
  --primary-deep: #3b37b8;
  --primary-soft: #ecebff;
  --primary-tint: #f4f3ff;

  --stage-top: #d9dbff;
  --stage-mid: #e9e8ff;
  --stage-bottom: #f6f5ff;

  --green: #22a672;
  --green-ink: #157a52;
  --green-soft: #e2f6ec;
  --leaf: #86e3b0;
  --coral: #ff7a59;
  --coral-ink: #c4472a;
  --coral-soft: #ffede7;
  --sun: #ffc542;
  --sun-soft: #fff5dc;
  --sky: #4fb3e8;
  --sky-soft: #e3f3fc;

  /* The dark chapters stay dark in both themes. */
  --night: #1d1b2e;
  --night-2: #26243b;
  --night-ink: #f4f3ff;
  --night-ink2: #c9c7dc;
  --night-muted: #a19fb8;

  --bezel: #ffffff;
  --bezel-line: #dcdbe8;
  --tile: #ffffff;
  --shadow-tint: 59 55 184;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --panel-radius: clamp(28px, 4vw, 48px);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141320;
    --card: #1d1b2e;
    --ink: #f4f3ff;
    --ink2: #c9c7dc;
    --muted: #a19fb8;
    --line: #2c2a40;
    --line-strong: #3a3854;

    --primary: #a9a7ff;
    --primary-ink: #b9b7ff;
    --primary-soft: #2a2850;
    --primary-tint: #201e38;

    --stage-top: #2a2858;
    --stage-mid: #201f40;
    --stage-bottom: #161527;

    --green-ink: #7fdcb0;
    --green-soft: #15291f;
    --coral-ink: #ff9f86;
    --coral-soft: #2e1c19;
    --sun-soft: #2c2514;
    --sky-soft: #142433;

    --night: #0d0c16;
    --night-2: #18172a;

    --bezel: #26243b;
    --bezel-line: #3a3854;
    --tile: #232138;
    --shadow-tint: 0 0 0;
  }
}

/* ───────────── base ───────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink2);
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───────────── type ───────────── */

.display,
.title,
h3 {
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

.display {
  font-size: clamp(3rem, 1.2rem + 6.4vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.title {
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink2);
  text-wrap: pretty;
  max-width: 34em;
}

.accent {
  color: var(--primary);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────────── header ───────────── */

/* Sits on top of the hero, so the hero's gradient runs behind it. */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}
.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: none;
  gap: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a {
  color: var(--ink2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.pill-ink {
  background: var(--ink);
  color: var(--bg);
}
.pill-ink:hover {
  transform: translateY(-1px);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 30%, transparent);
}

/* ───────────── hero ───────────── */

.hero {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 62%, color-mix(in srgb, var(--card) 70%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--stage-top) 0%, var(--stage-mid) 45%, var(--stage-bottom) 100%);
  padding-bottom: calc(var(--panel-radius) + clamp(48px, 8vw, 96px));
  overflow: hidden;
}

.hero-copy {
  text-align: center;
  padding-top: calc(76px + clamp(20px, 4vw, 52px));
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.4vw, 28px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--ink2);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.chip svg {
  width: 18px;
  height: 18px;
}

.hero .display {
  max-width: 11ch;
}
.hero .lead {
  max-width: 31em;
  margin-inline: auto;
}

/* Store badges: no store listing yet, so they say "Coming soon" and aren't links. */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.store {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-width: 192px;
  padding: 9px 18px 9px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-align: left;
}
.store svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
}
.store small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.2;
}
.store strong {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.stores-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* The phone with clay pieces floating around it. */
.hero-stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  place-items: center;
}
.hero-stage .phone {
  --phone-w: clamp(250px, 26vw, 330px);
  z-index: 2;
}
.hero-stage::before {
  content: '';
  position: absolute;
  width: min(92vw, 760px);
  aspect-ratio: 1;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card) 85%, transparent) 0%, transparent 65%);
}

.tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tile {
  --tw: clamp(76px, 9vw, 132px);
  position: absolute;
  width: var(--tw);
  aspect-ratio: 1;
  padding: calc(var(--tw) * 0.12);
  border-radius: calc(var(--tw) * 0.28);
  background: var(--tile);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 18px 40px -14px rgb(var(--shadow-tint) / 0.28);
  animation: float 7s ease-in-out infinite alternate;
}
.tile img {
  width: 100%;
  height: 100%;
}
/* Positions around the phone: left side, then right side. */
.tile:nth-child(1) { left: 6%;  top: 6%;  rotate: -9deg; animation-delay: -1s; }
.tile:nth-child(2) { left: 16%; top: 40%; rotate: 6deg;  animation-delay: -3s; --tw: clamp(64px, 7.5vw, 112px); }
.tile:nth-child(3) { left: 4%;  top: 70%; rotate: -4deg; animation-delay: -5s; }
.tile:nth-child(4) { left: 24%; top: 82%; rotate: 10deg; animation-delay: -2s; --tw: clamp(56px, 6vw, 92px); }
.tile:nth-child(5) { right: 7%;  top: 4%;  rotate: 8deg;  animation-delay: -4s; }
.tile:nth-child(6) { right: 17%; top: 36%; rotate: -7deg; animation-delay: -6s; --tw: clamp(64px, 7.5vw, 112px); }
.tile:nth-child(7) { right: 3%;  top: 64%; rotate: 5deg;  animation-delay: -2.5s; }
.tile:nth-child(8) { right: 23%; top: 84%; rotate: -10deg; animation-delay: -4.5s; --tw: clamp(56px, 6vw, 92px); }

@media (max-width: 719px) {
  .tile:nth-child(2),
  .tile:nth-child(4),
  .tile:nth-child(6),
  .tile:nth-child(8) {
    display: none;
  }
  .tile:nth-child(1) { left: -2%; top: 10%; }
  .tile:nth-child(3) { left: 0%;  top: 62%; }
  .tile:nth-child(5) { right: -2%; top: 24%; }
  .tile:nth-child(7) { right: 0%;  top: 74%; }
}

@keyframes float {
  from { translate: 0 -8px; }
  to   { translate: 0 10px; }
}

/* ───────────── phone frame ───────────── */

/* Size it by setting --phone-w on the phone or any parent. */
.phone {
  --pw: var(--phone-w, 300px);
  width: var(--pw);
  padding: calc(var(--pw) * 0.028);
  border-radius: calc(var(--pw) * 0.15);
  background: var(--bezel);
  box-shadow:
    0 0 0 1px var(--bezel-line),
    0 2px 0 1px rgb(255 255 255 / 0.5) inset,
    0 40px 80px -28px rgb(var(--shadow-tint) / 0.38),
    0 18px 36px -18px rgb(var(--shadow-tint) / 0.22);
  flex: none;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 812;
  border-radius: calc(var(--pw) * 0.125);
  background: var(--bg);
}

/* ───────────── chapters ───────────── */

/* Each chapter is a panel with rounded top corners that slides over the one before it. */
.chapter {
  position: relative;
  margin-top: calc(var(--panel-radius) * -1);
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  padding-block: clamp(28px, 4vw, 40px) calc(var(--panel-radius) + clamp(72px, 10vw, 136px));
  background: var(--bg);
}
.chapter:last-of-type {
  padding-bottom: clamp(72px, 10vw, 136px);
}

.tone-card { background: var(--card); }
.tone-stage { background: linear-gradient(180deg, var(--stage-top), var(--stage-mid) 40%, var(--stage-bottom)); }
.tone-green { background: var(--green-soft); }
.tone-coral { background: var(--coral-soft); }
.tone-sun { background: var(--sun-soft); }
.tone-sky { background: var(--sky-soft); }
.tone-night {
  background: var(--night);
  color: var(--night-ink2);
  --ink: var(--night-ink);
  --ink2: var(--night-ink2);
  --muted: var(--night-muted);
  --primary: #a9a7ff;
  --line: #2c2a40;
  --card: var(--night-2);
  --bezel: #2c2a40;
  --bezel-line: #3a3854;
  --shadow-tint: 0 0 0;
}

.chapter-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(48px, 8vw, 104px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.chapter-bar span:last-child {
  font-variant-numeric: tabular-nums;
}

.chapter-head {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.chapter-head .title {
  max-width: 11.5ch;
  hyphens: manual;
}
.chapter-head .lead {
  max-width: 30em;
}
.chapter-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.chapter-head.center .title {
  max-width: 15ch;
}
#principles .chapter-head .title {
  max-width: 18ch;
}

/* Two columns: copy and a visual. */
.split {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }
  .split.flip > :first-child {
    order: 2;
  }
}

.points {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
}
.point {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 4px;
}
.point .icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-ink);
}
.tone-night .point .icon {
  background: #2a2850;
  color: #b9b7ff;
}
.point .icon svg {
  width: 22px;
  height: 22px;
}
.point h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.point p {
  font-size: 1rem;
  line-height: 1.55;
}

/* ───────────── chapter 01: snap ───────────── */

.snap-visual {
  position: relative;
  display: grid;
  justify-items: end;
  padding-bottom: 40px;
}
.snap-visual .phone {
  --phone-w: clamp(240px, 24vw, 310px);
  margin-right: clamp(0px, 4vw, 40px);
}
.scan-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(230px, 26vw, 340px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
  box-shadow: 0 30px 60px -24px rgb(var(--shadow-tint) / 0.35), 0 0 0 1px var(--line);
  z-index: 2;
}
.scan-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 375 / 400;
}
@media (max-width: 899px) {
  .snap-visual {
    justify-items: center;
    padding-bottom: 0;
  }
  .snap-visual .phone {
    margin-right: 0;
  }
  .scan-card {
    position: relative;
    margin-top: -64px;
    width: min(86%, 340px);
    justify-self: start;
  }
}

/* ───────────── chapter 02: today ───────────── */

.today-grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(48px, 7vw, 88px);
  align-items: center;
  justify-items: center;
}
.today-grid .phone {
  --phone-w: clamp(260px, 25vw, 330px);
}
.today-grid .side {
  display: grid;
  gap: 12px;
  max-width: 22em;
}
.today-grid .side .eyebrow {
  color: var(--primary-ink);
}
@media (min-width: 900px) {
  .today-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(32px, 5vw, 72px);
  }
  .today-grid .side:first-child {
    text-align: right;
    justify-self: end;
  }
  .today-grid .side:last-child {
    justify-self: start;
  }
}

.vibes {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.vibes ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.vibes li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) {
  .vibes li {
    background: #5856e8;
  }
}
.vibes li:nth-child(even) {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong);
}

/* ───────────── chapter 03: stylist ───────────── */

.stylist-visual {
  --phone-w: clamp(250px, 25vw, 320px);
  position: relative;
  justify-self: center;
  width: var(--phone-w);
}
.asks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ask {
  position: absolute;
  width: max-content;
  max-width: 14em;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: #ffffff;
  color: #1d1b2e;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.5);
  z-index: 3;
}
.ask::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -1px;
  background: currentColor;
  color: #5856e8;
  mask: url('/assets/sparkle.svg') center / contain no-repeat;
}
.ask:nth-child(1) { right: 72%; top: 16%; rotate: -3deg; }
.ask:nth-child(2) { left: 74%; top: 44%; rotate: 2deg; border-radius: 20px 20px 6px 20px; }
.ask:nth-child(3) { right: 68%; bottom: 12%; rotate: -1deg; }
@media (max-width: 599px) {
  .ask {
    position: relative;
    inset: auto !important;
    rotate: none !important;
    margin-top: 10px;
  }
  .asks {
    position: static;
    display: grid;
    justify-items: start;
    margin-top: 24px;
    width: 100%;
  }
  .ask:nth-child(2) {
    justify-self: end;
  }
}

.honest {
  margin-top: clamp(32px, 4vw, 44px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #2a2850;
  color: var(--night-ink);
  font-size: 0.875rem;
  font-weight: 500;
}
.honest span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #5856e8;
  color: #fff;
  font-weight: 600;
}

/* ───────────── chapter 04: builder and looks ───────────── */

.pair {
  --phone-w: clamp(140px, 44vw, 290px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pair > :first-child {
  rotate: -4deg;
  margin-top: 48px;
  margin-right: calc(var(--phone-w) * -0.16);
  z-index: 1;
}
.pair > :last-child {
  rotate: 3deg;
  z-index: 2;
}
@media (min-width: 900px) {
  .pair {
    --phone-w: clamp(200px, 23vw, 290px);
  }
}

/* ───────────── chapter 05: calendar ───────────── */

.cal-grid {
  display: grid;
  gap: 40px;
  justify-items: center;
  margin-top: clamp(48px, 7vw, 88px);
}
.cal-grid .phone {
  --phone-w: clamp(240px, 24vw, 300px);
}
.facts {
  display: grid;
  gap: 28px;
  counter-reset: fact;
  max-width: 24em;
}
.facts li {
  counter-increment: fact;
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.facts li::before {
  content: counter(fact, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.facts h3 {
  font-size: 1.25rem;
}
@media (min-width: 900px) {
  .cal-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }
  .cal-grid > :first-child {
    rotate: -3deg;
  }
  .cal-grid > :last-child {
    rotate: 3deg;
  }
  .facts {
    justify-self: center;
  }
}
@media (max-width: 899px) {
  .cal-grid > :last-child {
    display: none;
  }
}

/* ───────────── chapter 06: laundry ───────────── */

.solo {
  display: grid;
  justify-items: center;
}
.solo .phone {
  --phone-w: clamp(250px, 25vw, 320px);
}

/* ───────────── chapter 07: second life ───────────── */

.second-grid {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(48px, 7vw, 88px);
  align-items: start;
}
@media (min-width: 900px) {
  .second-grid {
    grid-template-columns: 1fr auto;
  }
  .second-visual {
    position: sticky;
    top: 40px;
  }
}
.second-visual {
  display: grid;
  justify-items: center;
}
.second-visual .phone {
  --phone-w: clamp(250px, 24vw, 300px);
}

.rows {
  display: grid;
}
.row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 8px 20px;
  padding-block: 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.row:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.row .num {
  grid-row: span 2;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.row .eyebrow {
  color: var(--green-ink);
  margin-bottom: 4px;
}
.row h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}
.row > p {
  grid-column: 2;
  max-width: 32em;
}
@media (min-width: 1100px) {
  .row {
    grid-template-columns: 3.5rem minmax(14rem, 1fr) 1.4fr;
    align-items: start;
  }
  .row .num {
    grid-row: auto;
  }
  .row > p {
    grid-column: 3;
  }
}

/* ───────────── chapter 08: colors ───────────── */

.colors-visual {
  --phone-w: clamp(250px, 25vw, 320px);
  position: relative;
  justify-self: center;
  width: var(--phone-w);
}
.swatches {
  position: absolute;
  inset: -8% -30%;
  pointer-events: none;
}
.swatches span {
  position: absolute;
  width: clamp(44px, 5vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--card), 0 14px 28px -12px rgb(var(--shadow-tint) / 0.35);
}
/* The sample palette (Soft Autumn) shown in the screen, around the phone. */
.swatches span:nth-child(1) { background: #9db89a; left: 4%;  top: 12%; }
.swatches span:nth-child(2) { background: #c9908f; left: 0%;  top: 36%; }
.swatches span:nth-child(3) { background: #c8775a; left: 8%;  top: 60%; }
.swatches span:nth-child(4) { background: #7c7d4a; left: 2%;  top: 82%; }
.swatches span:nth-child(5) { background: #c69c6d; right: 4%; top: 8%; }
.swatches span:nth-child(6) { background: #4e8183; right: 0%; top: 32%; }
.swatches span:nth-child(7) { background: #a07e8e; right: 6%; top: 56%; }
.swatches span:nth-child(8) { background: #a28c77; right: 1%; top: 78%; }
.colors-visual .phone {
  position: relative;
}
@media (max-width: 599px) {
  .swatches {
    inset: -6% -14%;
  }
  .swatches span {
    width: 38px;
  }
}

/* ───────────── calm by design ───────────── */

.cards {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px 30px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 1px solid var(--line);
}
.card img {
  width: 72px;
  height: 72px;
  margin: -6px 0 8px -6px;
}
.card h3 {
  font-size: 1.1875rem;
}
.card p {
  font-size: 1rem;
  line-height: 1.55;
}

/* ───────────── coming soon ───────────── */

.get {
  overflow: hidden;
}
.get::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  translate: -50% -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(88 86 232 / 0.35) 0%, transparent 62%);
  pointer-events: none;
}
.get-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(20px, 2.6vw, 28px);
  padding-top: clamp(40px, 6vw, 72px);
}
.get-mark {
  width: clamp(72px, 8vw, 96px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgb(88 86 232 / 0.45));
}
.get .title {
  max-width: 13ch;
}
.get .lead {
  max-width: 28em;
}
.get .store {
  background: var(--night-ink);
  color: var(--night);
}
.get-help {
  font-size: 0.9375rem;
  color: var(--muted);
}
.get-help a {
  color: var(--night-ink);
  text-underline-offset: 3px;
}

/* ───────────── footer ───────────── */

.site-footer {
  position: relative;
  margin-top: calc(var(--panel-radius) * -1);
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  background: var(--bg);
  padding-block: clamp(40px, 6vw, 64px) calc(40px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer nav a {
  color: var(--ink2);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .small {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ───────────── floating pill ───────────── */

.float-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px -16px rgb(var(--shadow-tint) / 0.35);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  translate: -50% 0;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.js .float-cta:not(.show) {
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  visibility: hidden;
}
.float-cta img {
  width: 32px;
  height: 32px;
}
.float-cta span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.float-cta a {
  padding: 8px 14px;
  font-size: 0.875rem;
}
@media (max-width: 400px) {
  .float-cta .long {
    display: none;
  }
}
@media (min-width: 401px) {
  .float-cta .short {
    display: none;
  }
}

/* ───────────── reveal on scroll ───────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tile {
    animation: none;
  }
  .js [data-reveal] {
    transform: none;
    transition: opacity 0.4s linear;
  }
  .float-cta {
    transition: none;
  }
}

/* ───────────── 404 ───────────── */

.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding-bottom: 0;
}
.lost .hero-copy {
  padding-block: 48px;
}
.lost-art {
  width: 140px;
  height: 140px;
  rotate: -8deg;
}
.lost .title {
  max-width: 12ch;
}
