@font-face { font-family: "Caveat"; src: url(fonts/caveat-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-full-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-latin-full-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Wren — the website. The same design as the app (cream paper, a hedge-green
 * accent with marigold for the sun and the logo's bird, Fraunces for the voice, hairlines), with more room to move: the hero's flow, the
 * product tour, the doodles and the footer's wire all animate, and all of it
 * steps aside for prefers-reduced-motion.
 */

:root {
  color-scheme: light;
  --bg: light-dark(#f4f3ee, #0d110f);
  --bg-2: light-dark(#ecece4, #111612);
  --surface: light-dark(#fffffb, #141a17);
  --surface-2: light-dark(#eeeee6, #1a221e);
  --surface-3: light-dark(#e3e4da, #232d28);
  --border: light-dark(#e2e3d8, #222b27);
  --border-strong: light-dark(#d0d3c5, #313c36);
  --text: light-dark(#18211c, #e7ede9);
  --text-2: light-dark(#56615a, #a8b3ad);
  /* Captions, times and counts: at least 4.5:1 on every surface (WCAG AA), the app's own value */
  --text-3: light-dark(#5e6962, #8f9a94);
  /* The tour's steps out of view: as light as AA allows on the paper (4.6:1), so the one in view still lights up */
  --text-dim: light-dark(#677068, #8f9a94);
  /* Pencil lines, not words (the footer's wire, a speech bubble's outline, the FAQ's chevrons) */
  --line-3: light-dark(#8e978f, #6f7a73);
  --accent: light-dark(#22675a, #7fcbb8);
  --accent-2: light-dark(#35806f, #9ad8c8);
  --accent-soft: light-dark(#e2efea, #13261f);
  --accent-line: light-dark(#c1dbd2, #27463a);
  --accent-ink: light-dark(#1a5046, #a6dfd0);
  --warm: light-dark(#e6a23c, #f0b451);
  --warm-soft: light-dark(#fbf0db, #2a2112);
  --warm-ink: light-dark(#8a5a0e, #f3c67a);
  --mark-bg: #1f3a31;
  --mark-bird: #f2b84b;
  --primary: light-dark(#1c2d26, #e7ede9);
  --on-primary: light-dark(#ffffff, #0f1512);
  --ok: light-dark(#3a741c, #8fd16a);
  --ok-soft: light-dark(#eaf3df, #1a2912);
  --warn: light-dark(#a8680f, #e2ad55);
  --shadow-sm: 0 1px 2px light-dark(rgba(28, 27, 25, 0.05), rgba(0, 0, 0, 0.4));
  --shadow-md: 0 10px 30px light-dark(rgba(28, 27, 25, 0.08), rgba(0, 0, 0, 0.45)), 0 1px 3px light-dark(rgba(28, 27, 25, 0.06), rgba(0, 0, 0, 0.3));
  --shadow-lg: 0 30px 80px light-dark(rgba(28, 27, 25, 0.14), rgba(0, 0, 0, 0.6)), 0 2px 8px light-dark(rgba(28, 27, 25, 0.06), rgba(0, 0, 0, 0.35));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); font-variation-settings: "SOFT" 50, "WONK" 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--primary); color: var(--on-primary); }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type and bits */

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
h2.big { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 620px; margin: 16px 0 0; text-wrap: pretty; }
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
main [id] { scroll-margin-top: 76px; }
/* Pen marks and the hedge are drawn past their boxes on purpose; clip them at the screen's edge, not before.
   overflow-x: clip leaves vertical overflow and the tour's sticky screen alone (hidden would break both). */
@supports (overflow: clip) { main > section { overflow-x: clip; } }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 15px var(--font); text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-dark { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* The pixel grid: Wren at work (the same as in the app) */
.pix { display: inline-grid; grid-template-columns: repeat(3, 3px); grid-auto-rows: 3px; gap: 1.5px; flex-shrink: 0; }
.pix i { display: block; border-radius: 0.8px; background: var(--accent); opacity: 0.85; }
.pix i:nth-child(1) { --d: 0; } .pix i:nth-child(2) { --d: 1; } .pix i:nth-child(3) { --d: 2; }
.pix i:nth-child(4) { --d: 1; } .pix i:nth-child(5) { --d: 2; } .pix i:nth-child(6) { --d: 3; }
.pix i:nth-child(7) { --d: 2; } .pix i:nth-child(8) { --d: 3; } .pix i:nth-child(9) { --d: 4; }
@media (prefers-reduced-motion: no-preference) {
  .pix i { opacity: 0.16; animation: pix 1.15s ease-in-out infinite; animation-delay: calc(var(--d) * 95ms); }
}
@keyframes pix { 0%, 100% { opacity: 0.16; } 30% { opacity: 1; } 55% { opacity: 0.45; } }

.net { display: inline-grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; }
.net svg { width: 100%; height: 100%; }

/* Things arrive as you scroll to them. Everything is simply there until site.js adds .motion, and what's on
   screen at that moment stays (it's .in already): only what's further down waits for you */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  :where(.motion) [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); transition: none; }
}

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

.nav { position: sticky; top: 0; z-index: 50; transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: transparent; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-bird); }
.brand .mark svg { width: 21px; height: 21px; }
.brand .mark svg circle { fill: var(--mark-bg); }
.brand .mark, .orb { box-shadow: inset 0 0 0 1px light-dark(transparent, rgba(255, 255, 255, 0.1)); }
.brand b { font: 600 22px var(--serif); letter-spacing: -0.01em; }
.nav .links { display: flex; gap: 4px; margin-left: 18px; }
.nav .links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 14.5px; transition: color 0.15s, background 0.15s; }
.nav .links a:hover { color: var(--text); background: var(--surface-2); }
.nav .cta { margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 940px) {
  .nav .links { display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 12px 14px; }
  .nav .cta { display: none; }
  .menu-btn { display: grid; }
}

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

.hero { position: relative; padding: clamp(40px, 5.5vw, 72px) 0 40px; text-align: center; }
.hero > .wrap { position: relative; z-index: 1; }
.hero > .marquee { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1; background: radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), radial-gradient(520px 280px at 85% 20%, color-mix(in srgb, var(--warm) 14%, transparent), transparent 70%); pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--text-2); }
.pill b { color: var(--text); font-weight: 600; }
.pill .short { display: none; }
@media (max-width: 520px) { .pill .long { display: none; } .pill .short { display: inline; } }
.hero h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.03em; max-width: 960px; margin: 20px auto 0; text-wrap: balance; }
.hero h1 .line { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.32em; overflow: visible; }
.hero h1 em svg path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.55; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
@media (prefers-reduced-motion: no-preference) { .hero h1 em svg path { animation: draw 1.1s var(--ease) 0.6s forwards; } }
@media (prefers-reduced-motion: reduce) { .hero h1 em svg path { stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin: 20px auto 0; max-width: 640px; }
.hero .actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* The flow, both ways: a post leaves Plan, goes out through Wren to every
 * network, then the replies come back through Wren, sorted into your day */
.flow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) 190px minmax(0, 1.2fr); align-items: center; gap: 36px; width: min(1240px, calc(100% - 32px)); margin: 48px auto 0; padding: 34px 38px; border-radius: 30px; border: 1px solid var(--border); background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--bg-2); box-shadow: var(--shadow-lg); text-align: left; overflow: hidden; }
.flow-cap { margin: 0 0 14px; font: 600 11.5px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); transition: opacity 0.3s; }
.src-grid { display: grid; grid-template-columns: repeat(2, 60px); gap: 16px 34px; justify-content: center; }
.src-grid .src:nth-child(even) { transform: translateY(26px); }
.src { position: relative; z-index: 2; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); transition: transform 0.2s, box-shadow 0.4s, opacity 0.4s; }
.src svg { width: 30px; height: 30px; }
.src.emit { animation: emit 0.6s var(--ease); }
@keyframes emit { 40% { transform: scale(1.14); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-md); } }
.src-grid .src:nth-child(even).emit { animation-name: emit-even; }
@keyframes emit-even { 0%, 100% { transform: translateY(26px); } 40% { transform: translateY(26px) scale(1.14); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow-md); } }
/* Publishing: the networks this post goes to light up, and each gets its badge */
.flow[data-phase="publish"] .src:not(.dest) { opacity: 0.45; }
.flow[data-phase="publish"] .src.dest { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow-md); }
.src .badge { position: absolute; z-index: 3; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 3px var(--bg-2); transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.src .badge svg { width: 12px; height: 12px; }
.src.posted .badge { transform: scale(1); }
.src.phoned .badge { background: var(--text); }
.src.land::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--ok); animation: ripple 0.9s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { inset: -16px; opacity: 0; border-radius: 26px; } }

.flow-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.core { position: relative; width: 132px; height: 132px; }
.core-mark { position: absolute; inset: 14px; border-radius: 30px; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-bird); box-shadow: 0 20px 50px rgba(20, 58, 44, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.4s var(--ease); }
.core-mark svg { width: 58px; height: 58px; }
.core-mark svg circle { fill: var(--mark-bg); }
.core-ring { position: absolute; inset: 0; border-radius: 40px; background: conic-gradient(from var(--ang, 0deg), transparent 0 55%, color-mix(in srgb, var(--accent) 50%, transparent) 75%, var(--accent) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px; }
.core-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); opacity: 0.7; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .core-ring { animation: spin-ang 4.5s linear infinite; }
  .core-glow { animation: breathe 5s ease-in-out infinite; }
  .core.busy .core-ring { animation-duration: 1.6s; }
}
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.95; } }
.core.eat .core-mark { transform: scale(0.88); }
.core-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font: 600 12.5px var(--font); color: var(--text-2); white-space: nowrap; min-width: 168px; justify-content: center; transition: color 0.3s, border-color 0.3s; }
.core-status span { transition: opacity 0.25s; }
.core-status[data-lane="needs"] { color: var(--accent-ink); border-color: var(--accent-line); }
.core-status[data-lane="handled"] { color: var(--text-3); }
.core-status[data-lane="sent"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

/* The card: Plan while a post goes out, Today while the replies come in */
.today { position: relative; z-index: 2; }
.today-card { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 14px 18px 8px; }
.desk-top { display: flex; align-items: center; gap: 10px; }
.desk-top .when { margin-left: auto; font: 500 12px var(--font); color: var(--text-3); }
.desk-tabs { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.dtab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font: 600 12.5px var(--font); color: var(--text-3); transition: color 0.35s; }
.dtab svg { width: 14px; height: 14px; }
.dtab-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--w, 72px); transform: translateX(var(--x, 3px)); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
.flow[data-phase="publish"] .dtab[data-tab="plan"], .flow[data-phase="reply"] .dtab[data-tab="today"] { color: var(--text); }
.panes { display: grid; }
.pane { grid-area: 1 / 1; min-width: 0; transition: opacity 0.45s ease 0.3s, transform 0.7s var(--ease) 0.3s, visibility 0s linear 0s; }
.flow[data-phase="publish"] .pane-today, .flow[data-phase="reply"] .pane-plan { opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity 0.25s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
/* Room for the longest brief the loop writes, so the card never grows mid-animation */
.today-brief { margin: 12px 0 12px; font: 400 19px/1.35 var(--serif); color: var(--text-2); min-height: 4.05em; }
@media (max-width: 1300px) and (min-width: 941px) { .today-brief { min-height: 5.4em; } }
@media (max-width: 520px) { .today-brief { font-size: 17.5px; min-height: 6.75em; } }
.today-brief b { color: var(--text); font-weight: 600; }

/* Plan: the week's posts, each with its time and its networks */
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prow { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 10px 8px 8px; border-radius: 13px; background: var(--surface-2); font-size: 13px; transition: background 0.4s, box-shadow 0.4s, opacity 0.4s; }
.prow img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.prow .t { min-width: 0; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .s { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-weight: 500; color: var(--text-3); font-size: 12px; line-height: 16px; }
.prow .pnets { display: inline-flex; padding-left: 3px; }
.prow .pnets .net { width: 16px; height: 16px; margin-left: -3px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--surface); }
.prow .tag { font: 600 11px var(--font); padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); transition: background 0.3s, color 0.3s; }
.prow.next { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.prow.next .tag { background: var(--accent); color: #fff; border-color: transparent; font-variant-numeric: tabular-nums; }
.prow.lifting { opacity: 0.4; }
.prow.sent { background: var(--ok-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); }
.prow.sent .tag { background: var(--ok); color: #fff; border-color: transparent; }
.prow.draft .tag { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.prow.draft img { filter: saturate(0.6); opacity: 0.85; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 46px minmax(0, 1fr); row-gap: 5px; }
  .prow img { grid-row: 1 / span 2; }
  .prow .tag { grid-column: 2; justify-self: start; }
  .prow .postmark { display: none; }
}

/* Today: three lanes */
.lane { border-top: 1px solid var(--border); padding: 10px 0 8px; }
/* A lane's title: part of the picture (the flow is one image to a screen reader), so not a heading */
.lane .lane-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 650 12.5px var(--font); color: var(--text); transition: color 0.3s; }
.lane .lane-h b { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lane[data-lane="needs"] .lane-h b { color: var(--accent); }
.lane.ping .lane-h { color: var(--accent); }
.lane ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: calc(2 * 49px + 6px); }
.lane ul:empty { border: 1.5px dashed var(--border); border-radius: 12px; }
.lane ul:empty::before { content: attr(data-empty); margin: auto; color: var(--text-3); font-size: 12.5px; }
.lane ul.clearing > * { opacity: 0; transition: opacity 0.3s; }
.item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 11px; background: var(--surface-2); font-size: 13px; }
.item .t { font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { display: block; font-weight: 400; line-height: 17px; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tag { font: 600 11px var(--font); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.item .tag.due { background: var(--accent-soft); color: var(--accent-ink); }
.item .tag.send { background: var(--primary); color: var(--on-primary); }
.item .tag.undo { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .item.in { animation: item-in 0.7s var(--ease) both; }
  .item.out { position: absolute; left: 0; right: 0; animation: item-out 0.4s ease-in both; }
}
.item.in { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); transition: box-shadow 1.6s ease 1.2s; }
.item.settled { box-shadow: 0 0 0 0 transparent; }
@keyframes item-in { from { opacity: 0; transform: translateX(-14px) scale(0.97); } }
@keyframes item-out { to { opacity: 0; transform: translateY(6px); } }

/* The wren that keeps watch from the top of the card */
.perched { position: absolute; right: 24px; bottom: calc(100% - 4px); width: 48px; z-index: 3; pointer-events: none; }
.perched svg.dk { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .perched.hop svg.dk { animation: perch-hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); } }
@keyframes perch-hop { 35% { transform: translateY(-10px) rotate(-4deg); } 72% { transform: translateY(0) scale(1.06, 0.9); } }

/* The wires: every network to Wren, Wren to each lane, and Plan to Wren */
.flow-paths { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-paths path { fill: none; stroke: color-mix(in srgb, var(--text) 16%, transparent); stroke-width: 1.3; stroke-dasharray: 2 7; stroke-linecap: round; transition: stroke 0.4s, stroke-width 0.4s, opacity 0.5s; }
.flow-paths path.out, .flow-paths path.plan { stroke: color-mix(in srgb, var(--accent) 32%, transparent); stroke-dasharray: 3 7; }
.flow-paths path.hot { stroke: var(--accent); stroke-width: 2; }
.flow[data-phase="publish"] .flow-paths path.out, .flow[data-phase="reply"] .flow-paths path.plan { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow-paths path { animation: dash 1.6s linear infinite; }
  /* While publishing, the network wires run outward */
  .flow[data-phase="publish"] .flow-paths path.in { animation-direction: reverse; }
}
@keyframes dash { to { stroke-dashoffset: -18; } }

/* What travels: replies coming in, the post going out, and its copies */
.bubble { position: absolute; left: 0; top: 0; z-index: 1; width: 236px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); pointer-events: none; will-change: transform, opacity; font-size: 13px; line-height: 1.38; }
.bubble .who { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12.5px; margin-bottom: 3px; }
.bubble .who .net { width: 15px; height: 15px; }
.bubble p { margin: 0; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spark { position: absolute; left: 0; top: 0; z-index: 4; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px var(--accent); pointer-events: none; }
.post-fly { position: absolute; left: 0; top: 0; z-index: 4; width: 230px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--accent-line); box-shadow: var(--shadow-lg); pointer-events: none; will-change: transform, opacity; font-size: 12.5px; line-height: 1.3; }
.post-fly img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.post-fly b { display: block; font-weight: 650; }
.post-fly small { color: var(--text-3); }
.post-copy { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); font: 600 12px var(--font); white-space: nowrap; pointer-events: none; will-change: transform, opacity; }
.post-copy img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.post-copy .net { width: 15px; height: 15px; }

@media (max-width: 940px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 24px 18px; }
  .src-grid { grid-template-columns: repeat(5, 48px); gap: 12px; }
  .src-grid .src:nth-child(even) { transform: none; }
  .src-grid .src:nth-child(even).emit { animation-name: emit; }
  .src { width: 48px; height: 48px; border-radius: 14px; }
  .src svg { width: 24px; height: 24px; }
  .sources .flow-cap, .today .flow-cap { text-align: center; }
  .bubble { width: 206px; }
  .post-fly { width: 200px; }
}

/* ------------------------------------------------------------------ networks marquee */

.marquee { padding: 34px 0 10px; }
.marquee p { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 0 0 16px; }
.marquee-track { display: flex; gap: 12px; width: max-content; }
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.mchip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.mchip .net { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 64s linear infinite; } .marquee-mask:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ how it works */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.step { position: relative; padding: 18px 20px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .art { height: 150px; margin: 0 -6px 6px; display: grid; place-items: center; }
.step .art svg.dk { width: 100%; max-width: 230px; }
.step .n { font: 600 12px var(--mono); color: var(--accent); }
.step h3 { font-size: 22px; margin: 6px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ the tour: a day with Wren */

.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; margin-top: 56px; }
.tour-steps { display: flex; flex-direction: column; }
.tstep { padding: 36px 0 36px 26px; border-left: 2px solid var(--border); min-height: 60vh; display: flex; flex-direction: column; justify-content: center; transition: border-color 0.3s; }
.tstep:first-child { min-height: 46vh; }
.tstep .time { font: 600 13px var(--mono); color: var(--text-dim); transition: color 0.3s; }
.tstep h3 { font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 10px; line-height: 1.12; color: var(--text-dim); transition: color 0.3s; }
.tstep p { margin: 0; color: var(--text-dim); font-size: 16.5px; max-width: 440px; transition: color 0.3s; }
.tstep.on { border-left-color: var(--accent); }
.tstep.on .time { color: var(--accent); }
.tstep.on h3 { color: var(--text); }
.tstep.on p { color: var(--text-2); }
.tstep .inline-shot { display: none; }
.tstep noscript .inline-shot { display: block; margin-top: 18px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-md); width: 100%; height: auto; }
.tstep p.shot-note { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.tstep.on p.shot-note { color: var(--text-2); }
.tour-stage { position: sticky; top: 96px; height: calc(100vh - 140px); max-height: 720px; display: flex; align-items: center; }
.screen { position: relative; width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.screen-bar span { margin: 0 auto; font: 550 12.5px var(--font); color: var(--text-3); transform: translateX(-24px); }
.screen-body { position: relative; aspect-ratio: 16 / 10.4; background: var(--bg); }
.screen-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 1.4s var(--ease); }
.screen-body img.on { opacity: 1; transform: none; }
.screen-body img.contain { object-fit: contain; object-position: center; background: var(--bg); padding: 18px; }
/* The pen: a loop drawn around what matters on each screen, and two twinkles */
.marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.marks .loop { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.marks .tw { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3) rotate(-40deg); }
.marks.drawn .loop, .marks.draw .loop { stroke-dashoffset: 0; }
.marks.drawn .tw, .marks.draw .tw { opacity: 1; transform: none; }
.marks.draw .loop { transition: stroke-dashoffset 1.4s cubic-bezier(0.55, 0.1, 0.3, 1) 0.6s; }
.marks.draw .tw { transition: opacity 0.3s ease 2s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 2s; }
.marks.draw .tw + .tw { transition-delay: 2.2s; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tour-stage { display: none; }
  .tstep { min-height: 0; padding: 22px 0 30px 20px; }
  .tstep h3, .tstep p { color: var(--text); }
  .tstep p { color: var(--text-2); }
  .tstep .inline-shot { display: block; margin-top: 18px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-md); width: 100%; height: auto; }
}

/* ------------------------------------------------------------------ the chat, live */

.chat-sec { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.chat-sec ul.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.chat-sec ul.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); }
.chat-sec ul.ticks li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.chat-sec ul.ticks b { color: var(--text); font-weight: 600; }
.cdemo { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 20px 22px 18px; min-height: 745px; overflow: hidden; }
@media (max-width: 560px) { .cdemo { min-height: 790px; padding: 16px 14px; } }
@media (prefers-reduced-motion: reduce) { .cdemo { min-height: 0; } }
.cdemo-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.orb { width: 30px; height: 30px; border-radius: 50%; background: var(--mark-bg) no-repeat center / 62%; display: grid; place-items: center; color: var(--mark-bird); flex-shrink: 0; position: relative; }
.orb svg { width: 19px; height: 19px; }
.orb svg circle { fill: var(--mark-bg); }
.orb.working::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 80%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cdemo-head b { font: 600 16px var(--serif); }
.cdemo-head .plan-pill { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); font: 600 12.5px var(--font); color: var(--text-2); }
.cdemo-head .plan-pill svg { width: 14px; height: 14px; }
.plan-pill.bump { animation: bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bump { 35% { transform: translateY(-3px) scale(1.1); } }
.plan-pill .plus { position: absolute; top: -8px; right: -6px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 10.5px/16px var(--font); animation: plus 1.6s ease-out forwards; }
@keyframes plus { 0% { opacity: 0; transform: scale(0.6); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.cdemo-thread { display: flex; flex-direction: column; gap: 14px; }
.u-bubble { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--primary); color: var(--on-primary); font-size: 14.5px; }
.u-bubble .atts { display: flex; gap: 6px; margin-bottom: 8px; }
.u-bubble .atts img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.a-turn { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.a-meta { display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--font); color: var(--accent); min-height: 22px; }
.a-meta .clock { font: 500 11.5px var(--mono); color: var(--text-3); font-weight: 500; }
.a-steps { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; position: relative; }
.a-step { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; font-size: 13px; align-items: start; }
.a-step .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.a-step.done .ic { background: var(--ok-soft); color: var(--ok); }
.a-step.run .ic { background: var(--accent-soft); }
.a-step .ic svg { width: 12px; height: 12px; }
.a-step b { font-weight: 600; }
.a-step small { display: block; color: var(--text-3); font-size: 12px; }
.a-text { font-size: 15px; line-height: 1.55; }
.a-text .nib { display: inline-block; width: 0.5em; height: 0.5em; margin-left: 4px; border-radius: 50%; background: var(--accent); animation: nib 1s ease-in-out infinite; }
@keyframes nib { 50% { transform: scale(0.6); opacity: 0.5; } }
.week { margin-top: 12px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.week-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font: 650 13px var(--font); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.week-head .btn { margin-left: auto; height: 30px; padding: 0 12px; font-size: 12.5px; }
.week-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.wday small { display: block; font: 600 11px var(--font); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.wpost { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.wpost img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wpost span { display: flex; align-items: center; gap: 5px; padding: 6px 7px; font-size: 11.5px; color: var(--text-2); }
.wpost .net { width: 13px; height: 13px; }
@media (prefers-reduced-motion: no-preference) { .fade-in { animation: fade-up 0.45s var(--ease) both; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.ghost { position: absolute; z-index: 5; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); transform-origin: 0 0; pointer-events: none; }
@media (max-width: 960px) { .chat-sec { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ------------------------------------------------------------------ autonomy */

.ladder { margin-top: 56px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); padding: 40px clamp(20px, 4vw, 48px) 36px; box-shadow: var(--shadow-md); }
.track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 48px; overflow: visible; }
.track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 2px; background: var(--border-strong); }
.track .fill { position: absolute; left: 12.5%; top: 21px; height: 2px; background: var(--accent); width: 0; transition: width 0.9s var(--ease); }
.stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text-3); padding: 0; overflow: visible; }
.stop .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); z-index: 1; }
.stop .dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); transition: background 0.3s; }
.stop b { font: 600 16px/1.2 var(--font); text-align: center; transition: color 0.3s; }
.stop.past .dot { border-color: var(--accent); }
.stop.past .dot i { background: var(--accent); }
.stop.on { color: var(--text); }
.stop.on .dot { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.12); }
.stop.on .dot i { background: var(--accent); }
.hopper { position: absolute; top: -43px; left: 0; width: 52px; height: 41px; z-index: 2; transform: scaleX(var(--face, 1)); transition: left 0.9s var(--ease); pointer-events: none; }
.hopper svg.dk { width: 100%; height: 100%; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .hopper.jump svg.dk { animation: hop 0.9s var(--ease); } }
@keyframes hop { 45% { transform: translateY(-16px) rotate(-8deg); } 80% { transform: translateY(0) scale(1.1, 0.88); } }
.ladder-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 150px; }
.ladder-copy h3 { font-size: 28px; }
.ladder-copy p { color: var(--text-2); margin: 8px 0 0; }
.ex { border-radius: 16px; border: 1px solid var(--border); background: var(--bg); padding: 14px 16px; font-size: 14px; }
.ex .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ex .row + .row { margin-top: 10px; }
.ex .mut { color: var(--text-3); }
.ex .btns { display: flex; gap: 8px; margin-left: auto; }
.ex .btns span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.ex .btns span.go { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.ladder .note { margin: 22px 0 0; color: var(--text-3); font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.ladder .note .pix { margin-top: 6px; }
@media (max-width: 760px) { .ladder-copy { grid-template-columns: minmax(0, 1fr); } .stop b { font-size: 13.5px; } .stop-note { font-size: 18px; } }

/* ------------------------------------------------------------------ studio */

.studio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.gallery { --gh: 520px; position: relative; height: var(--gh); overflow: hidden; border-radius: 26px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
/* Each column keeps its own height (so its loop is exactly two copies), and the tilt turns around the window's middle */
.gcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; padding: 0 12px; transform: rotate(-4deg) scale(1.02); transform-origin: 50% calc(var(--gh) / 2); }
.gcol { display: flex; flex-direction: column; gap: 14px; }
.gcol img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-md); background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .gcol { animation: rise 62s linear infinite; }
  .gcol:nth-child(2) { animation-name: fall; animation-duration: 74s; }
  .gcol:nth-child(3) { animation-duration: 68s; }
  .gallery:hover .gcol { animation-play-state: paused; }
}
@keyframes rise { to { transform: translateY(-50%); } }
@keyframes fall { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.studio ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.studio li { padding: 14px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.studio li b { display: block; color: var(--text); font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .studio { grid-template-columns: minmax(0, 1fr); } .gallery { --gh: 380px; } }

/* ------------------------------------------------------------------ networks */

.nets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
@media (max-width: 1000px) { .nets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .nets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ntile { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.ntile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ntile .net { width: 34px; height: 34px; padding: 6px; border-radius: 11px; background: var(--surface-2); }
.ntile b { display: block; font-weight: 650; }
.ntile small { color: var(--text-3); font-size: 12.5px; line-height: 1.35; display: block; }
.ntile .live { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .ntile .live { animation: live 2.4s ease-in-out infinite; } }
@keyframes live { 50% { box-shadow: 0 0 0 5px transparent; } }
.ntile.more { background: transparent; border-style: dashed; border-width: 1.5px; }
.ntile .net.plus { font: 400 24px/1 var(--font); color: var(--text-3); background: transparent; border: 1.5px dashed var(--border-strong); }
.nets-note { margin-top: 18px; color: var(--text-3); font-size: 14px; max-width: 760px; }

/* ------------------------------------------------------------------ pricing */

.pricing { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 50px; align-items: start; margin-top: 50px; }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); }
.principles li::before { content: counter(p, decimal-leading-zero); font: 600 13px var(--mono); color: var(--accent); padding-top: 4px; }
.principles b { display: block; font: 600 20px var(--serif); margin-bottom: 4px; }
.principles span { color: var(--text-2); }
.free { position: sticky; top: 100px; border-radius: 24px; padding: 26px; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-lg); overflow: hidden; }
.free h3 { font-size: 28px; }
.free .eyebrow { color: var(--mark-bird); margin-bottom: 6px; }
.free ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.free li { display: flex; gap: 10px; opacity: 0.9; }
.free li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--mark-bird); margin-top: 3px; }
.free .btn { background: var(--on-primary); color: var(--primary); border-color: transparent; width: 100%; }
.free small { display: block; margin-top: 12px; opacity: 0.6; font-size: 12.5px; }
.free [data-doodle-art] { display: flex; justify-content: flex-end; margin: 4px -14px -26px 0; }
.free .dk { width: 170px; --dk-ink: var(--on-primary); --dk-paper: var(--primary); --dk-soft: color-mix(in srgb, var(--on-primary) 12%, var(--primary)); }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } .free { position: relative; top: 0; } }

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

