/*
 * Wonder — marketing site.
 *
 * Restrained on purpose: warm paper, near-black ink, one moss accent, and
 * product illustrations that match the app exactly (including its blue
 * accent, which is the Mac's). Display in Instrument Serif; text and UI in
 * Inter; journal writing in Newsreader, the closest web face to New York,
 * the serif Wonder writes in.
 */

:root {
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --ink: #16181a;
  --ink-2: #3d413c;
  --muted: #6b6f68;
  --line: #e6e3da;
  --moss: #2f5a3d;
  --leaf: #d6ecc4;
  --leaf-2: #b9dd9c;

  /* The app's own palette, for the product replicas. */
  --app-page: #ffffff;
  --app-inset: #f0f0f0;
  --app-ink: rgb(0 0 0 / 0.85);
  --app-muted: rgb(0 0 0 / 0.5);
  --app-faint: rgb(0 0 0 / 0.32);
  --app-hairline: rgb(0 0 0 / 0.09);
  --app-tint: #007aff;

  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --text: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --journal: 'Newsreader', 'New York', 'Iowan Old Style', Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --radius: 14px;
  --nav-h: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Hidden means hidden, whatever display a class gives. */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(52px, 8.2vw, 112px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--moss);
}

.eyebrow {
  margin: 0 0 18px;
  font: 500 13px/1 var(--text);
  letter-spacing: 0.01em;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf-2);
  box-shadow: 0 0 0 3px var(--leaf);
}
.eyebrow-light {
  color: var(--leaf);
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  margin: 0 1px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font: 500 0.8em/1.5 var(--text);
  text-align: center;
  color: var(--ink-2);
}

code {
  font: 500 0.88em var(--text);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--moss);
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: 500 15px var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:focus-visible {
  outline: 3px solid var(--leaf-2);
  outline-offset: 2px;
}
.button-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.1) inset, 0 6px 16px rgb(22 24 26 / 0.18);
}
.button-ink:hover {
  background: #000;
}
.button-quiet {
  color: var(--ink);
  background: transparent;
}
.button-quiet:hover {
  background: var(--paper-2);
}
.button-small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.button-leaf {
  background: var(--leaf);
  color: var(--ink);
}
.button-leaf:hover {
  background: #e4f3d7;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  /* Full width, so it covers full-bleed sections as they pass beneath;
     the content stays in the page's column. */
  padding: 16px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.nav nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
}
.nav nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav nav a:hover {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 17px var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
}

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

.hero {
  text-align: center;
  padding: clamp(56px, 9vw, 110px) var(--gutter) 0;
}
/* The banner's dapple, lit at the visitor's hour, fading into the page before the desktop. */
.hero > .dapple-field {
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 62%);
}

/* The dark hero, in the waitlist's look: ink ground, white type, leaf accents — with the
   night dapple laid faintly over the ink, the app window included. */
.hero-dark {
  padding-bottom: clamp(48px, 7vw, 84px);
  background: var(--ink);
  color: #fff;
}
.hero-dark > .dapple-field {
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-dark > .dapple-field[data-lit] {
  opacity: 0.4;
}
.hero-dark h1 em {
  color: var(--leaf);
}
.hero-dark .lede {
  color: rgb(255 255 255 / 0.72);
}
.hero-dark .button-quiet {
  color: #fff;
}
.hero-dark .button-quiet:hover {
  background: rgb(255 255 255 / 0.08);
}
/* The demo journal, drawn at 1440×900 and scaled to the column (script.js sets --shot). */
.app-shot {
  position: relative;
  max-width: 1080px;
  aspect-ratio: 1440 / 900;
  margin: clamp(48px, 7vw, 84px) auto 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--app-page);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 30px 80px rgb(0 0 0 / 0.45);
}
.app-shot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  transform: scale(var(--shot, 0.75));
  transform-origin: 0 0;
  pointer-events: none;
}

/* On the home page the masthead lies over the hero, dark while the hero is beneath it (script.js). */
html:has(.nav-over) {
  scroll-padding-top: calc(var(--nav-h) + 64px);
}
.nav-over {
  height: var(--nav-h);
  margin-bottom: calc(-1 * var(--nav-h));
  padding-block: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-over + main .hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px));
}
.nav-over.on-dark {
  background: color-mix(in srgb, var(--ink) 35%, transparent);
  color: #fff;
}
.nav-over.on-dark nav a {
  color: rgb(255 255 255 / 0.72);
}
.nav-over.on-dark nav a:hover {
  color: #fff;
}
.nav-over.on-dark .brand-mark {
  filter: invert(1);
}
.nav-over.on-dark .button-ink {
  background: var(--leaf);
  color: var(--ink);
  box-shadow: none;
}
.lede {
  max-width: 560px;
  margin: 26px auto 34px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* The Mac: a soft desktop, a menu bar, the island, and the window. */
.desktop {
  position: relative;
  max-width: 1080px;
  margin: clamp(48px, 7vw, 84px) auto 0;
  padding: 0 clamp(14px, 5vw, 64px) clamp(28px, 5vw, 60px);
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 18% 0%, #e6f1db 0%, transparent 60%),
    radial-gradient(80% 70% at 100% 20%, #f3e6cf 0%, transparent 55%),
    linear-gradient(180deg, #eef0e6, #e7e9df);
  box-shadow: 0 1px 0 #fff inset, 0 30px 80px rgb(40 50 35 / 0.12);
  text-align: left;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 30px;
  margin: 0 calc(-1 * clamp(14px, 5vw, 64px));
  padding: 0 16px;
  border-radius: 22px 22px 0 0;
  background: rgb(255 255 255 / 0.55);
  backdrop-filter: blur(18px);
  font: 500 12.5px var(--text);
  color: rgb(0 0 0 / 0.78);
}
.menubar b {
  font-weight: 700;
}
.menubar .apple {
  width: 12px;
  height: 14px;
  background: rgb(0 0 0 / 0.8);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
}
.menubar-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.tray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
}
.tray svg {
  width: 15px;
  height: 15px;
}
.tray svg path {
  stroke: currentColor;
  fill: currentColor;
}
.tray.active {
  background: rgb(0 0 0 / 0.1);
}
.tray-title {
  display: inline-block;
  transition: opacity 0.35s ease;
}
.menubar-dark {
  background: rgb(0 0 0 / 0.35);
  color: rgb(255 255 255 / 0.9);
}
.menubar-dark .apple {
  background: rgb(255 255 255 / 0.9);
}

.island-pill {
  width: 58px;
  height: 28px;
  margin: 10px auto 22px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.08);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgb(0 0 0 / 0.35);
}

/* ------------------------------------------------------- product: window */

.window {
  background: var(--app-page);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.16),
    0 24px 60px rgb(20 30 20 / 0.18),
    0 2px 6px rgb(20 30 20 / 0.08);
  color: var(--app-ink);
}
.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 0 14px;
}
.window-bar > :last-child {
  justify-self: end;
}
.lights {
  display: inline-flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.15);
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  background: rgb(0 0 0 / 0.06);
  font: 500 12px var(--text);
}
.switch > * {
  padding: 4px 14px;
  border-radius: 7px;
  color: var(--app-muted);
  min-width: 76px;
  text-align: center;
}
.switch b {
  font-weight: 500;
  background: #fff;
  color: var(--app-ink);
  box-shadow: 0 0.5px 1px rgb(0 0 0 / 0.14);
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.07);
  font: 600 11px var(--text);
  color: var(--app-muted);
}
.window-title {
  font: 500 12px var(--text);
  color: var(--app-muted);
}

