/*
  Shimmerday website styles.
  One shared stylesheet for index.html, privacy.html, terms.html, support.html
  and hold.html. No build step and no requests to any other domain: the display
  typeface (Fraunces, SIL Open Font License, see fonts/OFL.txt) is served from
  this site. Accent colours mirror src/theme/tokens.ts in the app.

  The look: a night sky that earns its colour. Type is a soft serif for the
  things we say and the app's own rounded face for the things you read. Colour
  is kept back for the moments the app gives it to you.
*/

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

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --bg: #0A0716;
  --bg-raised: #110D24;
  --surface: #171231;
  --surface-hi: #241C49;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #F7F4FF;
  --dim: #BFB8DD;
  --muted: #9690BA;
  --on-accent: #140F2B;

  --coral: #FF6B6B;
  --tangerine: #FF9F43;
  --sun: #FFD93D;
  --mint: #3DDC97;
  --sky: #4CC9F0;
  --violet: #9B5DE5;
  --lilac: #B99BF2;
  --pink: #F15BB5;

  --g-brand: linear-gradient(100deg, #B487F5, #F15BB5 48%, #FF9F43);
  --g-sunrise: linear-gradient(120deg, #FF6B6B, #FF9F43 55%, #FFD93D);
  --g-ocean: linear-gradient(135deg, #4CC9F0, #4361EE);
  --g-meadow: linear-gradient(135deg, #3DDC97, #4CC9F0);
  --g-berry: linear-gradient(135deg, #F15BB5, #9B5DE5);
  --g-gold: linear-gradient(135deg, #FFD93D, #FF9F43);
  --g-cta: linear-gradient(105deg, #F778C4, #FF9F43 58%, #FFD35A);
  --g-spectrum: linear-gradient(90deg, #FF6B6B, #FF9F43, #FFD93D, #3DDC97, #4CC9F0, #9B5DE5, #F15BB5);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 40px);
  --wrap: 1120px;
  --header-h: 68px;

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* The brand's four-point shimmer, used as a mask so it can take any colour. */
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='132 132 760 760'%3E%3Cpath d='M512 132Q556 468 892 512Q556 556 512 892Q468 556 132 512Q468 468 512 132Z'/%3E%3C/svg%3E");
  /* Fine film grain, so the dark never looks flat. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
  background:
    var(--grain),
    radial-gradient(900px 520px at 0% -6%, rgba(155, 93, 229, 0.2), transparent 64%),
    var(--bg);
  background-repeat: repeat, no-repeat, no-repeat;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 420;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 em,
h2 em,
blockquote em {
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

a {
  color: var(--sky);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8FE0FA;
}

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

::selection {
  background: var(--pink);
  color: var(--on-accent);
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}

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

.grad-text {
  /* Padding on an inline box widens the painted area without moving the line,
     so descenders and the italic's overhang are not clipped by
     background-clip: text. */
  padding: 0.14em 0.08em 0.14em 0;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A small shimmer in front of a label. */
.eyebrow::before,
.spark {
  content: "";
  flex: none;
  width: 0.95em;
  aspect-ratio: 1;
  background: var(--accent, var(--lilac));
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

.eyebrow.is-plain::before {
  display: none;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 7, 22, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 520;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.4vw, 16px);
}

.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  color: var(--dim);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 759px) {
  .nav a.nav-wide {
    display: none;
  }
}

@media (max-width: 399px) {
  .nav a.nav-mid {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--g-cta);
  color: var(--on-accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 0 rgba(140, 50, 20, 0.18) inset,
    0 14px 34px -12px rgba(255, 138, 92, 0.75);
}

.btn-primary:hover {
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 0 rgba(140, 50, 20, 0.18) inset,
    0 22px 44px -14px rgba(255, 138, 92, 0.9);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-lg {
  min-height: 60px;
  padding: 16px 30px;
  font-size: 1.125rem;
}

.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

/* In the header the button stays quiet until it is wanted. */
.site-header .btn-primary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.site-header .btn-primary:hover {
  background: var(--text);
  color: var(--on-accent);
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 6px calc(100% - 12px) / calc(100% - 12px) 1px no-repeat;
  background-size: 0 1px;
  transition: background-size 0.3s ease;
}

.text-link::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.text-link:hover {
  color: var(--text);
  background-size: calc(100% - 12px) 1px;
}

.text-link:hover::after {
  transform: rotate(45deg) translate(1px, 1px);
}

/* ------------------------------------------------------------------ phones */

/*
  A plain device frame around a real screenshot. --pw is the phone's width; the
  corner radii and bezel are worked out from it so the frame keeps its shape at
  every size.
*/
.phone {
  --pw: clamp(210px, 60vw, 290px);
  position: relative;
  flex: none;
  width: var(--pw);
  margin: 0;
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.158);
  background: linear-gradient(160deg, #2B2540, #08060F 38%, #0B0914 70%, #25203A);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 1px 0 1px rgba(255, 255, 255, 0.05) inset,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -40px var(--glow, rgba(155, 93, 229, 0.55));
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 840 / 1826;
  object-fit: cover;
  border-radius: calc(var(--pw) * 0.13);
  background: #0D0A1F;
}

/*
  Earn your colour. With scripting on, screens start in gray and take their
  colour when they come into view, the way the app hands colour back. Without
  scripting, or with reduced motion, they are simply in colour.
*/
.js [data-lit] .phone img {
  filter: grayscale(1) brightness(0.86) contrast(0.94);
  transition: filter 1.9s cubic-bezier(0.3, 0.6, 0.2, 1) 0.25s;
}

.js [data-lit].is-lit .phone img {
  filter: none;
}

/* The stage a phone stands on: faint orbits and one soft light. */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(132%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 63px, rgba(255, 255, 255, 0.075) 63px 64px);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
}

.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(96%, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(155, 93, 229, 0.5)), transparent 68%);
  filter: blur(34px);
  opacity: 0.5;
  transition: opacity 1.9s ease 0.25s;
}

.js [data-lit] .stage::after,
.js .stage[data-lit]::after {
  opacity: 0.12;
}

.js [data-lit].is-lit .stage::after,
.js .stage[data-lit].is-lit::after {
  opacity: 0.5;
}

.stage .spark {
  position: absolute;
  z-index: 0;
  width: var(--s, 18px);
  background: var(--c, var(--text));
  opacity: 0.9;
}

/* Tilted phones may reach past the edge on small screens; never let that scroll the page sideways. */
main {
  overflow-x: hidden;
  overflow-x: clip;
}

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

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

/* Daybreak on the horizon, low and to the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -46% 22%;
  height: 92%;
  background:
    radial-gradient(closest-side, rgba(255, 159, 67, 0.2), transparent 72%),
    radial-gradient(closest-side at 34% 60%, rgba(241, 91, 181, 0.26), transparent 74%);
  filter: blur(20px);
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 9% 18%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 23% 58%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 9%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 52% 71%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 66% 14%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1px 1px at 81% 44%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 94% 24%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 4% 78%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 46% 36%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 31% 90%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 73% 86%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 88% 68%, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 8vw, 64px);
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.75rem, 12.4vw, 4.75rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  display: block;
}

.hero .lede {
  max-width: 33em;
  margin-top: clamp(22px, 3vw, 30px);
  font-size: clamp(1.125rem, 2.1vw, 1.3125rem);
  line-height: 1.5;
  color: var(--dim);
}

.hero .lede b {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: clamp(28px, 4vw, 38px);
}

.cta-note {
  max-width: 44ch;
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-stage {
  --glow: rgba(241, 91, 181, 0.6);
  min-height: calc(var(--pw, 250px) * 2.3);
  padding-block: 8px 12px;
}

.hero-stage .phone {
  --pw: clamp(200px, 56vw, 280px);
}

.hero-stage .phone-front {
  z-index: 2;
  transform: translateX(-17%) rotate(-3.5deg);
}

.hero-stage .phone-back {
  --pw: clamp(180px, 50vw, 250px);
  position: absolute;
  z-index: 1;
  transform: translate(44%, 5%) rotate(6deg);
  opacity: 0.94;
}

/* In the hero the screens rise first, then take their colour. */
.js .hero-stage[data-lit] .phone img,
.js .hero-stage[data-lit]::after {
  transition-delay: 1s;
}

.hero-stage .phone-back img {
  /* The screen behind is a block screen: let it sit back a little. */
  opacity: 0.9;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(4.25rem, 6.9vw, 5.75rem);
  }

  .hero-stage .phone {
    --pw: 292px;
  }

  .hero-stage .phone-back {
    --pw: 262px;
  }
}

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

.section {
  padding: clamp(72px, 11vw, 136px) 0;
}

.section-tight {
  padding: clamp(44px, 6vw, 76px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.125rem, 5.4vw, 3.5rem);
}

.section-head p:not(.eyebrow) {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--dim);
}

.section-head.is-center p:not(.eyebrow) {
  margin-inline: auto;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
}

/* ----------------------------------------------------- the line that hurts */

.truth {
  padding: clamp(64px, 10vw, 128px) 0;
  text-align: center;
}

.truth p {
  max-width: 17em;
  margin-inline: auto;
  font-family: var(--display);
  font-size: clamp(1.875rem, 5.6vw, 3.75rem);
  font-weight: 360;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--muted);
}

.truth p span {
  color: var(--text);
}

.truth p em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--text);
}

.truth .answer-line {
  max-width: 34em;
  margin-top: clamp(24px, 4vw, 36px);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--dim);
}

