/* Calobook homepage.
   Only index.html loads this file; every other page keeps site.css.
   Each section is a "world": a full-bleed field in one of the brand colours. A world's top edge is
   a smoothed trend line with the weigh-ins scattered around it, the same picture the app draws. */

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader.woff2') format('woff2');
  font-weight: 380 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 380 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f5f7;
  --ink: #0b0b0d;
  --ink-soft: rgba(11, 11, 13, 0.64);

  /* Brand stops (coral #dc6a6c, lavender #9d8db5, blue #6f99db), lifted a step to carry a whole field */
  --blue: #8fafe4;
  --blue-ink: #0b2246;
  --coral: #e58d8b;
  --coral-ink: #3d0c15;
  --lavender: #b4a8c9;
  --lavender-ink: #21173a;
  --night: #0d0d10;
  --night-ink: #f5f5f7;

  --g-coral: 220, 106, 108;
  --g-lav: 157, 141, 181;
  --g-blue: 111, 153, 219;
  --sel: linear-gradient(90deg, rgba(var(--g-coral), 0.5), rgba(var(--g-lav), 0.5) 52%, rgba(var(--g-blue), 0.5));
  --sel-solid: linear-gradient(90deg, rgb(var(--g-coral)), rgb(var(--g-lav)) 52%, rgb(var(--g-blue)));

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI Variable Text', 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(16px, 4vw, 48px);
  /* 160 / 1440 of the width, so the edge art is never cropped above 576 px */
  --edge-h: max(64px, 11.112vw);
  --hd-h: 68px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hd-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain over the whole page, like a printed sheet */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgb(var(--g-blue));
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(var(--g-lav), 0.35);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

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

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Worlds and their edges ---------- */

.world {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  overflow-x: clip;
}

.world--paper {
  --band: var(--paper);
  --band-ink: var(--ink);
  --band-soft: rgba(11, 11, 13, 0.64);
  --band-line: rgba(11, 11, 13, 0.13);
  --shadow-rgb: 22, 30, 58;
}

.world--blue {
  --band: var(--blue);
  --band-ink: var(--blue-ink);
  --band-soft: rgba(11, 34, 70, 0.76);
  --band-line: rgba(11, 34, 70, 0.2);
  --shadow-rgb: 12, 34, 84;
}

.world--coral {
  --band: var(--coral);
  --band-ink: var(--coral-ink);
  --band-soft: rgba(61, 12, 21, 0.78);
  --band-line: rgba(61, 12, 21, 0.2);
  --shadow-rgb: 96, 18, 30;
}

.world--lavender {
  --band: var(--lavender);
  --band-ink: var(--lavender-ink);
  --band-soft: rgba(33, 23, 58, 0.76);
  --band-line: rgba(33, 23, 58, 0.2);
  --shadow-rgb: 42, 24, 84;
}

.world--night {
  --band: var(--night);
  --band-ink: var(--night-ink);
  --band-soft: rgba(245, 245, 247, 0.66);
  --band-line: rgba(245, 245, 247, 0.14);
  --shadow-rgb: 0, 0, 0;
}

.edge {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: var(--edge-h);
  fill: var(--band);
  color: var(--prev, var(--paper));
  pointer-events: none;
}

.edge--flip {
  transform: scaleX(-1);
}

/* ---------- Type ---------- */

.kicker {
  margin: 0 0 18px;
  font: 600 12.5px/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-soft);
}

.display {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display--xl {
  font-size: clamp(40px, 6.4vw, 92px);
}

.display--lg {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
}

.display--md {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.lead {
  margin-top: 22px;
  max-width: 38em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--band-soft);
}

.body {
  margin-top: 18px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.62;
  color: var(--band-soft);
}

.body--sm {
  font-size: 15.5px;
}

.scene-head {
  padding-top: clamp(40px, 6vw, 84px);
}

.scene-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scene-head--center .lead {
  margin-inline: auto;
}

/* ---------- The selection motif ---------- */

.sel {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  --knob: max(8px, 0.11em);
}

.display .sel,
.cloud .sel {
  font-style: italic;
}

.display .sel {
  margin-right: 0.07em;
}

.sel::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.06em;
  top: 0.12em;
  bottom: 0.02em;
  border-radius: 2px;
  background: var(--sel);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-out) var(--sel-delay, 0.25s);
}

