/* beadfocus.com: the app's paper and ink (tokens from www/css/bead.css), one vermilion accent used like a seal.
   The app's own component styles come from /app/css/ (liquid.css, library.css) and /app/previews.css, copied by
   tools/build-site.mjs; this file gives them the tokens they read and lays out the pages. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}

:root {
  --paper: #F4F2ED;
  --paper-2: #FBFAF7;
  --paper-3: #E9E6DF;
  --ink: #1C1B1A;
  --ink-2: #6B675F;
  --ink-3: #B3AEA5;
  --line: #DDD8CF;
  --slot: #CFC9BF;
  --seal: #B5382A;
  --accent: #C2402C;
  --stage: #111110;
  --stage-2: #171615;
  --stage-ink: #EEEBE5;
  --stage-dim: #8C877F;
  --stage-faint: #57544F;
  --stage-line: #2E2C29;
  --stage-rule: #2A2826;
  --st-accent: #E05A44;
  --ok: #4FD18B;
  --card: rgba(251, 250, 247, 0.74);
  --card-edge: rgba(28, 27, 26, 0.08);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(28, 27, 26, 0.05), 0 28px 56px -34px rgba(28, 27, 26, 0.42);
  --bead-shadow: rgba(28, 27, 26, 0.3);
  --halo: rgba(194, 64, 44, 0.22);
  --rim: transparent;
  --plate: var(--paper-2);
  --band: var(--stage);
  --stage-edge: rgba(17, 17, 16, 0.4);
  --sheen: rgba(255, 255, 255, 0.55);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .4 -.165'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .011' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .31 0 0 0 0 .25 0 0 0 .3 -.135'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23f)'/%3E%3C/svg%3E");
  --grain-stage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .3 -.12'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'SF Pro Text', Roboto, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --section: clamp(96px, 13vw, 176px);
  color-scheme: light;
}

/* Dark paper follows the phone or computer. Keep the two blocks equal. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #171615; --paper-2: #1F1E1C; --paper-3: #262421;
    --ink: #ECE8E1; --ink-2: #A19C93; --ink-3: #5F5B55; --line: #2E2C29; --slot: #4A4641;
    --seal: #D0503A; --accent: #E05A44;
    --card: rgba(31, 30, 28, 0.78); --card-edge: rgba(236, 232, 225, 0.07);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 28px 56px -30px rgba(0, 0, 0, 0.9);
    --bead-shadow: rgba(0, 0, 0, 0.6);
    --halo: rgba(224, 90, 68, 0.28);
    --rim: rgba(236, 232, 225, 0.22);
    --plate: #24221F;
    --band: #0C0C0B;
    --stage-edge: rgba(255, 255, 255, 0.08);
    --sheen: rgba(255, 255, 255, 0.025);
    --grain: var(--grain-stage);
    --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .011' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .88 0 0 0 0 .84 0 0 0 .13 -.058'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23f)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #171615; --paper-2: #1F1E1C; --paper-3: #262421;
  --ink: #ECE8E1; --ink-2: #A19C93; --ink-3: #5F5B55; --line: #2E2C29; --slot: #4A4641;
  --seal: #D0503A; --accent: #E05A44;
  --card: rgba(31, 30, 28, 0.78); --card-edge: rgba(236, 232, 225, 0.07);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 28px 56px -30px rgba(0, 0, 0, 0.9);
  --bead-shadow: rgba(0, 0, 0, 0.6);
  --halo: rgba(224, 90, 68, 0.28);
  --rim: rgba(236, 232, 225, 0.22);
  --plate: #24221F;
  --band: #0C0C0B;
  --stage-edge: rgba(255, 255, 255, 0.08);
  --sheen: rgba(255, 255, 255, 0.025);
  --grain: var(--grain-stage);
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .011' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .88 0 0 0 0 .84 0 0 0 .13 -.058'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23f)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

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

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(120% 60% at 50% -6%, var(--sheen), transparent 62%), var(--fiber), var(--grain);
  background-repeat: no-repeat, repeat, repeat;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(181, 56, 42, 0.18); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 22px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

.eb { font-size: 11.5px; line-height: 1.3; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h2.display { font-size: clamp(44px, 8.4vw, 88px); line-height: 0.96; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.fine { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.serif { font-family: var(--serif); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 27px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }

section[id] { scroll-margin-top: 12px; }

/* ---------------------------------------------------------------- header and footer */

