/* Era marketing site.
   The palette, type ramp and shadows are the app's own tokens
   (Packages/DesignSystem/Sources/DesignSystem/Tokens.swift), so the site and
   the product read as one world. Change a value here only if it changes there. */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */

:root {
  --canvas: #faf9f6;
  --surface: #ffffff;
  --ink: #141412;
  --ink-2: #6e6c66;
  --ink-3: #a8a69e;
  --hairline: #e9e7e1;
  --blush: #e3ac9e;
  --matcha: #a9bc93;

  --sticky-green: #d9e8c8;
  --sticky-yellow: #f5ebb0;
  --sticky-pink: #f2cec8;
  --sticky-mustard: #ebc868;
  --sticky-cream: #f4eedc;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --paper: 0 3px 10px rgba(20, 20, 18, 0.07);
  --float: 0 6px 18px rgba(20, 20, 18, 0.1);
  --lift: 0 22px 48px rgba(20, 20, 18, 0.16);

  --page: min(1120px, 90vw);
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 13vw, 176px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.2, 1.1, 0.3, 1);
}

/* --------------------------------------------------------------- baseline */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A whisper of paper grain over the whole canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 6.4vw, 86px); }
h2 { font-size: clamp(34px, 5.2vw, 66px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; }

em { font-style: italic; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 clamp(16px, 2vw, 26px);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.hand {
  font-family: var(--hand);
  font-size: 23px;
  line-height: 1.1;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--canvas);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--float);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: none;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.btn--ghost:hover { box-shadow: var(--paper); border-color: var(--ink-3); }

.btn--small { padding: 11px 20px; font-size: 15px; }

/* App Store badge, built rather than bitmapped so it stays crisp and picks up
   SF Pro on Apple devices like the real one does. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 19px 10px 16px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  box-shadow: var(--float);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease);
}
.appstore:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.appstore:active { transform: translateY(0) scale(0.985); }
.appstore__logo { width: 25px; height: 31px; flex: none; margin-top: -3px; }
.appstore__text { display: grid; line-height: 1; text-align: left; }
.appstore__text small { font-size: 11px; letter-spacing: 0.005em; }
.appstore__text strong {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.appstore--small { gap: 8px; padding: 6px 14px 7px 11px; border-radius: 9px; }
.appstore--small .appstore__logo { width: 18px; height: 22px; margin-top: -2px; }
.appstore--small .appstore__text small { font-size: 8.5px; }
.appstore--small .appstore__text strong { font-size: 15px; margin-top: 3px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.textlink:hover { color: var(--ink); border-color: var(--ink); }

/* ----------------------------------------------------------------- chrome */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--hairline); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  line-height: 1;
}
.wordmark span { font-style: italic; }

.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 34px);
  font-size: 15px;
  color: var(--ink-2);
}
.nav__links a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

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

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 5vw, 56px) 0 clamp(60px, 8vw, 110px);
  overflow: clip;
}

.hero__stage {
  position: relative;
  min-height: clamp(620px, 82vh, 860px);
  display: grid;
  place-items: center;
}

.hero__copy {
  position: relative;
  z-index: 20;
  text-align: center;
  width: min(660px, 88%);
  pointer-events: none;
}
.hero__copy > * { pointer-events: auto; }

/* Keeps the headline legible when a tile drifts under it. */
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -18% -46%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    62% 56% at 50% 50%,
    color-mix(in srgb, var(--canvas) 97%, transparent) 0%,
    color-mix(in srgb, var(--canvas) 93%, transparent) 42%,
    color-mix(in srgb, var(--canvas) 70%, transparent) 68%,
    transparent 86%
  );
}

.hero h1 { margin-bottom: 22px; }

.hero__lede {
  max-width: 42ch;
  margin-inline: auto;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  text-wrap: pretty;
}

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

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  transform: rotate(-1.6deg);
  color: var(--ink-3);
  white-space: nowrap;
}
.hero__hint svg { flex: none; }

/* -------------------------------------------------------------- moodboard */

/* Full bleed, so the board runs off both edges the way a real one would. */
.moodboard {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  z-index: 10;
  --tile-scale: 1;
}

.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--w) * var(--tile-scale));
  margin: 0;
  --dx: 0px;
  --dy: 0px;
  --grab: 0;
  transform:
    translate(-50%, -50%)
    translate3d(var(--dx), var(--dy), 0)
    rotate(calc(var(--r) + var(--grab) * 1.4deg))
    scale(calc(1 + var(--grab) * 0.045));
  transform-origin: 50% 50%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.3s var(--ease);
}
.tile img { pointer-events: none; -webkit-user-drag: none; }