.sel.is-on::before {
  clip-path: inset(0 0 0 0);
}

.sel__h {
  position: absolute;
  top: 0.1em;
  bottom: 0;
  left: -0.06em;
  width: max(2px, 0.026em);
  margin-left: max(-1px, -0.013em);
  background: var(--band-ink);
  opacity: 0;
  transition:
    opacity 0.3s var(--sel-delay, 0.25s),
    left 0.9s var(--ease-out) var(--sel-delay, 0.25s);
}

.sel__h::after {
  content: '';
  position: absolute;
  left: 50%;
  width: var(--knob);
  height: var(--knob);
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
}

.sel__h--s::after {
  top: calc(1px - var(--knob));
}

.sel__h--e::after {
  bottom: calc(1px - var(--knob));
}

.sel.is-on .sel__h {
  opacity: 1;
}

.sel.is-on .sel__h--e {
  left: calc(100% + 0.06em);
}

/* A link marked like selected text */
.hl-link {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 4px 2px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.hl-link::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--sel);
  transition: height 0.35s var(--ease-out);
}

.hl-link:hover::before,
.hl-link:focus-visible::before {
  height: calc(100% - 6px);
}

/* App Store button */
.store {
  --store-bg: var(--ink);
  --store-ink: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px 0 19px;
  border-radius: 999px;
  background: var(--store-bg);
  color: var(--store-ink);
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(var(--shadow-rgb, 22, 30, 58), 0.7);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(var(--shadow-rgb, 22, 30, 58), 0.8);
}

.store .icon {
  width: 22px;
  height: 22px;
}

.store__stack {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
}

.store__stack small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.82;
}

.store--sm {
  height: 40px;
  gap: 8px;
  padding: 0 16px 0 13px;
  box-shadow: none;
}

.store--sm .icon {
  width: 17px;
  height: 17px;
}

.store--sm .store__stack {
  font-size: 14px;
}

.store--sm .store__stack small {
  font-size: 9px;
}

.store--lg {
  height: 62px;
  padding: 0 28px 0 22px;
}

.store--lg .store__stack {
  font-size: 20px;
}

.world--night .store,
.hd[data-world='night'] .store {
  --store-bg: #fff;
  --store-ink: var(--ink);
}

/* ---------- Header ---------- */

.hd {
  --hd-ink: var(--ink);
  --hd-bg: 245, 245, 247;
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--hd-ink);
  transition:
    color 0.35s,
    background-color 0.35s,
    box-shadow 0.35s,
    translate 0.4s var(--ease),
    visibility 0.4s;
}

.hd.is-hidden {
  translate: 0 -100%;
  visibility: hidden;
}

.hd[data-world='blue'] {
  --hd-ink: var(--blue-ink);
  --hd-bg: 143, 175, 228;
}

.hd[data-world='coral'] {
  --hd-ink: var(--coral-ink);
  --hd-bg: 229, 141, 139;
}

.hd[data-world='lavender'] {
  --hd-ink: var(--lavender-ink);
  --hd-bg: 180, 168, 201;
}

.hd[data-world='night'] {
  --hd-ink: var(--night-ink);
  --hd-bg: 13, 13, 16;
}

.hd.is-scrolled,
.hd.is-open {
  background-color: rgba(var(--hd-bg), 0.8);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.hd__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, 100% - 2 * var(--gutter));
  height: var(--hd-h);
  margin-inline: auto;
}

.hd__brand,
.ft__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.hd__heart {
  width: 20px;
  height: 20px;
}

.hd__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.hd__links a {
  text-decoration: none;
  opacity: 0.74;
  transition: opacity 0.2s;
}

