/* ==========================================================================
   UFit — marketing site
   Tokens come from the app's DESIGN.md so the site and the product read as one
   thing: stark monochrome, Playfair display type, hairline rules, 3:4
   photography, no shadows and no filled panels.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --surface: #ffffff;
  --muted: #6e6e73;
  --soft: #a6a6ab;
  --line: rgba(10, 10, 10, 0.1);
  --hairline: rgba(10, 10, 10, 0.14);
  /* The app's placeholder tint. Real photos and empty cells share it, so a
     product shot that does not fill its frame matches the cell beside it. */
  --tint: rgba(10, 10, 10, 0.05);

  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(76px, 11vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------- type ---- */

.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.display em {
  font-style: italic;
  font-weight: 400;
}

h1.display,
.hero-h1 {
  font-size: clamp(42px, 6.6vw, 96px);
}

h2.display {
  font-size: clamp(32px, 4.6vw, 64px);
}

h3.display {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--soft);
}

.lead {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.supporting {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.tiny {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--soft);
  margin: 0;
}

/* Headline lines ride up out of a clipped box. The mask is the effect — a
   plain fade reads as a page that loaded slowly. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.line-mask > span {
  display: block;
  will-change: transform;
}

/* ------------------------------------------------------------- layout ---- */

.wrap {
  max-width: 1420px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head .eyebrow {
  flex-basis: 100%;
}

.section-head .display {
  max-width: 16ch;
}

.section-head .lead {
  max-width: 38ch;
}

/* ------------------------------------------------------------ controls --- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 32px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

/* The fill grows from the bottom on hover and leaves through the top on exit,
   so the button has a direction rather than a state. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn > span {
  position: relative;
  transition: color 0.45s var(--ease);
}

.btn:hover > span {
  color: var(--paper);
}

.btn--fill {
  background: var(--ink);
  color: var(--paper);
}

.btn--fill::before {
  background: var(--paper);
}

.btn--fill:hover > span {
  color: var(--ink);
}

.btn--sm {
  height: 42px;
  padding: 0 22px;
  font-size: 10px;
}

/* Store buttons: our own hairline treatment rather than the vendor badges.
   A blue-black App Store badge dropped onto a monochrome editorial page is the
   one element that would look bought rather than made. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 24px 0 20px;
  border: 1px solid var(--ink);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.store:hover {
  background: var(--ink);
  color: var(--paper);
}

.store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.store span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

.store strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.link-line {
  position: relative;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}

.link-line:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----------------------------------------------------------------- nav --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
  will-change: transform;
}

.nav[data-stuck="true"] {
  border-bottom-color: var(--line);
}

/* Over the ink sections the paper-tinted bar reads as a grey band laid on the
   black. Invert it so the nav belongs to whatever is behind it. */
.nav[data-invert="true"] {
  background: rgba(10, 10, 10, 0.82);
  color: var(--paper);
  border-bottom-color: rgba(250, 250, 250, 0.14);
}

.nav[data-invert="true"] .btn--fill {
  background: var(--paper);
  color: var(--ink);
}

.nav[data-invert="true"] .btn--fill::before {
  background: var(--ink);
}

.nav[data-invert="true"] .btn--fill:hover > span {
  color: var(--paper);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  max-width: 1420px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.wordmark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero --- */

.hero {
  padding-top: calc(var(--nav-h) + clamp(18px, 3vw, 40px));
}

/* A dated rule, like the front page of a paper: heavy line above, hairline
   below, the day's date in the middle. */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead span:nth-child(2) {
  color: var(--ink);
}

@media (max-width: 640px) {
  .masthead span:nth-child(3) {
    display: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
}

.hero-type {
  padding-block: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 88px);
}

.hero-h1 {
  font-size: clamp(52px, 7.6vw, 118px);
  margin: 0;
}

.hero .lead {
  margin-top: 28px;
  max-width: 42ch;
}

.hero .stores {
  margin-top: 36px;
  margin-bottom: 16px;
}

/* The figure stands on the ticker rule below — no frame, no tint, no gap.
   Line art belongs on the paper, not in a box. */
.hero-art {
  margin: 0;
  justify-self: end;
  display: flex;
  align-items: flex-end;
}

.art-reveal {
  line-height: 0;
}

.hero-art img {
  width: auto;
  height: clamp(380px, 58vh, 660px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-type {
    padding-bottom: 0;
  }

  .hero-art {
    justify-self: center;
    margin-top: 28px;
  }

  .hero-art img {
    height: clamp(300px, 48vh, 440px);
  }
}

/* -------------------------------------------------------------- ticker --- */

.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 13px;
}

.ticker-track {
  display: flex;
  align-items: baseline;
  gap: 28px;
  width: max-content;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  will-change: transform;
}

.ticker-track i {
  font-style: normal;
  color: var(--soft);
}

/* ---------------------------------------------------------------- how --- */

/* Stacked cards. Each one sticks a little lower than the one before it, so the
   four steps pile up in reading order rather than swapping places. The offset
   comes from --i, set per card in the markup. */
.stack {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
}

.stack-card {
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + clamp(16px, 3vw, 44px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  /* Opaque, or the card underneath shows through the pile. This is the one
     place the design uses a filled panel, and it is doing structural work. */
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(20px, 2.2vw, 30px);
  transform-origin: center top;
  will-change: transform;
}

/* A hair of extra offset per card so the edges of the ones below stay visible
   as a stack rather than hiding exactly behind the top one. */
.stack-card:nth-child(2) { top: calc(var(--nav-h) + clamp(16px, 3vw, 44px) + 14px); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + clamp(16px, 3vw, 44px) + 28px); }
.stack-card:nth-child(4) { top: calc(var(--nav-h) + clamp(16px, 3vw, 44px) + 42px); }

/* The step number as a ghost numeral behind the card's content — barely there,
   but it gives each card in the pile its own identity at a glance. */
.stack-card::after {
  content: attr(data-n);
  position: absolute;
  top: -0.12em;
  right: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(120px, 13vw, 210px);
  line-height: 1;
  color: rgba(10, 10, 10, 0.04);
  pointer-events: none;
}

.stack-art,
.stack-copy {
  position: relative;
  z-index: 1;
}

.stack-art {
  aspect-ratio: 4 / 3;
  max-height: 46vh;
  overflow: hidden;
  background: var(--tint);
}

.stack-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The campaign shots are portrait in a landscape frame; centring the crop
     cut the heads off. Favour the top of the figure. */
  object-position: center 20%;
}

.stack-n {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft);
}

.stack-copy h3 {
  margin: 0 0 14px;
}

.stack-copy .lead {
  max-width: 42ch;
}

.stack-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.stack-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 9px;
  height: 1px;
  background: var(--soft);
}