.tile[data-dragging="true"] { cursor: grabbing; will-change: transform; }

.tile--cutout img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(20, 20, 18, 0.16));
}
.tile--cutout[data-dragging="true"] img {
  filter: drop-shadow(0 26px 34px rgba(20, 20, 18, 0.24));
}

/* A photo pinned to the board: white border, deckled bottom edge, real weight. */
.tile--polaroid {
  background: var(--surface);
  padding: calc(9px * var(--tile-scale)) calc(9px * var(--tile-scale)) calc(34px * var(--tile-scale));
  border-radius: 3px;
  box-shadow: var(--paper), 0 14px 26px rgba(20, 20, 18, 0.09);
  transition: box-shadow 0.3s var(--ease);
}
.tile--polaroid[data-dragging="true"] { box-shadow: var(--lift); }
.tile--polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}
.tile--polaroid figcaption {
  font-family: var(--hand);
  font-size: calc(19px * var(--tile-scale));
  line-height: 1;
  text-align: center;
  color: var(--ink-2);
  padding-top: calc(10px * var(--tile-scale));
}

.tile--wide img { aspect-ratio: 4 / 3; }

/* Torn masking-tape corner. */
.tile--taped::after {
  content: "";
  position: absolute;
  top: calc(-11px * var(--tile-scale));
  left: 50%;
  width: calc(74px * var(--tile-scale));
  height: calc(24px * var(--tile-scale));
  transform: translateX(-50%) rotate(var(--tape, -4deg));
  background: color-mix(in srgb, var(--sticky-cream) 72%, transparent);
  box-shadow: 0 1px 2px rgba(20, 20, 18, 0.08);
  clip-path: polygon(3% 12%, 97% 0%, 100% 86%, 6% 100%);
}

.tile--note {
  background: var(--note, var(--sticky-yellow));
  padding: 0.72em 0.72em 0.9em;
  border-radius: 5px;
  box-shadow: var(--paper), 0 12px 22px rgba(20, 20, 18, 0.08);
  font-family: var(--hand);
  font-size: calc(22px * var(--tile-scale));
  line-height: 1.25;
  color: var(--ink);
}
.tile--note small {
  display: block;
  font-family: var(--sans);
  font-size: calc(10.5px * var(--tile-scale));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  margin-bottom: 7px;
}

/* Entrance: tiles land on the board one after another. */
.moodboard[data-ready="false"] .tile { opacity: 0; }
.moodboard[data-ready="true"] .tile {
  animation: tile-land 0.62s var(--spring) backwards;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes tile-land {
  from {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate3d(var(--dx), calc(var(--dy) + 26px), 0)
      rotate(calc(var(--r) * 0.3))
      scale(0.9);
  }
}

/* ------------------------------------------------------------------ facts */

.facts {
  border-block: 1px solid var(--hairline);
  padding: clamp(30px, 4vw, 46px) 0;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  text-align: center;
}
.fact__num {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact__label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts__grid > div + div { border-left: 1px solid var(--hairline); }

/* --------------------------------------------------------------- sections */

.section { padding: var(--section) 0; }
.section--tint { background: color-mix(in srgb, var(--sticky-cream) 42%, var(--canvas)); }
.section--center { text-align: center; }

.section__head { width: min(580px, 100%); }
.section--center .section__head { margin-inline: auto; }
.section__head .lede { margin-top: 22px; }
.section--center .section__head .lede { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.split--flip .split__visual { order: -1; }

.notes {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.notes li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}
.notes b { color: var(--ink); font-weight: 600; }
.notes .marker {
  font-family: var(--hand);
  font-size: 21px;
  color: var(--blush);
  line-height: 1.35;
}

/* ------------------------------------------------------------ tear-off pad */

.pad {
  position: relative;
  width: min(340px, 100%);
  margin-inline: auto;
  user-select: none;
  -webkit-user-select: none;
}

.pad__binding {
  position: relative;
  z-index: 3;
  height: 30px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #efece5, #e2ded4);
  box-shadow: inset 0 -1px 0 rgba(20, 20, 18, 0.08), var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.pad__binding i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfcabd;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.18);
}

.pad__stack { position: relative; }

.pad__sheet {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 0 0 4px 4px;
  padding: 26px 24px 30px;
  text-align: center;
  box-shadow: var(--paper), 0 16px 30px rgba(20, 20, 18, 0.08);
  touch-action: pan-y;
  cursor: grab;
  transform-origin: 50% 0;
}
.pad__sheet[data-dragging="true"] { cursor: grabbing; }

/* The sheet waiting underneath, revealed as the top one is pulled away. */
.pad__next {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--surface);
  border-radius: 0 0 4px 4px;
  padding: 26px 24px 30px;
  text-align: center;
  box-shadow: var(--paper);
}

.pad__perf {
  height: 1px;
  margin: 0 0 20px;
  background-image: linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 9px);
  background-size: 9px 1px;
  opacity: 0.5;
}