/*
 * The timeline: rail on the left, the stream on the right. As in the app, the
 * journal ends at the middle — the draft on the reading line, level with the
 * active week's dot, where the rail's line stops.
 */
.timeline {
  --timeline-height: clamp(400px, 48vw, 540px);
  --tick: 22px;
  display: grid;
  grid-template-columns: 22% 1fr;
  height: var(--timeline-height);
}
.rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(var(--timeline-height) / 2 - var(--tick) / 2 - 24px);
}
.rail-ticks {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
/* From the first tick's dot to the last — and no further. */
.rail-ticks::after {
  content: '';
  position: absolute;
  right: 3px;
  top: calc(33px + var(--tick) / 2);
  bottom: calc(var(--tick) / 2);
  width: 1px;
  background: var(--app-hairline);
}
.rail small {
  margin: 12px 15px 4px 0;
  font: 600 10.5px var(--text);
  letter-spacing: 0.08em;
  color: var(--app-muted);
}
.rail .tick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding-right: 14px;
  position: relative;
  font: 500 11px var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--app-muted);
}
.rail .tick i {
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--app-tint) 40%, transparent);
}
.rail .tick::after {
  content: '';
  position: absolute;
  right: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.2);
  z-index: 1;
}
.rail .current {
  color: var(--app-ink);
}
.rail .current::after {
  right: 0;
  width: 7px;
  height: 7px;
  background: var(--app-tint);
}

.stream {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Room below the draft, so it sits on the middle line. */
  padding: 8px 32px calc(var(--timeline-height) / 2 - 36px) 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
}
.day h3 {
  margin: 0 0 14px 74px;
  font: 600 22px/1.2 var(--journal);
  letter-spacing: -0.01em;
  color: var(--app-ink);
}
.day + .day {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--app-hairline);
}

.entry {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 22px;
}
.entry time {
  text-align: right;
  font: 500 11px var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--app-muted);
}
.entry p {
  margin: 0;
  font: 400 16.5px/1.35 var(--journal);
  color: var(--app-ink);
}
.tag {
  color: var(--app-tint);
}
.mention {
  color: var(--app-tint);
  background: color-mix(in srgb, var(--app-tint) 10%, transparent);
  border-radius: 4px;
  padding: 0 3px;
}
.placeholder {
  color: var(--app-faint);
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.16em;
  background: var(--app-tint);
  animation: blink 1.05s steps(1) infinite;
}
.draft {
  margin-top: 40px;
  margin-bottom: 0;
}

.card {
  background: var(--app-inset);
  border: 1px solid var(--app-hairline);
  border-radius: 12px;
  padding: 11px 14px;
}
.card-entry .card p {
  font: 400 16.5px/1.3 var(--journal);
}
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font: 500 11px var(--text);
  color: var(--app-muted);
}
.summary,
.digest {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 22px 74px;
}
.summary-head {
  font: 500 11.5px var(--text);
  color: var(--app-muted);
}
.summary-row {
  display: flex;
  gap: 10px;
  font: 500 11.5px var(--text);
  color: var(--app-muted);
}
.summary-row time {
  width: 42px;
  color: var(--app-faint);
  font-variant-numeric: tabular-nums;
}
.action {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 500 11.5px var(--text);
  color: var(--app-muted);
}
.action i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--app-faint);
  border-radius: 2px;
  flex: none;
  transform: translateY(1px);
}
.action em {
  font-style: normal;
  color: var(--app-faint);
}