.hd__links a:hover {
  opacity: 1;
}

.hd__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.hd__toggle .icon {
  width: 22px;
  height: 22px;
}

.hd__toggle .icon--close,
.hd.is-open .hd__toggle .icon--menu {
  display: none;
}

.hd.is-open .hd__toggle .icon--close {
  display: block;
}

.hd__sheet {
  display: none;
}

/* ---------- Phone frame (real screenshots, same proportions as the store set) ---------- */

.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1 / 2.0927;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(160deg, #2a2a2e, #0b0b0d 40%, #0b0b0d 60%, #1e1e22);
  box-shadow:
    0 50px 90px -30px rgba(var(--shadow-rgb, 22, 30, 58), 0.55),
    0 26px 44px -26px rgba(0, 0, 0, 0.45);
}

.phone::before {
  content: '';
  position: absolute;
  inset: calc(var(--w) * 0.008);
  border-radius: calc(var(--w) * 0.157);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background: #f5f5f7;
}

.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__island {
  position: absolute;
  top: calc(var(--w) * 0.024);
  left: 50%;
  z-index: 2;
  width: calc(var(--w) * 0.2743);
  height: calc(var(--w) * 0.0805);
  border-radius: 999px;
  background: #0b0b0d;
  transform: translateX(-50%);
}

/* ---------- Plates ---------- */

.dish {
  position: relative;
  width: var(--s, 320px);
  aspect-ratio: 1;
  flex: none;
}

/* The shadow stays put while the plate turns */
.dish::before {
  content: '';
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  box-shadow:
    0 2px 3px rgba(var(--shadow-rgb), 0.2),
    0 24px 46px -14px rgba(var(--shadow-rgb), 0.5),
    0 46px 90px -34px rgba(var(--shadow-rgb), 0.45);
}

.dish img {
  position: relative;
  width: 100%;
  height: 100%;
  rotate: var(--spin, 0deg);
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: calc(var(--hd-h) + clamp(48px, 9vh, 112px)) 0 calc(var(--edge-h) + clamp(20px, 3vw, 44px));
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 14% 20%, rgba(var(--g-coral), 0.2), transparent 72%),
    radial-gradient(40% 52% at 88% 26%, rgba(var(--g-blue), 0.22), transparent 72%),
    radial-gradient(34% 40% at 54% 96%, rgba(var(--g-lav), 0.2), transparent 74%);
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  --sel-delay: 0.75s;
  font-size: clamp(40px, 9.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 35em;
  margin-inline: auto;
  margin-top: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 30px;
  margin-top: 36px;
}

.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--band-soft);
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticks .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

/* ---------- The table: a flat lay on the blue cloth ---------- */

.table {
  padding-bottom: clamp(24px, 3vw, 48px);
}

.table__stage {
  position: relative;
  width: min(1440px, 100%);
  height: clamp(560px, 58vw, 840px);
  margin-inline: auto;
}

.table__phone {
  --w: clamp(230px, 20.5vw, 296px);
  position: absolute;
  left: 50%;
  top: calc(var(--edge-h) * -0.34);
  z-index: 2;
  translate: -50% var(--rise, 0px);
}

.table__dish {
  position: absolute;
  translate: -50% 0;
}

.table__dish--a {
  --s: clamp(210px, 24vw, 360px);
  left: calc(50% - 27vw);
  top: 6%;
}

.table__dish--b {
  --s: clamp(220px, 26vw, 390px);
  left: calc(50% + 28vw);
  top: 0;
}

.table__dish--c {
  --s: clamp(150px, 16vw, 240px);
  left: calc(50% - 44vw);
  top: 60%;
}

.table__dish--d {
  --s: clamp(160px, 17vw, 256px);
  left: calc(50% + 43vw);
  top: 58%;
}

.note {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  text-align: left;
  white-space: nowrap;
}

.note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sel-solid);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.note__title {
  font: 560 21px/1.15 var(--serif);
  letter-spacing: -0.01em;
}