.pad__month {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pad__day {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  font-size: 108px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 12px 0 6px;
}
.pad__weekday {
  font-family: var(--serif);
  font-style: italic;
  font-size: 25px;
  color: var(--ink-2);
}
.pad__streak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--sticky-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.pad__line {
  margin-top: 18px;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-2);
  min-height: 2.4em;
}

.pad__ghost {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  white-space: nowrap;
}

.pad__sheet[data-falling="true"] {
  animation: sheet-fall 0.72s cubic-bezier(0.36, 0, 0.66, -0.3) forwards;
  pointer-events: none;
}
@keyframes sheet-fall {
  to {
    transform: translate3d(var(--fall-x, 8px), 460px, 0) rotate(var(--fall-r, 9deg));
    opacity: 0;
  }
}

/* ------------------------------------------------------ real app screens */

/* A screenshot of the running app, in a frame thin enough to stay out of
   its way. The screen's own corner radius is baked into the capture. */
.phoneshot {
  position: relative;
  width: min(298px, 82vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(158deg, #2a2924, #101010);
  box-shadow: var(--lift), inset 0 2px 0 rgba(255, 255, 255, 0.16);
}
.phoneshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 37px;
  background: var(--canvas);
}

/* Two screens in one frame: the app's own tab switcher is in the picture, so
   the controls are invisible hit areas laid straight over it. */
.phoneshot--live { display: grid; }
.phoneshot--live img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.phoneshot--live img.is-on { opacity: 1; }

/* Measured against the switcher inside the capture, not guessed. */
.shot-hit {
  position: absolute;
  top: 9.2%;
  height: 4.4%;
  border: 0;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.shot-hit--left { left: 25%; width: 26%; }
.shot-hit--right { left: 53%; width: 22%; }
.shot-hit:hover,
.shot-hit:focus-visible { background: color-mix(in srgb, var(--sticky-yellow) 55%, transparent); }

.shot-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-3);
  transform: rotate(-1.4deg);
}

/* --------------------------------------------------------- discover wall */

.wall {
  margin-top: clamp(40px, 6vw, 68px);
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  --wall-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--wall-mask);
  mask-image: var(--wall-mask);
}
.wall__row { overflow: hidden; }

/* Two identical sets side by side, shifted by exactly one set: the seam never
   lands on screen. The spacing lives on the cards, not as a container gap,
   because a gap between the sets would put the loop half a gap out of step. */
.wall__track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  animation: drift var(--drift, 150s) linear infinite;
}
.wall__set { display: flex; }
.wall__row[data-drift="right"] .wall__track { animation-direction: reverse; }
.wall:hover .wall__track { animation-play-state: paused; }
@keyframes drift {
  to { transform: translateX(-50%); }
}

.wall__card {
  flex: none;
  width: clamp(150px, 15vw, 196px);
  margin: 0 clamp(14px, 1.8vw, 22px) 0 0;
  padding: 8px 8px 10px;
  background: var(--surface);
  border-radius: 3px;
  box-shadow: var(--paper), 0 12px 22px rgba(20, 20, 18, 0.08);
  transform: rotate(var(--r, 0deg));
}
.wall__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 1px;
}
.wall__card figcaption {
  padding: 9px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.wall__card b { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--ink); }
.wall__card span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wall__card i {
  display: block;
  margin-top: 1px;
  font-family: var(--hand);
  font-style: normal;
  font-size: 15px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- manifesto */

.manifesto {
  width: min(560px, 92%);
  margin-inline: auto;
  text-align: center;
}
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.15em;
  text-wrap: pretty;
}
.manifesto p:last-of-type { margin-bottom: 0; }
.manifesto .quiet { color: var(--ink-2); }

.rule {
  width: 46px;
  height: 1px;
  background: var(--ink-3);
  margin: clamp(30px, 4vw, 46px) auto;
  border: 0;
}