/* ---------------------------------------------------------------- chapters */

.chapter {
  --accent: var(--lilac);
  --glow: rgba(155, 93, 229, 0.55);
  padding: clamp(56px, 8vw, 104px) 0;
}

.chapter-grid {
  display: grid;
  gap: clamp(44px, 7vw, 72px);
  align-items: center;
}

.chapter .no {
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.chapter .eyebrow::before {
  display: none;
}

.chapter h2 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 7.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.chapter h2 em {
  color: var(--accent);
}

.chapter .lede {
  max-width: 31em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
  color: var(--dim);
}

.points {
  display: grid;
  max-width: 33em;
  margin: clamp(26px, 4vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  line-height: 1.5;
}

.points li::before {
  content: "";
  width: 12px;
  aspect-ratio: 1;
  background: var(--accent);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
  transform: translateY(1px);
}

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

.chapter .stage {
  min-height: calc(var(--pw, 260px) * 2.28);
}

.chapter .phone {
  --pw: clamp(210px, 62vw, 282px);
}

/* Two screens together, one a step behind the other. */
.stage.is-pair .phone:first-of-type {
  z-index: 2;
  transform: translateX(-20%) rotate(-3deg);
}

.stage.is-pair .phone + .phone {
  --pw: clamp(186px, 54vw, 250px);
  position: absolute;
  z-index: 1;
  transform: translate(40%, 6%) rotate(5deg);
}

.fineprint {
  max-width: 44em;
  margin-top: 18px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 900px) {
  .chapter-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .chapter.is-flipped .chapter-copy {
    order: 2;
  }

  .chapter .phone {
    --pw: 290px;
  }

  .stage.is-pair .phone + .phone {
    --pw: 258px;
  }
}

/* ----------------------------------------------------- earn your colour back */

.colour {
  --accent: var(--tangerine);
  --glow: rgba(255, 159, 67, 0.6);
  position: relative;
  margin-block: clamp(24px, 4vw, 48px);
  padding: clamp(64px, 9vw, 120px) 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.028) 16%, rgba(255, 255, 255, 0.028) 84%, transparent);
}