.note__sub {
  font-size: 14px;
  color: var(--band-soft);
}

.note--fit {
  right: calc(50% + 12.5vw);
  top: 66%;
}

.note--steps {
  right: calc(50% + 15vw);
  top: 48%;
}

.note--week {
  left: calc(50% + 12.5vw);
  top: 66%;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.strip li {
  display: inline-flex;
  align-items: center;
}

.strip li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin: 0 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

/* ---------- Gallery ---------- */

.gallery {
  padding-bottom: calc(var(--edge-h) + clamp(40px, 5vw, 80px));
}

.gallery .scene-head {
  padding-top: clamp(72px, 9vw, 140px);
}

/* The screens sit on a ring: the middle one large, its two neighbours smaller at the sides.
   home.js places each screen by its distance from the middle, so the ring turns forever.
   Without the script it falls back to a plain sideways scroller. */
.carousel {
  --cw: clamp(220px, 21vw, 290px);
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  outline: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.carousel__stage {
  display: flex;
  gap: 40px;
  padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2)) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__stage::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 auto;
  width: var(--cw);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.gallery__item .phone {
  --w: var(--cw);
  margin-inline: auto;
}

.carousel img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.js .carousel__stage {
  display: block;
  height: calc(var(--cw) * 2.0927 + 170px);
  padding: 0;
  overflow: visible;
  perspective: 1800px;
}

.js .carousel__item {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 45%;
  transition:
    transform 0.75s var(--ease-out),
    opacity 0.55s var(--ease-out);
  cursor: pointer;
}

.js .carousel__item.is-active {
  cursor: grab;
}

.js .gallery__caption {
  transition: opacity 0.45s var(--ease-out);
}

.js .carousel.is-dragging .carousel__item,
.js .carousel.is-dragging .gallery__caption {
  transition: none;
  cursor: grabbing;
}

.carousel:focus-visible .carousel__stage {
  outline: 2px solid currentColor;
  outline-offset: 14px;
  border-radius: 28px;
}

.gallery__caption h3 {
  margin-top: 28px;
  font: 560 23px/1.2 var(--serif);
  letter-spacing: -0.01em;
}

.gallery__caption p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--band-soft);
}

.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease);
}

.round-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.round-btn .icon {
  width: 20px;
  height: 20px;
}

/* ---------- What you get + Scan ---------- */

.features {
  padding-bottom: calc(var(--edge-h) + clamp(56px, 7vw, 110px));
}

.statement {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: clamp(64px, 8vw, 130px);
}

.statement .display {
  max-width: 13em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.split--flip .split__text {
  order: 2;
}

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.modes li {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--band-soft);
}

.modes li.is-on {
  color: var(--band-ink);
}

.modes li.is-on::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: -1px;
  height: 8px;
  border-radius: 2px;
  background: var(--sel);
}

.modes .icon {
  width: 18px;
  height: 18px;
}

.scan__art {
  display: grid;
  place-items: center;
  padding: 80px 0 24px;
}

/* A plate selected like a word: highlight, handles and the edit menu */
.pick {
  position: relative;
  padding: clamp(14px, 1.6vw, 24px);
}

.pick::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--sel);
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 1.1s var(--ease-out) 0.15s;
}

.pick.is-on::before {
  clip-path: inset(0 0 0 0);
}

.scan__dish {
  --s: clamp(250px, 30vw, 420px);
}

.pick__h {
  position: absolute;
  width: 3px;
  height: clamp(36px, 4vw, 54px);
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s 0.95s;
}

.pick__h::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
}

.pick__h--s {
  left: -1.5px;
  top: 0;
}

.pick__h--s::after {
  top: -13px;
}

.pick__h--e {
  right: -1.5px;
  bottom: 0;
}

.pick__h--e::after {
  bottom: -13px;
}

.pick.is-on .pick__h {
  opacity: 1;
}