/* ------------------------------------------------------------ daily lines */

.linebox {
  position: relative;
  width: min(520px, 90%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 54px) clamp(26px, 4vw, 46px);
  background: var(--sticky-yellow);
  border-radius: 5px;
  box-shadow: var(--paper), 0 20px 38px rgba(20, 20, 18, 0.08);
  transform: rotate(-1.1deg);
}
.linebox::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 27px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  box-shadow: 0 1px 2px rgba(20, 20, 18, 0.08);
  clip-path: polygon(3% 14%, 97% 0%, 100% 84%, 5% 100%);
}
.linebox__text {
  font-family: var(--hand);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.28;
  min-height: 3.9em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.linebox[data-swapping="true"] .linebox__text {
  opacity: 0;
  transform: translateY(-7px);
}
.linebox__meta {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: 20px;
  justify-content: center;
  margin-top: clamp(38px, 5vw, 56px);
}
.plan {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--paper), 0 14px 28px rgba(20, 20, 18, 0.07);
  text-align: left;
  transform: rotate(var(--tilt, 0deg));
}
.plan--feature { background: var(--sticky-cream); }
.plan__tag {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.plan__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan__price {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 12px 0 4px;
}
.plan__price span { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.plan__note { font-size: 14px; color: var(--ink-2); }
.plan__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.plan__list li { display: grid; grid-template-columns: 15px 1fr; gap: 9px; }
.plan__list li::before { content: "·"; color: var(--blush); font-weight: 700; text-align: center; }

.smallprint {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 52ch;
  margin-inline: auto;
}

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

.faq { max-width: 720px; margin: clamp(34px, 5vw, 52px) auto 0; text-align: left; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.faq__sign {
  flex: none;
  width: 15px;
  height: 15px;
  position: relative;
  opacity: 0.5;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.4px;
  background: currentColor;
  transition: transform 0.32s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[data-open="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s var(--ease);
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 46px 24px 2px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------------------------------------------------------------- closing */

.closing {
  position: relative;
  overflow: clip;
  padding: clamp(96px, 13vw, 168px) 0;
  text-align: center;
  background: color-mix(in srgb, var(--sticky-cream) 42%, var(--canvas));
  border-top: 1px solid var(--hairline);
}
.closing .wrap { position: relative; z-index: 20; }
.closing h2 { margin-bottom: 20px; }
.moodboard--closing { --tile-scale: 0.9; }
.closing .lede { margin-inline: auto; }
.closing .hero__actions { margin-top: 34px; }

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

.footer { padding: clamp(50px, 6vw, 74px) 0 40px; border-top: 1px solid var(--hairline); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 60px);
}
.footer__tag { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 24ch; }
.footer h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: clamp(40px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal="in"] { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1600px) { .moodboard { --tile-scale: 0.88; } }
@media (max-width: 1360px) { .moodboard { --tile-scale: 0.78; } }
@media (max-width: 1180px) { .moodboard { --tile-scale: 0.7; } }
@media (max-width: 900px)  { .moodboard { --tile-scale: 0.6; } }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--flip .split__visual { order: 0; }
  .section__head { max-width: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .nav__links { display: none; }
  .moodboard { --tile-scale: 0.5; }
  .tile { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .tile[data-mobile="hide"] { display: none; }
  .hero__copy::before { inset: -14% -60%; }
  .hero__stage { min-height: 620px; }
  .hero__copy { width: min(300px, 78%); }
  .pad { width: min(340px, 80%); }
  .facts__grid { grid-template-columns: 1fr; gap: 26px; }
  .facts__grid > div + div { border-left: 0; border-top: 1px solid var(--hairline); padding-top: 26px; }
  .plans { grid-template-columns: minmax(0, 320px); }
  .moodboard--closing { --tile-scale: 0.44; }
  .wall__card { width: 138px; margin-right: 12px; }
  .wall { --drift: 110s; }
  .faq__a p { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .wall__track { animation: none; }
  .wall__row { overflow-x: auto; }
}

/* ------------------------------------------------------------ prose pages */

.prose {
  width: min(680px, 90vw);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 110px);
}
.prose h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 14px; }
.prose .updated {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(34px, 4vw, 50px);
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 27px);
  margin: clamp(38px, 4vw, 54px) 0 14px;
}
.prose p,
.prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.68; }
.prose ul { margin: 0 0 1em; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(30px, 4vw, 44px);
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.prose .back:hover { color: var(--ink); }