@media (max-width: 860px) {
  .stack-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
    top: calc(var(--nav-h) + 12px);
  }

  .stack-card:nth-child(2) { top: calc(var(--nav-h) + 22px); }
  .stack-card:nth-child(3) { top: calc(var(--nav-h) + 32px); }
  .stack-card:nth-child(4) { top: calc(var(--nav-h) + 42px); }

  /* Short enough that the whole card clears the viewport, which is what lets
     the sticky pile read as a stack rather than a jam. */
  .stack-art {
    aspect-ratio: 16 / 10;
    max-height: 26vh;
  }

  .stack-card::after {
    font-size: 90px;
  }

  .stack-copy .lead {
    font-size: 14px;
  }

  .stack-list li {
    padding: 9px 0 9px 20px;
    font-size: 12.5px;
  }

  .stack-list li::before {
    top: 18px;
  }
}

/* Opting out of motion still means no pile. */
@media (prefers-reduced-motion: reduce) {
  .stack-card {
    position: static;
  }
}

/* --------------------------------------------------------- shop notes --- */

.shop-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .shop-notes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.shop-notes b {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
}

.shop-notes p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* -------------------------------------------------------------- try-on --- */

.tryon-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5vw, 84px);
}

@media (max-width: 940px) {
  .tryon-grid {
    grid-template-columns: 1fr;
  }
}

.tryon-copy .lead {
  margin-top: 24px;
  max-width: 42ch;
}

.tryon-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.tryon-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.tryon-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.tryon-list span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--soft);
  padding-top: 4px;
}