.editmenu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 22px);
  display: flex;
  border-radius: 12px;
  background: #1c1c1e;
  color: #fff;
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  translate: -50% 10px;
  transition:
    opacity 0.35s 1.15s,
    translate 0.55s var(--ease-out) 1.15s;
}

.editmenu span {
  padding: 13px 17px;
}

.editmenu span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.editmenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  border: 8px solid transparent;
  border-top-color: #1c1c1e;
  transform: translateX(-50%);
}

.pick.is-on .editmenu {
  opacity: 1;
  translate: -50% 0;
}

/* ---------- Fit score ---------- */

.fit {
  padding-bottom: calc(var(--edge-h) + clamp(56px, 7vw, 110px));
}

.fit__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 42vw, 580px);
  margin-top: clamp(40px, 5vw, 72px);
}

.fit__ring {
  position: relative;
  width: clamp(300px, 36vw, 500px);
  aspect-ratio: 1;
}

.fit__ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
  overflow: visible;
}

.fit__track,
.fit__arc {
  fill: none;
  stroke-width: 2.2;
}

.fit__track {
  stroke: var(--band-line);
}

.fit__arc {
  stroke: var(--band-ink);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.8s var(--ease-out) 0.2s;
}

.fit__ring.is-on .fit__arc {
  stroke-dasharray: 82 100;
}

.fit__dish {
  position: absolute;
  inset: 8%;
  width: auto;
}

.fit__score {
  position: absolute;
  right: -2%;
  top: -6%;
  font: 560 clamp(64px, 8vw, 116px)/1 var(--serif);
  letter-spacing: -0.04em;
}

.fit__notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit__note {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 14em;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.fit__note .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke-width: 2.4;
}

.fit__note--a,
.fit__note--c {
  flex-direction: row-reverse;
  text-align: right;
}

.fit__note--a {
  right: calc(50% + clamp(170px, 20vw, 290px));
  top: 18%;
}

.fit__note--b {
  left: calc(50% + clamp(170px, 20vw, 290px));
  top: 44%;
}

.fit__note--c {
  right: calc(50% + clamp(150px, 18vw, 270px));
  top: 70%;
}

/* ---------- Weekly check-ins ---------- */

.checkin {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: calc(var(--edge-h) + clamp(8px, 2vw, 24px));
}

.target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.target__old {
  margin-bottom: 0.18em;
  font: 400 clamp(40px, 5vw, 72px)/1 var(--serif);
  letter-spacing: -0.03em;
  color: var(--band-soft);
  text-decoration-thickness: 2px;
  opacity: 0.6;
}

.target__new {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font: 560 clamp(96px, 14vw, 200px)/0.92 var(--serif);
  letter-spacing: -0.05em;
}

.target__new small {
  font: 600 clamp(18px, 1.8vw, 26px)/1 var(--sans);
  letter-spacing: 0;
  color: var(--band-soft);
}

.target__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
}

.target__tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.target__tags .icon {
  width: 17px;
  height: 17px;
}

.trend {
  width: 100%;
  height: clamp(110px, 15vw, 220px);
  margin-top: clamp(32px, 5vw, 72px);
}

.trend__goal {
  stroke: var(--band-ink);
  stroke-opacity: 0.28;
  stroke-width: 1.5;
  stroke-dasharray: 6 9;
}

.trend__dots circle {
  fill: var(--band-ink);
  opacity: 0.2;
}

.trend__line {
  fill: none;
  stroke: url(#g-sel);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s var(--ease-out) 0.2s;
}

.trend.is-on .trend__line {
  stroke-dashoffset: 0;
}

/* ---------- Recipes ---------- */

.recipes {
  padding-bottom: calc(var(--edge-h) + clamp(48px, 6vw, 100px));
}

.recipes__row {
  position: relative;
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 36px);
  width: max-content;
  margin-top: clamp(48px, 6vw, 96px);
  translate: calc(-50% + var(--drift, 0px)) 0;
}

.recipes__row .dish {
  --s: clamp(170px, 19vw, 280px);
}