.top { position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--serif); font-size: 31px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.mark .mk-rim { fill: none; stroke: var(--rim); stroke-width: 1.6; }
.mark svg { width: 19px; height: 19px; flex: none; margin-top: 3px; filter: drop-shadow(0 2px 2px var(--bead-shadow)); }
.top-nav { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 22px; font-size: 15px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 559px) {
  .top-nav .hide-sm { display: none; }
  .top-nav a { padding: 0 8px; font-size: 14.5px; }
}
/* the narrowest phones: Support stays in the footer */
@media (max-width: 359px) { .top-nav .hide-xs { display: none; } }

.foot { margin-top: var(--section); padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 32px; }
.foot-brand p { margin-top: 8px; color: var(--ink-2); font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-fine { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.foot-fine a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); }
@media (min-width: 860px) {
  .foot-in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .foot-nav { flex-direction: column; }
  .foot-nav a { min-height: 36px; }
}

/* ---------------------------------------------------------------- the drop (js/ui/liquid.js) and its still fallback */

.drop-host { position: relative; display: grid; place-items: center; width: var(--drop); height: var(--drop); }
.drop-host > .liquid-bead { grid-area: 1 / 1; }
.drop-still {
  grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(ellipse 20% 12% at 35% 27%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 72% 80%, rgba(150, 175, 255, 0.26), rgba(150, 175, 255, 0) 36%),
    radial-gradient(circle, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 0.14) 94%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 40% 36%, #615E5A 0%, #1F1E1D 45%, #0B0B0A 85%, #34322F 100%);
  box-shadow: 0 46px 46px -36px rgba(28, 27, 26, 0.5);
}
svg.drop-still { background: none; box-shadow: none; overflow: visible; filter: drop-shadow(0 26px 22px rgba(28, 27, 26, 0.28)); }
.drop-host.is-live > .drop-still { display: none; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.drop-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); }
.drop-hint::before { content: ''; width: 18px; height: 1px; background: var(--ink-3); }
.drop-hint::after { content: ''; width: 18px; height: 1px; background: var(--ink-3); }

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

.hero { display: grid; grid-template-areas: 'head' 'drop' 'body'; padding-top: 20px; }
.hero-head { grid-area: head; }
.hero-head .eb { margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 14.6vw, 132px); line-height: 0.9; letter-spacing: -0.02em; }
.hero h1 span { display: block; }
.hero h1 em { font-style: italic; color: var(--ink-2); }
.hero-drop { grid-area: drop; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 0 18px; --drop: min(66vw, 280px); }
.hero-drop .drop-host { margin: 18px 0 26px; }
.hero-body { grid-area: body; display: grid; gap: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); grid-template-areas: 'head drop' 'body drop';
    column-gap: 40px; min-height: min(calc(100vh - 72px), 860px); padding-top: 32px; padding-bottom: 32px;
  }
  .hero-head { align-self: end; padding-bottom: 32px; }
  .hero-body { align-self: start; }
  .hero h1 { font-size: clamp(54px, 7.8vw, 124px); }
  .hero h1 span { white-space: nowrap; }
  .hero-drop { align-self: center; padding: 0; --drop: min(30vw, 420px); }
}

/* ---------------------------------------------------------------- section heads */

.sec { padding-top: var(--section); }
.sec-head { display: grid; gap: 18px; max-width: 860px; }
.sec-head .lede { margin-top: 6px; }

/* ---------------------------------------------------------------- the exercises: six on the dark stage, one to a screen
   The app runs its exercises on a dark stage in both themes, and the page goes dark here the same way. Each panel is
   a title card (number, skill, the name large), the rule with its key word in vermilion, the app's own preview loop
   shown large (built into the page; CSS alone animates it), then the caption: what it practices, the everyday moment
   it resembles, the classic task. site.js only lets the words arrive as a panel comes into view. */