/* The app's icons, from the SVG symbols at the top of the page. */
.i {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-label .i {
  width: 11px;
  height: 11px;
}
.i-tint {
  color: var(--app-tint);
}

/* ---------------------------------------------------------- principles */

.principles {
  position: sticky;
  top: var(--nav-h);
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  font: 500 14px var(--text);
  color: var(--ink-2);
}
.principles a {
  text-decoration: none;
}
.principles a:hover {
  color: var(--ink);
}
.principles i {
  font-style: normal;
  color: var(--leaf-2);
}

.statement {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  text-align: center;
}
.statement p {
  margin: 0;
  font: 400 clamp(28px, 3.6vw, 46px)/1.16 var(--display);
  letter-spacing: -0.01em;
}
.statement strong {
  display: block;
  margin-top: 26px;
  font: 500 17px var(--text);
  color: var(--moss);
}
.statement p em {
  font-style: italic;
  color: var(--moss);
}
.statement .statement-body {
  max-width: 600px;
  margin: 30px auto 0;
}
.statement .statement-body p {
  margin: 0 0 16px;
  font: 400 clamp(17px, 1.6vw, 19px)/1.6 var(--text);
  letter-spacing: 0;
  color: var(--ink-2);
}
.statement-not {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  font: 400 clamp(22px, 2.4vw, 30px)/1.35 var(--display);
  color: var(--ink-2);
}
.statement-not strong {
  margin: 0;
  font: inherit;
  font-style: italic;
  color: var(--moss);
}
.statement .statement-lead {
  margin: 0 auto 34px;
}
.why-now,
.thesis {
  padding-top: 0;
}
.why-now > strong {
  max-width: 560px;
  margin-inline: auto;
}
.statement .eyebrow {
  margin: 0 0 24px;
  font: 500 13px/1 var(--text);
  letter-spacing: 0.01em;
}
.quote .eyebrow {
  margin-bottom: 24px;
  color: var(--moss);
  font-weight: 500;
}

/* ------------------------------------------------------------- features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.feature-flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.feature-flip .feature-copy {
  order: 2;
}
.feature-copy h2 {
  margin-bottom: 22px;
}
.feature-copy > p:not(.eyebrow) {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 440px;
}
.facts {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.facts li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.facts li::before {
  content: '';
  width: 14px;
  height: 1px;
  flex: none;
  background: var(--moss);
  transform: translateY(-4px);
}

/* A stage: the coloured ground an illustration sits on. */
.stage {
  position: relative;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 0 clamp(16px, 4vw, 44px) 40px;
}
.stage .menubar {
  align-self: stretch;
  justify-self: stretch;
  margin: 0 calc(-1 * clamp(16px, 4vw, 44px));
  border-radius: 0;
}
.stage-dusk {
  background:
    radial-gradient(120% 90% at 20% 0%, #5f6f68 0%, transparent 60%),
    linear-gradient(160deg, #3b4540, #232a27);
}
.stage-leaf {
  background: linear-gradient(160deg, #e3f0d7, #cfe3c1);
  align-content: center;
}
.stage-honey {
  background: linear-gradient(160deg, #f6e6c3, #eed7a4);
}
.stage-mist {
  background: linear-gradient(160deg, #e7ebf0, #d8dfe8);
  align-content: center;
}
.floating {
  width: min(520px, 100%);
  margin-top: 36px;
}
.panel {
  padding: 6px 26px 8px 8px;
}
.panel .summary,
.panel .digest {
  margin-left: 74px;
}
@media (max-width: 1100px) {
  .panel .summary,
  .panel .digest {
    margin-left: 0;
  }
}
.sticker {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 12.5px var(--text);
}

/* An app behind the card — a slide deck, dimmed — so it reads as over your work. */
.backdrop-app {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 150px;
  bottom: -40px;
  border-radius: 12px;
  background: #2f3532;
  box-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.08), 0 20px 50px rgb(0 0 0 / 0.35);
  padding: 44px 40px;
}
.slide {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(160deg, #4a524e, #3c4340);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slide span {
  height: 12px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.14);
}
.slide span:first-child {
  width: 55%;
  height: 22px;
  background: rgb(255 255 255 / 0.22);
}
.slide span:nth-child(2) {
  width: 80%;
}
.slide span:nth-child(3) {
  width: 65%;
}

/* The capture card, as the island opens it. */
.capture-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin-top: 10px;
  padding: 18px 26px 0;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35), 0 0 0 0.5px rgb(0 0 0 / 0.2);
  color: var(--app-ink);
  animation: drop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.capture-head {
  display: flex;
  justify-content: space-between;
  font: 500 11px var(--text);
}
.capture-head span:last-child {
  color: var(--app-muted);
}
.capture-text {
  min-height: 132px;
  margin: 14px 0 0;
  font: 400 16px/1.35 var(--journal);
  color: rgb(0 0 0 / 0.78);
}
.capture-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 12px;
  font: 400 11px var(--text);
  color: var(--app-faint);
}
.capture-foot kbd {
  font-size: 10px;
  color: var(--app-muted);
  background: rgb(0 0 0 / 0.03);
  border-color: rgb(0 0 0 / 0.12);
  border-bottom-width: 1px;
  margin-right: 2px;
}

/* The menu-bar item's menu, and the slash menu. */
.tray-menu {
  position: absolute;
  top: 34px;
  right: clamp(58px, 9vw, 100px);
  width: 220px;
  padding: 5px;
  border-radius: 10px;
  background: rgb(246 246 246 / 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2), 0 0 0 0.5px rgb(0 0 0 / 0.18);
  font: 400 13px var(--text);
  color: var(--app-ink);
  display: flex;
  flex-direction: column;
}
.tray-menu span {
  display: flex;
  justify-content: space-between;
  padding: 3px 10px 3px 22px;
  border-radius: 5px;
  position: relative;
}
.tray-menu em {
  font-style: normal;
  color: var(--app-faint);
}
.tray-menu .menu-heading {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--app-muted);
}
.tray-menu .checked::before {
  content: '✓';
  position: absolute;
  left: 7px;
  font-size: 11px;
}
.tray-menu hr {
  width: calc(100% - 20px);
  border: 0;
  border-top: 1px solid var(--app-hairline);
  margin: 5px auto;
}
.slash {
  position: absolute;
  left: clamp(16px, 5vw, 48px);
  bottom: 36px;
  width: min(330px, 80%);
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgb(90 70 20 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.1);
}
.slash-typed {
  margin: 0 0 8px;
  font: 400 16px var(--journal);
}
.chip {
  color: var(--app-tint);
}
.menu {
  display: flex;
  flex-direction: column;
  padding: 5px 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.1);
  background: #fff;
  overflow: hidden;
}
.menu span {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 6px 10px;
  font: 400 11px/1.3 var(--text);
  color: var(--app-muted);
}
.menu span b {
  font: 500 13px var(--text);
  color: var(--app-ink);
}
.menu span small {
  grid-column: 2;
  font-size: 11px;
}
.menu span > .i {
  grid-row: span 2;
  align-self: center;
  width: 15px;
  height: 15px;
}
.menu .selected {
  background: var(--app-tint);
  color: rgb(255 255 255 / 0.82);
}
.menu .selected b {
  color: #fff;
}
.menu-small {
  margin-top: 8px;
  width: min(300px, 100%);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px 3px 12px;
  border-radius: 999px;
  background: var(--app-inset);
  font: 400 11px var(--text);
  color: var(--app-muted);
}
.filter-chip b {
  font: 500 12px var(--text);
  color: var(--app-tint);
}
.filter-chip i {
  font-style: normal;
  width: 18px;
  text-align: center;
}
.mention-demo p {
  margin: 0;
}
.typed-at {
  color: var(--app-tint);
}

/* ------------------------------------------------------------- reminder */

.reminder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.reminder h2 {
  margin-bottom: 20px;
}
.reminder p:not(.eyebrow) {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 440px;
}
.stage-evening {
  min-height: 300px;
  background:
    radial-gradient(90% 80% at 80% 0%, #f2d8c2 0%, transparent 60%),
    linear-gradient(160deg, #e9dfd3, #d9cbbd);
}
.notification {
  justify-self: end;
  margin-top: 14px;
  animation: slide-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(380px, 100%);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.1);
  font: 400 13px/1.35 var(--text);
  color: var(--app-ink);
}
.notification b {
  display: block;
  font-weight: 600;
}
.notification small {
  align-self: start;
  color: var(--app-faint);
  font-size: 11px;
}
.notification-icon {
  width: 38px;
  height: 38px;
}
.notification-icon {
  border-radius: 9px;
}

/* -------------------------------------------------------------- privacy */

.privacy {
  background: var(--moss);
  color: #f4f6ef;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.privacy-head,
.privacy-grid {
  /* Lined up with the content of the sections around it. */
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
}
.privacy h2 em {
  color: var(--leaf);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.privacy-grid > div {
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}
.privacy h3 {
  margin: 0 0 10px;
  font: 500 17px var(--text);
}
.privacy-grid p {
  margin: 0;
  font-size: 15.5px;
  color: rgb(244 246 239 / 0.78);
}

.quote {
  text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
}
.quote blockquote {
  max-width: 820px;
  margin: 0 auto;
  font: 400 clamp(32px, 4.2vw, 56px)/1.1 var(--display);
  letter-spacing: -0.01em;
}
.quote p {
  margin: 24px 0 0;
  color: var(--moss);
  font-weight: 500;
}

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

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 130px);
}
.faq h2 {
  margin-bottom: 24px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 500 17px var(--text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--moss);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: -6px 0 22px;
  color: var(--ink-2);
  max-width: 620px;
}

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

.cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: clamp(90px, 11vw, 150px) var(--gutter);
}
.cta h2 em {
  color: var(--leaf);
}
.cta > p:not(.eyebrow):not(.form-message) {
  margin: 20px 0 0;
  color: rgb(255 255 255 / 0.72);
  font-size: 17px;
}
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 34px auto 0;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #fff;
  font: 400 16px var(--text);
}
.waitlist input::placeholder {
  color: rgb(255 255 255 / 0.45);
}
.waitlist:focus-within {
  box-shadow: inset 0 0 0 1px var(--leaf-2);
}
.form-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--leaf);
  font-size: 15px;
}
.form-message.error {
  color: #ffc4b4;
}
.cta > p.cta-alt:not(.eyebrow):not(.form-message) {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgb(255 255 255 / 0.6);
}
.cta-alt a {
  color: var(--leaf);
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  font-size: 13px;
  color: var(--muted);
}
.footer p {
  margin: 0;
}