.recipes__row .dish:nth-child(even) {
  margin-top: clamp(36px, 5vw, 80px);
}

/* ---------- Also inside ---------- */

.more {
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(56px, 7vw, 110px);
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 48px);
}

.more__item {
  padding-top: 24px;
  border-top: 1.5px solid var(--band-ink);
}

.more__art {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.spark {
  width: 100%;
  height: 54px;
}

.mini {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.mini__text {
  display: contents;
}

.mini__text small {
  grid-column: 2 / -1;
  grid-row: 2;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--band-soft);
}

.mini__value {
  grid-column: 3;
  grid-row: 1;
  font: 560 26px/1 var(--serif);
  letter-spacing: -0.02em;
}

.mini__heart {
  width: 22px;
  height: 22px;
  color: rgb(var(--g-coral));
}

.mini__icon {
  width: 22px;
  height: 22px;
}

.mini__chev {
  grid-column: 3;
  grid-row: 1;
  width: 18px;
  height: 18px;
  opacity: 0.4;
}

.more__title {
  margin-top: 20px;
  font: 560 26px/1.15 var(--serif);
  letter-spacing: -0.012em;
}

.more__item .body {
  margin-top: 10px;
}

/* ---------- How it works ---------- */

.how {
  padding-bottom: calc(var(--edge-h) + clamp(64px, 8vw, 130px));
}

.how .scene-head {
  padding-top: clamp(24px, 3vw, 48px);
}

.how .display {
  max-width: 15em;
}

.how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(44px, 5vw, 76px);
  padding: 0;
  list-style: none;
}

.how__steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(64px, 7.4vw, 108px);
  height: 1.5px;
  background: var(--band-line);
}

.how__num {
  display: inline-block;
  padding: 0.24em 0.08em 0.14em 0;
  margin: -0.24em -0.02em -0.14em 0;
  font: 500 clamp(92px, 10vw, 148px)/0.82 var(--serif);
  letter-spacing: -0.05em;
  background: var(--sel-solid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.how__title {
  margin-top: 30px;
  font: 560 26px/1.18 var(--serif);
  letter-spacing: -0.012em;
}

.how__step .body {
  margin-top: 10px;
}

/* ---------- Made for real bodies ---------- */

.bodies {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: calc(var(--edge-h) + clamp(64px, 8vw, 130px));
}

.bodies__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.points {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--band-line);
}

.points .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke-width: 2.4;
}

.points p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--band-soft);
}

.points b {
  font-weight: 600;
  color: var(--band-ink);
}

.cloud {
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 clamp(26px, 2.8vw, 40px)/1.5 var(--serif);
  letter-spacing: -0.012em;
  color: rgba(245, 245, 247, 0.4);
}

.cloud li {
  display: inline;
  white-space: nowrap;
}

.cloud li:not(:last-child)::after {
  content: '·';
  margin: 0 0.32em 0 0.36em;
  opacity: 0.6;
}

.cloud .sel {
  color: var(--band-ink);
}

.world--night .sel::before {
  background: linear-gradient(90deg, rgba(var(--g-coral), 0.82), rgba(var(--g-lav), 0.82) 52%, rgba(var(--g-blue), 0.82));
}

.cloud li:nth-child(4) .sel {
  --sel-delay: 0.45s;
}

.cloud li:nth-child(8) .sel {
  --sel-delay: 0.65s;
}

.cloud li:nth-child(12) .sel {
  --sel-delay: 0.85s;
}

.cloud li:nth-child(17) .sel {
  --sel-delay: 1.05s;
}

/* ---------- Pricing ---------- */

.pricing {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin-top: clamp(44px, 5vw, 76px);
}

.plan {
  padding: 4px clamp(24px, 4vw, 60px);
}

.plan + .plan {
  border-left: 1.5px solid var(--band-line);
}

