/* Focus Forward — brand tokens + site styles (mobile-first)
   Tokens mirror section 13 of /brand/brand-guide.md. Every color, font, radius,
   shadow and spacing value below comes from these variables. */

/* Self-hosted fonts (variable woff2 from Google Fonts, SIL Open Font License).
   One file per subset covers every weight we use. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/league-spartan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/league-spartan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colors */
  --ff-cream: #F6EFE4;
  --ff-near-black: #1F1F1F;
  --ff-rust: #B5532B;
  --ff-rust-deep: #AD4F28;
  --ff-sand: #D7B483;
  --ff-olive: #2F5D3B;

  --ff-bg: var(--ff-cream);
  --ff-text: var(--ff-near-black);
  --ff-accent: var(--ff-rust);           /* arrows, icons, graphics */
  --ff-action: var(--ff-rust-deep);      /* button backgrounds */
  --ff-accent-text: var(--ff-rust-deep); /* rust-colored text on cream */
  --ff-surface-2: var(--ff-sand);
  --ff-accent-2: var(--ff-olive);
  --ff-inverse-bg: var(--ff-near-black);
  --ff-inverse-text: var(--ff-cream);

  /* Type */
  --ff-font-heading: "League Spartan", system-ui, sans-serif;
  --ff-font-body: "Inter", system-ui, sans-serif;
  --ff-heading-tracking: -0.03em;

  /* Shape */
  --ff-radius-card: 12px;
  --ff-radius-button: 8px;
  --ff-radius-sm: 6px;
  --ff-border: 1px solid var(--ff-sand);
  --ff-shadow: 0 6px 20px rgba(31, 31, 31, 0.08);

  /* Spacing (8px grid) */
  --ff-space-1: 8px;
  --ff-space-2: 16px;
  --ff-space-3: 24px;
  --ff-space-4: 32px;
  --ff-space-5: 48px;
  --ff-space-6: 64px;
  --ff-space-7: 96px;

  /* Layout */
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ff-bg);
  color: var(--ff-text);
  font-family: var(--ff-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ff-accent-text); }

h1, h2, h3 {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ff-heading-tracking);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--ff-accent);
  outline-offset: 3px;
  border-radius: var(--ff-radius-sm);
}

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

.nowrap { white-space: nowrap; }

/* Small UI icons: Phosphor Bold SVGs used as masks, so they take the text color.
   Each user sets --icon. Paths are root-absolute so they resolve the same everywhere. */
.icon,
.btn .arrow,
.checks li::before,
.faq-list summary::after,
.spread-num--arrow::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.skip-link {
  position: absolute;
  left: var(--ff-space-2);
  top: -100px;
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
  padding: var(--ff-space-1) var(--ff-space-2);
  border-radius: var(--ff-radius-button);
  z-index: 10;
}
.skip-link:focus { top: var(--ff-space-2); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--ff-space-2);
}

section { padding: var(--ff-space-6) 0; }

.lede { font-size: 1.2rem; max-width: 44ch; }

