@font-face {
  font-family: InnerNotePlayfairDisplay;
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url(/assets/fonts/PlayfairDisplay_500Medium.ce154cc670.woff2) format('woff2');
}
@font-face {
  font-family: InnerNoteFigtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Figtree_400Regular.2acd8ba6b5.woff2) format('woff2');
}
@font-face {
  font-family: InnerNoteFigtreeMedium;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/Figtree_500Medium.f60f59ed88.woff2) format('woff2');
}
@font-face {
  font-family: InnerNoteIBMPlexMono;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/IBMPlexMono_400Regular.2b6c3881a0.woff2) format('woff2');
}
@font-face {
  font-family: InnerNoteSpectral;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/Spectral_400Regular.78612dcd4c.woff2) format('woff2');
}
@font-face {
  font-family: InnerNoteMarcellus;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/Marcellus_400Regular.f111264ab0.woff2) format('woff2');
}
:root {
  color-scheme: dark;
  --ground: #0B2837;
  --ink: #F4F5F7;
  --ink-secondary: rgba(244, 245, 247, 0.62);
  --rule: rgba(244, 245, 247, 0.14);
  --control-edge: rgba(244, 245, 247, 0.45);
  --card-edge: rgba(230, 138, 112, 0.70);
  --accent: #B4472E;
  --accent-text: #E68A70;
  --on-accent: #FBF7EF;
  --error: #F08A80;
  --apple: #FFFFFF;
  --on-apple: #000000;
  --focus: #E68A70;
  --paper: #F6F2EA;
  --paper-ink: #2A2620;
  --paper-ink-secondary: #6E665A;
  --paper-rule: rgba(42, 38, 32, 0.10);
  --gutter: 16px;
  --hit: 44px;
  --reading: 640px;
  --column: 680px;
  --site: 1040px;
  --surface: #14374A;
  --answer: 200ms;
  --arrive: 600ms;
  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
  --lift: inset 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent), 0 1px 2px color-mix(in srgb, color-mix(in oklab, var(--ground), black 70%) 50%, transparent), 0 12px 32px -14px color-mix(in srgb, color-mix(in oklab, var(--ground), black 70%) 70%, transparent);
  --lift-raised: inset 0 1px 0 color-mix(in srgb, var(--ink) 9%, transparent), 0 2px 4px color-mix(in srgb, color-mix(in oklab, var(--ground), black 70%) 50%, transparent), 0 22px 48px -18px color-mix(in srgb, color-mix(in oklab, var(--ground), black 70%) 80%, transparent);
  --breath: 6000ms;
}
@media (prefers-contrast: more) {
  :root {
    --ink-secondary: #F4F5F7;
  }
}
*, *::before, *::after { box-sizing: border-box; }
/* What a page hides stays hidden, whatever else sets its display. */
[hidden] { display: none !important; }
html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ground);
  /* The film grain over the ground. */
  background-image: url(/assets/grain.9f249688d5.svg);
  background-size: 180px 180px;
  color: var(--ink);
  font: 1.0625rem/1.375rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Links are words, never orange: the ink, underlined. */
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:focus-visible, .skip:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 12px;
}
/* The ember full stop: the one mark on the line. A page title's stop keeps
   a halo behind it, unseen until the motion section lets it breathe. */
.stop { color: var(--accent-text); }
h1 .stop { position: relative; isolation: isolate; }
h1 .stop::after {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 74%; width: 0.75em; height: 0.75em; translate: -50% -50%;
  border-radius: 999px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-text) 32%, transparent), transparent);
}
/* A section's label above its title, in the accent. */
.label.kicker { color: var(--accent-text); }
/* A short ember rule opens each section, above its label. */
.label.kicker::before { content: ''; display: block; width: 24px; height: 2px; margin-bottom: 12px; background: var(--accent-text); }
.save { color: var(--accent-text); }
.nowrap { white-space: nowrap; }
/* A label: IBM Plex Mono in capitals, tracked, in the secondary colour. */
.label {
  margin: 0;
  color: var(--ink-secondary);
  font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase;
}
.label svg { flex: none; }
/* The way past the bar for a keyboard: shown only when it has focus. */
.skip {
  position: absolute; left: var(--gutter); top: -100%;
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 16px;
  background: var(--ground); color: var(--ink); border: 1px solid var(--control-edge); border-radius: 12px;
  text-decoration: none;
}
.skip:focus { top: var(--gutter); z-index: 3; }
/* Titles set their lines evenly. */
h1, h2 { text-wrap: balance; }