.plan__badge {
  min-height: 20px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.plan__badge .sel {
  --knob: 8px;
  padding: 0 2px;
}

.plan__badge .sel::before {
  top: -3px;
  bottom: -3px;
}

.plan__badge .sel__h {
  top: -3px;
  bottom: -3px;
  width: 2px;
}

.plan__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-soft);
}

.plan__price {
  margin-top: 12px;
  font: 560 clamp(56px, 6vw, 84px)/1 var(--serif);
  letter-spacing: -0.035em;
}

.plan__price small {
  margin-left: 6px;
  font: 500 17px var(--sans);
  letter-spacing: 0;
  color: var(--band-soft);
}

.plan__per {
  margin-top: 12px;
  color: var(--band-soft);
}

.plan__trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
}

.plan__trial .icon,
.plan__list .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.plan__list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.plan__list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--band-line);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--band-soft);
}

.plan__list .icon {
  margin-top: 3px;
  color: var(--band-ink);
}

.plan__list b {
  font-weight: 600;
  color: var(--band-ink);
}

.plans__note {
  max-width: 760px;
  margin-top: clamp(36px, 4vw, 56px);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: var(--band-soft);
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: clamp(56px, 7vw, 110px);
  padding-bottom: calc(var(--edge-h) + clamp(64px, 8vw, 120px));
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(32px, 6vw, 100px);
}

.faq__head {
  position: sticky;
  top: calc(var(--hd-h) + 40px);
}

.faq details {
  border-top: 1.5px solid var(--band-line);
}

.faq details:last-child {
  border-bottom: 1.5px solid var(--band-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font: 560 clamp(20px, 1.9vw, 26px)/1.25 var(--serif);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary .icon {
  width: 22px;
  height: 22px;
  transition: rotate 0.3s var(--ease);
}

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

.faq__body {
  max-width: 40em;
  padding-bottom: 26px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--band-soft);
}

/* ---------- Closing ---------- */

.finale {
  padding: clamp(96px, 11vw, 170px) 0 calc(var(--edge-h) + clamp(96px, 11vw, 170px));
  text-align: center;
}

.finale__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.finale__heart {
  width: 76px;
  height: 76px;
  animation: beat 2.6s var(--ease) infinite;
}

.finale .display {
  max-width: 11em;
}

.finale__actions {
  margin-top: 36px;
}

.finale__note {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--band-soft);
}

.finale__dish {
  position: absolute;
}

.finale__dish--a {
  --s: clamp(150px, 19vw, 290px);
  left: -3%;
  top: 6%;
}

.finale__dish--b {
  --s: clamp(160px, 21vw, 320px);
  right: -4%;
  top: 2%;
}

.finale__dish--c {
  --s: clamp(140px, 17vw, 260px);
  left: 5%;
  bottom: calc(var(--edge-h) + 2%);
}

.finale__dish--d {
  --s: clamp(150px, 18vw, 280px);
  right: 4%;
  bottom: calc(var(--edge-h) + 4%);
}

@keyframes beat {
  0%,
  44%,
  100% {
    scale: 1;
  }
  10% {
    scale: 1.09;
  }
  22% {
    scale: 1;
  }
  32% {
    scale: 1.05;
  }
}

/* ---------- Footer ---------- */

.ft {
  padding: clamp(40px, 5vw, 72px) 0 40px;
  font-size: 14.5px;
}

.ft__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.ft__brand .hd__heart {
  width: 20px;
  height: 20px;
}

.ft__tagline {
  max-width: 26em;
  margin-top: 14px;
  line-height: 1.6;
  color: var(--band-soft);
}

.ft__social {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ft__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--band-line);
  border-radius: 50%;
  transition: border-color 0.2s;
}

.ft__social a:hover {
  border-color: var(--band-ink);
}

.ft__social .icon {
  width: 18px;
  height: 18px;
}

.ft__col h4 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-soft);
}

.ft__col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft__col a {
  text-decoration: none;
  opacity: 0.86;
}

.ft__col a:hover {
  opacity: 1;
}