.show {
  position: relative; margin-top: var(--section); color: var(--stage-ink);
  background-color: var(--band);
  background-image: radial-gradient(90% 520px at 50% 0%, rgba(255, 255, 255, 0.05), transparent 72%), var(--grain-stage);
  background-repeat: no-repeat, repeat;
  border-block: 1px solid var(--stage-line);
  --ink: var(--stage-ink); --ink-2: var(--stage-dim); --line: var(--stage-line);
  --stage-mid: #B7B2A9;
}
.show :focus-visible { outline-color: var(--stage-ink); }
.show-head { display: grid; gap: 18px; padding-top: var(--section); padding-bottom: 16px; }
.show-head .display { max-width: 10em; }
.show-head .lede { margin-top: 6px; color: var(--stage-mid); }
.show-note { max-width: 36em; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--stage-line); font-size: 13.5px; line-height: 1.55; color: var(--stage-dim); }

.sc { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; }
.sc-in {
  display: grid; justify-items: center; text-align: center;
  grid-template-areas: 'k' 'name' 'rule' 'stage' 'cap';
  padding-block: clamp(36px, 6vh, 72px);
  --sc: min(calc(100vw - 2 * var(--gutter)), max(40vh, 240px), 400px);
  --sc: min(calc(100vw - 2 * var(--gutter)), max(40svh, 240px), 400px);
}
.sc-k { grid-area: k; display: flex; align-items: center; gap: 14px; color: var(--stage-dim); }
.sc-n { font-size: 25px; font-weight: 300; line-height: 1; letter-spacing: 0.02em; color: var(--stage-ink); font-variant-numeric: lining-nums tabular-nums; }
.sc-skill { display: inline-flex; align-items: center; gap: 14px; font-size: 11.5px; line-height: 1; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 500; }
.sc-skill::before { content: ''; width: 34px; height: 1px; background: var(--stage-faint); }
.sc-name { grid-area: name; margin-top: 12px; font-family: var(--serif); font-size: clamp(58px, 16.5vw, 128px); line-height: 0.92; letter-spacing: -0.02em; }
.sc-rule { grid-area: rule; margin-top: 12px; max-width: 15em; font-family: var(--serif); font-size: clamp(22px, 6.2vw, 34px); line-height: 1.16; color: var(--stage-mid); text-wrap: balance; }
.sc-rule em { font-style: normal; color: var(--st-accent); }
.sc-stage { grid-area: stage; position: relative; isolation: isolate; width: var(--sc); aspect-ratio: 1; margin-top: 26px; }
.sc-stage .ex-preview {
  width: 100%; height: 100%; --xp-r: 30px; --xp-dur: 4.5s;
  background-color: #151413;
  background-image: radial-gradient(85% 70% at 28% 12%, rgba(255, 255, 255, 0.06), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sc-stage::after { content: ''; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px; background: rgba(0, 0, 0, 0.55); filter: blur(34px); }
/* the stage's progress line, as on the app's exercise screen: here it runs once per loop */
.sc-line { position: absolute; left: 10%; right: 10%; top: 6.5%; height: 2px; border-radius: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.sc-line::after { content: ''; position: absolute; inset: 0; background: rgba(238, 235, 229, 0.42); transform-origin: 0 50%; transform: scaleX(0.66); }
.ex-preview.is-run .sc-line::after { animation: sc-line var(--xp-dur) linear var(--xp-phase) infinite; }
.ex-preview.is-paused .sc-line::after { animation-play-state: paused; }
@keyframes sc-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sc-cap { grid-area: cap; display: grid; justify-items: center; gap: 8px; max-width: 25em; margin-top: 28px; }
.sc-does { font-size: clamp(18px, 4.9vw, 22px); line-height: 1.32; font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }
.sc-like { font-size: 16px; line-height: 1.5; color: var(--stage-mid); text-wrap: pretty; }
.sc-src { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--stage-dim); }
.sc-classic { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--stage-ink); }

@media (min-width: 960px) {
  .sc-in {
    justify-items: start; text-align: left;
    grid-template-columns: minmax(0, 1fr) var(--sc);
    grid-template-rows: 1fr auto auto auto auto 1fr;
    grid-template-areas: '. stage' 'k stage' 'name stage' 'rule stage' 'cap stage' '. stage';
    column-gap: clamp(48px, 6vw, 112px);
    --sc: min(42vw, calc(100vh - 160px), 540px);
  }
  .sc-n { font-size: 28px; }
  .sc-name { margin-top: 18px; font-size: clamp(80px, 8.6vw, 132px); }
  .sc-rule { margin-top: 18px; font-size: clamp(28px, 2.5vw, 36px); }
  .sc-stage { margin: 0; align-self: center; }
  .sc-cap { justify-items: start; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--stage-line); max-width: 27em; }
  .sc-src { justify-content: flex-start; }
}