/* Buttons: Rust Deep, Cream text, Inter 700, 8px corners, arrow at the end */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--ff-space-1);
  background: var(--ff-action);
  color: var(--ff-inverse-text);
  font-family: var(--ff-font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px var(--ff-space-3);
  border-radius: var(--ff-radius-button);
  border: 2px solid var(--ff-action);
  transition: box-shadow 0.15s ease;
}
.btn .arrow { --icon: url("/images/icons/arrow-right.svg"); width: 1.1em; height: 1.1em; transition: transform 0.15s ease; }
.btn:hover { box-shadow: var(--ff-shadow); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[aria-disabled="true"] { background: var(--ff-surface-2); border-color: var(--ff-surface-2); color: var(--ff-text); cursor: default; }
.btn[aria-disabled="true"]:hover,
.price-card .btn[aria-disabled="true"]:hover { box-shadow: none; background: var(--ff-surface-2); border-color: var(--ff-surface-2); color: var(--ff-text); }
.btn--ghost { background: transparent; color: var(--ff-text); border-color: var(--ff-text); }
.btn--ghost:hover { background: var(--ff-inverse-bg); color: var(--ff-inverse-text); }

/* Launch price bar: a fixed height from the first paint, so filling in the price never moves the page */
.launch-bar { background: var(--ff-inverse-bg); color: var(--ff-inverse-text); font-size: 0.875rem; font-weight: 600; }
.launch-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 var(--ff-space-2);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.launch-bar strong { color: var(--ff-sand); font-weight: 700; }
.launch-bar .arrow { --icon: url("/images/icons/arrow-right.svg"); width: 1em; height: 1em; color: var(--ff-accent); transition: transform 0.15s ease; }
.launch-bar a:hover [data-launch-text] { text-decoration: underline; text-underline-offset: 3px; }
.launch-bar a:hover .arrow { transform: translateX(3px); }
.launch-bar a:focus-visible { outline-offset: -5px; } /* inside the bar; Rust on Near Black is 3.3:1 */

/* Header */
.site-header { padding: var(--ff-space-3) 0; position: relative; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: var(--ff-space-2); }
.logo { display: block; flex: none; }
.logo img { width: 170px; }
.site-header .logo { margin-right: auto; }
/* Phones: logo + Menu. The buy button lives in the menu (and the hero + buy bar). Tablets add it back. */
.site-header .btn { display: none; }
.site-nav { display: none; }
.menu-toggle {
  min-height: 44px;
  padding: 0 var(--ff-space-2);
  border: 2px solid var(--ff-text);
  border-radius: var(--ff-radius-button);
  background: transparent;
  color: var(--ff-text);
  font: 700 0.95rem/1 var(--ff-font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.menu-toggle:hover { background: var(--ff-inverse-bg); color: var(--ff-inverse-text); }

/* Menu (phones + tablets): Near Black, the links in big type, the buy button at the bottom */
html:has(.menu[open]) { overflow: hidden; }
.menu {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
}
.menu[open] { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.menu::backdrop { background: transparent; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: var(--ff-space-2); padding-top: var(--ff-space-3); padding-bottom: var(--ff-space-3); }
.menu-links { list-style: none; margin: var(--ff-space-4) 0 0; padding: 0; display: grid; gap: var(--ff-space-1); }
.menu-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--ff-font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.menu-links .arrow { --icon: url("/images/icons/arrow-right.svg"); width: 0.55em; height: 0.55em; color: var(--ff-accent); transition: transform 0.15s ease; }
.menu-links a:hover .arrow { transform: translateX(6px); }
.menu-links a[aria-current="page"] { color: var(--ff-sand); }
.menu-foot { margin-top: auto; padding-top: var(--ff-space-5); padding-bottom: var(--ff-space-4); display: grid; justify-items: start; gap: var(--ff-space-3); }
.menu .btn:hover { background: var(--ff-inverse-text); color: var(--ff-text); border-color: var(--ff-inverse-text); }
.menu .btn[aria-disabled="true"]:hover { background: var(--ff-surface-2); border-color: var(--ff-surface-2); color: var(--ff-text); }
.menu-social { display: inline-flex; align-items: center; gap: var(--ff-space-1); color: inherit; font-weight: 600; text-decoration: none; }
.menu-social:hover { text-decoration: underline; }
.menu-close .icon { --icon: url("/images/icons/x.svg"); }

/* Scroll progress: the brand arrow grows across the page as you read.
   Uses scroll-driven animations; browsers without them simply don't show it. */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    overflow: hidden;
    pointer-events: none;
    z-index: 40;
  }
  .scroll-progress span {
    display: block;
    position: relative;
    height: 100%;
    transform: translateX(-100%);
    animation: ff-progress linear both;
    animation-timeline: scroll(root);
  }
  /* Shaft + head, same proportions as the arrow in the logo */
  .scroll-progress span::before {
    content: "";
    position: absolute;
    left: 0;
    right: 9px;
    top: 5px;
    height: 4px;
    background: var(--ff-accent);
  }
  .scroll-progress span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--ff-accent);
    clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 38% 65%, 38% 35%);
  }
}
@keyframes ff-progress { to { transform: translateX(0); } }

