/* Spaced Recall home page (2026-09-28), on top of styles.css.

   The page is built around three things the product does (take notes,
   review them for life, share them) and lets each be tried rather than
   described: the hero phone runs the real review, the note takes typing,
   the lifetime chart plays the real schedule, the Librarian answers. */

/* ---------------------------------------------------------------------- */
/* Hero: the memory field and the headline that forgets a word            */
/* ---------------------------------------------------------------------- */

.home .nav { position: fixed; left: 0; right: 0; }

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 0 120px;
  overflow: hidden;
  perspective: 1200px;
}

/* A dark pool behind the words, so the notes drifting behind never fight
   the headline for legibility. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 50%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55) 60%, transparent 100%),
    linear-gradient(180deg, transparent 70%, #000 100%);
}

.hero-field { position: absolute; inset: 0; z-index: 0; }

.mf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px), 0) scale(var(--s));
  transition: transform 1.2s var(--ease);
  will-change: transform;
}
.mf.l2 { filter: blur(1px); }
.mf.l3 { filter: blur(2.4px); }

.mf-drift { animation: mf-drift var(--dur, 18s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes mf-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--dx, 12px), var(--dy, -18px), 0); }
}

.mf-card {
  position: relative;
  width: clamp(168px, 16vw, 232px);
  padding: 12px 14px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.9), rgba(16, 16, 16, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  line-height: 1.4;
  color: #e9e9e9;
  opacity: 0;
  transition: opacity 5.5s ease, filter 5.5s ease, box-shadow 0.6s ease;
}
.mf.l1 .mf-card { opacity: 0.95; }
.mf.l2 .mf-card { opacity: 0.6; }
.mf.l3 .mf-card { opacity: 0.32; }
.mf-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
}
.mf-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* Being forgotten: the note loses its edges and sinks into the dark. */
.mf.is-fading .mf-card { opacity: 0.06 !important; filter: blur(5px); }
.mf.is-fast .mf-card { transition-duration: 1.1s, 1.1s, 0.6s; }
/* Recalled: back at once, with a ring of light. */
.mf.is-recalled .mf-card {
  transition: opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 0 44px -6px rgba(255, 255, 255, 0.4);
}
.mf.is-recalled .mf-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: mf-ping 0.9s var(--ease) forwards;
  pointer-events: none;
}
@keyframes mf-ping { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }

/* The wave that brings everything back. */
.hero-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 60px 10px rgba(255, 255, 255, 0.08), inset 0 0 40px rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
}
.hero-ripple.is-on { animation: ripple 1.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes ripple {
  0% { opacity: 0.9; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(60); }
}

.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--ai) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 40px -12px rgba(255, 103, 120, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.hero-pill:hover { transform: translateY(-1px); box-shadow: 0 0 48px -10px rgba(255, 103, 120, 0.6); }
.hero-pill .pill-arrow { color: var(--text2); transition: transform 0.2s var(--ease); }
.hero-pill:hover .pill-arrow { transform: translateX(3px); }

.hero-title {
  margin-top: 30px;
  font-size: clamp(46px, 8.6vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.ht-line { display: block; white-space: nowrap; }

/* A word that changes: the old one and the new one share the slot. Without
   script (or with reduced motion) only the new one shows. */
.swap { position: relative; display: inline-block; vertical-align: top; white-space: nowrap; }
.swap-from { display: none; }
/* "for life." in the same silver as before. Once split into letters the
   gradient goes on each letter, since a letter that is fading or moving
   drops out of its parent's clipped background. */
.swap-to em, .swap-to em .ch {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 35%, #8a8a8a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.swap-to em:has(.ch) { background: none; }
.hero.is-intro .swap { transition: width 0.55s var(--ease); }
.hero.is-intro .swap-from { display: inline; }
.hero.is-intro .swap-to { position: absolute; left: 0; top: 0; }
.hero.is-intro .swap.is-swapped .swap-from { display: none; }
.hero.is-intro .swap.is-swapped .swap-to { position: static; }

.ch { display: inline-block; white-space: pre; transition: opacity 0.9s ease, filter 0.9s ease, transform 1s var(--ease); }
.swap-from .ch.is-gone { opacity: 0; filter: blur(12px); transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); }
.swap-to .ch { opacity: 0; filter: blur(14px); transform: translateY(0.18em); }
.swap-to .ch.is-in { opacity: 1; filter: none; transform: none; transition: opacity 0.6s ease, filter 0.7s ease, transform 0.8s var(--ease); }
.swap-to.is-shine { position: relative; }
.swap-to.is-shine::after {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: shine 1.2s var(--ease) 0.2s forwards;
  pointer-events: none;
}
@keyframes shine { 0% { transform: translateX(-120%); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }

.hero-sub {
  margin-top: 28px;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text2);
}
.hero-center .hero-actions { justify-content: center; }

.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
  letter-spacing: 0.02em;
}

/* Everything but the headline waits for the headline to finish. */
.hero.is-intro .hero-sub,
.hero.is-intro .hero-center .hero-actions,
.hero.is-intro .hero-meta,
.hero.is-intro .hero-scroll { opacity: 0; transform: translateY(16px); }
.hero .hero-sub, .hero .hero-center .hero-actions, .hero .hero-meta, .hero .hero-scroll {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero.is-intro.is-settled .hero-sub,
.hero.is-intro.is-settled .hero-center .hero-actions,
.hero.is-intro.is-settled .hero-meta,
.hero.is-intro.is-settled .hero-scroll { opacity: 1; transform: none; }
.hero.is-intro.is-settled .hero-center .hero-actions { transition-delay: 0.1s; }
.hero.is-intro.is-settled .hero-meta { transition-delay: 0.2s; }
.hero.is-intro.is-settled .hero-scroll { transition-delay: 0.5s; }
.hero-pill, .hero-title { animation: rise 1s var(--ease) both; }
.hero-title { animation-delay: 0.08s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
}
.hero-scroll svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.hero.is-intro .hero-scroll { transform: translate(-50%, 16px); }
.hero.is-intro.is-settled .hero-scroll { transform: translateX(-50%); }

.try { padding-top: 100px; }
.hero-demo { display: flex; flex-direction: column; align-items: center; }

.demo-caption {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hint);
  text-align: center;
}
.kbd {
  flex: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------------------------------------------------------------------- */
/* A phone, drawn in CSS: used for the live demo and for screenshots.     */
/* ---------------------------------------------------------------------- */

.phone {
  --w: 320px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1242 / 2688;
  margin: 0;
  border-radius: calc(var(--w) * 0.15);
  padding: calc(var(--w) * 0.03);
  background: linear-gradient(145deg, #3a3a3c, #121212 40%, #2a2a2c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 60px 120px -40px rgba(255, 255, 255, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.phone-screen, .phone.phone-shot img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--w) * 0.125);
  overflow: hidden;
  background: #000;
}
.phone.phone-shot img { object-fit: cover; }

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 30%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  z-index: 5;
}

/* ---------------------------------------------------------------------- */
/* The live Review screen inside the hero phone                           */
/* ---------------------------------------------------------------------- */

#review-demo { --w: 330px; }
#review-demo .phone-screen { display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }

.rv-statusbar {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 26px 0 30px;
  font-size: 13px;
  font-weight: 700;
  z-index: 6;
}
.rv-sys { display: inline-flex; align-items: center; gap: 5px; }
.rv-sys svg { fill: currentColor; }
.rv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 54px 16px 0;
  font-size: 12px;
}
.rv-brand { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.rv-brand img { border-radius: 4px; }
.rv-status { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.rv-flame { display: inline-flex; width: 11px; height: 16px; }
.rv-flame svg { width: 100%; height: 100%; }
.rv-streak { min-width: 8px; font-variant-numeric: tabular-nums; }
.rv-rank { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: var(--text2); }
.rv-bust { display: inline-flex; width: 18px; height: 17px; }
.rv-bust svg { width: 100%; height: 100%; }

.rv-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  outline: none;
  touch-action: none;
  cursor: grab;
}
.rv-stage:active { cursor: grabbing; }
.rv-stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); border-radius: 18px; }

.rv-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 26px;
  transition: transform 0.55s var(--ease), opacity 0.45s ease;
  will-change: transform, opacity;
}
.rv-card.is-next { transform: translateY(46%); opacity: 0; pointer-events: none; }
.rv-card.is-gone { transform: translateY(-60%); opacity: 0; pointer-events: none; }
.rv-card.is-dragging { transition: none; }