.ft__bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--band-line);
  font-size: 12.5px;
  color: var(--band-soft);
}

.ft__bottom p {
  max-width: 62em;
}

/* ---------- Reveal ---------- */

.js .rv {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    translate 1s var(--ease-out) var(--d, 0s);
}

.js .rv.in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
  .hd__links {
    display: none;
  }

  .hd__cta {
    margin-left: auto;
  }

  .hd__toggle {
    display: grid;
  }

  .hd.is-open .hd__sheet {
    display: grid;
    gap: 2px;
    width: min(1280px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 6px 0 22px;
  }

  .hd__sheet a:not(.store) {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
  }

  .hd[data-world='night'] .hd__sheet a:not(.store) {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .hd__sheet .store {
    justify-self: start;
    margin-top: 16px;
  }

  .more__grid {
    grid-template-columns: 1fr 1fr;
  }

  .note--steps {
    display: none;
  }
}

@media (max-width: 860px) {
  .split,
  .bodies__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .split--flip .split__text {
    order: 0;
  }

  .scan__art {
    padding-top: 90px;
  }

  .faq__head {
    position: static;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how__steps::before {
    display: none;
  }

  .how__title {
    margin-top: 14px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan {
    padding-inline: 0;
  }

  .plan + .plan {
    margin-top: 36px;
    padding-top: 36px;
    border-left: 0;
    border-top: 1.5px solid var(--band-line);
  }

  .plan__badge--empty {
    display: none;
  }

  .fit__stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .fit__notes {
    display: grid;
    gap: 14px;
    margin-top: 40px;
  }

  .fit__note,
  .fit__note--a,
  .fit__note--c {
    position: static;
    flex-direction: row;
    max-width: none;
    text-align: left;
  }

  .fit__score {
    right: -4%;
    top: -8%;
  }

  .table__stage {
    height: clamp(500px, 112vw, 720px);
  }

  .table__phone {
    --w: clamp(220px, 46vw, 290px);
  }

  .table__dish--a {
    --s: clamp(170px, 40vw, 320px);
    left: calc(50% - 40vw);
    top: 14%;
  }

  .table__dish--b {
    --s: clamp(180px, 44vw, 340px);
    left: calc(50% + 41vw);
    top: 2%;
  }

  .table__dish--c {
    --s: clamp(130px, 30vw, 220px);
    left: calc(50% - 44vw);
    top: 66%;
  }

  .table__dish--d {
    --s: clamp(140px, 32vw, 230px);
    left: calc(50% + 44vw);
    top: 60%;
  }

  .note {
    display: none;
  }

  .finale__dish--c,
  .finale__dish--d {
    display: none;
  }

  .finale__dish--a {
    left: -14%;
    top: 3%;
  }

  .finale__dish--b {
    right: -16%;
    top: 1%;
  }
}

@media (max-width: 600px) {
  .hd__cta {
    display: none;
  }

  .hd__toggle {
    margin-left: auto;
  }

  .hero__actions {
    flex-direction: column;
    gap: 18px;
  }

  .strip {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
  }

  .strip li + li::before {
    display: none;
  }

  .more__grid {
    grid-template-columns: 1fr;
  }

  .js .carousel__stage {
    height: calc(var(--cw) * 2.0927 + 200px);
  }

  .editmenu {
    font-size: 13.5px;
  }

  .editmenu span {
    padding: 11px 13px;
  }

  .ft__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ft__grid > :first-child {
    grid-column: 1 / -1;
  }

  .ft__bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .rv {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .sel::before,
  .sel__h,
  .pick::before,
  .pick__h,
  .editmenu,
  .fit__arc,
  .trend__line {
    transition: none !important;
  }

  .finale__heart {
    animation: none;
  }

  .hd {
    transition: none;
  }

  .js .carousel__item,
  .js .gallery__caption {
    transition: none;
  }
}

@media print {
  .hd,
  body::after,
  .edge,
  .gallery__controls {
    display: none;
  }
}