/* Hero */
.hero { padding: var(--ff-space-4) 0 var(--ff-space-6); overflow-x: clip; }
.hero .wrap { display: grid; gap: var(--ff-space-5); align-items: center; }
.hero h1 { margin-bottom: var(--ff-space-3); max-width: 12ch; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--ff-accent); }
.hero .lede { margin-bottom: var(--ff-space-4); }
.hero-product {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.25rem;
  color: var(--ff-accent-text);
  margin-bottom: var(--ff-space-2);
}
.hero-meta { margin: var(--ff-space-2) 0 0; font-size: 0.95rem; font-weight: 500; text-wrap: pretty; }

/* The real planner pages, like two sheets on a desk */
.hero-pages {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 10 / 9;
}
.hero-pages .page {
  position: absolute;
  display: block;
  width: 62%;
  border: var(--ff-border);
  border-radius: var(--ff-radius-sm);
  box-shadow: var(--ff-shadow);
}
.hero-pages .page img { width: 100%; border-radius: inherit; }

/* Zoom links on the planner pages: a small badge in the corner says they open bigger */
.page[data-zoom], .tour-zoom { cursor: zoom-in; }
.tour-zoom { display: block; }
.zoom-badge {
  position: absolute;
  right: var(--ff-space-1);
  bottom: var(--ff-space-1);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-bg);
  color: var(--ff-text);
  box-shadow: var(--ff-shadow);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.zoom-badge .icon { --icon: url("/images/icons/magnifying-glass-plus.svg"); width: 18px; height: 18px; }
.tour-zoom .zoom-badge { z-index: 1; } /* above the tour highlight's dim */
a:hover > .zoom-badge,
a:focus-visible > .zoom-badge { background: var(--ff-action); color: var(--ff-inverse-text); }

/* Zoom lightbox: Near Black over the page, the planner page fit to the screen.
   It never closes on scroll and never blocks gestures, so phones keep native pinch-zoom. */