.tryon-stage {
  position: relative;
  /* Matched to the source frame (714x1076). A 3:4 stage with object-fit:cover
     cropped the head off — fatal for a section whose whole claim is that it
     dresses you head to feet. Height drives the box so the whole figure fits
     one viewport; the width follows from the ratio. */
  aspect-ratio: 2 / 3;
  height: min(calc(100svh - 170px), 900px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background: var(--tint);
  user-select: none;
  touch-action: pan-y;
}

.tryon-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Clipped rather than resized: both halves stay at full width so the person
   does not squash as the wipe crosses them. */
.tryon-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
  will-change: clip-path;
}

.tryon-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.12);
  will-change: left;
}

/* A hairline with an empty ring on it read as a border artefact, not a control.
   A solid knob with arrows in it reads as something to grab — which matters,
   because the whole section is worthless if nobody moves it. */
.tryon-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 14px rgba(10, 10, 10, 0.22);
}

.tryon-handle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tryon-stage {
  cursor: ew-resize;
}

/* Says what to do, then gets out of the way the first time it is done. */
.tryon-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 14px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.tryon-stage[data-touched="true"] .tryon-hint {
  opacity: 0;
}

.tryon-tag {
  position: absolute;
  bottom: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(250, 250, 250, 0.9);
  padding: 6px 10px;
}

.tryon-tag--l { left: 16px; }
.tryon-tag--r { right: 16px; }

/* ---------------------------------------------------------------- shop --- */

/* The app's grid, verbatim: 3:4 cards, label under the photo, and gaps that
   are tight across and generous down. Equal gaps read as a spreadsheet. */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 64px;
}

@media (max-width: 780px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

.product {
  margin: 0;
}

.product .cell {
  aspect-ratio: 3 / 4;
  background: var(--tint);
  overflow: hidden;
}

.product .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.product:hover .cell img {
  transform: scale(1.05);
}

.product figcaption {
  margin-top: 14px;
}

.product .slot {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}

.product .name {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.product .meta {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.product .meta b {
  font-weight: 500;
  color: var(--ink);
}

/* ------------------------------------------------------------- pricing --- */

/* Two plans. Monthly and yearly are one plan bought two ways and share a card,
   so a third column would be selling the same thing twice. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.billing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}

.fchip {
  padding: 11px 18px;
  border: 1px solid var(--hairline);
  background: none;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.fchip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.fchip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.billing-save {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  transition: opacity 0.3s var(--ease);
}

/* The saving belongs to yearly; showing it while monthly is selected would be
   advertising a discount the reader is not getting. */
.billing[data-period="month"] .billing-save {
  opacity: 0;
}

.plan-badge {
  margin: 0 0 14px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.55);
}

.plan {
  padding: 38px clamp(20px, 2.4vw, 36px) 40px;
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  margin-right: -1px;
  display: flex;
  flex-direction: column;
}

.plan[data-featured="true"] {
  background: var(--ink);
  color: var(--paper);
}

.plan[data-featured="true"] .eyebrow,
.plan[data-featured="true"] .plan-per {
  color: rgba(250, 250, 250, 0.6);
}

.plan[data-featured="true"] li::before {
  background: rgba(250, 250, 250, 0.5);
}

.plan[data-featured="true"] .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.plan[data-featured="true"] .btn::before {
  background: var(--paper);
}

.plan[data-featured="true"] .btn:hover > span {
  color: var(--ink);
}

/* Playfair's dollar sign carries a full-height bar that reads as a rendering
   fault next to lining figures at this size. Set it in the UI sans, smaller and
   raised, the way a price is set in print. */
.cur {
  font-family: Inter, sans-serif;
  font-size: 0.48em;
  font-weight: 500;
  vertical-align: 0.62em;
  letter-spacing: 0;
  margin-right: 0.06em;
}

.plan-price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  margin: 22px 0 0;
  letter-spacing: -0.02em;
}

.plan-per {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 13.5px;
  flex: 1;
}

.plan li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--soft);
}

.plan .btn {
  width: 100%;
}

.plans-note {
  margin-top: 26px;
  text-align: center;
}

/* ----------------------------------------------------------------- faq --- */