/* The privacy line, as on sign-in: the small lock, then the sentence, both
   in the secondary style. */
.promise {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0;
  color: var(--ink-secondary);
  font: 0.9375rem/1.25rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-wrap: pretty;
}
.promise .lock {
  flex: none; margin-top: 2px;
  width: 16px; height: 16px;
  color: var(--accent-text);
}

/* The bar: the wordmark and the nav, full width, the words kept to the page. */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--gutter), calc((100% - var(--site)) / 2)) 8px;
  border-bottom: 1px solid var(--rule);
  position: relative; z-index: 2;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: var(--hit);
  color: var(--ink-secondary); font: 0.9375rem/1.25rem InnerNoteMarcellus, Georgia, serif;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
/* The wordmark's ember full stop, as the brand sets it ("InnerNote."); the
   name read aloud stays "InnerNote". */
.wordmark::after { content: '.'; content: '.' / ''; color: var(--accent-text); }
.topbar nav ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
/* Under each item, a line in its own colour, kept at nothing until the item
   is under the pointer or is the page you are on; then it grows from the
   centre to the word's width. */
.topbar nav a {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 10px;
  color: var(--ink-secondary); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(50% + 0.95em) / 0 1px;
  background-origin: content-box;
}
.topbar nav a:hover { color: var(--accent-text); background-size: 100% 1px; }
.topbar nav a[aria-current] { color: var(--accent-text); background-size: 100% 1px; }
/* At a desk the bar stays at the top, the marine thinned under a blur. */
@media (min-width: 721px) {
  html { scroll-padding-top: calc(var(--hit) + 32px); }
  body:not(.write-page) .topbar { position: sticky; top: 0; background: var(--ground); view-transition-name: topbar; }
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 721px) {
    body:not(.write-page) .topbar {
      background: color-mix(in srgb, var(--ground) 78%, transparent);
      -webkit-backdrop-filter: blur(18px) saturate(1.2);
      backdrop-filter: blur(18px) saturate(1.2);
    }
  }
}
@media (min-width: 721px) and (prefers-reduced-transparency: reduce) {
  body:not(.write-page) .topbar { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* The foot of every page: the links as labels, the company at the right. */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 24px max(var(--gutter), calc((100% - var(--site)) / 2)) max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.foot a {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 8px;
  color: var(--ink-secondary); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; text-decoration: none;
}
.foot li:first-child a { padding-left: 0; }
.foot a[aria-current='page'] { color: var(--ink); }
.foot a:hover { color: var(--accent-text); text-decoration: underline; }
.foot .imprint { align-self: center; margin: 0; }

/* The primary button: the one orange thing on a page. A link on the content
   pages, a button on the checkout pages, the same shape. */
.store { margin: 0; }
.store-link, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font: 500 1.0625rem/1.375rem InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: none;
  cursor: pointer;
}
.store-link:active, .btn-primary:active { opacity: 0.85; }
/* Under the pointer the primary button gathers a soft ember halo. */
.store-link:not(.store-badge):hover, .btn-primary:not(:disabled):hover {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent), 0 12px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.store-link img { display: block; height: 52px; width: auto; }
.store-badge { padding: 0; background: none; }
/* The quiet button: the ink on a control's edge. */
.btn-quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px;
  border: 1px solid var(--control-edge); border-radius: 12px;
  background: none; color: var(--ink); font: 500 1.0625rem/1.5rem InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: none;
  cursor: pointer;
}
.btn-quiet:active { opacity: 0.85; }
.btn-quiet:not(:disabled):not(.btn-danger):hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
button:focus-visible, input:focus-visible, .link-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
button:disabled { opacity: 0.4; cursor: default; }
/* Delete: the error ink on the quiet shape, never orange. */
.btn-danger { color: var(--error); border-color: var(--error); }
/* A link set as a button, for a choice that changes the page, not the address. */
.link-button {
  padding: 0; min-height: var(--hit); border: 0; background: none; cursor: pointer;
  color: var(--ink); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: underline; text-underline-offset: 0.2em;
}