html:has(.zoom[open]) { overflow: hidden; }
.zoom {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--ff-inverse-bg) 94%, transparent);
  color: var(--ff-inverse-text);
}
.zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.zoom::backdrop { background: transparent; }
.zoom-bar, .zoom-foot { display: flex; align-items: center; gap: var(--ff-space-1); padding: var(--ff-space-2); }
.zoom-title { margin: 0 auto 0 0; font-family: var(--ff-font-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.zoom-count { margin-left: var(--ff-space-1); font-family: var(--ff-font-body); font-size: 0.875rem; font-weight: 600; color: var(--ff-sand); letter-spacing: 0; }
.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ff-inverse-text) 35%, transparent);
  border-radius: var(--ff-radius-button);
  background: transparent;
  color: var(--ff-inverse-text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.icon-btn:hover { background: color-mix(in srgb, var(--ff-inverse-text) 14%, transparent); }
.icon-btn .icon { width: 20px; height: 20px; }
.zoom-close .icon { --icon: url("/images/icons/x.svg"); }
.zoom-size .icon { --icon: url("/images/icons/magnifying-glass-plus.svg"); }
.zoom-size[aria-pressed="true"] .icon { --icon: url("/images/icons/magnifying-glass-minus.svg"); }
.zoom-prev { --icon: url("/images/icons/arrow-left.svg"); }
.zoom-next { --icon: url("/images/icons/arrow-right.svg"); }
.zoom-stage { display: grid; grid-template-rows: 100%; place-items: center; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 var(--ff-space-2); }
.zoom-stage img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--ff-radius-sm);
  box-shadow: var(--ff-shadow);
}
.zoom-foot { justify-content: space-between; }
.zoom-hint { margin: 0; font-size: 0.875rem; font-weight: 500; color: color-mix(in srgb, var(--ff-inverse-text) 80%, transparent); }
.zoom-hint--mouse, .zoom-size { display: none; }
/* Mouse + room to read: the page can open bigger and scroll */
@media (min-width: 720px) and (pointer: fine) {
  .zoom-hint--touch { display: none; }
  .zoom-hint--mouse, .zoom-size { display: grid; }
  .zoom-hint--mouse { display: inline; }
  .zoom-stage img { cursor: zoom-in; }
  .zoom.is-full .zoom-stage { grid-template-rows: auto; place-items: start center; padding-bottom: var(--ff-space-4); }
  .zoom.is-full .zoom-stage img { width: min(1100px, 100%); max-height: none; cursor: zoom-out; }
  .zoom.is-full .zoom-hint { visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
  .zoom[open] { animation: zoom-fade 0.2s ease; }
  .menu[open] { animation: zoom-fade 0.2s ease; }
  .notfound-arrow { animation: notfound-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .menu[open] .menu-links li { animation: menu-rise 0.35s ease backwards; animation-delay: calc(var(--i) * 50ms + 50ms); }
  .zoom[open] .zoom-stage img { animation: zoom-grow 0.25s ease; }
}
@keyframes zoom-fade { from { opacity: 0; } }
@keyframes zoom-grow { from { transform: scale(0.96); } }
@keyframes notfound-in { from { opacity: 0; translate: -40px 0; } }
@keyframes menu-rise { from { opacity: 0; transform: translateY(12px); } }
.page--weekly { top: 0; right: 0; transform: rotate(4deg); }
.page--daily { bottom: 0; left: 0; transform: rotate(-3deg); }

/* 404: the brand arrow, cropped off the right edge, points back into the site */
.notfound { position: relative; overflow: hidden; padding: var(--ff-space-6) 0 var(--ff-space-7); }
.notfound .wrap { position: relative; }
.notfound-arrow { display: block; width: 96px; margin: 0 0 var(--ff-space-4) var(--ff-space-2); fill: var(--ff-accent); }
.notfound-code { margin: 0 0 var(--ff-space-2); font-size: 0.875rem; font-weight: 600; color: var(--ff-accent-text); letter-spacing: 0.02em; }
.notfound h1 { max-width: 10ch; margin-bottom: var(--ff-space-2); }
.notfound h1 span { display: inline-block; }
.notfound h1 .accent { color: var(--ff-accent); }
.notfound .lede { margin-bottom: var(--ff-space-4); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: var(--ff-space-2); }

/* Problem */
.problem { background: var(--ff-inverse-bg); color: var(--ff-inverse-text); }
.pain-list { list-style: none; padding: 0; margin: var(--ff-space-3) 0 0; display: grid; gap: var(--ff-space-3); max-width: 46ch; }
.pain-list strong { display: block; font-family: var(--ff-font-heading); font-weight: 700; letter-spacing: -0.02em; font-size: 1.3rem; margin-bottom: 0.2em; }

/* Brain dump sort (homepage). Notes sit scattered by CSS (--x, --y, --r);
   js/motion.js moves them into the slots and the dump as --sorted goes 0 → 1. */
.sort-grid { display: grid; gap: var(--ff-space-4); grid-template-areas: "copy" "board" "promise"; }
.sort-copy { grid-area: copy; }
.sort { grid-area: board; margin: 0; display: grid; gap: var(--ff-space-2); --sorted: 0; }
.sort-grid .promise { grid-area: promise; }
.sort-caption {
  display: grid;
  margin: 0;
  font-family: var(--ff-font-heading);
  font-weight: 800;
  letter-spacing: var(--ff-heading-tracking);
  font-size: 1.6rem;
  line-height: 1.1;
}
.sort-caption .cap { grid-area: 1 / 1; }
.cap--messy { opacity: calc(1 - var(--sorted)); }
.cap--sorted { opacity: var(--sorted); color: var(--ff-surface-2); }
.sort-board {
  position: relative;
  display: grid;
  gap: var(--ff-space-3);
  padding: var(--ff-space-3);
  background: var(--ff-bg);
  color: var(--ff-text);
  border-radius: var(--ff-radius-card);
}
.sort-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ff-space-1); }
.slot { display: flex; align-items: center; gap: var(--ff-space-2); min-height: 44px; }
.slot-line { flex: 1; align-self: stretch; border-bottom: 1px dashed var(--ff-sand); }
/* Tags copy the planner page's own labels */
.slot-tag {
  flex: none;
  min-width: 84px;
  padding: 6px 8px 5px;
  border-radius: var(--ff-radius-sm);
  background: color-mix(in srgb, var(--ff-sand) 45%, var(--ff-cream));
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.slot-tag--main { background: var(--ff-action); color: var(--ff-inverse-text); }
.sort-dump {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  border: var(--ff-border);
  border-radius: var(--ff-radius-button);
  background-image: radial-gradient(var(--ff-sand) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
}
.dump-count { align-self: flex-end; padding: 2px 6px; border-radius: 4px; background: var(--ff-bg); font-weight: 600; font-size: 0.9rem; opacity: var(--sorted); }
.sort-notes { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.sort-note {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  transform: rotate(var(--r));
  padding: 8px 12px 7px;
  background: var(--ff-cream);
  border: var(--ff-border);
  border-radius: var(--ff-radius-sm);
  box-shadow: var(--ff-shadow);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.promise {
  font-size: 1.25rem;
  font-weight: 500;
  border-left: 4px solid var(--ff-accent);
  padding-left: var(--ff-space-2);
  max-width: 46ch;
  margin: 0;
}

/* Feature cards */
.inside .lede { margin-top: calc(-1 * var(--ff-space-1)); }
.cards { display: grid; gap: var(--ff-space-2); margin-top: var(--ff-space-4); }
.card {
  background: var(--ff-bg);
  border: var(--ff-border);
  border-radius: var(--ff-radius-card);
  box-shadow: var(--ff-shadow);
  padding: var(--ff-space-3);
}
/* Phosphor duotone: Rust outline over a Sand fill */
.card svg { width: 48px; height: 48px; fill: var(--ff-accent); margin-bottom: var(--ff-space-2); }
.card .duo-bg { fill: var(--ff-surface-2); }
.card p { margin: 0; }

/* Steps */
.how { background: var(--ff-surface-2); }
.steps-wrap { position: relative; margin-top: var(--ff-space-4); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--ff-space-2); }
/* Phones: number on the left, so the arrow can run down the number column */
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: var(--ff-space-2);
  align-items: start;
  background: var(--ff-bg);
  border-radius: var(--ff-radius-card);
  padding: var(--ff-space-3);
}
.step-num {
  grid-row: span 2;
  position: relative;
  z-index: 2; /* above the arrow */
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
  font-family: var(--ff-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  padding-top: 3px; /* League Spartan sits high in its box */
}
.steps h3 { margin: 0.35em 0 0.25em; }
.steps p { margin: 0; }
/* Arrow from step 1 to step 3, drawn as the steps scroll into view */
.steps-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.steps-arrow-line { fill: none; stroke: var(--ff-accent); stroke-width: 4; }
.steps-arrow-head { fill: var(--ff-accent); }
/* Draws once when the steps come into view (js/motion.js adds the classes).
   A scroll-linked view timeline looked the same but made every layout slower on phones. */
@media (prefers-reduced-motion: no-preference) {
  .steps-wrap.will-draw .steps-arrow-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .steps-wrap.will-draw .steps-arrow-head { opacity: 0; transition: opacity 0.2s ease 0.8s; }
  .steps-wrap.will-draw.is-drawn .steps-arrow-line { stroke-dashoffset: 0; }
  .steps-wrap.will-draw.is-drawn .steps-arrow-head { opacity: 1; }
}

/* Founder note */
.founder blockquote {
  margin: 0;
  max-width: 640px;
  font-size: 1.2rem;
}
.founder blockquote p:first-child {
  font-family: var(--ff-font-heading);
  font-weight: 800;
  letter-spacing: var(--ff-heading-tracking);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.1;
}
.founder cite { display: block; font-style: normal; font-weight: 700; margin: var(--ff-space-3) 0; }

/* Pricing */
.pricing { padding-top: 0; }
.problem + .pricing { padding-top: var(--ff-space-6); } /* keep two dark blocks from touching */
.price-card {
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
  border-radius: var(--ff-radius-card);
  padding: var(--ff-space-5) var(--ff-space-3);
  text-align: center;
}
.price-card .product-name { font-family: var(--ff-font-heading); font-weight: 700; letter-spacing: -0.02em; font-size: 1.4rem; margin-bottom: 0.25em; }
.price { font-family: var(--ff-font-heading); font-weight: 800; letter-spacing: var(--ff-heading-tracking); font-size: 3.5rem; line-height: 1; margin: var(--ff-space-2) 0 var(--ff-space-1); }
.price-note { color: var(--ff-surface-2); font-weight: 600; min-height: 1.6em; }
.checks { list-style: none; padding: 0; margin: var(--ff-space-3) 0 var(--ff-space-4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ff-space-1) var(--ff-space-3); }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks li::before { --icon: url("/images/icons/check.svg"); color: var(--ff-accent); }
.price-card .btn:hover { background: var(--ff-inverse-text); color: var(--ff-text); border-color: var(--ff-inverse-text); }
.coming-soon { text-align: center; margin: var(--ff-space-3) auto 0; max-width: 52ch; }

/* FAQ */
.faq-list { margin-top: var(--ff-space-4); display: grid; gap: var(--ff-space-2); max-width: 760px; }
.faq-list details {
  background: var(--ff-bg);
  border: var(--ff-border);
  border-radius: var(--ff-radius-card);
  padding: 0 var(--ff-space-3);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: var(--ff-space-2) 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ff-space-2);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { --icon: url("/images/icons/plus.svg"); color: var(--ff-accent); width: 18px; height: 18px; }
.faq-list details[open] summary::after { --icon: url("/images/icons/minus.svg"); }
/* Answers slide open where the browser supports animating to auto height */
.faq-list details { interpolate-size: allow-keywords; }
.faq-list details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }
.faq-list details p { padding-bottom: var(--ff-space-2); margin: 0; overflow-wrap: anywhere; } /* long emails wrap on narrow phones */

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--ff-inverse-bg); color: var(--ff-inverse-text); padding: var(--ff-space-6) 0 var(--ff-space-5); }
.site-footer .wrap { position: relative; }
/* Oversized, cropped brand arrow */
.footer-arrow { position: absolute; right: -48px; bottom: -56px; width: 180px; fill: var(--ff-accent); pointer-events: none; }
.footer-line {
  font-family: var(--ff-font-heading);
  font-weight: 800;
  letter-spacing: var(--ff-heading-tracking);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 var(--ff-space-4);
}
.site-footer .logo img { width: 160px; margin-bottom: var(--ff-space-4); }
.site-footer a { color: var(--ff-inverse-text); }
.footer-nav { list-style: none; padding: 0; margin: var(--ff-space-3) 0; display: flex; flex-wrap: wrap; gap: var(--ff-space-1) var(--ff-space-3); }
.footer-nav a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.icon--instagram { --icon: url("/images/icons/instagram-logo.svg"); width: 1.1em; height: 1.1em; }
.footer-nav a:hover { text-decoration: underline; }
.small { font-size: 0.9rem; opacity: 0.75; margin: 0; }