.rv-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  margin-bottom: 14px;
}
.rv-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.rv-done { align-items: center; text-align: center; }
.rv-done .rv-big-flame { width: 70px; height: 100px; margin-bottom: 18px; }
.rv-done .rv-big-flame svg { width: 100%; height: 100%; }
.rv-done h3 { font-size: 24px; letter-spacing: -0.02em; }
.rv-done p { margin-top: 8px; font-size: 14px; color: var(--text2); }
.rv-again {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  background: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rv-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 16px 86px;
  transition: opacity 0.3s ease;
}
.rv-bottom.is-hidden { opacity: 0; pointer-events: none; }
.rv-hint { font-size: 11px; color: var(--hint); }
.rv-got {
  border: none;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 26px;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.rv-got:active { transform: scale(0.95); }

.rv-toast {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translate(-50%, -8px);
  opacity: 0;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(40, 40, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
  pointer-events: none;
}
.rv-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.rv-tabs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px;
  border-radius: 26px;
  background: rgba(30, 30, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.rv-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--hint);
  padding: 4px 6px;
  border-radius: 14px;
}
.rv-tabs span.is-on { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.rv-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------- */
/* Pillars strip                                                          */
/* ---------------------------------------------------------------------- */

.pillars-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 34px 28px;
  border-left: 1px solid var(--line);
  transition: background 0.3s ease;
}
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); }
.pillar-n { font-size: 12px; font-weight: 700; color: var(--hint); letter-spacing: 0.08em; }
.pillar strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.025em; }
.pillar span:last-child { font-size: 14px; color: var(--text2); }

/* ---------------------------------------------------------------------- */
/* Split sections: words on one side, the thing on the other              */
/* ---------------------------------------------------------------------- */

.section-tight-top { padding-top: 40px; }

.eyebrow-n {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}

.section-head.center { text-align: center; margin: 0 auto; max-width: 820px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
}
.split.reverse .split-copy { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-visual { display: flex; flex-direction: column; align-items: center; }

.ticks { list-style: none; margin: 40px 0 0; padding: 0; max-width: 520px; }
.ticks li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 16px;
  line-height: 1.55;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li strong { color: var(--text); font-weight: 700; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* The note you can type in                                               */
/* ---------------------------------------------------------------------- */

.note-demo {
  position: relative;
  width: min(100%, 460px);
  border-radius: 26px;
  background: linear-gradient(180deg, #111 0%, #0b0b0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(255, 255, 255, 0.1);
  padding: 20px 26px 22px;
}
.note-bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--text2); }
.note-saved { font-size: 12px; font-weight: 600; color: var(--hint); transition: color 0.3s ease; }
.note-saved.is-saving { color: var(--text2); }
.note-body {
  margin-top: 18px;
  min-height: 250px;
  outline: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  caret-color: #fff;
}
.note-body h3 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 10px; }
.note-body p { margin: 0 0 10px; color: #d9d9d9; }
.note-body ul { margin: 0 0 12px; padding-left: 20px; color: #d9d9d9; }
.note-body li { margin-bottom: 4px; }
.note-body blockquote {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--text2);
  font-style: italic;
}
.note-body .caret-blink { display: inline-block; width: 2px; height: 1.1em; background: #fff; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.note-chip { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); background: rgba(224, 111, 164, 0.14); color: #f2a7c9; }
.note-next { font-size: 12px; color: var(--hint); font-weight: 600; }
.note-tools {
  position: absolute;
  right: -18px;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(28, 28, 28, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.note-tools span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  border-radius: 10px;
}
.note-tools span:first-child { background: rgba(255, 255, 255, 0.1); color: var(--text); }

/* ---------------------------------------------------------------------- */
/* The lifetime of one note                                               */
/* ---------------------------------------------------------------------- */

.life { margin-top: 64px; padding: 34px 0 0; border-top: 1px solid var(--line); }
.life-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.life-when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.life-sub { margin-top: 10px; color: var(--text2); font-size: 16px; min-height: 1.5em; }
.life-stats { display: flex; gap: 40px; }
.life-stats > div { display: flex; flex-direction: column; align-items: flex-end; }
.life-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.life-label { font-size: 13px; color: var(--hint); font-weight: 600; }

.life-chart { position: relative; margin-top: 28px; }
#life-svg { width: 100%; height: 320px; display: block; overflow: visible; }
.life-ticks { position: relative; height: 20px; }
.life-ticks span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--hint);
  white-space: nowrap;
}
.life-ticks span:first-child { transform: none; }
.life-ticks span:last-child { transform: translateX(-100%); }

.life-controls { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.life-play {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.life-play:active { transform: scale(0.94); }
.life-play .i-pause { display: none; }
.life-play.is-playing .i-play { display: none; }
.life-play.is-playing .i-pause { display: block; }

.life-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.life-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, 0.14) var(--p, 0%)); }
.life-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.life-range::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.life-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
.life-range::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }

.life-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 22px; }
.life-foot p { font-size: 15px; color: var(--text2); }
.life-foot .life-note { color: var(--hint); font-size: 12px; }
.life-ping { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: life-ping 0.85s var(--ease) forwards; }
@keyframes life-ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(4); } }

.rhythm { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.rhythm-item { padding: 34px 28px 0; border-left: 1px solid var(--line); }
.rhythm-item:first-child { border-left: none; padding-left: 0; }
.rhythm-big { font-family: var(--font-display); font-weight: 800; font-size: 64px; letter-spacing: -0.05em; line-height: 1; }
.rhythm-unit { margin-left: 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text2); }
.rhythm-item p { margin-top: 12px; color: var(--text2); font-size: 15px; }

/* ---------------------------------------------------------------------- */
/* Screenshots in phones                                                  */
/* ---------------------------------------------------------------------- */

.device-pair { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.device-pair .phone { --w: 300px; }
.tilt-left { transform: rotate(-3deg); }

.streak-badge {
  position: absolute;
  right: max(0px, calc(50% - 250px));
  bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 26px 18px;
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(255, 146, 35, 0.45);
  animation: float 6s ease-in-out infinite;
}
.streak-flame { width: 42px; height: 60px; }
.streak-flame svg { width: 100%; height: 100%; }
.streak-n { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.streak-l { font-size: 12px; font-weight: 700; color: var(--text2); margin-top: 4px; }

@keyframes float { 50% { transform: translateY(-10px); } }

.device-pair.two { min-height: 660px; width: 100%; }
.device-pair.two .phone { position: absolute; }
.device-pair.two .back { transform: translateX(-34%) rotate(-5deg) scale(0.92); opacity: 0.75; top: 30px; }
.device-pair.two .front { transform: translateX(26%) rotate(3deg); top: 0; }

/* ---------------------------------------------------------------------- */
/* A shared set of facts you can take                                     */
/* ---------------------------------------------------------------------- */

.bundle {
  margin-top: 40px;
  max-width: 420px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #101010;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.bundle-head { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }
.bundle-head strong { color: var(--text); }
.bundle-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #262626; font-weight: 700; color: var(--text); }
.bundle-proj { font-size: 12px; color: var(--hint); font-weight: 600; }
.bundle-list { list-style: none; margin: 14px 0; padding: 0; }
.bundle-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bundle-take { width: 100%; }
.bundle-take.is-done { background: rgba(48, 209, 88, 0.14); color: #6ee29a; pointer-events: none; }

/* ---------------------------------------------------------------------- */
/* The Librarian                                                          */
/* ---------------------------------------------------------------------- */

.librarian-section { overflow-x: clip; }
/* Soft light in the Librarian's three colours, drifting slowly. Radial
   gradients that fade to nothing on their own, so there is no edge. */
.lib-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 160vw);
  height: 1000px;
  transform: translate(-62%, -50%);
  background:
    radial-gradient(closest-side at 38% 42%, rgba(255, 186, 113, 0.13), transparent),
    radial-gradient(closest-side at 60% 55%, rgba(255, 103, 120, 0.11), transparent),
    radial-gradient(closest-side at 45% 68%, rgba(141, 153, 255, 0.13), transparent);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-56%, -46%) scale(1.08); } }