.faq {
  /* Left-aligned with the section heading, not centred under it — a centred
     accordion beneath a left-set headline reads as two separate layouts. */
  max-width: 880px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  position: relative;
  font-size: clamp(15px, 1.5vw, 19px);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
  transition: padding-left 0.5s var(--ease);
}

.faq summary:hover {
  padding-left: 10px;
}

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

.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.faq summary::after {
  width: 11px;
  height: 1px;
}

.faq summary::before {
  right: 11px;
  width: 1px;
  height: 11px;
  margin-top: -5px;
}

.faq details[open] summary::before {
  opacity: 0;
  transform: rotate(90deg);
}

/* An inner wrapper so the panel can be height-animated; <details> itself
   cannot be transitioned from display:none. */
.faq .answer {
  overflow: hidden;
  height: 0;
}

.faq .answer p {
  padding: 0 8% 28px 0;
  max-width: 62ch;
}

/* ----------------------------------------------------------------- cta --- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.cta .wrap {
  position: relative;
  z-index: 1;
}

/* The mirror illustration, inverted to white line work — the app's own art
   carried through to the close. */
.cta-art {
  position: absolute;
  right: clamp(-60px, 1vw, 100px);
  bottom: -4%;
  height: 92%;
  width: auto;
  filter: invert(1);
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .cta-art {
    display: none;
  }
}

.cta .lead {
  color: rgba(250, 250, 250, 0.65);
  max-width: 44ch;
  margin: 24px auto 0;
}

.cta .eyebrow,
.cta .tiny {
  color: rgba(250, 250, 250, 0.5);
}

.cta .display {
  margin-top: 20px;
}

.cta .stores {
  margin-top: 40px;
  margin-bottom: 20px;
  justify-content: center;
}

.cta .store {
  border-color: rgba(250, 250, 250, 0.45);
}

.cta .store:hover {
  background: var(--paper);
  color: var(--ink);
}

/* -------------------------------------------------------------- footer --- */

/* The one inverted block on the page, like the Plus card: ink ground, paper
   type, hairlines in paper at low opacity. Its own tokens so nothing inside
   borrows the page's dark-on-light greys. */
.footer {
  --f-soft: rgba(250, 250, 250, 0.62);
  --f-line: rgba(250, 250, 250, 0.16);
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.footer ::selection {
  background: var(--paper);
  color: var(--ink);
}

.footer .eyebrow,
.footer .tiny {
  color: var(--f-soft);
}

.footer a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}

.footer-line {
  margin: 18px 0 22px;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.08;
  text-wrap: balance;
}

/* auto-fit rather than a fixed four: columns whose links have no URL yet are
   removed at runtime, and the survivors should share the width. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px 24px;
}

.footer h4 {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--f-soft);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

/* A required page with no URL yet: listed, visibly not live, not clickable. */
.link-pending {
  color: var(--f-soft);
  cursor: default;
}

.link-line.link-pending::after {
  display: none;
}

.link-pending small {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--f-line);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.footer-signature {
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--f-line);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}

/* The frame contains the small scroll drift without moving the footer bar. */
.footer-mark-frame {
  overflow: hidden;
  padding-block: 0.04em 0.08em;
  font-size: clamp(144px, 24vw, 350px);
  line-height: 0.9;
}

.footer-mark {
  width: max-content;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: -0.065em;
  color: var(--paper);
  white-space: nowrap;
  user-select: none;
}

.footer-mark-period {
  color: var(--f-soft);
}

.footer-signoff {
  padding-bottom: clamp(10px, 1.5vw, 22px);
}

.footer-signoff .eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}