.colour .chapter-grid {
  align-items: center;
}

.colour h2 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 8.6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.colour h2 em {
  padding: 0.1em 0.08em 0.14em 0;
  background: var(--g-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.colour .lede {
  max-width: 30em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.9vw, 1.1875rem);
  color: var(--dim);
}

/* A spectrum that draws itself in as the section takes its colour. */
.spectrum {
  width: min(100%, 420px);
  height: 3px;
  margin-top: clamp(28px, 4vw, 40px);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.spectrum::before {
  content: "";
  display: block;
  height: 100%;
  background: var(--g-spectrum);
  transform-origin: left center;
}

.js .colour[data-lit] .spectrum::before {
  transform: scaleX(0);
  transition: transform 2.2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s;
}

.js .colour[data-lit].is-lit .spectrum::before {
  transform: none;
}

.js .colour[data-lit] h2 em {
  filter: grayscale(1) brightness(1.5);
  transition: filter 1.9s cubic-bezier(0.3, 0.6, 0.2, 1) 0.25s;
}

.js .colour[data-lit].is-lit h2 em {
  filter: none;
}

/* ------------------------------------------------------- no streaks, no shame */

.kind {
  --accent: var(--mint);
  --glow: rgba(61, 220, 151, 0.5);
}

.nevers {
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.nevers li {
  display: grid;
  gap: 4px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.nevers h3 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.nevers h3 i {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--muted);
}

.nevers p {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 720px) {
  .nevers li {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: baseline;
  }
}

.welcome-line {
  margin-top: clamp(40px, 6vw, 64px);
  font-family: var(--display);
  font-size: clamp(1.625rem, 4.4vw, 2.75rem);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  color: var(--muted);
}

.welcome-line em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

/* ------------------------------------------------------------- also inside */

.index-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.index-list li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.index-list h3 {
  font-size: 1.5rem;
  font-weight: 440;
  letter-spacing: -0.015em;
}

.index-list p {
  max-width: 44ch;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.55;
}

.index-list .fine {
  margin-top: 4px;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 760px) {
  .index-list {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(40px, 6vw, 88px);
  }

  .index-list li {
    padding: 28px 0;
  }
}

/* ------------------------------------------------------------ founder note */

.note {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.note blockquote {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(1.875rem, 5.4vw, 3.25rem);
  font-weight: 380;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.note .note-more {
  max-width: 54ch;
  margin: 26px auto 0;
  color: var(--dim);
}

.note .signoff {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.note .signoff::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

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

.plans {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--border);
}

.plan.is-best {
  background:
    linear-gradient(180deg, #1B1438, #120D27) padding-box,
    var(--g-brand) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -50px rgba(241, 91, 181, 0.7);
}

.plan h3 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan .price {
  margin-top: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan .price small {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dim);
}

.plan .flag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--g-cta);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plan .flag.is-plain {
  background: none;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--dim);
}

.plan p {
  color: var(--dim);
}

.plan ul {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--dim);
  font-size: 0.9375rem;
  border-top: 1px solid var(--border);
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.plan li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.plan li::before {
  content: "";
  width: 11px;
  aspect-ratio: 1;
  background: var(--lilac);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
  transform: translateY(1px);
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 880px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 1px solid var(--border-strong);
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tl, var(--mint));
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline b {
  display: block;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 440;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -0.015em;
}

.timeline span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.9375rem;
}

.terms-box {
  max-width: 880px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.terms-box p + p {
  margin-top: 10px;
}

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

  .timeline {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .timeline li {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-strong);
  }

  .timeline li:last-child {
    border-top-color: var(--border-strong);
  }

  .timeline li::before {
    left: 0;
    top: -6px;
  }
}

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

.faq {
  display: grid;
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--border-strong);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  font-weight: 440;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}

.faq summary:hover {
  color: var(--lilac);
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 11px no-repeat;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease;
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--on-accent), var(--on-accent)) center / 11px 1.5px no-repeat,
    var(--text);
  box-shadow: none;
  transform: rotate(180deg);
}