.faq { max-width: 820px; margin: 44px auto 0; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 22px 4px; cursor: pointer; list-style: none; font: 600 clamp(18px, 2vw, 21px) var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; margin-left: auto; color: var(--line-3); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq .ans { color: var(--text-2); padding: 0 40px 22px 4px; font-size: 16.5px; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] .ans { animation: fade-up 0.35s var(--ease); } }
/* How to sign in, as the hosted server has it set up (it writes data-auth-methods: "email", "google" or both) */
[data-auth="google"], [data-auth="both"], [data-auth-methods*="google"] [data-auth="email"] { display: none; }
[data-auth-methods="google"] [data-auth="google"], [data-auth-methods*=","] [data-auth="both"] { display: inline; }

/* ------------------------------------------------------------------ join */

.join { position: relative; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: clamp(36px, 6vw, 70px) clamp(22px, 5vw, 64px) 0; text-align: center; }
.join h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.join .lede { margin-left: auto; margin-right: auto; }
.join form { display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0; }
.join input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 15px var(--font); }
.join input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }
.join .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.join .btn { height: 50px; }
.join input:disabled { cursor: not-allowed; opacity: 0.75; }
.join .btn:disabled { cursor: not-allowed; opacity: 0.6; transform: none; box-shadow: none; }
.join .privacy { margin: 6px auto 0; max-width: 480px; color: var(--text-3); font-size: 13px; }
.join .msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.join .sky { margin: 26px auto 0; max-width: 760px; }
.join .sky svg.dk { width: 100%; }
@media (max-width: 520px) { .join form { flex-direction: column; } .join input { flex: none; } }