/* The checkout pages: fields as the app's text fields, 52pt on the control
   edge; the error under its field in the error ink; the status line. */
.field { margin: 24px 0 0; }
.field input {
  display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 0 16px;
  border: 1px solid var(--control-edge); border-radius: 12px;
  background: none; color: var(--ink); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.field input[aria-invalid='true'] { border-color: var(--error); }
.field input::placeholder { color: var(--ink-secondary); }
.field-error, .status { margin: 8px 0 0; color: var(--error); font: 0.9375rem/1.375rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.status { color: var(--ink-secondary); margin-top: 16px; }
.doc .go { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.doc .go:empty, .doc .go:not(:has(:not([hidden]))) { display: none; }
.doc .more { margin: 16px 0 0; }
.doc .sent { margin: 24px 0 0; color: var(--ink); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.signin h2, .account h2, .deleted h2 { margin: 40px 0 0; color: var(--ink); font: 500 1.5rem/1.9rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.signin .promise { margin-top: 40px; }
.turnstile { margin: 24px 0 0; min-height: 65px; }
/* "or", on the rule between the email and the other sign-ins. */
.or { display: flex; align-items: center; gap: 16px; margin: 32px 0 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.google-button { margin: 24px 0 0; min-height: 52px; max-width: 400px; }
/* Sign in with Apple, as Apple draws it on a dark ground: white, black mark and label. */
.btn-apple {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; margin-top: 24px; padding: 0 32px;
  border: 1px solid var(--apple); border-radius: 12px;
  background: var(--apple); color: var(--on-apple); font: 500 1.0625rem/1.375rem InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif;
  cursor: pointer;
}
.btn-apple:active { opacity: 0.85; }
.account .facts { margin-top: 24px; }
.account .facts dd { color: var(--ink); }
/* Stripe's reference, as Stripe writes it, not in capitals. */
.doc .reference { margin-top: 16px; text-transform: none; }
.steps { margin: 16px 0 0; padding-left: 1.4rem; }
.steps li { margin: 8px 0 0; color: var(--ink); font: 1.1875rem/1.875rem InnerNoteSpectral, Georgia, 'Times New Roman', serif; }
.welcome .store { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
/* Until the App Store link exists: an ember outline, never filled (filled
   orange is the thing you press). */
.coming-soon { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 16px; border: 1px solid var(--accent-text); border-radius: 999px; color: var(--accent-text); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; }

/* The home page. */
.wrap { max-width: var(--site); margin: 0 auto; padding: 0 var(--gutter); }
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 40px; align-items: center;
  padding: clamp(32px, 1rem + 3vw, 64px) 0 clamp(40px, 1.5rem + 3vw, 72px); position: relative; isolation: isolate;
}
/* A faint ember glow behind the line, kept inside the hero, so it can never
   push the page sideways. */
.home-hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0 46% 8% 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent) 7%, transparent) 58%, transparent);
}
.home-hero h1 { margin: 20px 0 0; color: var(--ink); font: 500 clamp(2.375rem, 1.5rem + 2.4vw, 3.25rem)/1.08 InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.home-hero h1 > span { display: block; }
/* What it does for you in one plain sentence, in the reading face; the free
   week in the ember; the one button; the one fact about privacy. */
.home-hero .offer { margin: 24px 0 0; max-width: 28rem; color: var(--ink); font: 1.375rem/1.45 InnerNoteSpectral, Georgia, 'Times New Roman', serif; text-wrap: pretty; }
.free { margin: 16px 0 0; color: var(--accent-text); font: 500 1.0625rem/1.5rem InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.home-hero .store { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.safe { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--ink-secondary); font: 0.9375rem/1.25rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.safe .lock { flex: none; width: 16px; height: 16px; color: var(--accent-text); }
/* Below the fold: privacy in three short facts, the three parts in a
   paragraph each, the courses, a word on price, a few questions, the way to
   start. */
.facts-list { margin: 20px 0 0; padding: 0; list-style: none; max-width: 38rem; }
.facts-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.privacy .promise { margin-top: 20px; max-width: 34rem; }
.privacy .more, .teaser .more { margin: 20px 0 0; }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 24px 0 0; }
.parts h3 { margin: 0; color: var(--ink); font: 500 1.5rem/1.9rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.parts .n, .journey .step .n { color: var(--accent-text); }
.parts .n { margin-right: 4px; font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; vertical-align: 0.35em; }
.parts p { margin: 8px 0 0; color: var(--ink-secondary); font: 1rem/1.45 InnerNoteSpectral, Georgia, 'Times New Roman', serif; }
.home .faq { max-width: 40rem; }
.closing { text-align: center; }
.closing h2 { margin: 0; color: var(--ink); font: 500 clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem)/1.18 InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.closing .store { margin: 24px 0 0; }
/* The whole app in one view: a phone for each part, numbered, its real
   screen and its words, the middle one set a little higher. */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.journey li { display: flex; flex-direction: column; min-width: 0; }
.journey li:nth-child(odd) { padding-top: 28px; }
.journey .step { margin: 0 0 12px; color: var(--ink); }
.journey .phone {
  aspect-ratio: 1 / 2; padding: 4px; border-radius: 26px;
  background: color-mix(in oklab, var(--ground), black 55%);
  border: 1px solid var(--rule); box-shadow: var(--lift-raised);
}
.journey .phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.journey p:not(.label) { margin: 12px 0 0; color: var(--ink-secondary); font: 1rem/1.45 InnerNoteSpectral, Georgia, 'Times New Roman', serif; text-wrap: pretty; }
/* Each section takes generous room, more as the window widens. */
.section { padding: clamp(48px, 1.5rem + 4vw, 96px) 0; border-top: 1px solid var(--rule); }
.section > h2, .twocol h2 { margin: 8px 0 0; color: var(--ink); font: 500 clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem)/1.18 InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.section > .lead, .twocol .lead { margin: 12px 0 0; max-width: 38rem; color: var(--ink-secondary); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* The five courses as cards, set as a bento: two wide, then three (on the
   courses page, one across, then two by two). Each is a card: the surface
   thinning downward, a hairline edge, a soft layered shadow. Under the
   pointer it lifts, its edge turns ember and an ember glow rises from its
   corner. */
.courses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.courses li { display: flex; grid-column: span 2; }
.courses li:nth-child(-n+2) { grid-column: span 3; }
.doc .courses li { grid-column: span 3; }
.doc .courses li:first-child { grid-column: span 6; }
.courses a {
  position: relative; isolation: isolate; flex: 1;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; grid-template-areas: 'num chev' 'name name' 'meta meta';
  gap: 8px 16px; min-height: 168px; padding: 20px 24px 22px;
  border: 1px solid var(--rule); border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, transparent), color-mix(in srgb, var(--surface) 34%, transparent)); box-shadow: var(--lift);
  color: var(--ink); text-decoration: none;
}
.courses li:nth-child(-n+2) a { min-height: 200px; }
.courses a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent-text) 16%, transparent), transparent 62%);
}
.courses .num { grid-area: num; color: var(--accent-text); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; }
.courses .name { grid-area: name; align-self: end; font: 500 1.5rem/1.9rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.courses li:nth-child(-n+2) .name { font: 500 clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem)/1.18 InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.courses .meta { grid-area: meta; color: var(--ink-secondary); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; }
.courses .chev { grid-area: chev; color: var(--accent-text); font: 1.25rem/1.8rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.courses a:hover { border-color: var(--card-edge); box-shadow: var(--lift-raised); }
.courses a:hover::before { opacity: 1; }
.courses a:hover .name { color: var(--accent-text); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.twocol .more { margin: 20px 0 0; }
.quiet-link { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid var(--accent-text); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.quiet-link:hover { color: var(--ink); border-color: var(--ink); }

/* A course, a guide, pricing and the content pages: one reading column. */
.doc { max-width: var(--column); margin: 0 auto; padding: 56px var(--gutter) 64px; }
.doc h1 { margin: 6px 0 0; color: var(--ink); font: 500 clamp(2.125rem, 1.6rem + 2vw, 3rem)/1.12 InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.doc .lead { margin: 16px 0 0; color: var(--ink); font: 1.25rem/1.8rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.doc .read, .prose p, .prose li { margin: 16px 0 0; color: var(--ink); font: 1.1875rem/1.875rem InnerNoteSpectral, Georgia, 'Times New Roman', serif; overflow-wrap: break-word; }
.doc h2, .prose h2 { margin: 40px 0 0; color: var(--ink); font: 500 1.5rem/1.9rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.prose h3 { margin: 24px 0 0; color: var(--ink); font: 500 1.25rem/1.6rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.prose h4, .prose h5, .prose h6 { margin: 16px 0 0; color: var(--ink); font: 500 1.0625rem/1.5rem InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.prose ul, .prose ol, .doc .builds { margin: 12px 0 0; padding-left: 1.1rem; }
.prose li, .doc .builds li { margin: 6px 0 0; font: 1.125rem/1.7rem InnerNoteSpectral, Georgia, 'Times New Roman', serif; }
.prose blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--rule); }
.prose blockquote p { color: var(--ink-secondary); }
.prose hr { margin: 40px 0 0; border: 0; border-top: 1px solid var(--rule); }
.prose code { font: 0.9375rem/1.375rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; }
.doc .promise { margin-top: 16px; }
.tracks { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.tracks li { display: grid; grid-template-columns: 12.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tracks .label { padding-top: 4px; }
.tracks p:not(.label) { margin: 0; font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* The twenty-one days: a mark for each, today's in the accent. */
.strip { display: flex; gap: 6px; margin: 14px 0 0; }
.strip i { flex: 1; height: 6px; border-radius: 999px; background: var(--rule); }
.strip i.today { background: var(--accent-text); }
.strip i.kept { background: var(--ink); }
.strip + .label { margin-top: 8px; }
.review {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 40px 0 0; padding: 20px 22px;
  border: 1px solid var(--rule); border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, transparent), color-mix(in srgb, var(--surface) 34%, transparent)); box-shadow: var(--lift);
}
.review .avatar { flex: none; width: var(--hit); height: var(--hit); border-radius: 999px; background: var(--rule); }
.review p:not(.label) { margin: 4px 0 0; color: var(--ink-secondary); font: 1rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.review .who { color: var(--ink); font-family: InnerNoteFigtreeMedium, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 40px 0 0; }
.cta .note { margin: 0; color: var(--ink-secondary); font: 0.9375rem/1.375rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.faq { margin: 0; }
.faq dt { margin: 20px 0 0; color: var(--ink); font: 500 1.125rem/1.6rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.faq dd { margin: 6px 0 0; color: var(--ink-secondary); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.sources { margin: 12px 0 0; padding-left: 1.1rem; }
.sources li { margin: 6px 0 0; color: var(--ink-secondary); font: 1rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-wrap: break-word; }
/* The guides' list, and any list of pages: rows as the app's. */
.rows { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.rows li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rows a { display: block; color: var(--ink); text-decoration: none; }
.rows .name { display: block; font: 500 1.25rem/1.6rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.rows a:hover .name { text-decoration: underline; text-underline-offset: 0.2em; }
.rows .about { display: block; margin: 4px 0 0; color: var(--ink-secondary); font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.rows .label { margin-top: 8px; }
.facts { margin: 16px 0 0; }
.facts div { display: grid; grid-template-columns: 12.5rem 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.facts dt { padding-top: 4px; }
.facts dd { margin: 0; font: 1.0625rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-wrap: break-word; }

/* Pricing. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip { padding: 8px 14px; border: 1px solid var(--accent-text); border-radius: 999px; color: var(--ink); font: 0.75rem/1rem InnerNoteIBMPlexMono, ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.0833em; text-transform: uppercase; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 0; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--rule); border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, transparent), color-mix(in srgb, var(--surface) 34%, transparent)); box-shadow: var(--lift); }
.plan.chosen { border-color: var(--card-edge); box-shadow: var(--lift), 0 0 0 4px color-mix(in srgb, var(--accent-text) 7%, transparent); }
/* The yearly saving, set as a pill. */
.save { display: inline-block; padding: 0 8px; border: 1px solid var(--accent-text); border-radius: 999px; }
.plan .price { margin: 0; color: var(--ink); font: 500 2rem/2.4rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.plan .per { margin: 0; color: var(--ink-secondary); font: 1rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.plan .go { margin: auto 0 0; }
/* The year in context, under the plans: a price comparison, quietly. */
.value { margin: 24px 0 0; color: var(--ink); font: 1rem/1.5rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.fine { margin: 28px 0 0; color: var(--ink-secondary); font: 0.9375rem/1.375rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.fine a { color: var(--ink); }

/* Privacy, Terms, Terms & Privacy and Support: the app's Terms & Privacy
   screen, word for word, at reading width. */
.document { max-width: calc(var(--reading) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 48px; }
/* The page title, a label's step under its date, as the app's header sets it. */
.document h1 { margin: 4px 0 0; color: var(--ink); font: 500 2.125rem/2.5625rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.document .eyebrow { margin-top: 24px; }
.document .promise { margin-top: 16px; }
/* Long reading in Spectral, set as the app sets a page (19 on the 30pt line);
   a long address breaks rather than pushing the page sideways. */
.document p:not(.label):not(.promise), .document li { color: var(--ink); font: 1.1875rem/1.875rem InnerNoteSpectral, Georgia, 'Times New Roman', serif; overflow-wrap: break-word; }
.document .lead { margin: 16px 0 0; }
.document section { margin-top: 32px; }
.document h2 { display: flex; align-items: center; gap: 8px; }
.document section p { margin: 8px 0 0; }
.document section p + p { margin-top: 16px; }
/* Terms & Privacy's way to the full text: rows as the app's list rows. */
.document nav > .label { margin-top: 48px; }
.document .rows { margin-top: 8px; }
.document .rows li { padding: 0; }
.document .rows a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; font: 500 1.0625rem/1.375rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif;
}
.document .rows a::after { content: '›'; color: var(--ink-secondary); font: 1.0625rem/1.375rem InnerNoteFigtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* The 404: one line and the way home. */
.lost { display: grid; grid-template-rows: auto 1fr auto; }
.lost .hero { max-width: calc(var(--reading) + 2 * var(--gutter)); margin: 0 auto; width: 100%; padding: 64px var(--gutter) 32px; }
.lost h1 { margin: 0; color: var(--ink); font: 500 2.125rem/2.5625rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
.lost .hero p { margin: 16px 0 0; }

/* Narrower than a desk: the line first, the three phones under it. */
@media (max-width: 1023px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero::before { inset: 0 24% 50% 0; }
  .journey { max-width: 44rem; }
}
@media (max-width: 720px) {
  .topbar nav { width: 100%; }
  .topbar nav li:first-child a { padding-left: 0; }
  .home-hero { gap: 48px; }
  .home-hero::before { inset: 0 12% 62% 0; }
  .home-hero .offer { font: 1.25rem/1.45 InnerNoteSpectral, Georgia, 'Times New Roman', serif; }
  /* On a phone the three parts stack: the phone small at the left, its
     label and words beside it. */
  .journey { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .journey li, .journey li:nth-child(odd) {
    display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: 'phone .' 'phone step' 'phone text' 'phone .'; column-gap: 16px; padding-top: 0;
  }
  .journey .step { grid-area: step; }
  .journey .phone { grid-area: phone; padding: 3px; border-radius: 18px; }
  .journey .phone img { border-radius: 15px; }
  .journey p:not(.label) { grid-area: text; margin-top: 0; }
  .twocol, .plans, .parts { grid-template-columns: 1fr; }
  /* On a phone the courses stack: a card each, as a row. */
  .courses { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
  .courses li, .courses li:nth-child(-n+2), .doc .courses li, .doc .courses li:first-child { grid-column: auto; }
  .courses a, .courses li:nth-child(-n+2) a {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto; grid-template-rows: auto; grid-template-areas: 'num name chev';
    align-items: center; min-height: 64px; padding: 10px 16px; border-radius: 16px;
  }
  .courses .name, .courses li:nth-child(-n+2) .name { align-self: center; font: 500 1.25rem/1.6rem InnerNotePlayfairDisplay, Georgia, 'Times New Roman', serif; }
  .courses .meta { display: none; }
  .tracks li, .facts div { grid-template-columns: 1fr; gap: 6px; }
}
@media (min-width: 600px) {
  .document { padding-top: 64px; }
}

/* Motion: see webMotion in scripts/site-theme.ts and docs/WEBSITE.md. */
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes rule-draw { from { transform: scaleX(0); } }
@keyframes ember-breath { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes ember-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes save-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-text) 55%, transparent); scale: 1; }
  35% { scale: 1.06; }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent-text) 0%, transparent); scale: 1; }
}
@keyframes underline-in { from { background-size: 0 1px; } }
@keyframes bar-edge { from { border-bottom-color: transparent; } }
@keyframes reading-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* A same-site page change crossfades; at a desk the bar holds still over it. */
  @view-transition { navigation: auto; }
  /* An in-page link glides to its place (the live pages keep the plain jump). */
  html:has(> body:not(.checkout, .account, .welcome, .write-page)) { scroll-behavior: smooth; }

  /* Answers to the pointer and the keyboard: colour, edge and shadow ease in
     over 200ms; a course card lifts 2px, the primary button 1px. */
  a, button, .wordmark { transition: color var(--answer) ease, background-color var(--answer) ease, border-color var(--answer) ease, box-shadow var(--answer) ease, translate var(--answer) var(--ease); }
  .topbar nav a { transition: color var(--answer) ease, background-size 240ms var(--ease); }
  .courses a::before { transition: opacity 240ms ease; }
  @media (hover: hover) {
    .courses a:hover { translate: 0 -2px; }
    .store-link:not(.store-badge):hover, .btn-primary:not(:disabled):hover { translate: 0 -1px; }
  }
  /* The page you are on: its line grows from the centre as the page opens. */
  .topbar nav a[aria-current] { animation: underline-in 600ms var(--ease) 210ms both; }

  /* The ember breathes: the wordmark's full stop dims and returns, a title's
     stop gathers a halo and lets it go, once every 6s. Never on /write,
     where someone is typing. */
  body:not(.write-page) .wordmark::after { animation: ember-breath var(--breath) ease-in-out infinite; }
  h1 .stop::after { animation: ember-glow var(--breath) ease-in-out infinite; }

  /* A page's head arrives in stages: each part rises 14px and settles. */
  :is(.doc, .doc > article, .document) > .label:first-child, .home-hero .pitch > .kicker { animation: rise 600ms var(--ease) 0ms both; }
  .home-hero h1 > span:first-child, :is(.doc, .doc > article, .document) > h1 { animation: rise 600ms var(--ease) 70ms both; }
  .home-hero h1 > span:last-child, :is(.doc, .doc > article) > .lead, .document > .eyebrow { animation: rise 600ms var(--ease) 140ms both; }
  .home-hero .offer { animation: rise 600ms var(--ease) 210ms both; }
  .home-hero .free { animation: rise 600ms var(--ease) 280ms both; }
  .home-hero .store { animation: rise 600ms var(--ease) 350ms both; }
  .home-hero .safe { animation: rise 600ms var(--ease) 420ms both; }
  :is(.home-hero .pitch, .doc, .doc > article, .document) > .kicker:first-child::before { transform-origin: 0 50%; animation: rule-draw 600ms var(--ease) 140ms both; }
  /* The three phones follow the line, a step apart. */
  @media (min-width: 721px) {
    .journey > li:nth-child(1) { animation: rise 600ms var(--ease) 385ms both; }

    .journey > li:nth-child(2) { animation: rise 600ms var(--ease) 490ms both; }

    .journey > li:nth-child(3) { animation: rise 600ms var(--ease) 595ms both; }

  }

  /* Pricing: the yearly saving pulses once, slowly, after the plans arrive. */
  .plan .save { animation: save-pulse 1800ms ease-out 880ms 1 both; }
}

/* As it scrolls in, each section and card rises 14px into place over the
   next 120px of scrolling, the second and third of a row a step
   behind. Only where the browser drives this itself; elsewhere everything is
   simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section:not(.twocol) > :is(.kicker, h2, .lead, .promise, .more, .faq, .free, .store),
    .facts-list > li,
    .parts > div,
    .twocol > div,
    :is(.courses, .rows) > li,
    .plans > .plan,
    .doc > :is(h2, .read, .builds, .tracks, .strip, .review, .cta, .faq, .chips, .fine, .facts),
    .doc > .label:not(:first-child),
    .doc > article > .review,
    .document > :is(section, nav) {
      animation: rise var(--ease) both;
      animation-timeline: view();
      animation-range: entry var(--stagger, 0px) entry calc(var(--stagger, 0px) + 120px);
    }
    .twocol > div > .kicker::before,
    .section:not(.twocol) > .kicker::before {
      transform-origin: 0 50%;
      animation: rule-draw var(--ease) both;
      animation-timeline: view();
      animation-range: entry calc(var(--stagger, 0px) + 24px) entry calc(calc(var(--stagger, 0px) + 24px) + 120px);
    }
    /* On a phone the home page's three parts stack below the fold: they rise as they come. */
    @media (max-width: 720px) {
      .journey > li { animation: rise var(--ease) both; animation-timeline: view(); animation-range: entry 0px entry calc(0px + 120px); }
    }
    :is(.twocol, .plans, .parts) > :nth-child(2), .courses > li:nth-child(2), .courses > li:nth-child(4) { --stagger: 24px; }
    .parts > :nth-child(3) { --stagger: 48px; }
    .courses > li:nth-child(5) { --stagger: 48px; }
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* At a desk the bar finds its edge in the first 48px of scrolling. */
    @media (min-width: 721px) {
      body:not(.write-page) .topbar { animation: bar-edge linear both; animation-timeline: scroll(root); animation-range: 0px 48px; }
    }
    /* Long reading pages: a thin ember line across the top, as far as you have read. */
    body:is(.legal, .guide, .page)::before {
      content: ''; position: fixed; z-index: 4; inset: env(safe-area-inset-top, 0px) 0 auto; height: 2px;
      background: var(--accent-text); transform-origin: 0 50%; pointer-events: none;
      animation: reading-line linear both; animation-timeline: scroll(root);
    }
  }
}

/* Reduce motion: nothing moves, nothing loops, every state is its last. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root { --ground: #fff; --ink: #000; --ink-secondary: #333; --rule: #ccc; --accent-text: #000; --error: #000; }
  .topbar, .foot, .skip { display: none; }
  body { background-image: none; }
  .home-hero::before, body::before { display: none; }
  .courses a, .plan, .review, .journey .phone { box-shadow: none; background: none; }
}