.faq .answer {
  max-width: 62ch;
  padding: 0 0 26px;
  color: var(--dim);
}

.faq .answer > * + * {
  margin-top: 12px;
}

.faq .answer ol,
.faq .answer ul {
  margin-bottom: 0;
  padding-left: 1.3em;
}

.faq .answer li + li {
  margin-top: 6px;
}

.faq .answer strong {
  color: var(--text);
  font-weight: 600;
}

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

.final {
  position: relative;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 120%;
  background:
    radial-gradient(closest-side, rgba(255, 159, 67, 0.2), transparent 70%),
    radial-gradient(closest-side at 40% 55%, rgba(241, 91, 181, 0.24), transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.final > * {
  position: relative;
}

.final .spark {
  display: block;
  width: 34px;
  margin: 0 auto 26px;
  background: var(--g-brand);
}

.final h2 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 9.6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.final p {
  max-width: 40ch;
  margin: 24px auto 0;
  color: var(--dim);
}

.final .btn {
  margin-top: 32px;
}

/* The not-found page borrows the closing section. */
.final .nf-title {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 9.6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.final .nf-links {
  margin-top: 28px;
  font-size: 0.9375rem;
}

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

.site-footer {
  margin-top: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 6vw, 56px) 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(8, 5, 22, 0.5);
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-top {
  display: grid;
  gap: 28px;
}

.footer-top p {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 0 0 -10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.55;
}

@media (min-width: 820px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-end;
    margin: 0 -10px 0 0;
  }
}

/* ------------------------------------------------ document pages (legal, help) */

.doc-hero {
  padding: clamp(44px, 8vw, 88px) 0 clamp(24px, 4vw, 40px);
}

.doc-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.doc-hero .lede {
  max-width: 60ch;
  margin-top: 18px;
  font-size: 1.1875rem;
  color: var(--dim);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.doc-meta span {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.doc {
  display: grid;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
}

.toc {
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--border);
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

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

.toc summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 10px no-repeat,
    rgba(255, 255, 255, 0.09);
}

.toc[open] summary::after {
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 2px no-repeat,
    rgba(255, 255, 255, 0.09);
}

.toc ol {
  margin: 0;
  padding: 0 20px 16px;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  margin-inline: -8px;
  border-radius: var(--r-sm);
  color: var(--dim);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc) ".";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 560px) and (max-width: 979px) {
  .toc ol {
    columns: 2;
    column-gap: 28px;
  }

  .toc li {
    break-inside: avoid;
  }
}

@media (min-width: 980px) {
  .doc {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
  }

  .toc a {
    min-height: 34px;
  }
}

.prose {
  min-width: 0;
  max-width: 74ch;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.prose > section + section {
  margin-top: clamp(40px, 6vw, 60px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: clamp(1.625rem, 3.8vw, 2.25rem);
  color: var(--text);
}

.prose h2 .num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.prose p,
.prose ul,
.prose ol,
.prose .callout,
.prose .data-table {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--lilac);
  font-weight: 700;
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose a {
  font-weight: 700;
}

.callout {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--border);
  border-left: 5px solid var(--tone, var(--mint));
  color: var(--dim);
}

.callout > :first-child {
  margin-top: 0;
}

.callout .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tone, var(--mint));
}

.callout.is-warn {
  --tone: var(--sun);
}

.callout.is-alert {
  --tone: var(--coral);
}

.callout.is-info {
  --tone: var(--sky);
}

.prose .summary-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.prose .summary-grid li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--dim);
}

