/*
 * The front door. Dark only, and separate from the app's stylesheet on purpose:
 * this page has different problems (a hero, a lot of scrolling, one long
 * column) and sharing tokens with the app would mean every marketing tweak
 * risking the thing families use every day.
 */

:root {
  --bg: #0b0e17;
  --bg-2: #0e1220;
  --text: #e7e9f2;
  --muted: #949bb3;
  --line: #1c2135;
  --accent: #6366f1;
  /*
   * The same accent, lightened for text. #6366f1 is 4.32:1 on this page's
   * darkest ground — under the 4.5 small text needs — and it cannot simply be
   * lightened everywhere, because it is also the fill behind white button
   * labels, where making it paler makes those worse.
   *
   * So: one value for a surface, one for words on the dark.
   */
  --accent-text: #818cf8;
  --accent-2: #22d3ee;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  /* Dark only, so the scrollbars and anything else the browser paints are told
     so outright rather than left to guess from prefers-color-scheme. */
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- shared ---------- */

.wrap { width: min(1080px, 100% - 44px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 44px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn.big { padding: 13px 26px; font-size: 15.5px; }
.btn.ghost { background: rgba(255, 255, 255, .03); }
.btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: #2b3350; }
.btn.primary {
  /* A solid color under the gradient: what shows if the gradient cannot, and what
     a contrast check can read — without it the check measured the text against
     whatever was behind the button, and on the envelope that is cream. */
  background: #4f46e5 linear-gradient(180deg, #6f72f5, #4f46e5);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 26px rgba(79, 70, 229, .35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(79, 70, 229, .45); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.kicker {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text);
}
h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.body { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.fine { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* ---------- the bar ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(22px, env(safe-area-inset-left));
  background: rgba(11, 14, 23, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(99, 102, 241, .8);
}
.nav nav { display: flex; gap: 9px; }
.nav .btn, .brand { white-space: nowrap; }

/* On a narrow phone the bar is the first thing anyone sees, and at 375 the
   brand and "Sign in" both broke across two lines. Tighten rather than hide:
   a front door with no visible way in is worse than a small one. */
@media (max-width: 420px) {
  .nav { padding: 11px 14px; gap: 8px; }
  .brand { font-size: 15px; }
  .nav .btn { padding: 8px 13px; font-size: 13.5px; }
}

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

.hero { position: relative; isolation: isolate; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }

/* Behind the canvas, and doing the work when there is no WebGL: the page is
   supposed to look finished without the animation, not merely not broken. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(99, 102, 241, .30), transparent 70%),
    radial-gradient(700px 400px at 15% 100%, rgba(34, 211, 238, .13), transparent 70%),
    var(--bg);
}
/* Keeps the text readable over whatever the cubes are doing underneath. */
.scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    /* A pool behind the words specifically, so the field can stay bright at the
       edges without the headline having to fight it. */
    radial-gradient(620px 300px at 50% 46%, rgba(11, 14, 23, .82), transparent 72%),
    linear-gradient(180deg, rgba(11, 14, 23, .12) 0%, rgba(11, 14, 23, .5) 62%, var(--bg) 100%);
}

.eyebrow {
  display: inline-block; margin: 0 0 22px; padding: 5px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px; color: var(--muted);
}
.grad {
  background: linear-gradient(100deg, #a5b4fc 10%, #22d3ee 55%, #818cf8 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 610px; margin: 0 auto 32px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.num {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 9px; background: rgba(99, 102, 241, .16);
  color: #a5b4fc; font-weight: 800; font-size: 14px;
}

/* ---------- the drawn screenshots ---------- */

.shot {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: #0a0d16;
}
.shot-bar {
  display: flex; gap: 6px; padding: 9px 11px;
  background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line);
}
.shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: #2a3150; }
.shot-body { padding: 13px; display: grid; gap: 9px; }
.shot-body.row { display: flex; gap: 8px; padding-bottom: 0; }

/* Blurred rather than lorem: nobody misreads a blur as a real family's week. */
.ph { border-radius: 6px; background: linear-gradient(90deg, #1a2038, #232a47); filter: blur(0.4px); }
.ph-label { height: 8px; width: 34%; opacity: .65; }
.ph-label.short { width: 24%; }
.ph-field { height: 26px; }
.ph-btn { height: 28px; background: linear-gradient(90deg, #4f46e5, #6366f1); opacity: .8; }
.ph-line { height: 9px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

.chip { height: 22px; flex: 1; border-radius: 999px; opacity: .85; }
.c1 { background: #6366f1; } .c2 { background: #ec4899; }
.c3 { background: #22c55e; } .c4 { background: #f59e0b; }

.grid7 { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.col { display: grid; gap: 5px; padding: 6px 3px; border-radius: 7px; background: rgba(255, 255, 255, .022); }
.col.today { background: rgba(245, 158, 11, .14); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .3); }
.tick {
  display: block; height: 13px; border-radius: 4px;
  border: 1.5px solid #2b3350; background: transparent;
}
.tick.on { background: #22c55e; border-color: #22c55e; }

/* ---------- phones ---------- */

.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.phone {
  width: 210px; border: 1px solid var(--line); border-radius: 26px;
  background: #0a0d16; padding: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.phone.tilt { transform: rotate(3deg); }
.phone-top { height: 5px; width: 46%; margin: 2px auto 12px; border-radius: 999px; background: #222a44; }
.phone-body { display: grid; gap: 9px; padding: 0 4px 8px; }
.card-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px; border-radius: 9px; background: rgba(255, 255, 255, .03);
}
.card-row .ph-line { flex: 1; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-grid i { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.mini-grid i.on { background: rgba(34, 197, 94, .75); }

.foot {
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
/* Padded to a tap target: a bare 13px link is smaller than a thumb. */
.foot a { display: inline-block; padding: 6px 4px; color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }

/* ---------- the front page: a fridge door at night ---------- */

/*
 * What a household keeps on its fridge, on the dark ground the rest of the
 * site shares: paper, sticky notes, a pad with a margin, marker in the gaps.
 * The paper is the one light thing, so it is where the eye goes — which is why
 * the content that matters most is written on it.
 *
 * The handwriting is whatever marker face the device already has. Not a
 * webfont, for the reason the app gives: a family page should not ask Google
 * for a file. Where there is none, it falls back to the system's own italic.
 */
:root {
  --hand: "Marker Felt", "Segoe Print", "Ink Free", "Bradley Hand", ui-rounded, cursive;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paper: #f3f5f8;
  --ink: #141824;
  --ink-soft: #3f475c;
  --marker: #fcd34d;
  --highlight: rgba(253, 224, 71, .42);
  --till: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.scrawl { font-family: var(--hand); color: var(--marker); font-size: 19px; line-height: 1.2; margin: 0; }
.label {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: .02em;
}
/*
 * A highlighter stroke through the lower half of the words, not a gradient
 * through them and not a solid block behind them: a slab of yellow the height
 * of the line shouted, and the point of a highlighter is that the words stay
 * the words.
 */
.hi {
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(176deg, transparent 0 62%, var(--highlight) 63% 88%, transparent 89%);
}

/* --- the door: words on the left, what is stuck to it on the right --- */

.door .scrim {
  background:
    radial-gradient(700px 420px at 22% 48%, rgba(11, 14, 23, .86), transparent 72%),
    linear-gradient(180deg, rgba(11, 14, 23, .1) 0%, rgba(11, 14, 23, .45) 70%, var(--bg) 100%);
}
.door-inner {
  width: min(1140px, 100% - 44px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 11vw, 130px);
}
.door-scrawl { margin-bottom: 18px; transform: rotate(-2deg); transform-origin: left; }
.door h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 24px;
}
.door h1 .hi { display: inline; }
.door .lede { margin: 0 0 30px; max-width: 540px; }
.door .cta { justify-content: flex-start; }

.door-stuff { position: relative; min-height: 360px; }
.paper {
  background: var(--paper); color: var(--ink); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 22px 50px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .35);
}
.chart {
  position: absolute; right: 4%; top: 6%; z-index: 2; width: min(330px, 92%);
  padding: 30px 22px 22px; transform: rotate(-3deg);
}
.magnet {
  position: absolute; top: -12px; left: 50%; width: 28px; height: 28px; margin-left: -14px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fca5a5, #dc2626 60%, #991b1b);
  box-shadow: 0 5px 10px rgba(0, 0, 0, .45);
}
.chart-title { margin: 0 0 12px; font-family: var(--hand); font-size: 20px; color: var(--ink); }
.chart-grid {
  display: grid; grid-template-columns: 62px repeat(5, 1fr); gap: 0;
  border-top: 2px solid var(--ink); font-size: 12px;
}
.chart-grid > * { border-bottom: 1px solid #c9ced9; padding: 7px 0; text-align: center; font-style: normal; }
.chart-grid b { font-weight: 800; color: var(--ink-soft); }
.chart-grid em { text-align: left; font-weight: 700; color: var(--ink); }
.chart-grid i { position: relative; }
/* A tick in marker: two strokes, slightly off true, the way a hand draws one. */
.chart-grid i.x::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 13px;
  border: solid #16a34a; border-width: 0 3px 3px 0; border-radius: 1px;
  transform: translate(-50%, -62%) rotate(38deg);
}
.sticky {
  position: relative; color: var(--ink); border-radius: 2px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 2px 5px rgba(0, 0, 0, .3);
}
.sticky.yellow { background: #fde68a; }
.sticky.pink { background: #fbcfe8; }
.sticky.blue { background: #bae6fd; }
.tape {
  position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px;
  background: rgba(255, 255, 255, .42); transform: rotate(-4deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.door-note {
  position: absolute; left: 0; bottom: 8%; z-index: 3; width: 150px; padding: 22px 16px 16px;
  font-family: var(--hand); font-size: 22px; line-height: 1.15; transform: rotate(5deg);
}
.door-note strong { font-size: 26px; }
/* A list torn off a pad, stuck at the top of the door beside the chart. */
.door-list {
  position: absolute; left: 0; top: 2%; z-index: 1; width: 112px; padding: 12px 14px 16px;
  display: flex; flex-direction: column; gap: 3px; transform: rotate(-5deg);
  font-family: var(--hand); font-size: 17px; color: var(--ink);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
}
.door-list p { margin: 0 0 2px; font-size: 19px; border-bottom: 2px solid var(--ink); }
.door-list .got { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }

/* Under the chart, pointing back up at it. */
.door-arrow { position: absolute; right: 12%; bottom: 0; transform: rotate(-5deg); }

@media (max-width: 860px) {
  .door-inner { grid-template-columns: minmax(0, 1fr); }
  .door-stuff { min-height: 330px; max-width: 420px; }
}

/* --- the two halves, as a rule and a date --- */

.halves { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.halves-say {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(32px, 5.4vw, 66px); line-height: 1.02; max-width: 17ch; margin: 0 0 18px;
}
.halves-body { max-width: 560px; }
.halves-pair {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 44px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.halve {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 3vw, 40px);
  text-decoration: none; color: var(--text); overflow: hidden;
}
.halve + .halve { border-left: 1px solid var(--line); }
/* The repeating half is ruled like a chart; the other is plain, like a page torn off. */
.halve.repeats {
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(148, 155, 179, .10) 33px 34px);
}
.halve-word {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  /* Sized for three columns: at the two-column size "Runs out." ran past its own. */
  font-size: clamp(40px, 5.2vw, 70px); line-height: .92;
  color: transparent; -webkit-text-stroke: 1.5px rgba(231, 233, 242, .55);
  transition: color .2s, -webkit-text-stroke-color .2s;
}
.halve:hover .halve-word, .halve:focus-visible .halve-word { color: var(--text); -webkit-text-stroke-color: var(--text); }
.halve-rule { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.halve-body { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 420px; }
.halve-more { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent-text); }
.halve:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -4px; }
/*
 * Each third's drawing, in a strip of its own above its word so the three words
 * line up. Floated over the corner, as they were with two columns, the calendar
 * sat on "half past nine" and the gauge on "Runs out.".
 */
.halve-mark { display: flex; align-items: flex-end; height: 78px; margin-bottom: 4px; }
.ticks { display: flex; gap: 6px; transform: rotate(-2deg); }
.ticks i { position: relative; width: 24px; height: 24px; border: 2px solid rgba(231, 233, 242, .45); border-radius: 4px; }
.ticks i:not(.off)::after {
  content: ''; position: absolute; left: 6px; top: -7px; width: 8px; height: 19px;
  border: solid #22c55e; border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.tearoff {
  display: grid; justify-items: center; width: 70px; padding: 5px 0 7px;
  background: var(--paper); color: var(--ink); border-radius: 3px; transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  border-top: 10px solid #dc2626;
}
.tearoff strong { font-family: var(--display); font-size: 32px; line-height: 1; letter-spacing: -.04em; }
/* Nearly empty: the one thing a count says that a list cannot. */
.gauge { display: flex; gap: 4px; align-items: center; transform: rotate(-3deg); }
.gauge i { width: 14px; height: 28px; border-radius: 3px; border: 2px solid rgba(231, 233, 242, .35); }
.gauge i.on { background: #f59e0b; border-color: #f59e0b; }
.gauge b { margin-left: 8px; font-family: var(--hand); font-weight: 400; font-size: 18px; color: var(--marker); }
@media (max-width: 960px) {
  .halves-pair { grid-template-columns: minmax(0, 1fr); }
  .halve + .halve { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .halves-pair { grid-template-columns: minmax(0, 1fr); }
  .halve + .halve { border-left: 0; border-top: 1px solid var(--line); }
  .halve-mark { height: auto; margin-bottom: 8px; }
}

/* --- a spread: words on one side, the drawing on the other, flipped for the second half --- */

.chores, .schedule, .engineered, .pocket { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.schedule { background: var(--bg-2); }
.spread {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px); align-items: center;
}
.spread.flip .spread-text { order: 2; }
.spread h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; }
.spread-art { position: relative; }
.spread-art .shot { margin: 0; transform: rotate(1.5deg); }
.spread.flip .spread-art .shot { transform: rotate(-1.5deg); }
/* Under the fourth column — today's — pointing up at it. */
.spread-scrawl { position: absolute; left: 47%; bottom: -36px; transform: rotate(-4deg); }
@media (max-width: 860px) {
  .spread { grid-template-columns: minmax(0, 1fr); }
  .spread.flip .spread-text { order: 0; }
}

/* Notes down the margin, numbered in marker, not three boxes in a row. */
.margin-notes {
  list-style: none; counter-reset: note; padding: 0; margin-top: clamp(56px, 8vw, 88px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
}
.margin-notes li { counter-increment: note; position: relative; padding-top: 18px; border-top: 2px solid rgba(231, 233, 242, .16); }
.margin-notes li::before {
  content: counter(note); position: absolute; top: -21px; left: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--hand); font-size: 22px; color: var(--marker);
  border: 2px solid var(--marker); border-radius: 50% 46% 52% 48%;
  background: var(--bg);
}
.margin-notes li:nth-child(2) { margin-top: 38px; }
.margin-notes li:nth-child(3) { margin-top: 14px; }
.margin-notes h3 { margin: 16px 0 8px; }
.margin-notes p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .margin-notes { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .margin-notes li:nth-child(n) { margin-top: 0; }
}

/* The schedule's details, as the notes people actually leave for each other. */
.stickies {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.5vw, 40px);
  margin-top: clamp(56px, 8vw, 88px);
}
.stickies .sticky { padding: 30px 24px 26px; }
.stickies .sticky:nth-child(1) { transform: rotate(-2.2deg); }
.stickies .sticky:nth-child(2) { transform: rotate(1.6deg) translateY(18px); }
.stickies .sticky:nth-child(3) { transform: rotate(-1deg) translateY(-6px); }
.stickies h3 { color: var(--ink); font-size: 18px; }
.stickies p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) {
  .stickies { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .stickies .sticky:nth-child(n) { transform: rotate(-1deg); }
  .stickies .sticky:nth-child(even) { transform: rotate(1deg); }
}

/* --- the inventory: a torn shopping list, and notes either side pointing at it --- */

.pantry { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.pantry-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.pantry h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; }
.annotated {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px); align-items: center;
}
.callouts { display: grid; gap: clamp(28px, 4vw, 48px); }
.callouts article { position: relative; }
.callouts.left { text-align: right; }
.callouts h3 { font-size: 17px; margin: 0 0 6px; }
.callouts p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.callouts .pointer { display: block; font-size: 30px; line-height: 1; margin-top: 8px; }
.callouts.right .pointer { margin: 0 0 8px; }
.shopping {
  position: relative; padding: 34px 22px 30px; transform: rotate(1.8deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 9px repeat-x;
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(59, 130, 246, .22) 35px 36px),
    var(--paper);
  background-position: 0 58px;
}
.shopping .magnet { background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb 60%, #1e3a8a); }
.shopping-title { margin: 0 0 8px; font-family: var(--hand); font-size: 26px; color: var(--ink); }
.shopping ul { list-style: none; margin: 0; padding: 0; }
.shopping li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; height: 36px; }
.shopping li span { font-family: var(--hand); font-size: 21px; color: var(--ink); }
.shopping li em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.shopping li.got span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .annotated { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .shopping { order: -1; max-width: 300px; }
  .callouts.left { text-align: left; }
  .callouts .pointer { display: none; }
}

/* --- everything else, as a pad with a margin and a box to tick on every line --- */

.engineered-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.engineered-head { position: sticky; top: 100px; }
.engineered-head h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; margin-bottom: 10px; }
.engineered-head .scrawl { transform: rotate(-3deg); transform-origin: left; }
.pad {
  list-style: none; margin: 0; padding: 26px 26px 18px 64px; position: relative;
  background:
    linear-gradient(90deg, transparent 0 46px, rgba(220, 38, 38, .45) 46px 48px, transparent 48px),
    var(--paper);
  color: var(--ink); border-radius: 4px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 3px 8px rgba(0, 0, 0, .3);
  /* Straight, unlike the short notes: a turned page of small print blurs. */
}
.checklist li { position: relative; padding: 14px 0; border-bottom: 1px solid #d5dae4; }
.checklist li:last-child { border-bottom: 0; }
/*
 * Struck through once ticked, by a line that is drawn rather than switched on:
 * text-decoration cannot animate. Inline, so the line follows a title that wraps.
 */
.checklist h3 {
  display: inline; font-size: 17px; margin: 0; color: var(--ink);
  background: linear-gradient(#16a34a, #16a34a) no-repeat 0 58% / 100% 2px;
  transition: background-size .36s cubic-bezier(.23, 1, .32, 1) .3s;
}
.checklist p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.box {
  position: absolute; left: -46px; top: 16px; width: 22px; height: 22px;
  border: 2px solid var(--ink); border-radius: 4px;
}
.box::after {
  /* Bigger than its box and running out of the top of it, the way a hand ticks. */
  content: ''; position: absolute; left: 7px; top: -9px; width: 10px; height: 24px;
  border: solid #16a34a; border-width: 0 4px 4px 0; border-radius: 1px;
  transform: rotate(40deg);
  transition: clip-path .45s cubic-bezier(.23, 1, .32, 1);
  clip-path: inset(0 0 0 0);
}
/* Ticked already, unless landing.js is here to tick them as they arrive. */
.checklist.pending li:not(.done) .box::after { clip-path: inset(100% 0 0 0); }
.checklist.pending li:not(.done) h3 { background-size: 0 2px; }
.list-more {
  display: inline-block; padding: 3px 0; margin-left: 4px;
  font-weight: 700; color: #4338ca; text-decoration: none;
}
.list-more:hover { text-decoration: underline; text-underline-offset: 3px; }
/* On the dark ground rather than paper, where the paper's indigo is too dark to read. */
.costs .list-more { color: var(--accent-text); }
@media (max-width: 860px) {
  .engineered-wrap { grid-template-columns: minmax(0, 1fr); }
  .engineered-head { position: static; }
  .pad { padding-left: 58px; }
}

/* --- phones: the drawing leads, and the words follow --- */

.pocket-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.pocket .phones { justify-content: flex-start; margin: 0; }
.pocket h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 4.2vw, 46px); }
@media (max-width: 860px) { .pocket-wrap { grid-template-columns: minmax(0, 1fr); } .pocket-text { order: -1; } }

/* --- the ending: a note on the counter, and the one centered thing on the page --- */

.finale {
  padding: clamp(78px, 11vw, 130px) 22px; border-top: 1px solid var(--line);
  background: radial-gradient(800px 380px at 50% 110%, rgba(99, 102, 241, .18), transparent 70%), var(--bg);
}
.note-wrap { display: flex; justify-content: center; }
.envelope {
  position: relative; width: min(620px, 100%); text-align: center;
  padding: clamp(40px, 6vw, 60px) clamp(22px, 5vw, 56px) clamp(32px, 5vw, 46px);
  background:
    linear-gradient(155deg, transparent 49.6%, rgba(20, 24, 36, .10) 50%, transparent 50.4%) top left / 50% 44% no-repeat,
    linear-gradient(205deg, transparent 49.6%, rgba(20, 24, 36, .10) 50%, transparent 50.4%) top right / 50% 44% no-repeat,
    #f6f1e7;
  color: var(--ink); border-radius: 4px; transform: rotate(-.7deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .35);
}
.envelope .scrawl { color: #b45309; font-size: 22px; margin-bottom: 10px; }
.envelope h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; color: var(--ink); }
.envelope-body { color: var(--ink-soft); font-size: 16.5px; margin: 0 auto 26px; max-width: 460px; }
.envelope-fine { color: var(--ink-soft); font-size: 13px; margin: 16px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .box::after, .halve-word { transition: none; }
}

/* ---------- pages outside the app, other than this front page ---------- */

/*
 * The template every other page outside the app follows, /connect first. Built
 * from the front page's parts — the bar, the type, the buttons, the gradient
 * word — and laid out as their opposite, so it reads as the same place and not
 * the same page: a hero that sits left instead of centered, then one continuous
 * surface with an "on this page" rail instead of full-width alternating bands.
 *
 * The first section always has a moving background of its own, drawn on
 * `canvas.scene` by scene.js and a scene file for that page. Never the front
 * page's cubes: each page draws something about itself.
 */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 78% 40%, rgba(99, 102, 241, .20), transparent 70%),
    var(--bg);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* The words sit left, so the scene is left free on the right and dimmed behind
   the text rather than behind everything. */
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 14, 23, .92) 0%, rgba(11, 14, 23, .72) 42%, rgba(11, 14, 23, .08) 78%);
}
.page-hero-inner {
  width: min(1080px, 100% - 44px); margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) 0 clamp(64px, 10vw, 112px);
}
.page-hero-inner > * { max-width: 590px; }
.page-hero h1 {
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.05;
  letter-spacing: -.03em; margin: 0 0 20px; font-weight: 800;
  text-wrap: balance;
}
.page-hero .lede { margin: 0 0 28px; }
.page-hero .cta { justify-content: flex-start; }
.scene-hint { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); opacity: .85; }
/* Said for the hand that is holding it: there is no pointer to follow on a phone. */
.scene-hint .touch { display: none; }
@media (hover: none) {
  .scene-hint .touch { display: inline; }
  .scene-hint .mouse { display: none; }
}

/* On a phone the words take the whole width, so the scene gets its own room
   underneath them and the dimming runs top to bottom instead of left to right. */
@media (max-width: 760px) {
  .page-hero-inner { padding-bottom: 230px; }
  .page-hero::after {
    background: linear-gradient(180deg, rgba(11, 14, 23, .9) 0%, rgba(11, 14, 23, .78) 58%, rgba(11, 14, 23, .05) 82%);
  }
}

/* Where you are: one level, because these pages hang off the front door. */
.crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 26px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.page-body {
  width: min(1080px, 100% - 44px); margin: 0 auto;
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-rail nav {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid var(--line);
}
.page-rail a {
  padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; color: var(--muted); text-decoration: none;
}
.page-rail a:hover { color: var(--text); border-left-color: var(--accent); }
/* The section you are in, marked by page.js as you scroll: the first one until then. */
.page-rail a[aria-current] { color: #fff; font-weight: 700; }
/*
 * The white line is one element that slides from link to link, not a border
 * that goes off on one and on at the next. Until page.js has put it there — or
 * with no script at all — the current link draws its own, so the page is never
 * without one.
 */
.page-rail nav:not(.has-marker) a[aria-current] { border-left-color: #fff; }
.rail-marker {
  position: absolute; left: -1px; top: 0; width: 2px; height: 0;
  background: #fff; border-radius: 2px; pointer-events: none;
}
.rail-marker.moving {
  transition: transform .36s cubic-bezier(.23, 1, .32, 1), height .36s cubic-bezier(.23, 1, .32, 1);
}
@media (prefers-reduced-motion: reduce) { .rail-marker.moving { transition: none; } }
.page-rail .rail-label {
  padding: 0 0 8px 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.page-section { padding: 0 0 clamp(48px, 7vw, 76px); scroll-margin-top: 88px; }
.page-section + .page-section { padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.page-section h2 { font-size: clamp(24px, 3.2vw, 32px); }

/* On a phone the rail is a row of links under the hero, scrolled in its own box. */
@media (max-width: 800px) {
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .page-rail nav {
    position: static; flex-direction: row; gap: 6px; overflow-x: auto;
    border-left: 0; padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line);
  }
  .page-rail a {
    flex: 0 0 auto; padding: 7px 13px; margin: 0; border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255, 255, 255, .03); white-space: nowrap;
  }
  .page-rail a:hover { border-color: var(--accent); }
  .page-rail a[aria-current] { border-color: rgba(255, 255, 255, .55); }
  .page-rail .rail-label { display: none; }
  /* A row of pills marks the current one with its outline; there is no edge to slide along. */
  .rail-marker { display: none; }
  .page-rail nav.has-marker a[aria-current] { border-color: rgba(255, 255, 255, .55); }
}

/* A conversation, for a page about talking to something. */
.chat { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 640px; }
.bubble {
  max-width: 82%; margin: 0; padding: 12px 16px; border-radius: 18px;
  font-size: 15px; line-height: 1.45;
}
.bubble.you {
  align-self: flex-end; border-bottom-right-radius: 6px;
  background: linear-gradient(180deg, #5b5ff0, #4f46e5); color: #fff;
}
.bubble.ai {
  align-self: flex-start; border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--text);
}
.bubble.ai.no { border-color: rgba(251, 191, 36, .35); }
.bubble-who { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.bubble.you .bubble-who { color: rgba(255, 255, 255, .78); }

/* Steps down a line, for a page with a sequence in it. */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 30px 52px; }
.timeline li::before {
  content: ''; position: absolute; left: 16px; top: 34px; bottom: 0;
  width: 1px; background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .num { position: absolute; left: 0; top: 0; margin: 0; width: 33px; height: 33px; border-radius: 50%; }
.timeline h3 { margin: 5px 0 6px; }
.timeline p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

/* Rules, set as a list of definitions rather than as cards. */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin: 28px 0 0; }
.rules div { padding-top: 16px; border-top: 1px solid var(--line); }
.rules dt { font-weight: 700; margin: 0 0 6px; }
.rules dd { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* The page's one ask, as a panel at the end of the content rather than a band. */
.page-cta {
  padding: clamp(26px, 4vw, 38px); border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, .35);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(600px 260px at 0% 100%, rgba(99, 102, 241, .16), transparent 70%),
    var(--bg-2);
}
.page-cta h2 { margin-bottom: 10px; }
.page-cta .cta { justify-content: flex-start; margin-top: 22px; }
.page-cta .fine a { display: inline-block; padding: 4px 0; color: var(--text); text-underline-offset: 2px; }
/* A link inside running text: padded to a tap target without moving the line it sits in. */
.page-content :is(.body, dd) a { padding: 5px 0; color: var(--text); text-underline-offset: 2px; }

/* The address, copyable, inside a step. Its own line, so it never breaks
   mid-word, with Copy beside it when there is room. */
.connect-address {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 460px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.connect-address code {
  flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--text);
}

/* ---------- pull down to refresh ---------- */

/*
 * Only ever seen when this page is opened from a Home Screen icon —
 * `landing-refresh.js` binds nothing in a browser tab, which has the gesture
 * already. Copied from the app's stylesheet rather than shared with it, and
 * redrawn in this page's tokens: the two palettes are kept apart on purpose,
 * so the same component is spelled differently on each side.
 */
.pull-indicator {
  position: fixed; top: calc(-46px + env(safe-area-inset-top)); left: 50%; z-index: 60;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0;
  transform: translate(-50%, 0); transition: opacity .15s;
}
.pull-indicator.visible { opacity: 1; }
.pull-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  transition: border-top-color .15s, transform .15s;
}
/* Cyan for "let go now" — the page's other accent, and the only pair of colors
   here a person could tell apart at 16px without being told to look. */
.pull-indicator.ready .pull-spinner { border-top-color: var(--accent-2); transform: rotate(180deg); }
.pull-indicator.spinning .pull-spinner { animation: pull-spin .7s linear infinite; }
@keyframes pull-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pull-indicator, .pull-spinner { transition: none; }
  .pull-indicator.spinning .pull-spinner { animation-duration: 2s; }
}

/* ---------- the schedule mock-up ---------- */

/*
 * Four days of a week with events on them, drawn rather than captured, like
 * every other mock-up on this page. It shows the three things the schedule does
 * that a list of dates does not: something spanning days and saying which day
 * of it this is, something at a time, and something carrying the repeat mark.
 */
.sched-shot { padding-bottom: 4px; }
.sched-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }

.sched-day {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.sched-day.today {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.sched-date {
  flex: 0 0 34px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

.ev {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 7px; font-size: 12.5px; line-height: 1.4;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.ev b { font-weight: 800; color: var(--accent-2); }
/* Dashed, the way a spanning event is dashed in the app: one thing continuing
   rather than four things happening. */
.ev-span { border: 1px dashed color-mix(in srgb, var(--text) 22%, transparent); }
.ev-green {
  background: color-mix(in srgb, #10b981 20%, transparent);
  box-shadow: inset 2px 0 0 #10b981;
}
.ev-red {
  background: color-mix(in srgb, #ef4444 20%, transparent);
  box-shadow: inset 2px 0 0 #ef4444;
}
.ev-red b { color: #fca5a5; }
.ev-amber {
  background: color-mix(in srgb, #f59e0b 20%, transparent);
  box-shadow: inset 2px 0 0 #f59e0b;
}
.ev-amber b { color: #fcd34d; }
.rep { font-style: normal; opacity: .7; }

/* The cards under a half read as that half's, so they sit closer to it than
   the section gap would put them. */
#chores .cards, #schedule .cards { margin-top: 28px; }

/* ---------- what it costs: a till receipt taped to the door ---------- */

.costs { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.costs-wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.costs h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; }
/* Torn at both ends, the way a receipt comes off the roll. */
.receipt {
  position: relative; padding: 28px 22px; transform: rotate(-1.6deg);
  font-family: var(--till); font-size: 13px; color: var(--ink);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 7px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 7px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 14px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x;
}
.receipt p { margin: 0; }
.receipt .till-head { text-align: center; font-weight: 700; letter-spacing: .2em; padding-bottom: 12px; border-bottom: 1px dashed var(--ink-soft); margin-bottom: 12px; }
.receipt .till-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.receipt .till-rule { margin: 12px 0 6px; padding-top: 12px; border-top: 1px dashed var(--ink-soft); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-soft); }
.receipt .till-foot { text-align: center; font-size: 11.5px; color: var(--ink-soft); padding-top: 10px; }
.receipt .till-foot.first { margin-top: 10px; border-top: 1px dashed var(--ink-soft); }
@media (max-width: 860px) {
  .costs-wrap { grid-template-columns: minmax(0, 1fr); }
  .receipt { max-width: 340px; }
}