/* ------------------------------------------------------------- download */

.nav nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 500;
}
.button-large {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
}
.button-large .i {
  width: 17px;
  height: 17px;
}

.dl-hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 8vw, 100px);
}
/* The same light as the logo, faintly, behind the icon. */
.dl-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(260px 180px at 44% 110px, rgb(139 245 200 / 0.28), transparent 70%),
    radial-gradient(280px 200px at 56% 130px, rgb(195 166 255 / 0.3), transparent 70%);
  filter: blur(8px);
}
.dl-icon {
  display: block;
  width: clamp(128px, 16vw, 168px);
  height: auto;
  margin: 0 auto 28px;
}
.dl-icon.seen {
  animation: dl-float 7s ease-in-out 1s infinite;
}
@keyframes dl-float {
  50% {
    transform: translateY(-6px);
  }
}
.dl-hero .lede {
  margin-bottom: 30px;
}
.dl-meta {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.dl-verify {
  max-width: 520px;
  margin: 10px auto 0;
  font-size: 13.5px;
  color: var(--muted);
}
.dl-verify summary {
  cursor: pointer;
  width: max-content;
  margin: 0 auto;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.dl-verify > code {
  display: block;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.install {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
  font: 500 18px var(--text);
  letter-spacing: -0.01em;
}
.step h3 span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--moss);
  font-size: 13px;
  font-weight: 600;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.step-art {
  display: grid;
  place-items: center;
  height: 220px;
  padding: 20px;
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* A file as Finder shows it. */
.dl-file {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 13px;
}
.dl-file small {
  color: var(--muted);
  font-size: 12px;
}
.dl-file-icon {
  position: relative;
  width: 64px;
  height: 76px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: linear-gradient(#fff, #eeede8);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1), 0 6px 14px rgb(0 0 0 / 0.08);
}
/* The disk image: a drive with the mark on it. */
.dl-file-icon::after {
  content: '';
  position: absolute;
  inset: 20px 12px;
  border-radius: 7px;
  background: url('assets/logo-mark.svg') center / cover;
}

/* The Privacy & Security panel, in miniature. */
.gk {
  width: 100%;
  max-width: 270px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.18), 0 12px 26px rgb(20 30 20 / 0.12);
  font-size: 12.5px;
}
.gk b {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
.gk p {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.gk-button {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--app-tint);
  color: #fff;
  font-weight: 500;
}

.terminal-install {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  text-align: center;
}
.terminal-install > p:not(.eyebrow):not(.terminal-small) {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ink-2);
}
.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  background: #16181a;
  text-align: left;
}
.terminal-line code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #d7f7e7;
  font: 500 13px/1.5 ui-monospace, 'SF Mono', Menlo, monospace;
  white-space: nowrap;
}
.terminal-line .button {
  flex: none;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
.terminal-line .button:hover {
  background: rgb(255 255 255 / 0.08);
}
.terminal-small {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.terminal-small a {
  color: var(--moss);
}

/* The DMG window, in miniature. */
.dmg {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(#fdfcf8, #f3f1ea);
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.2), 0 14px 30px rgb(20 30 20 / 0.14);
}
.dmg .window-bar {
  height: 28px;
  padding: 0 10px;
  background: #f6f5f1;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
  font-size: 11px;
  color: var(--muted);
}
.dmg .lights {
  gap: 5px;
}
.dmg .lights i {
  width: 8px;
  height: 8px;
}
.dmg-body {
  padding: 12px 14px 18px;
  text-align: center;
}
.dmg-body p {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
}
.dmg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dmg figure {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10.5px;
}
.dmg figure img {
  width: 58px;
}
.dmg .folder {
  position: relative;
  width: 52px;
  height: 40px;
  margin: 6px 3px 6px;
  border-radius: 5px;
  background: linear-gradient(#72b7f2, #3e8fe0);
}
.dmg .folder::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 22px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: #5aa4ec;
}
.dmg-arrow {
  flex: 1;
  height: 26px;
  margin: 0 4px 14px;
  overflow: visible;
}
.dmg-arrow path {
  fill: none;
  stroke: url(#dl-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dmg-arrow .head {
  stroke: #9a7cf0;
}
.step.seen .dmg figure:first-child img {
  animation: dl-drag 3.6s cubic-bezier(0.5, 0, 0.3, 1) 0.8s infinite;
}
@keyframes dl-drag {
  0%,
  15% {
    transform: none;
    opacity: 1;
  }
  55% {
    transform: translateX(150px) scale(0.8);
    opacity: 0.85;
  }
  60%,
  100% {
    transform: translateX(150px) scale(0.8);
    opacity: 0;
  }
}

.then {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 100px);
}
.then-card {
  padding: 30px 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.then-card .facts {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* -------------------------------------------------------- accounts */

.welcome h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.welcome-step {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--moss);
  font: 600 13px var(--text);
}

.nav-plain {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
  padding: 24px var(--gutter) 64px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 60px rgb(20 30 20 / 0.08);
}
.auth-card h1,
.account h1,
.pricing h1 {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
}
.auth-lede {
  margin: 12px 0 0;
  color: var(--ink-2);
}
.auth-lede a,
.auth-switch a,
.label-row a,
.notice a {
  color: var(--moss);
  text-underline-offset: 3px;
}
.auth-sso {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.auth-sso .button {
  justify-content: center;
}
.auth-or {
  order: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-sso[hidden] {
  display: none;
}
.auth-sso:not([hidden]) + .auth-form {
  margin-top: 18px;
}
.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font: 500 14px var(--text);
}
.label-row {
  display: flex;
  justify-content: space-between;
}
.label-row a {
  font-weight: 400;
  font-size: 13px;
}
.auth-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font: 400 16px var(--text);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.auth-form input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px var(--leaf);
}
.auth-form small {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.auth-form .button {
  justify-content: center;
  margin-top: 4px;
}
.button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.form-note {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.form-note:empty {
  display: none;
}
.form-note.error {
  color: #b3261e;
}
.form-note.success {
  color: var(--moss);
}
.auth-switch {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.notice {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--leaf);
  color: var(--moss);
  font-size: 14.5px;
  text-align: center;
}

/* The account page: a column of cards. */
.account {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px var(--gutter) 80px;
}
.account-email {
  margin: 10px 0 30px;
  color: var(--muted);
}
.panel-card {
  margin-top: 16px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.panel-card h2 {
  font: 600 15px var(--text);
  letter-spacing: -0.01em;
}
.panel-card .auth-form {
  margin-top: 14px;
  max-width: 380px;
}
.panel-card .auth-form .button {
  justify-self: start;
}
.panel-body {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.panel-actions:not(:has(:not([hidden]))) {
  display: none;
}
.panel-card .button-quiet {
  box-shadow: inset 0 0 0 1px var(--line);
}
/* The admin waitlist (admin.html): a wider column, and a table of addresses. */
.admin {
  max-width: 880px;
}
.admin-invite {
  grid-template-columns: 1fr;
}
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-filters {
  display: flex;
  gap: 6px;
}
.admin-filters [aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  padding: 8px 10px 8px 0;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.admin-table td {
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.admin-table td:last-child {
  text-align: right;
  padding-right: 0;
}
.admin-email {
  font-weight: 500;
}
.admin-status {
  color: var(--ink-2);
}
.panel-danger h2 {
  color: #b3261e;
}
.button-danger {
  background: #b3261e;
  color: #fff;
}
.button-danger:hover {
  background: #97201a;
}
.account-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.app-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: background 0.15s ease;
}
.app-link:hover {
  background: var(--paper-2);
}
.app-link img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.app-link span {
  display: grid;
  font-size: 14.5px;
}
.app-link small {
  color: var(--muted);
  font-size: 12.5px;
}

/* Pricing: one plan, two ways to pay. */
.pricing {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) 90px;
  text-align: center;
}
.pricing .lede {
  margin-bottom: 30px;
}
.interval-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.interval-switch button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 14px var(--text);
  color: var(--ink-2);
  cursor: pointer;
}
.interval-switch [aria-checked='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}
.interval-switch span {
  color: var(--moss);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  text-align: left;
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 70px rgb(20 30 20 / 0.1);
}
.plan-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.plan-head h2 {
  font: 600 18px var(--text);
  letter-spacing: -0.01em;
}
.plan-price {
  margin: 4px 0 0;
  color: var(--muted);
}
.plan-price b {
  font: 400 34px var(--display);
  color: var(--ink);
}
.plan-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 600 20px var(--text);
  letter-spacing: -0.01em;
}
.plan-for {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.plan-billed {
  margin: 2px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.plan-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(47 90 61 / 0.1);
  color: var(--moss);
  font: 500 12px var(--text);
}
/* Plus: the one to choose, given a little more presence. */
.plan-card-main {
  box-shadow:
    0 0 0 1.5px var(--moss),
    0 30px 70px rgb(20 30 20 / 0.12);
}
.plan-card .facts {
  margin: 24px 0 0;
}
.plan-card .button {
  width: 100%;
  justify-content: center;
}
/* Free's button: outlined, beside Plus's filled one. */
.plan-card .button:not(.button-ink) {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-card .button:not(.button-ink):hover {
  background: var(--paper-2);
}
.plan-card .form-note {
  margin-top: 12px;
  text-align: center;
}
.plan-small {
  margin: 20px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.seen {
  opacity: 1;
  transform: none;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
@keyframes drop {
  from {
    transform: translateY(-24px) scale(0.92);
    opacity: 0;
  }
}

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

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .nav .button {
    margin-left: auto;
  }
  .feature,
  .reminder {
    grid-template-columns: 1fr;
  }
  .feature-flip .feature-copy {
    order: 0;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 0 1fr;
  }
  .rail {
    visibility: hidden;
  }
}

@media (max-width: 560px) {
  .menubar > span:not(.apple):not(.menubar-right),
  .menubar .menubar-right > span:last-child {
    display: none;
  }
  .stream {
    padding: 8px 16px 0 4px;
  }
  .entry {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .day h3 {
    margin-left: 52px;
  }
  .summary,
  .digest,
  .panel .summary,
  .panel .digest {
    margin-left: 52px;
  }
  .switch > * {
    min-width: 0;
    padding: 4px 9px;
  }
  .tray-menu {
    right: 12px;
  }
  .slash {
    left: 12px;
    right: 12px;
    width: auto;
  }
  .stage {
    min-height: 480px;
  }
  .waitlist {
    flex-direction: column;
    border-radius: 18px;
  }
  .waitlist input {
    height: 44px;
  }
  .footer {
    flex-direction: column;
  }
}

/* ------------------------------------------------ Wonder's own notes */

/*
 * Dapple: the surface Wonder's notes sit on (painted by dapple.js). The CSS
 * colour is the noon shade, shown until the shader lights it — and for good
 * without WebGL.
 */
:root {
  --nudge-accent: #4a5a24;
}
.dapple {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  background: rgb(229 234 225 / 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 64px -36px rgb(50 60 30 / 0.25);
  color: var(--app-ink);
}
.pill.dapple {
  border-radius: 999px;
}
.dapple > :not(.dapple-field) {
  position: relative;
}
.dapple-field {
  z-index: -1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.dapple-field[data-lit] {
  opacity: 1;
}
/* Cards are glass over the page; illustration backgrounds stay solid. */
.dapple > .dapple-field[data-lit] {
  opacity: 0.75;
}
.summary.dapple,
.digest.dapple {
  padding: 11px 14px;
}
.mark {
  width: 13px;
  height: 13px;
  flex: none;
  fill: var(--nudge-accent);
}
.nudge-kind {
  font: 600 10px ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nudge-accent);
}
.nudge-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nudge-head small {
  margin-left: auto;
  font: 500 11px var(--text);
  color: var(--app-faint);
}
.nudge p,
.margin-card p {
  margin: 6px 0 0;
  font: 400 13px/1.45 var(--text);
  color: var(--app-ink);
}
.nudge b,
.margin-card b,
.brief b,
.island-note b {
  font-weight: 600;
}

/*
 * Dapple behind each illustration, at its own hour. The CSS backgrounds stay as the colour behind
 * the canvas until it's lit — and for good without WebGL.
 */
.dapple-bg {
  position: relative;
  isolation: isolate;
}

/* The hero's Today: the margin beside the writing, the draft, Now, and Moments below. */
.today-view {
  grid-template-columns: 27% 1fr;
  align-content: start;
  padding-top: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.tv-margin {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 16px 0 18px;
}
.tv-page {
  min-width: 0;
  padding: 0 32px 0 8px;
}
.tv-head {
  padding: 8px 16px 14px 18px;
}
.tv-page.tv-head {
  padding: 8px 32px 14px 8px;
}
.tv-page h3 {
  margin: 0 0 0 74px;
  font: 600 22px/1.2 var(--journal);
  letter-spacing: -0.01em;
}
.margin-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font: 600 10px ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nudge-accent);
}
.margin-card {
  width: 100%;
  max-width: 240px;
  margin-top: -6px;
  padding: 10px 12px 11px;
}
.margin-card p {
  font-size: 12.5px;
}
/* The leader: from the card, across the gutter, to the line it's about. */
.margin-card::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -30px;
  width: 30px;
  height: 1.5px;
  background: var(--nudge-accent);
  opacity: 0.7;
}
.margin-card::before {
  content: '';
  position: absolute;
  top: 13.5px;
  right: -34px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nudge-accent);
}
.hl {
  background: color-mix(in srgb, var(--nudge-accent) 20%, transparent);
  text-decoration: underline;
  text-decoration-color: var(--nudge-accent);
  text-underline-offset: 3px;
}
.today-view .draft {
  margin: 0 0 22px;
}
.tv-pills {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font: 400 12px var(--text);
  color: var(--app-muted);
}
.now-line {
  display: grid;
  grid-template-columns: 56px 9px 1fr;
  align-items: center;
  column-gap: 14px;
  margin: 0 0 22px;
}
.now-line time {
  text-align: right;
  font: 600 11px var(--text);
  color: var(--app-tint);
}
.now-line i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--app-tint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-tint) 20%, transparent);
}
.now-line span {
  height: 1.5px;
  margin-left: -14px;
  background: var(--app-tint);
}
.moment {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}
.moment > time {
  padding-top: 2px;
  text-align: right;
  font: 500 11px var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--app-faint);
}
.event {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  border-left: 3px solid var(--cal);
  border-radius: 2px;
}
.event b {
  font: 600 13px var(--text);
}
.event small {
  font: 500 11px var(--text);
  color: var(--app-muted);
}
.nudge.attached {
  margin: 10px 0 0 13px;
  padding: 10px 12px 11px;
}
.nudge.attached::before {
  content: '';
  position: absolute;
  left: -10px;
  top: -10px;
  width: 9px;
  height: 21px;
  border-left: 1.5px solid color-mix(in srgb, var(--nudge-accent) 30%, transparent);
  border-bottom: 1.5px solid color-mix(in srgb, var(--nudge-accent) 30%, transparent);
  border-bottom-left-radius: 7px;
}

/* The morning brief. */
.brief {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 4px 0 12px;
  padding: 14px 16px 13px;
}
.brief-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 400 12px var(--text);
}
.brief-head .mark {
  width: 15px;
  height: 15px;
}
.brief-head span {
  color: var(--app-muted);
}
.brief-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--app-muted);
}
.brief-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: baseline;
}
.brief-item p {
  margin: 0;
  font: 400 13px/1.45 var(--text);
}
.brief-foot {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--nudge-accent) 18%, transparent);
}
.brief-question {
  margin: 0;
  font: 600 14px/1.4 var(--text);
}
.verbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.verb {
  padding: 5px 10px;
  border-radius: 999px;
  font: 500 11.5px var(--text);
  color: var(--app-ink);
  background: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nudge-accent) 22%, transparent);
}
.verb-primary {
  color: #fbf8ec;
  background: var(--nudge-accent);
  box-shadow: none;
}
@media (max-width: 560px) {
  .brief-head span {
    display: none;
  }
  .brief-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Through the day: where the notes appear. */
.through {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
}
.through > div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.through-when {
  font: 600 11px var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}
.through h3 {
  margin: 8px 0 8px;
  font: 400 26px/1.1 var(--display);
}
.through p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
@media (max-width: 1100px) {
  .through {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .through {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .through {
    grid-template-columns: 1fr;
  }
}

/* The surface through the day. */
.daylight {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.daylight-copy h2 {
  margin-bottom: 22px;
}
.daylight-copy > p:not(.eyebrow) {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 440px;
}
.daylight-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.daylight-row figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swatch {
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 16px;
}
.daylight-row figcaption {
  font: 500 13px var(--text);
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .daylight {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .daylight-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A note on the island, just before its moment. */
.island-note {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 100%);
  margin: 10px 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.1);
  font: 400 12.5px var(--text);
  color: var(--app-ink);
  animation: slide-in 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.1) both;
}
.island-line {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Small screens: the margin gives way, as the rail did. */
@media (max-width: 900px) {
  .today-view {
    grid-template-columns: 0 1fr;
  }
  .today-view .tv-margin {
    visibility: hidden;
  }
}
@media (max-width: 560px) {
  .tv-page,
  .tv-page.tv-head {
    padding: 0 16px 0 4px;
  }
  .tv-page h3 {
    margin-left: 52px;
  }
  .now-line,
  .moment {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .now-line {
    grid-template-columns: 40px 9px 1fr;
  }
}

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

/* The account's devices, on account.html. */
.device-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* What a remote app may do, on authorize.html. */
.scope-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.scope-list legend { font-weight: 500; margin-bottom: 4px; }
.scope-list .checkbox { display: flex; gap: 8px; align-items: baseline; font-weight: 400; }

/* Privacy, terms and what we can read (Legal 1). */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; line-height: 1.6; }
.legal h1 { margin-bottom: 16px; }
.legal h2 { margin-top: 40px; }
.legal h3 { margin-top: 24px; font-size: 1rem; }
.legal-lede { font-size: 1.1rem; }
.legal-draft { border: 1px solid currentColor; border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; opacity: 0.8; }
.legal-updated { margin-top: 48px; opacity: 0.6; font-size: 0.9rem; }
.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgb(0 0 0 / 0.1); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.auth-legal { font-size: 0.85rem; opacity: 0.7; margin-top: 12px; }
.legal-index { display: flex; flex-direction: column; gap: 10px; padding-left: 1.1em; }

/* ------------------------------------------------------- in the margins */
/*
 * Wonder's hand on a finished day (#margins): as in the app — Caveat in the
 * tint ink, rising 6°, strokes drawn quick and even, easing only as they land.
 * Everything draws once the section comes into view (.seen, script.js).
 */
.ink-demo {
  --ink-hand: #2f5a3d;
  --pencil: rgb(0 0 0 / 0.55);
  width: min(100%, 620px);
}
.ink-page {
  padding: 22px 26px 26px 12px;
}
.ink-row {
  display: grid;
  grid-template-columns: 176px 40px 1fr;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 20px;
}
/* Room above the second entry for the selection's popover. */
.ink-row + .ink-row {
  margin-top: 34px;
}
.ink-row time {
  text-align: right;
  font: 500 11px var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--app-muted);
}
.ink-row p {
  margin: 0;
  font: 400 16.5px/1.55 var(--journal);
  color: var(--app-ink);
}
.ink-margin {
  position: relative;
  min-height: 1px;
}
.ink-row .ink-hand {
  position: absolute;
  top: -8px;
  left: 46px;
  margin: 0;
  width: 96px;
  font: 600 19px/1.02 'Caveat', 'Bradley Hand', cursive;
  color: var(--ink-hand);
  transform: rotate(-6deg);
  transform-origin: 100% 0;
}
.ink-hand span {
  display: inline-block;
  /* Room for Caveat's letters, which lean past their boxes, so the writing mask never clips them. */
  padding: 0.2em 0.2em 0.3em 0.06em;
  margin: -0.2em -0.2em -0.3em -0.06em;
}
.ink-motif {
  position: absolute;
  top: -12px;
  left: 0;
  width: 42px;
  height: 38px;
  overflow: visible;
  transform: rotate(4deg);
}
.ink-arrow {
  position: absolute;
  top: -12px;
  left: 142px;
  width: 36px;
  height: 22px;
  overflow: visible;
}
.ink-demo path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ink-demo .pencil {
  stroke: var(--pencil);
  stroke-width: 3.4;
}
.ink-demo .pen {
  stroke: var(--ink-hand);
  stroke-width: 2.6;
}
.ink-arrow .pen,
.ink-circled .pen {
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
}
.ink-demo .wash {
  stroke: none;
  opacity: 0.85;
  mix-blend-mode: multiply;
}
.ink-demo .wash-peach { fill: #f9cfc4; }
.ink-demo .wash-sky { fill: #c5def4; }
.ink-demo .wash-butter { fill: #fbe2a0; }
.ink-circled {
  position: relative;
  white-space: nowrap;
}
.ink-circled svg {
  position: absolute;
  inset: -7px -12px -6px -12px;
  width: calc(100% + 24px);
  height: calc(100% + 13px);
  overflow: visible;
  pointer-events: none;
}
/* Light green highlighter across the lower half of the letters, ragged at the ends. */
.ink-highlight {
  padding: 0 0.12em;
  margin: 0 -0.12em;
  color: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M1.5 6.5 C 20 4.2, 45 5.6, 70 4.4 S 93 4.8, 99 3.6 L 98.6 17.2 C 80 18.6, 55 16.4, 30 17.8 S 6 17.4, 0.8 18.4 Z' fill='%23bfeea0' fill-opacity='0.9'/%3E%3C/svg%3E") no-repeat 0 80% / 100% 46%;
}
.ink-selected {
  position: relative;
  background: color-mix(in srgb, #3b82f6 22%, transparent);
  border-radius: 2px;
}
.ink-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #16181a;
  color: #fff;
  font: 600 16px/1 'Caveat', cursive;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.2);
}
.ink-popover span {
  padding: 5px 11px;
  border-radius: 999px;
}
.ink-popover span:last-child {
  background: rgb(255 255 255 / 0.16);
}
/* The drawing: hidden until the section is seen, then each stroke drawn in turn. */
.stage:not(.seen) .ink-demo path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.stage.seen .ink-demo path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ink-draw 480ms cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}
@keyframes ink-draw {
  to { stroke-dashoffset: 0; }
}
.stage.seen .ink-circled path { animation-delay: 500ms; }
.stage.seen .ink-hand span {
  -webkit-mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 260% 100% no-repeat;
  mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 260% 100% no-repeat;
  animation: ink-write 520ms linear forwards;
}
.stage.seen .ink-hand span:first-child { animation-delay: 1000ms; }
.stage.seen .ink-hand span:last-child { animation-delay: 1500ms; }
.stage:not(.seen) .ink-hand span {
  -webkit-mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 260% 100% no-repeat;
  mask: linear-gradient(90deg, #000 42%, transparent 58%) 100% 0 / 260% 100% no-repeat;
}
@keyframes ink-write {
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}
.stage.seen .ink-motif path[pathLength] { animation-delay: calc(2100ms + var(--i) * 90ms); }
.stage.seen .ink-motif .pen { animation-delay: calc(2500ms + var(--i) * 90ms); }
.stage.seen .ink-arrow path { animation-delay: 2800ms; }
.stage.seen .ink-arrow path + path { animation-delay: 3150ms; }
.ink-demo .wash { opacity: 0; transition: opacity 500ms ease; }
.stage.seen .ink-motif .wash { opacity: 0.85; transition-delay: 2400ms; }
.stage:not(.seen) .ink-highlight { background-size: 0% 46%; }
.stage.seen .ink-highlight {
  transition: background-size 560ms cubic-bezier(0.45, 0.05, 0.25, 1) 3400ms;
}
.ink-popover { opacity: 0; }
.stage.seen .ink-popover { animation: ink-offer 1500ms ease 3900ms forwards; }
@keyframes ink-offer {
  0% { opacity: 0; }
  18%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
.stage.seen .ink-selected { animation: ink-deselect 400ms ease 5200ms forwards; }
@keyframes ink-deselect {
  to { background-color: transparent; }
}
/* The doodle asked for: drawn in the margin once the offer's taken. */
.stage.seen .ink-late .ink-motif path[pathLength] { animation-delay: calc(5400ms + var(--i) * 90ms); }
.stage.seen .ink-late .ink-motif .pen { animation-delay: calc(5800ms + var(--i) * 90ms); }
.stage.seen .ink-late .ink-hand span:first-child { animation-delay: 6000ms; }
.stage.seen .ink-late .ink-hand span:last-child { animation-delay: 6450ms; }
.stage.seen .ink-late .ink-arrow path { animation-delay: 6900ms; }
.stage.seen .ink-late .ink-arrow path + path { animation-delay: 7200ms; }

@media (max-width: 560px) {
  .ink-row { grid-template-columns: 104px 38px 1fr; gap: 10px; }
  .ink-row .ink-hand { left: 32px; width: 64px; font-size: 16px; }
  .ink-motif { width: 30px; }
  .ink-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ink-demo path[pathLength],
  .stage .ink-demo path[pathLength] { animation: none !important; stroke-dashoffset: 0 !important; }
  .ink-hand span { -webkit-mask: none !important; mask: none !important; animation: none !important; }
  .ink-demo .wash { opacity: 0.85 !important; transition: none !important; }
  .ink-popover { display: none; }
  .ink-selected { background: none !important; }
  .ink-highlight { background-size: 100% 46% !important; transition: none !important; }
}

/* AI apps (MCP): Claude answering from the journal, and Wonder's "Claude connected" pill. */
.ai-chat {
  width: min(420px, 86%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-ask {
  align-self: flex-end;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--app-inset, #f1efe8);
  font: 400 14px/1.4 var(--text);
}
.ai-answer {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.ai-mark {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.ai-answer p {
  margin: 0 0 8px;
  font: 400 14.5px/1.5 var(--text);
}
.ai-source {
  font: 500 11.5px var(--text);
  color: var(--app-muted);
}
.ai-pill {
  position: absolute;
  right: 7%;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: var(--app-page);
  color: var(--app-ink);
  font: 400 13px var(--text);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.12),
    0 8px 24px rgb(20 30 20 / 0.14);
}
.ai-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--app-page);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.12),
    0 1px 3px rgb(0 0 0 / 0.12);
}
.ai-tile svg {
  width: 15px;
  height: 15px;
}
.ai-tile i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 2px var(--app-page);
}

/* Connections: what brings the day in, and which AI apps can read the journal. */
.connections {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 130px);
  box-sizing: content-box;
}
.connections-head h2 {
  margin: 0;
}
.connections-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 52px);
}
.connections h3 {
  margin: 0 0 14px;
  font: 500 13px var(--text);
  color: var(--muted);
}
.connection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.connection-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.connection-list b {
  display: block;
  font: 500 16px/1.3 var(--text);
  color: var(--ink);
}
.connection-list span:not(.connection-tile) {
  font: 400 14px/1.45 var(--text);
  color: var(--muted);
}
.connection-list em {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(47 90 61 / 0.08);
  color: var(--moss);
  font: 500 11.5px var(--text);
  font-style: normal;
  white-space: nowrap;
}
.connection-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.12),
    0 2px 6px rgb(20 30 20 / 0.10);
}
.connection-tile svg {
  width: 20px;
  height: 20px;
}
/* Granola, until its own mark is here. */
.connection-letter {
  font: 600 16px var(--text);
  color: var(--moss);
}
@media (max-width: 760px) {
  .connections-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pricing: the plans side by side, then a table and questions. */
.plan-compare {
  margin: clamp(56px, 8vw, 90px) auto 0;
  max-width: 640px;
  text-align: left;
}
.plan-compare h2,
.plan-faq h2 {
  margin: 0 0 18px;
  font: 400 clamp(28px, 3.6vw, 40px)/1.1 var(--display);
  text-align: center;
}
.plan-table {
  overflow-x: auto;
}
.plan-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.plan-table th,
.plan-table td {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.plan-table thead th {
  font: 600 14px var(--text);
  color: var(--ink);
  text-align: center;
}
.plan-table tbody th {
  font-weight: 400;
  color: var(--ink-2);
  text-align: left;
}
.plan-table td {
  width: 88px;
  text-align: center;
  color: var(--moss);
}
.plan-faq {
  margin-top: clamp(48px, 7vw, 80px);
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}
@media (max-width: 720px) {
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