/* the other twelve */
.sc-rest { display: grid; gap: 36px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: var(--section); }
.sc-rest-text { display: grid; gap: 14px; justify-items: center; text-align: center; }
.sc-rest h3 { font-family: var(--serif); font-size: clamp(46px, 7vw, 76px); line-height: 0.96; letter-spacing: -0.012em; }
.sc-rest-text p { max-width: 28em; color: var(--stage-mid); text-wrap: pretty; }
.sc-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stage-line); }
.sc-wall li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 4px 20px; border-bottom: 1px solid var(--stage-line); text-align: center; }
.sc-wall svg { width: 28px; height: 28px; margin-bottom: 6px; color: var(--stage-mid); }
.sc-wall b { font-weight: 500; font-size: 15px; line-height: 1.25; }
.sc-wall small { font-size: 10.5px; line-height: 1.3; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stage-dim); }
@media (min-width: 700px) { .sc-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .sc-rest { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); column-gap: 80px; align-items: start; }
  .sc-rest-text { justify-items: start; text-align: left; padding-top: 6px; }
  .sc-wall li { justify-items: start; text-align: left; padding: 24px 16px 22px 0; }
}

/* words arrive as the panel comes into view (site.js adds .rv to the page, then .is-in to each panel once) */
.sc-k { --i: 0; } .sc-name { --i: 1; } .sc-rule { --i: 2; } .sc-stage { --i: 2; } .sc-does { --i: 3; } .sc-like { --i: 4; } .sc-src { --i: 5; }
.rv .sc-rv { transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.1s ease; transition-delay: calc(var(--i, 0) * 110ms); }
.rv .sc:not(.is-in) .sc-rv { opacity: 0; transform: translateY(18px); }
.rv .sc:not(.is-in) .sc-name { filter: blur(8px); }

/* one panel to a screen: the scroll settles on a panel when it ends near one */
@media (min-height: 560px) { html { scroll-snap-type: y proximity; } }

/* ---------------------------------------------------------------- how a day works */

.day-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: day; }
.day-steps > li { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 20px; padding-bottom: 40px; counter-increment: day; }
.day-steps > li::before { content: ''; position: absolute; left: 46px; top: 46px; bottom: -46px; width: 1px; background: var(--slot); }
.day-steps > li:last-child::before { display: none; }
.day-vis { position: relative; z-index: 1; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--plate); border: 1px solid var(--card-edge); }
.day-text { padding-top: 14px; }
.day-text h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.day-text h3::before { content: counter(day) '  '; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-2); vertical-align: 0.6em; margin-right: 8px; }
.day-text p { margin-top: 8px; color: var(--ink-2); max-width: 26em; }
.day-tiles { display: flex; }
.day-tiles .ex-preview { width: 40px; height: 40px; --xp-r: 10px; box-shadow: 0 0 0 2px var(--plate), 0 6px 14px -6px rgba(17, 17, 16, 0.5); }
.day-tiles .ex-preview + .ex-preview { margin-left: -10px; }
.day-tiles .ex-preview:nth-child(1) { transform: rotate(-6deg) translateY(2px); }
.day-tiles .ex-preview:nth-child(3) { transform: rotate(6deg) translateY(2px); }
.day-bead { width: 46px; height: 46px; filter: drop-shadow(0 3px 3px var(--bead-shadow)); }
.day-strand { width: 92px; height: 92px; overflow: visible; }
.ds-thread { stroke: var(--slot); }
.ds-beads { filter: drop-shadow(0 2px 2px var(--bead-shadow)); }
.ds-clear { fill: rgba(225, 228, 236, 0.35); }
.ds-clear-rim { fill: none; stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 2.4; }
.ds-knot { stroke: var(--ink); }
.day-icons { display: grid; grid-template-columns: repeat(2, 26px); gap: 8px; color: var(--ink); }
.day-icons svg { display: block; width: 26px; height: 26px; }
.day-note { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.day-note b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; }
.day-note span { color: var(--ink-2); }
@media (min-width: 900px) {
  .day-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 36px; margin-top: 72px; }
  .day-steps > li { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .day-steps > li::before { left: 60px; right: -36px; top: 60px; bottom: auto; width: auto; height: 1px; }
  .day-vis { width: 120px; height: 120px; }
  .day-strand { width: 112px; height: 112px; }
  .day-text { padding-top: 26px; }
  .day-note { margin-top: 64px; }
}