/* Phone buy bar (js/main.js adds .is-visible between the hero and pricing) */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ff-space-2);
  padding: 12px var(--ff-space-2);
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.buy-bar.is-visible { transform: none; visibility: visible; transition: transform 0.25s ease; }
.buy-bar[hidden] { display: none; }
.buy-bar p { margin: 0; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.buy-bar strong { display: block; font-family: var(--ff-font-heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.buy-bar .btn { flex: none; padding: 12px var(--ff-space-2); font-size: 0.95rem; }
.buy-bar .btn:hover { background: var(--ff-inverse-text); color: var(--ff-text); border-color: var(--ff-inverse-text); }
@media (max-width: 719px) {
  html { scroll-padding-bottom: 88px; } /* keep focused items clear of the buy bar */
}

/* Planner page: page tour. Phones: a card per page, a close-up above each item.
   Tablet + desktop (below): the page image stays pinned and js/main.js lights up
   the area that matches the item crossing the middle of the screen. */
.spread .lede { margin-top: calc(-1 * var(--ff-space-1)); }
.tour { display: grid; gap: var(--ff-space-2); margin-top: var(--ff-space-4); }
.tour-sheet { display: none; }
.spread-page {
  background: var(--ff-bg);
  border: var(--ff-border);
  border-radius: var(--ff-radius-card);
  box-shadow: var(--ff-shadow);
  padding: var(--ff-space-4) var(--ff-space-3);
}
.spread-label {
  display: inline-block;
  background: var(--ff-inverse-bg);
  color: var(--ff-inverse-text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: var(--ff-radius-sm);
  margin-bottom: var(--ff-space-2);
}
.spread-title { font-size: 1.7rem; margin-bottom: var(--ff-space-1); }
.tour-lede { font-weight: 500; margin-bottom: var(--ff-space-3); }
.spread-item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--ff-space-2); align-items: start; }
.spread-item + .spread-item { margin-top: var(--ff-space-3); padding-top: var(--ff-space-3); border-top: var(--ff-border); }
.tour-crop {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: var(--ff-space-2);
  border: var(--ff-border);
  border-radius: var(--ff-radius-sm);
}
/* js/main.js sets src as the close-up nears the screen; its space is held until then */
.tour-crop:not([src]) { visibility: hidden; }
/* Close-ups of tall areas show the top and fade out */
.tour-crop--cut {
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
/* One highlight per area, sized as fractions of the page. The huge shadow dims the
   rest of the page; the paper's overflow: hidden keeps it inside the sheet. */
.tour-hl {
  position: absolute;
  left: calc(var(--l) * 100%);
  top: calc(var(--t) * 100%);
  width: calc(var(--w) * 100%);
  height: calc(var(--h) * 100%);
  border-radius: var(--ff-radius-sm);
  outline: 3px solid var(--ff-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ff-near-black) 22%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tour-hl.is-on { opacity: 1; }
/* While the tour runs, the number of the item being shown turns Rust */
.tour.is-live .spread-num { background: var(--ff-surface-2); color: var(--ff-text); transition: background-color 0.3s ease, color 0.3s ease; }
.tour.is-live .spread-item.is-active .spread-num { background: var(--ff-action); color: var(--ff-inverse-text); }
.spread-num {
  flex: none;
  min-width: 36px;
  padding: 7px 6px 5px;
  border-radius: var(--ff-radius-sm);
  background: var(--ff-action);
  color: var(--ff-inverse-text);
  font-family: var(--ff-font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  text-align: center;
}
.spread-num--arrow { padding: 6px; }
.spread-num--arrow::before { --icon: url("/images/icons/arrow-right.svg"); display: block; width: 14px; height: 0.85rem; margin: 0 auto; }
.spread-item h4 { font-family: var(--ff-font-heading); font-weight: 700; letter-spacing: -0.02em; font-size: 1.2rem; margin: 0 0 0.2em; }
.spread-item p { margin: 0; }

/* Tablet + desktop */
@media (min-width: 720px) {
  section { padding: var(--ff-space-7) 0; }
  .logo img { width: 210px; }
  .site-header { position: sticky; top: 0; background: var(--ff-bg); padding: var(--ff-space-2) 0; }
  .site-header .btn { display: inline-flex; font-size: 1rem; padding: 14px var(--ff-space-3); }
  .scroll-progress { position: absolute; top: auto; bottom: -7px; }
  html { scroll-padding-top: 96px; } /* keep anchors and focus clear of the sticky header */
  .buy-bar { display: none; }
  .footer-arrow { width: 400px; right: -24px; bottom: -96px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: block; }
  .step-num { margin-bottom: var(--ff-space-2); }
  .steps h3 { margin-top: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tour { gap: var(--ff-space-7); margin-top: var(--ff-space-5); }
  .tour-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--ff-space-5);
    align-items: start;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .tour-sheet { display: block; position: sticky; top: 112px; }
  /* As wide as the column, but never taller than the screen below the header */
  .tour-paper {
    position: relative;
    width: min(100%, calc((100vh - 112px - var(--ff-space-4)) * 720 / 932));
    margin: 0 auto;
    border: var(--ff-border);
    border-radius: var(--ff-radius-sm);
    box-shadow: var(--ff-shadow);
    overflow: hidden;
  }
  .tour-crop { display: none; }
  .tour-items .spread-item { min-height: 26vh; } /* scroll room, so each area gets its moment */
  .price-card { padding: var(--ff-space-6) var(--ff-space-5); }
}

@media (min-width: 960px) {
  .notfound { padding: var(--ff-space-7) 0; min-height: 70vh; display: flex; align-items: center; }
  .notfound .wrap { width: 100%; }
  .notfound-arrow { position: absolute; top: 50%; right: -120px; width: 560px; margin: 0; transform: translateY(-50%); }
  .menu-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { list-style: none; margin: 0 var(--ff-space-2) 0 0; padding: 0; display: flex; gap: var(--ff-space-4); }
  .site-nav a { color: var(--ff-text); font-weight: 600; font-size: 0.95rem; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .site-nav a:hover { text-decoration-line: underline; text-decoration-color: var(--ff-accent); }
  .site-nav a[aria-current="page"] { color: var(--ff-accent-text); text-decoration-line: underline; }
  .hero { padding: var(--ff-space-5) 0 var(--ff-space-7); }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; }
  .hero-pages { width: 120%; max-width: none; margin: 0; }
  .sort-grid {
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas: "copy board" "promise board";
    column-gap: var(--ff-space-6);
    row-gap: var(--ff-space-4);
    align-items: start;
  }
  .sort { align-self: center; }
  /* Desktop with room to spare: the section holds still while the scroll sorts the notes */
  .problem--sort.is-scrub .sort-track::after { content: ""; display: block; height: 70vh; } /* scroll room while the grid is stuck */
  .problem--sort.is-scrub .sort-grid { position: sticky; top: 112px; } /* js/motion.js centers it */
  .faq .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: var(--ff-space-6); align-items: start; }
  .faq h2 { position: sticky; top: 112px; }
  .faq-list { margin-top: 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow, .buy-bar, .buy-bar.is-visible { transition: none; }
  .faq-list details::details-content { transition: none; }
  .tour-hl, .tour.is-live .spread-num { transition: none; }
  .btn:hover .arrow { transform: none; }
  .launch-bar .arrow { transition: none; }
  .zoom-badge, .icon-btn { transition: none; }
  .menu-toggle, .menu-links .arrow { transition: none; }
  .menu-links a:hover .arrow { transform: none; }
  .launch-bar a:hover .arrow { transform: none; }
}