/* ------------------------------------------------------------------ footer */

.footer { position: relative; margin-top: clamp(80px, 10vw, 130px); padding: 0 0 36px; background: var(--bg-2); border-top: 1px solid var(--border); overflow: hidden; }
.fwire { position: relative; height: 200px; }
.fwire svg.line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fwire svg.line path { fill: none; stroke: var(--line-3); stroke-width: 1.5; stroke-linecap: round; }
.fwire svg.line .pole { stroke: var(--line-3); stroke-width: 3; }
.perch { position: absolute; z-index: 2; width: 46px; height: 46px; margin: -46px 0 0 -23px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); text-decoration: none; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); transform-origin: 50% 100%; }
.perch svg { width: 24px; height: 24px; }
.perch:hover, .perch:focus-visible { transform: translateY(-8px) rotate(-6deg) scale(1.08); }
.perch.land { animation: land 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes land { 30% { transform: translateY(5px) scale(1.06, 0.9); } 65% { transform: translateY(-4px); } }
.perch .tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 8px; background: var(--primary); color: var(--on-primary); font: 600 12px var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.perch:hover .tip, .perch:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .perch { animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.5s); } .perch.land { animation: land 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); } }
@keyframes sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
.fwren { position: absolute; z-index: 3; left: 0; top: 0; width: 42px; height: 33px; pointer-events: none; will-change: transform; }
.fwren svg.dk { width: 100%; height: 100%; }
.fcols { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr)); gap: 30px; padding: 40px 0 10px; }
.fcols .brand b { font-size: 26px; }
.fcols p { color: var(--text-2); max-width: 300px; font-size: 14.5px; }
.fcols h2 { margin: 4px 0 12px; font: 600 12px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fcols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fcols ul a { color: var(--text-2); text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.fcols ul a:hover { color: var(--accent); }
.wordmark { position: relative; margin-top: 36px; user-select: none; }
.wm-text { display: block; font: 700 clamp(90px, 22vw, 300px)/0.8 var(--serif); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); text-align: center; }
.wordmark svg.wm { display: block; width: 100%; max-width: 920px; height: auto; margin: 0 auto; overflow: visible; }
.wm .letter { font-family: var(--serif); font-weight: 700; fill: rgba(226, 239, 234, 0); stroke: #9fc3b7; stroke-width: 3.4; stroke-linejoin: round; paint-order: stroke fill; stroke-dasharray: 3200; stroke-dashoffset: 3200; }
.wm .hatch { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; opacity: 0; }
.wm .ground { fill: none; stroke: color-mix(in srgb, var(--text) 55%, transparent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.wm .tuft { fill: none; stroke: color-mix(in srgb, var(--text) 55%, transparent); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.wordmark.in .wm .letter { animation: wm-draw 2.6s cubic-bezier(0.5, 0.1, 0.3, 1) forwards, wm-fill 1.6s ease forwards; animation-delay: calc(var(--k) * 0.4s), calc(2.2s + var(--k) * 0.4s); }
.wordmark.in .wm .hatch { transition: opacity 1.4s ease 3.6s; opacity: 0.3; }
.wordmark.in .wm .ground { transition: stroke-dashoffset 1.8s ease 1.4s; stroke-dashoffset: 0; }
.wordmark.in .wm .tuft { transition: opacity 0.6s ease 3s; opacity: 1; }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-fill { to { fill: rgba(226, 239, 234, 1); } }
@media (prefers-reduced-motion: reduce) {
  .wm .letter { stroke-dashoffset: 0; fill: rgba(226, 239, 234, 1); }
  .wm .ground { stroke-dashoffset: 0; }
  .wm .tuft { opacity: 1; }
  .wm .hatch { opacity: 0.3; }
}
.wm-bird { position: absolute; left: 0; top: 0; z-index: 2; width: 60px; pointer-events: none; will-change: transform; }
.wm-bird.flying { width: 74px; }
.wm-bird svg.dk { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .wm-bird.land svg.dk { animation: perch-hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); } }
.wm-note { position: absolute; z-index: 2; margin: -34px 0 0 -12px; font: 700 30px/1 "Caveat", cursive; color: var(--accent); pointer-events: none; animation: wm-note 2.6s ease-out forwards; }
@keyframes wm-note { 0% { opacity: 0; transform: translate(0, 8px) scale(0.6); } 14% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(18px, -54px) rotate(14deg); } }
/* "hi!": a speech bubble whose corner points at the beak */
.wm-say { position: absolute; z-index: 3; padding: 4px 12px 6px; border-radius: 14px 14px 3px 14px; background: var(--surface); border: 1.5px solid var(--line-3); font: 700 22px/1 "Caveat", cursive; color: var(--text); white-space: nowrap; pointer-events: none; transform-origin: 100% 100%; animation: wm-say 3s ease forwards; }
.wm-say.right { border-radius: 14px 14px 14px 3px; transform-origin: 0 100%; }
@keyframes wm-say { 0% { opacity: 0; translate: -100% -100%; scale: 0.8; } 10%, 82% { opacity: 1; translate: -100% -100%; scale: 1; } 100% { opacity: 0; translate: -100% calc(-100% - 6px); scale: 1; } }
.wm-say.right { animation-name: wm-say-r; }
@keyframes wm-say-r { 0% { opacity: 0; translate: 0 -100%; scale: 0.8; } 10%, 82% { opacity: 1; translate: 0 -100%; scale: 1; } 100% { opacity: 0; translate: 0 calc(-100% - 6px); scale: 1; } }
.fine-print { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; margin-top: 18px; color: var(--text-3); font-size: 13px; }
@media (max-width: 820px) { .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .fwire { height: 300px; } .perch { width: 40px; height: 40px; margin: -40px 0 0 -20px; border-radius: 12px; } .perch svg { width: 21px; height: 21px; } .fwren { width: 36px; height: 28px; } }

/* ------------------------------------------------------------------ the pen: notes, marks and fly-bys */

/* Handwritten notes: they write themselves in, then their arrow draws */
.scrawl { position: absolute; z-index: 5; margin: 0; font: 600 23px/1.15 "Caveat", "Bradley Hand", "Segoe Print", cursive; color: var(--accent-ink); white-space: nowrap; pointer-events: none; text-align: left; }
.scrawl .nt { display: inline-block; clip-path: inset(-40% 100% -40% -14px); transition: clip-path 0.85s cubic-bezier(0.25, 0.7, 0.25, 1); }
.scrawl.in .nt { clip-path: inset(-40% -14px -40% -14px); }
.scrawl .arrow { position: absolute; width: 58px; max-width: none; height: auto; overflow: visible; }
.scrawl .arrow path { fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s ease; }
.scrawl.in .arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s ease 1.1s; }
.scrawl.in .arrow .head { transition: stroke-dashoffset 0.3s ease 1.85s; }
@media (prefers-reduced-motion: reduce) { .scrawl .nt { clip-path: none; transition: none; } .scrawl .arrow path { stroke-dashoffset: 0; transition: none; } }

.hero-note { left: calc(50% + 206px); top: calc(100% - 96px); transform: rotate(-5deg); }
.hero-note .arrow { width: 64px; left: 18px; top: 30px; transform: scaleX(-1) rotate(4deg); }
@media (max-width: 1000px) { .hero-note { display: none; } }

.flow .scrawl { font-size: 21px; }
.core-note { bottom: calc(100% + 26px); left: 50%; transform: translateX(-50%) rotate(-4deg); }
.core-note .arrow { width: 40px; left: calc(50% - 4px); top: calc(100% - 2px); transform: rotate(14deg); }
.lanes-note { top: calc(100% + 30px); left: 50%; transform: translateX(-50%) rotate(3deg); }
.lanes-note.to-right { transform: translateX(-66%) rotate(3deg); }
.lanes-note.to-right .arrow { width: 40px; left: calc(100% + 2px); top: -26px; transform: rotate(-90deg); }
.lanes-note.to-left .arrow { width: 48px; right: calc(100% + 2px); top: -28px; transform: rotate(90deg) scaleX(-1); }
@media (max-width: 940px) { .flow .scrawl { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow .scrawl[data-for="publish"] { display: none; } }

.cdemo-wrap { position: relative; }
.chat-note { right: 110px; bottom: calc(100% + 2px); transform: rotate(-3deg); }
.chat-note .arrow { width: 50px; left: calc(100% + 4px); top: 8px; transform: rotate(-6deg); }
.stop-note { top: calc(100% + 8px); left: 50%; transform: translateX(-50%) rotate(-3deg); padding: 2px 6px; font-size: 20px; line-height: 1.25; }
.free-note { top: 26px; right: 24px; transform: rotate(6deg); color: var(--mark-bird); font-size: 22px; }
.free-note .arrow { width: 42px; right: 34px; top: calc(100% - 2px); transform: scaleX(-1) rotate(22deg); }
@media (max-width: 420px) { .free-note { display: none; } }

/* A pen mark under (or around) a heading's key words, drawn as it arrives */
.scrib { position: relative; font-style: inherit; white-space: nowrap; }
.scrib > svg { position: absolute; max-width: none; pointer-events: none; overflow: visible; }
.scrib > svg path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.72; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.scrib.in > svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.55, 0.1, 0.3, 1) 0.5s; }
.scrib.in > svg path + path { transition-delay: 1.6s; transition-duration: 0.6s; }
@media (prefers-reduced-motion: reduce) { .scrib > svg path { stroke-dashoffset: 0; } }

/* How it works: a wren carries a letter from step to step, leaving a dotted trail */
.steps { position: relative; }
.steps-flight { position: absolute; left: 0; top: -90px; width: 100%; height: calc(100% + 90px); z-index: 3; pointer-events: none; overflow: visible; }
.steps-flight .trail { fill: none; stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 2.2; stroke-dasharray: 1.5 8; stroke-linecap: round; transition: opacity 1.2s ease; }
.steps-flight.fade .trail { opacity: 0; }
.courier { position: absolute; left: 0; top: 0; z-index: 4; width: 76px; pointer-events: none; will-change: transform, opacity; opacity: 0; }

/* The hero's sky: now and then a wren crosses it with a letter */
.flyby { position: absolute; left: 0; top: 0; z-index: 1; width: 72px; pointer-events: none; will-change: transform; opacity: 0; }
@media (max-width: 640px) { .flyby { width: 52px; } }

/* ------------------------------------------------------------------ more life: wires, skies, shy birds */

/* Under the nav, a wire with a wren that walks it as you scroll */
.scrollwire { position: absolute; left: 0; right: 0; bottom: -2px; height: 30px; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.nav.scrolled .scrollwire { opacity: 1; }
.sw-line { position: absolute; left: 0; bottom: 0; width: 100%; height: 30px; overflow: visible; }
.sw-line .wire { fill: none; stroke: color-mix(in srgb, var(--text) 22%, transparent); stroke-width: 1.3; stroke-linecap: round; }
.sw-line .done { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.sw-line .knot { fill: var(--bg); stroke: color-mix(in srgb, var(--text) 32%, transparent); stroke-width: 1.3; transition: fill 0.35s, stroke 0.35s; }
.sw-line .knot.past { fill: var(--accent); stroke: var(--accent); }
.sw-wren { position: absolute; left: 0; bottom: 1px; width: 27px; will-change: transform; }
.sw-wren svg.dk { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .sw-wren.peck svg.dk { animation: sw-peck 0.55s ease-in-out; } }
@keyframes sw-peck { 30% { transform: rotate(-24deg) translate(-2px, 2px); } 55% { transform: rotate(-4deg); } 72% { transform: rotate(-20deg) translate(-2px, 2px); } }

/* The hero's sky: two or three clouds in the margins, and now and then a far-off flock */
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hcloud { position: absolute; opacity: 0.5; --dk-ink: color-mix(in srgb, var(--text) 34%, transparent); --dk-paper: color-mix(in srgb, var(--surface) 70%, transparent); }
.hcloud.c1 { width: 104px; left: 6%; top: 150px; }
.hcloud.c2 { width: 82px; right: 8%; top: 96px; }
.hcloud.c3 { width: 62px; right: 15%; top: 330px; }
@media (prefers-reduced-motion: no-preference) {
  .hcloud { animation: cloud-drift 40s ease-in-out infinite alternate; }
  .hcloud.c2 { animation-duration: 52s; animation-delay: -14s; }
  .hcloud.c3 { animation-duration: 34s; animation-delay: -7s; }
}
@keyframes cloud-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@media (max-width: 960px) { .hcloud { display: none; } }
.flock-g { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.gull { position: absolute; width: 17px; height: 9px; max-width: none; overflow: visible; }
.gull path { fill: none; stroke: color-mix(in srgb, var(--text) 46%, transparent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .gull { animation: flap 0.52s ease-in-out infinite alternate; transform-origin: 50% 70%; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.3) translateY(1.5px); } }

/* Buttons with a wren behind them: hover and it peeks over the top */
.btn { position: relative; }
.peek { position: absolute; right: 16px; bottom: 100%; width: 38px; height: 34px; overflow: hidden; pointer-events: none; }
.btn .peek svg.dk { width: 100%; height: auto; transform: translateY(135%); transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.btn:not(:disabled):hover .peek svg.dk, .btn:not(:disabled):focus-visible .peek svg.dk { transform: translateY(12%); }
@media (hover: none) { .peek { display: none; } }

/* The tour's screen has a wren on its frame, who hops over to what's circled */
.tour-wren { position: absolute; left: 0; top: 0; z-index: 3; width: 38px; pointer-events: none; will-change: transform; }
@media (max-width: 900px) { .tour-wren { display: none; } }

/* The Studio's painter, and the phone the networks hand posts to */
.studio-art { width: min(270px, 80%); margin-top: 22px; }
.nets-foot { display: flex; align-items: center; gap: 18px; margin-top: 22px; max-width: 820px; }
.nets-foot .nets-note { margin: 0; }
.nets-art { width: 150px; flex-shrink: 0; }
@media (max-width: 560px) { .nets-foot { flex-direction: column; align-items: flex-start; gap: 6px; } .nets-art { width: 130px; } }

/* The network tiles do a wave now and then, like birds on a wire */
@media (prefers-reduced-motion: no-preference) { .nets.wave .ntile .net { animation: tile-hop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: calc(var(--n, 0) * 85ms); } }
@keyframes tile-hop { 40% { transform: translateY(-9px) rotate(-8deg); } 72% { transform: translateY(1px) scale(1.06, 0.92); } }

/* Sign-up: a wren waits on the field, then carries your address away */
.join form { position: relative; }
.join-wren { position: absolute; right: 150px; bottom: calc(100% - 3px); width: 40px; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.join-wren.on { opacity: 1; }
.join-wren svg.dk { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .join-wren.land svg.dk { animation: perch-hop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1); } }
@media (max-width: 520px) { .join-wren { right: 28px; } }
.courier-fly { position: fixed; left: 0; top: 0; z-index: 80; width: 72px; pointer-events: none; will-change: transform; }

/* ------------------------------------------------------------------ the post office: stamps, envelopes */

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* A postmark: thunked onto a post as it goes out */
.postmark { position: absolute; right: 118px; top: 50%; z-index: 2; width: 110px; color: var(--accent); opacity: 0.82; transform: translateY(-50%) rotate(-12deg); pointer-events: none; mix-blend-mode: multiply; }
.postmark svg { display: block; width: 100%; max-width: none; height: auto; overflow: visible; filter: url(#ink-rough); }
.postmark .pm-ring { fill: none; stroke: currentColor; stroke-width: 2.4; }
.postmark .pm-ring.thin { stroke-width: 1.2; }
.postmark .pm-arc { font: 700 6.4px var(--mono); letter-spacing: 1.2px; fill: currentColor; }
.postmark .pm-time { font: 700 13px var(--mono); fill: currentColor; }
.postmark .pm-wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .postmark { animation: thunk 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
  .prow.thunked { animation: row-thunk 0.35s ease-out; }
}
@keyframes thunk { 0% { transform: translateY(-50%) rotate(-3deg) scale(1.9); opacity: 0; } 55% { opacity: 0.95; } 100% { transform: translateY(-50%) rotate(-12deg) scale(1); opacity: 0.82; } }
@keyframes row-thunk { 30% { transform: translateY(1.5px) scale(0.992); } }

/* Signing up: your address, handwritten on an envelope, stamped, and flown off */
.envelope { position: absolute; left: 50%; top: 50%; z-index: 4; width: 156px; margin: -50px 0 0 -78px; pointer-events: none; transform-origin: 50% 60%; }
.envelope > svg { display: block; width: 100%; max-width: none; height: auto; overflow: visible; }
.envelope .env-body { fill: var(--surface); stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; filter: url(#ink-rough); }
.envelope .env-line { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.envelope .env-stamp { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 2; }
.envelope .env-stamp-art { fill: var(--accent); }
.env-addr { position: absolute; left: 11%; top: 58%; max-width: 70%; overflow: hidden; text-overflow: ellipsis; font: 700 15px/1.1 "Caveat", cursive; color: var(--text); white-space: nowrap; clip-path: inset(-30% 100% -30% -5%); transition: clip-path 1.1s cubic-bezier(0.45, 0.05, 0.35, 1); }
.envelope.write .env-addr { clip-path: inset(-30% -5% -30% -5%); }
.envelope .postmark { right: auto; left: 55%; top: 30%; width: 84px; }
.env-bird { position: absolute; left: 50%; top: -46px; width: 78px; margin-left: -39px; opacity: 0; }
.envelope.carried .env-bird { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .envelope.in { animation: env-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; } }
@keyframes env-in { from { transform: translateY(12px) scale(0.6) rotate(-6deg); opacity: 0; } }

/* The hero: tap a network and it sends a message */
.sources { position: relative; }
.flow[data-phase="reply"] .src { cursor: pointer; }
.flow[data-phase="reply"] .src:not(.inbox) { opacity: 0.4; }
.flow[data-phase="reply"] .src.inbox:hover { translate: 0 -3px; }
.src-tip { position: absolute; z-index: 6; margin-top: -8px; width: max-content; max-width: 190px; padding: 6px 10px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font: 600 11.5px/1.35 var(--font); text-align: center; transform: translate(-50%, -100%); pointer-events: none; animation: tip-in 2.6s ease both; }
@keyframes tip-in { 0% { opacity: 0; translate: 0 4px; } 10%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.src-note { top: calc(100% + 22px); left: 50%; transform: translateX(-50%) rotate(-3deg); }
.src-note .arrow { width: 38px; left: calc(100% + 2px); top: -34px; transform: rotate(-120deg); }

/* The ladder's wren has moods: asleep at Off, curious at Ask, singing at Auto */
.hop-say { position: absolute; left: 50%; bottom: calc(100% - 4px); font: 700 26px/1 "Caveat", cursive; color: var(--accent); pointer-events: none; scale: var(--face, 1) 1; }
@media (prefers-reduced-motion: no-preference) { .hop-say { animation: say-bob 1.6s ease-in-out infinite; } }
@keyframes say-bob { 0%, 100% { transform: translate(-50%, 0) rotate(-6deg); } 50% { transform: translate(-50%, -5px) rotate(6deg); } }

/* Pricing: the cap, drawn as a jar */
.principles li.has-art { position: relative; }
.principles li.has-art > div:first-child { padding-right: 170px; }
.p-art { position: absolute; right: -4px; top: 50%; width: 160px; transform: translateY(-50%); pointer-events: none; }
@media (max-width: 700px) { .principles li.has-art > div:first-child { padding-right: 0; } .p-art { position: static; grid-column: 2; width: 150px; transform: none; margin-top: 6px; } }

/* Loops that are off screen hold still */
.off, .off * { animation-play-state: paused !important; }

/* The flock (type "wren") */
.flock { position: fixed; left: 0; top: 0; z-index: 90; width: 52px; pointer-events: none; }

/* ------------------------------------------------------------------ getting started: the six questions, and the setup replayed (setup.js) */

.su-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.su-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; counter-reset: su; }
.su-steps li { position: relative; display: grid; gap: 2px; padding-left: 38px; color: var(--text-2); counter-increment: su; }
/* Numbered like the margin of Wren's notes: a red ink hand-written number */
.su-steps li::before { content: counter(su); position: absolute; left: 0; top: -4px; width: 24px; text-align: center; font: 700 25px/1 "Caveat", cursive; color: #b8574f; }
.su-steps b { color: var(--text); font-weight: 600; }

.su-demo { position: relative; padding-top: 10px; }
.su-scene { position: relative; height: 330px; }
/* The nest box and hedges are absolutely placed SVGs: the global svg { max-width: 100% } must not shrink them */
.su-scene svg { max-width: none; }
.su-box { position: absolute; left: 50%; bottom: -20px; z-index: 2; width: 290px; translate: -50% 0; }
/* A soft island: the bushes fade out sideways and into the ground, so no straight edge shows beside the card */
.su-hedge { position: absolute; left: -30px; right: -30px; bottom: 0; pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 100%, #000 58%, transparent 98%), linear-gradient(to top, transparent, #000 36px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 50% 100% at 50% 100%, #000 58%, transparent 98%), linear-gradient(to top, transparent, #000 36px);
  mask-composite: intersect; }
.su-hedge.far { height: 110px; z-index: 1; }
.su-hedge.near { height: 60px; z-index: 3; }

/* Wren's notes: an index card with a red margin, ruled lines and a strip of tape (as in the app) */
.su-card { --rule: #dfe6ee; position: relative; z-index: 4; max-width: 460px; margin: -28px auto 0; padding: 20px 22px 16px 48px; border-radius: 5px; background: var(--surface); rotate: -0.7deg;
  box-shadow: 0 22px 36px -24px rgba(28, 27, 25, 0.5), 0 1px 2px rgba(28, 27, 25, 0.08); }
.su-card::before { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 1.5px; background: #efc1bb; }
.su-card::after { content: ""; position: absolute; left: 50%; top: -11px; width: 92px; height: 24px; margin-left: -46px; background: color-mix(in srgb, var(--warm) 38%, transparent); rotate: 2deg; }
.su-title { margin: 0; font: 600 20px/1.2 var(--serif); color: var(--text); }
.su-sub { margin: 0; font: 600 19px/1.2 "Caveat", cursive; color: var(--accent-ink); }
.su-lines { list-style: none; margin: 8px 0 0 -35px; padding: 0 0 0 35px; min-height: 240px; background: repeating-linear-gradient(to bottom, transparent 0 29px, var(--rule) 29px 30px); }
.su-line { position: relative; font: 600 19.5px/30px "Caveat", "Bradley Hand", cursive; color: var(--accent-ink); }
.su-line[data-n]::before { content: attr(data-n); position: absolute; left: -31px; top: 0; width: 18px; text-align: center; font: 700 16px/30px "Caveat", cursive; color: #b8574f; }
.su-hand { display: inline-block; max-width: 100%; }
/* The pencil rides the tip as each line is written in, a row at a time (/auth/pen.js) */
.su-pencil { position: absolute; left: 0; top: -4px; width: 26px; height: 26px; pointer-events: none; opacity: 0; }
.su-pencil svg { width: 100%; height: 100%; max-width: none; overflow: visible; }
.su-pencil .body { fill: var(--warm); }
.su-pencil .ink { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.su-pencil .tip { fill: var(--text); }
/* The pen's note sits beside the box, two lines written one after the other, its arrow down into the card */
.su-note { right: -4px; top: 234px; font-size: 22px; line-height: 1.08; transform: rotate(-4deg); }
.su-note .nt + br + .nt { transition-delay: 0.75s; }
.su-note.in .arrow path { transition-delay: 1.8s; }
.su-note.in .arrow .head { transition-delay: 2.55s; }
.su-note .arrow { width: 50px; left: -26px; top: calc(100% - 4px); transform: scaleX(-1) rotate(8deg); }
/* Narrower columns leave no room for the note beside the box */
@media (max-width: 1180px) { .su-note { display: none; } }
@media (max-width: 960px) {
  .su-sec { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 520px) {
  .su-scene { height: 250px; margin: 0 -10px; overflow: hidden; }
  .su-box { width: 214px; bottom: -16px; }
  .su-card { padding: 16px 14px 12px 42px; }
  /* Sized to the card, so the longest answer still fits on one ruled line (the pencil writes one line at a time) */
  .su-lines { container-type: inline-size; }
  .su-line { font-size: 18px; font-size: clamp(13px, 5.5cqi, 18px); }
}