/* ---------------------------------------------------------------- levels: the drop and the strand of 30 */

.scrolly { position: relative; display: grid; margin-top: 48px; }
.lv-stage {
  position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 0 22px; margin-inline: calc(var(--gutter) * -1);
  background-color: var(--paper); background-image: var(--grain);
  --S: min(calc(100vw - 2 * var(--gutter)), 46vh, 400px);
  --S: min(calc(100vw - 2 * var(--gutter)), 46svh, 400px);
}
.lv-stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--paper), rgba(244, 242, 237, 0)); pointer-events: none; }
:root[data-theme='dark'] .lv-stage::after { background: linear-gradient(var(--paper), rgba(23, 22, 21, 0)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lv-stage::after { background: linear-gradient(var(--paper), rgba(23, 22, 21, 0)); } }

.lv-ring { position: relative; width: var(--S); height: var(--S); flex: none; --b: calc(var(--S) * 0.052); }
.lv-ring::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid var(--slot); }
.lv-ring .drop-host { position: absolute; left: 50%; top: 50%; --drop: calc(var(--S) * 0.5); margin: calc(var(--drop) / -2) 0 0 calc(var(--drop) / -2); }
.lv-beads { position: absolute; inset: 0; }
.lv-knot { position: absolute; left: 50%; top: 6%; width: 22px; height: 22px; margin: -5px 0 0 -11px; color: var(--ink-2); overflow: visible; }
.rb {
  position: absolute; left: 50%; top: 50%; width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--S) * -0.44)) rotate(calc(var(--a) * -1));
}
.rb img { width: 100%; height: 100%; filter: drop-shadow(0 1px 1.3px var(--bead-shadow)); transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease; }
.rb.is-ahead img { opacity: 0.3; transform: scale(0.74); filter: saturate(0.35); }
.rb.is-now img { transform: scale(1.38); }
.rb.is-now::after { content: ''; position: absolute; inset: -62%; border-radius: 50%; border: 1.4px solid var(--seal); box-shadow: 0 0 12px var(--halo); }
.rb.is-strung img { animation: string-on 0.5s cubic-bezier(0.3, 1.45, 0.55, 1) var(--d, 0ms) both; }
@keyframes string-on { from { transform: translateY(calc(var(--b) * -1.6)) scale(0.3); opacity: 0; } }

.lv-label { display: grid; justify-items: center; gap: 2px; text-align: center; min-height: 58px; }
.lv-name { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 27px; line-height: 1.1; }
.lv-name img { width: 20px; height: 20px; filter: drop-shadow(0 1px 1.3px var(--bead-shadow)); }
.lv-num { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-hint { font-size: 12.5px; color: var(--ink-2); }

.lv-steps { list-style: none; margin: 0; padding: 8px 0 0; position: relative; z-index: 1; }
.lv-step { min-height: 52vh; padding: 26px 0 40px; }
.lv-step:last-child { min-height: 46vh; }
.lv-k { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-2); }
.lv-k img { width: 22px; height: 22px; filter: drop-shadow(0 1px 1.3px var(--bead-shadow)); }
.lv-step h3 { margin-top: 12px; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); line-height: 1.02; }
.lv-step p { margin-top: 12px; color: var(--ink-2); max-width: 26em; }
.lv-rule { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.lv-rule b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.05; }
.lv-rule span { color: var(--ink-2); max-width: 30em; }

@media (min-width: 900px) {
  .scrolly { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); column-gap: 56px; margin-top: 24px; }
  .lv-stage {
    order: 2; align-self: start; top: max(24px, calc(50vh - var(--S) / 2 - 60px)); margin: 0; padding: 0; background: none;
    --S: min(46vw, calc(100vh - 200px), 560px);
  }
  .lv-stage::after { display: none; }
  .lv-steps { order: 1; padding: 0; }
  .lv-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
  .lv-step:first-child { min-height: 64vh; }
  .lv-step:last-child { min-height: 80vh; }
}

/* ---------------------------------------------------------------- what we don't claim */

.claims { display: grid; gap: 36px; }
.claims-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.claims-list p { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; }
.claims-list p:first-child { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.18; }
@media (min-width: 900px) { .claims { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } }

/* ---------------------------------------------------------------- private by design: the dark stage, full width */

.private {
  margin-top: var(--section); padding: var(--section) 0; color: var(--stage-ink);
  background-color: var(--band);
  background-image: radial-gradient(70% 60% at 20% 0%, rgba(255, 255, 255, 0.05), transparent 70%), var(--grain-stage);
  border-block: 1px solid var(--stage-line);
  --ink: var(--stage-ink); --ink-2: var(--stage-dim); --line: var(--stage-line);
}
.private :focus-visible { outline-color: var(--stage-ink); }
.private-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--stage-line); }
.private-grid li { padding: 26px 0; border-bottom: 1px solid var(--stage-line); display: grid; gap: 8px; }
.private-grid h3 { font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.private-grid p { color: var(--stage-dim); max-width: 26em; }
.private-more { margin-top: 36px; color: var(--stage-dim); }
.private-more a { color: var(--stage-ink); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) {
  .private-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1100px) {
  .private-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .private-grid li { border-bottom: 0; border-top: 1px solid var(--stage-ink); padding-top: 22px; align-content: start; }
}

/* ---------------------------------------------------------------- Bead Plus */

.plus { display: grid; gap: 48px; }
.plus-head { display: grid; gap: 18px; justify-items: start; }
.plus-head .seal { width: 46px; height: 46px; overflow: visible; }
.seal-ink { fill: var(--seal); }
.seal-cut { fill: var(--paper); font-family: var(--serif); }
.plans { display: grid; gap: 14px; align-self: start; }
.plan {
  position: relative; display: grid; gap: 0; padding: 26px 24px 24px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
}
.plan.is-main { border: 1.5px solid var(--ink); }
.plan-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; font-weight: 600; }
.plan-save { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line); font-weight: 500; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.plan-week { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.plan-week b { font-family: var(--serif); font-weight: 400; font-size: clamp(60px, 9vw, 76px); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.plan-week span { font-size: 18px; color: var(--ink-2); }
.plan-billed { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--ink); }
.plan-billed strong { font-weight: 600; }
.plus-side { display: grid; gap: 28px; align-content: start; }
.plus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plus-list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plus-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }
.plus-free { font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); line-height: 1.18; }
.plus-fine { display: grid; gap: 8px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .plus { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: 64px; row-gap: 40px; }
  .plus-head { grid-column: 1 / -1; }
}

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

.coda { display: grid; justify-items: center; gap: 22px; text-align: center; padding-top: var(--section); }
.coda .drop-host { --drop: 76px; margin-bottom: 8px; }
.coda h2 { font-family: var(--serif); font-size: clamp(40px, 6.6vw, 68px); line-height: 1; max-width: 12em; }
.coda p { color: var(--ink-2); }

/* ---------------------------------------------------------------- text pages: support, consumer health data, legal, 404 */

.doc { max-width: 760px; padding-top: 32px; }
.doc .brand { display: none; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9vw, 76px); line-height: 0.98; letter-spacing: -0.015em; }
.doc .date { color: var(--ink-2); font-size: 14px; margin: 14px 0 32px; }
.doc .intro { margin: 18px 0 10px; font-size: 18.5px; line-height: 1.55; }
.doc section { border-top: 1px solid var(--line); padding: 24px 0 8px; margin-top: 24px; }
.doc h2 { font-size: 18.5px; font-weight: 600; margin: 0 0 10px; line-height: 1.35; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc .ph { background: rgba(194, 64, 44, 0.12); border-radius: 3px; padding: 0 3px; }
.contact {
  display: grid; gap: 6px; margin: 32px 0 8px; padding: 24px 24px 22px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
}
.contact a { font-family: var(--serif); font-size: clamp(26px, 5vw, 34px); line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }
.lost { display: grid; justify-items: start; gap: 24px; padding-top: 48px; }
.lost .drop-host { --drop: 120px; }
.lost h1 { font-family: var(--serif); font-size: clamp(56px, 12vw, 120px); line-height: 0.9; }
.lost p { color: var(--ink-2); font-size: 18px; }
.lost .hero-cta a { text-decoration: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* the previews rest on their still frame (library.css); the words are simply there */
  .sc-line { display: none; }
  .rv .sc:not(.is-in) .sc-rv { opacity: 1; transform: none; filter: none; }
  html { scroll-snap-type: none; }
}