.footer-tagline {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.footer-tagline em {
  color: var(--f-soft);
}

.footer-bottom {
  min-height: 100px;
  padding-block: 24px;
  border-top: 1px solid var(--f-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-copyright > span[aria-hidden] {
  margin-inline: 9px;
  color: rgba(250, 250, 250, 0.3);
}

.footer-colophon {
  color: var(--f-soft);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.footer-back-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--f-line);
  border-radius: 50%;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-back-icon svg {
  width: 20px;
  height: 20px;
}

.footer-back:hover .footer-back-icon,
.footer-back:focus-visible .footer-back-icon {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-colophon {
    display: none;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .footer-signature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 32px;
  }

  .footer-mark-frame {
    font-size: 39vw;
  }

  .footer-signoff {
    padding-bottom: 0;
  }

  .footer-signoff .eyebrow {
    margin-bottom: 12px;
  }

  .footer-tagline {
    font-size: 28px;
  }

  .footer-copyright {
    max-width: 160px;
    line-height: 1.7;
  }

  .footer-copyright > span[aria-hidden] {
    display: none;
  }

  .footer-copyright > span:last-child {
    display: block;
  }

  .footer-back {
    gap: 10px;
  }
}


/* ------------------------------------------------------------ mornings --- */

/* Not pinned. The four mornings advance on a timer instead of on scroll: the
   pinned version cost roughly five screens of scroll to show four states, and
   held the wheel hostage to do it. A timer makes the same comparison in one
   screen and hands scrolling back. */
.mornings {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

/* All four photographs stacked in one frame; the renderer crossfades them. */
.m-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--tint);
  overflow: hidden;
}

.m-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
}

.m-panel {
  min-width: 0;
}

/* The chips are the app's own control, at interactive size. */
.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-chip {
  position: relative;
  overflow: hidden;
  padding: 11px 18px;
  border: 1px solid var(--hairline);
  background: none;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.m-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.m-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* The dwell timer, drawn on the chip it belongs to. Without it the section
   changes by itself for no visible reason, which reads as a glitch rather than
   as something playing. */
.m-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes mdwell {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.m-chips[data-auto="true"] .m-chip[aria-pressed="true"]::after {
  animation: mdwell var(--dwell, 5s) linear forwards;
}

.m-chips[data-auto="true"][data-paused="true"] .m-chip[aria-pressed="true"]::after {
  animation-play-state: paused;
}

.m-line {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 26px 0 18px;
}

/* The bill, itemised the way a receipt is set — with the piece's own photograph
   on its row. It used to be a text bill above a separate grid of the same four
   photographs, which said everything twice and pushed the total off screen. */
.m-bill {
  list-style: none;
  margin: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.m-bill li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.m-bill .thumb {
  width: 54px;
  aspect-ratio: 3 / 4;
  background: var(--tint);
  overflow: hidden;
}

.m-bill .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-bill .who {
  min-width: 0;
}

.m-bill .slot {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.m-bill .name {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  color: var(--ink);
}

.m-bill .shop {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--soft);
}

.m-bill b {
  font-weight: 500;
  font-size: 14.5px;
}

.m-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 4px;
}

/* Direct child only: the figure beside it is a <b> with its own spans inside
   (the currency glyph and the number), and those must not pick up the label's
   10px caps. */
.m-total > span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

.m-total b {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  font-variant-numeric: tabular-nums;
}

/* Stacked below the tablet breakpoint: the bill needs the full measure before
   the piece names start wrapping mid-word. */
@media (max-width: 900px) {
  .mornings {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .m-photo {
    aspect-ratio: 4 / 3;
    object-position: center 12%;
  }

  .m-chip {
    padding: 9px 13px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .m-line {
    font-size: 20px;
    margin: 18px 0 12px;
  }
}

@media (max-width: 560px) {
  .m-bill li {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .m-bill .thumb {
    width: 44px;
  }

  .m-bill .shop {
    display: none;
  }
}

/* --------------------------------------------------------------- grain --- */

/* A whisper of film grain on the ink sections only — the paper stays clean,
   the dark rooms get texture. */
.cta {
  position: relative;
}

@keyframes grain {
  0% { background-position: 0 0; }
  25% { background-position: -46px 62px; }
  50% { background-position: 72px -34px; }
  75% { background-position: -58px -48px; }
  100% { background-position: 0 0; }
}

.cta::after {
  animation: grain 0.9s steps(1) infinite;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------- motion, opted out ---- */

/* Everything above degrades to a static page here. The JS checks the same
   query and skips the timelines rather than running them at zero duration. */
@media (prefers-reduced-motion: reduce) {
  .cta::after {
    animation: none;
  }

  .line-mask > span {
    transform: none !important;
  }

  .stack-card {
    position: static;
  }
}

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