.summary-grid .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.summary-grid .ico::before {
  content: "";
  width: 15px;
  aspect-ratio: 1;
  background: var(--lilac);
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

.summary-grid b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 700px) {
  .prose .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Data table: real table on wide screens, stacked cards on phones. */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--border);
  background: var(--bg-raised);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow: hidden;
}

.data-table caption {
  padding: 0 16px 10px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  caption-side: top;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.data-table tbody th {
  color: var(--text);
  font-weight: 800;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 699px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table caption {
    display: block;
    padding: 14px 16px 0;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table th,
  .data-table td {
    padding: 0;
    border: 0;
  }

  .data-table td {
    margin-top: 8px;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Support page */

.help-grid {
  display: grid;
  gap: 18px;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--dim);
}

.help-card h2 {
  font-size: 1.5rem;
  color: var(--text);
}

.help-card .btn {
  align-self: flex-start;
  margin-top: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.help-card ul {
  margin: 0;
  padding-left: 1.3em;
}

.help-card li + li {
  margin-top: 6px;
}

.help-card.is-primary {
  background:
    linear-gradient(180deg, #1B1438, #120D27) padding-box,
    var(--g-brand) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -50px rgba(241, 91, 181, 0.7);
}

@media (min-width: 820px) {
  .help-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.faq-head {
  max-width: 860px;
  margin: 0 auto clamp(20px, 3vw, 32px);
}

.faq-head h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
}

.faq-head p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--dim);
}

.path {
  display: inline;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9375em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ----------------------------------------------- hold me to it (buddy page) */

.hold {
  max-width: 640px;
  padding-bottom: clamp(48px, 8vw, 88px);
}

/* The cards on this page are flex and grid boxes, which would otherwise ignore the `hidden` attribute. */
.hold [hidden] {
  display: none !important;
}

.hold .doc-hero {
  padding-bottom: clamp(16px, 3vw, 28px);
}

.hold .doc-hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  overflow-wrap: anywhere;
}

.hold-stack {
  display: grid;
  gap: 18px;
}

.hold-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
}

.hold-tabs button {
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hold-tabs button[aria-selected="true"] {
  background: var(--surface-hi);
  color: var(--text);
}

.hold-form {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.hold-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.hold-field input {
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

.hold-field input:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.hold-note {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
  color: var(--sun);
}

.hold-result {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  text-align: center;
}

.hold-result .label {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hold-number {
  margin: 0;
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--sun);
  overflow-wrap: anywhere;
  user-select: all;
}

.hold-result .btn {
  justify-self: center;
  margin-top: 4px;
}

.hold .help-card .btn {
  align-self: stretch;
}

.hold-about {
  display: grid;
  gap: 8px;
  color: var(--dim);
}

.hold-about h2 {
  font-size: 1.25rem;
  color: var(--text);
}

.hold-more {
  text-align: center;
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  .stars {
    animation: twinkle 6s ease-in-out infinite alternate;
  }

  .stage .spark {
    animation: shimmer 4.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes twinkle {
    from {
      opacity: 0.4;
    }

    to {
      opacity: 0.85;
    }
  }

  @keyframes shimmer {
    0%,
    100% {
      transform: scale(0.62) rotate(0deg);
      opacity: 0.4;
    }

    50% {
      transform: scale(1) rotate(14deg);
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------- print */

@media print {
  :root {
    --text: #000;
    --dim: #222;
    --muted: #444;
  }

  html,
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .btn {
    display: none !important;
  }

  .doc {
    display: block;
  }

  .prose {
    max-width: none;
  }

  .prose a {
    color: #000;
  }

  .callout,
  .data-table,
  .summary-grid li {
    background: #fff;
    box-shadow: none;
    border: 1px solid #999;
  }

  .eyebrow,
  .prose h2 .num,
  .callout .label,
  .data-table thead th {
    color: #000;
  }
}