.ai-text { background: var(--ai); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lib-chat {
  position: relative;
  width: min(100%, 460px);
  height: 560px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 60px 120px -40px rgba(141, 153, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.lib-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lib-name { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.lib-tag { font-size: 12px; color: var(--text2); font-weight: 600; }

.lib-av {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, #ffba71, #ff6778, #8d99ff, #ffba71);
}
.lib-av.is-live { animation: ring 2.4s linear infinite; }
@keyframes ring { to { filter: hue-rotate(360deg); } }
.lib-av-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #121212; overflow: hidden; }
.lib-av-face svg { width: 30px; height: 28px; margin-top: 8px; }

.lib-msgs {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.lib-msgs::-webkit-scrollbar { display: none; }

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  animation: pop 0.45s var(--ease) both;
}
.msg.ai { align-self: flex-start; background: #1c1c1e; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 6px; font-weight: 500; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.msg.thinking {
  background: none;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 600;
  background-image: linear-gradient(90deg, #6e6e6e 0%, #fff 50%, #6e6e6e 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.lib-card {
  align-self: stretch;
  border-radius: 18px;
  background: #151515;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 14px;
  animation: pop 0.5s var(--ease) both;
}
.lib-card h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em; }
.lib-card-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lib-card-row .sub { color: var(--hint); font-size: 12px; white-space: nowrap; }
.lib-card-row .sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
.lib-card-go {
  margin-top: 10px;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #000;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lib-card-go.is-done { background: rgba(48, 209, 88, 0.14); color: #6ee29a; cursor: default; }

.lib-chips { display: flex; gap: 8px; padding: 12px 14px 16px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.lib-chips::-webkit-scrollbar { display: none; }
.lib-chips button {
  flex: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.lib-chips button:hover { border-color: rgba(255, 255, 255, 0.45); }
.lib-chips button:disabled { opacity: 0.4; cursor: default; }
.lib-chips button.is-used { opacity: 0.45; }

/* ---------------------------------------------------------------------- */
/* Ranks                                                                  */
/* ---------------------------------------------------------------------- */

.ranks {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 28px);
  margin-top: 72px;
}
.rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.rank:hover { opacity: 0.8; }
.rank.is-on { opacity: 1; transform: translateY(-10px); }
.rank-portrait {
  width: clamp(56px, 9vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  background: var(--c, #333);
  transition: box-shadow 0.4s ease;
}
.rank.is-on .rank-portrait { box-shadow: 0 0 60px -6px var(--c); }
.rank-portrait span { display: grid; place-items: end center; width: 100%; height: 100%; border-radius: 50%; background: #111; overflow: hidden; }
.rank-portrait svg { width: 70%; height: auto; }
.rank-label { font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: 0.02em; }
.rank.is-on .rank-label { color: var(--text); }

.rank-readout { margin-top: 36px; text-align: center; min-height: 64px; }
.rank-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.rank-need { display: block; margin-top: 4px; font-size: 15px; color: var(--text2); }

/* ---------------------------------------------------------------------- */
/* Everywhere                                                             */
/* ---------------------------------------------------------------------- */

.everywhere { position: relative; margin: 72px auto 0; max-width: 1040px; padding-bottom: 40px; }
.laptop { margin: 0; }
.laptop-screen {
  position: relative;
  border-radius: 18px 18px 6px 6px;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, #2c2c2e, #151515);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(255, 255, 255, 0.12);
}
.laptop-screen img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.laptop-base {
  height: 14px;
  margin: 0 -5%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #3a3a3c, #1a1a1a);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9);
}
.everywhere-phone { --w: 210px; position: absolute !important; right: -2%; bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Promises                                                               */
/* ---------------------------------------------------------------------- */

.promises { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.promise { padding: 34px 28px 0; border-left: 1px solid var(--line); }
.promise:first-child { border-left: none; padding-left: 0; }
.promise h3 { font-size: 22px; letter-spacing: -0.02em; }
.promise p { margin-top: 10px; color: var(--text2); font-size: 15px; }

/* ---------------------------------------------------------------------- */
/* Final call                                                             */
/* ---------------------------------------------------------------------- */

.final { padding-bottom: 160px; }
.final-bust { display: flex; justify-content: center; margin-bottom: 28px; }
.final-bust span {
  display: grid;
  place-items: end center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #ffba71, #ff6778, #8d99ff, #ffba71);
  box-shadow: 0 0 80px -10px rgba(255, 103, 120, 0.5);
}
.final-bust span svg { width: 100%; height: 100%; border-radius: 50%; background: #111; padding: 18px 16px 0; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .split { gap: 48px; }
  .note-tools { right: -8px; }
}

@media (max-width: 980px) {
  .try { padding-top: 64px; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse .split-copy, .split.reverse .split-visual { order: 0; }
  .split-copy .section-head { text-align: left; }
  .device-pair.two { min-height: 600px; }
  .everywhere-phone { --w: 170px; right: 0; }
}

@media (max-width: 760px) {
  .pillars, .rhythm, .promises { grid-template-columns: 1fr; }
  .pillar, .rhythm-item, .promise { border-left: none; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .pillar:first-child, .rhythm-item:first-child, .promise:first-child { border-top: none; }
  .rhythm-item, .promise { padding-bottom: 28px; }
  .hero { padding: 96px 0 110px; }
  .hero-title { font-size: clamp(34px, 10vw, 64px); }
  .hero-sub { font-size: 17px; }
  .mf-card { width: 176px; font-size: 11px; padding: 10px 11px; }
  #review-demo { --w: 300px; }
  .life-stats { gap: 24px; }
  .life-stats > div { align-items: flex-start; }
  #life-svg { height: 230px; }
  .device-pair .phone { --w: 250px; }
  .device-pair.two { min-height: 520px; }
  .device-pair.two .back { transform: translateX(-26%) rotate(-5deg) scale(0.9); }
  .device-pair.two .front { transform: translateX(22%) rotate(3deg); }
  .streak-badge { right: 0; bottom: 30px; padding: 14px 18px; }
  .note-tools { display: none; }
  .ranks { gap: 6px; }
  .rank-portrait { width: calc((100vw - 84px) / 7); padding: 2px; }
  .rank-label { display: none; }
  .life-ticks .minor { display: none; }
  .everywhere-phone { --w: 120px; }
  .lib-chat { height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pill, .hero-title, .mf-drift, .hero-scroll svg { animation: none; }
  .lib-aura, .streak-badge, .lib-av.is-live, .msg.thinking { animation: none; }
  .rv-card { transition: opacity 0.2s ease; }
}

/* Merch (2026-09-28): a look at the shop, linking through to /merch/. */
.merch-teaser { display: block; max-width: 1080px; margin: 48px auto 0; border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s var(--ease); }
.merch-teaser:hover { transform: translateY(-3px); }
.merch-teaser img { display: block; width: 100%; height: auto; }
.merch-cta { display: flex; justify-content: center; margin-top: 32px; }

/* The two overlapping phone shots (Share section) poked 7 to 14px past the
   right edge on 360 and 375px phones, so the whole page scrolled sideways.
   Found 2026-09-28 while adding Merch to the bar. Slightly smaller there. */
@media (max-width: 389px) {
  .device-pair .phone { --w: 224px; }
  .device-pair.two { min-height: 470px; }
  .device-pair.two .front { transform: translateX(18%) rotate(3deg); }
}
