/* Telly styles. One palette for every page: stone, sage and off-white, serif headlines,
   Poppins for text, outlined mono labels.
   1. Landing page (signed out).  2. The app (signed in).  3. The privacy page. */

/* Poppins is served from /fonts (SIL Open Font License), so no third-party font requests. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-300.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600.woff2') format('woff2'); }

:root {
  --olive: #413f32;
  --deep: #201f1a;
  --stone: #615e50;
  --mist: #f5f5f5;
  --sage: #e3e9d5;
  --sage-2: #cfd9bb;
  --white: #ffffff;
  --amber: #e8a25c;
  --sky: #9fb6ff;
  --mint: #b5dba0;
  --rose: #e8796a;

  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --edge: 24px;
  --content: max(24px, 10vw);
  --header-h: 72px;
}
@media (max-width: 760px) { :root { --edge: 16px; --content: 20px; } }

/* Shared tokens. The site is light everywhere, the same way the landing page is. */
:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f8f8f4;
  --text: #201f1a;
  --muted: #6a675a;
  --line: #e4e4dc;
  --accent: #413f32;
  --on-accent: #ffffff;
  --old: #a3271c;
  --old-bg: #fbe9e7;
  --new: #3d5a1e;
  --new-bg: #e3e9d5;
  --warn: #7a5300;
  --warn-bg: #f8ecd2;
  --info: #413f32;
  --info-bg: #eef1e6;
  --error-bg: #fbe9e7;
  --error-text: #8a1c14;
  --shadow: 0 1px 2px rgba(32, 31, 26, 0.04), 0 10px 30px rgba(32, 31, 26, 0.06);
  --hdr-bg: rgba(245, 245, 245, 0.82);
  --hdr-ink: #413f32;
}

/* ---- Base ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--mist); color: var(--olive);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-mode='app'] { background: var(--bg); color: var(--text); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; font-weight: 400; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; padding: 0 var(--edge); }

/* Boot fade while the session check runs. Falls away on its own if scripts fail. */
.boot {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--stone); pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
body.is-loading .boot { opacity: 1; visibility: visible; transition: none; animation: boot-out 0.4s 3s forwards; }
.boot-mark { width: 40px; height: 2px; background: rgba(255, 255, 255, 0.8); border-radius: 2px; animation: boot-line 1s var(--ease-in-out) infinite alternate; }
@keyframes boot-line { from { transform: scaleX(0.2); } to { transform: scaleX(1); } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }

/* ---- Header ---------------------------------------------------------------------- */

.site-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; height: 0; }
.header-bar {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  min-height: 48px; padding: 6px 8px 6px 16px; border-radius: 12px;
  background: var(--hdr-bg); color: var(--hdr-ink);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  transition: left 0.9s var(--ease-out), transform 0.9s var(--ease-out), background-color 0.3s;
  white-space: nowrap;
}
body[data-mode='landing'].is-scrolled .header-bar { left: var(--edge); transform: none; }
body[data-mode='app'] .header-bar { left: var(--edge); right: var(--edge); transform: none; justify-content: space-between; border: 1px solid color-mix(in srgb, var(--hdr-ink) 8%, transparent); }

.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 500; color: inherit; }
.wordmark-mark { width: 24px; height: 18px; fill: currentColor; flex: none; }
.wordmark-lg { font-size: 2rem; gap: 10px; }
.wordmark-lg .wordmark-mark { width: 34px; height: 26px; }

.header-nav ul { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  border: 0; background: transparent; font: inherit; font-size: 0.9375rem; color: inherit; text-decoration: none; cursor: pointer;
  opacity: 0.85; transition: opacity 0.2s, background-color 0.2s;
}
.nav-link:hover { opacity: 1; background: rgba(65, 63, 50, 0.06); }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 240px; padding: 6px; transform: translateX(-50%);
  background: rgba(245, 245, 245, 0.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(32, 31, 26, 0.16); animation: drop-in 0.35s var(--ease-out);
}
.dropdown-panel ul { display: grid; gap: 2px; }
.dropdown-panel a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 8px; text-decoration: none; color: var(--olive); font-size: 0.9375rem; }
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: #fff; }
.tile { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.tile-why { background: linear-gradient(140deg, #8a7a62, #c9b48f); }
.tile-diff { background: linear-gradient(140deg, #f5f5f5, #cfd9bb); }
.tile-built { background: linear-gradient(140deg, #9fb6ff, #e3e9d5); }
.tile-privacy { background: linear-gradient(140deg, #e3b7b0, #8cc3c7); }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -6px); } }

.account { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 0.875rem; }
#account-line { opacity: 0.7; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.account select { width: auto; padding: 6px 10px; border-radius: 8px; }
.account .ghost { border-radius: 8px; padding: 0 12px; color: inherit; }

.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-center { justify-content: center; }
.text-cta-light { color: #fff; }
.demo-badge { height: 22px; font-size: 0.6875rem; padding: 1px 10px 0; }
.demo-note { margin: 18px 0 0; max-width: 60ch; padding: 14px 18px; border-radius: 12px; background: rgba(227, 233, 213, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.875rem; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.demo-note a { color: #fff; }
@media (max-width: 760px) {
  .header-nav .nav-link:not([href='/auth/login']):not(.nav-demo), .header-nav .dropdown { display: none; }
  body[data-mode='landing'] .header-bar { left: var(--edge); transform: none; }
  #account-line, #demo-connect { display: none; }
  .account { flex-wrap: nowrap; }
}

/* ---- Toasts ---------------------------------------------------------------------- */

.toasts { position: fixed; top: 76px; left: 0; right: 0; z-index: 45; display: grid; justify-items: center; gap: 8px; padding: 0 var(--edge); pointer-events: none; }
.banner {
  pointer-events: auto; margin: 0; max-width: 640px; width: fit-content; padding: 12px 18px 12px 16px; border-radius: 12px;
  font-size: 0.9375rem; box-shadow: 0 10px 30px rgba(32, 31, 26, 0.14); cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start; animation: toast-in 0.45s var(--ease-out);
}
.banner::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: currentColor; }
.banner.error { background: var(--error-bg); color: var(--error-text); }
.banner.success { background: var(--new-bg); color: var(--new); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---- Shared landing type and controls -------------------------------------------- */

.display { font-family: var(--serif); font-size: clamp(2.5rem, 4.2vw, 4.25rem); line-height: 1; letter-spacing: -0.01em; }
.display-center { text-align: center; }
.statement { font-family: var(--serif); font-size: clamp(1.75rem, 2.7vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.statement.center { text-align: center; }
.body-small { font-size: 0.875rem; line-height: 1.45; max-width: 34ch; margin: 20px 0 0; opacity: 0.85; }
.eyebrow { display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }

/* Outlined uppercase label, used for every section and step marker. */
.label {
  display: inline-flex; align-items: center; height: 26px; padding: 1px 12px 0; border-radius: 999px;
  border: 1px solid currentColor; font-family: var(--mono); font-size: 0.75rem; line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.label-light { color: #fff; }

/* Two pill styles: the plain white call to action, and the small app pills. */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 32px;
  border-radius: 999px; border: 1px solid #fff; background: #fff; color: var(--olive);
  font-size: 1rem; text-decoration: none; transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn-pill:hover { background: transparent; color: #fff; }
.pill { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-soft { background: var(--surface); color: var(--muted); border: 1px solid var(--line); padding: 4px 11px; font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.6875rem; }

/* Text link with an underline that redraws on hover. */
.text-cta { position: relative; display: inline-block; text-decoration: none; font-size: 0.9375rem; padding-bottom: 3px; white-space: nowrap; }
.text-cta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.5s var(--ease-out); }
.text-cta:hover::after { animation: redraw 0.7s var(--ease-out); }
@keyframes redraw { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

.section-head { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(180px, 1fr) 2fr minmax(180px, 1fr); align-items: start; gap: 24px; }
  .head-cta { justify-self: end; padding-top: 6px; }
}

.grain {
  position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Timeline: a full-width line with drifting dashes and a label pill ----------- */

.timeline { position: absolute; left: 0; right: 0; height: 30px; z-index: 3; }
.timeline-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.55); }
.timeline-dashes { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; overflow: hidden; }
.dash-track { display: flex; width: max-content; height: 100%; animation: drift var(--dur, 60s) linear infinite; }
.dash { height: 6px; border-radius: 6px; background: #fff; flex: none; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }
.timeline-pill { position: absolute; left: var(--content); top: 0; z-index: 1; }
.timeline-pill-size {
  display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 1px 14px 0 8px; overflow: hidden; white-space: nowrap;
  border: 1px solid #fff; border-radius: 999px; color: #fff;
  background: rgba(32, 31, 26, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: width 0.6s var(--ease-out);
}
.timeline-pill-size i { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); flex: none; transition: background-color 0.5s; }
.timeline-pill-size span { display: inline-block; transition: opacity 0.3s, transform 0.45s var(--ease-out), filter 0.3s; }
.timeline-pill-size span.is-out { opacity: 0; transform: translateY(-80%); filter: blur(3px); }
.timeline-pill-size span.is-in { opacity: 0; transform: translateY(80%); filter: blur(3px); transition: none; }

/* ---- Hero ------------------------------------------------------------------------ */

.hero { position: relative; height: 340vh; background: var(--stone); color: #fff; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; --f: 0; --c: 0; --r: 0; }

/* The scene: a warm wall, string lights, a flyer and a phone. */
.scene {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 38%, rgba(255, 226, 180, 0.55), transparent 70%),
    linear-gradient(168deg, #5e5546 0%, #7d6f59 30%, #a99476 62%, #6e624f 100%);
  transform: scale(calc(1 + var(--f) * 0.05));
  transform-origin: 75% 50%;
}
.scene-light {
  position: absolute; left: 44%; top: -20%; width: 46%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 210, 0.22) 30%, rgba(255, 240, 210, 0.08) 70%, transparent);
  transform: rotate(18deg); filter: blur(8px);
}
.scene-window {
  position: absolute; right: -6%; bottom: -10%; width: 40%; height: 55%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(32, 31, 26, 0.45), transparent); filter: blur(10px);
}
.bulbs { position: absolute; inset: 0; }
.bulbs i {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff3d6;
  box-shadow: 0 0 12px 4px rgba(255, 214, 140, 0.75), 0 0 46px 14px rgba(255, 190, 110, 0.35);
  animation: twinkle 4s var(--ease-in-out) infinite alternate;
}
.bulbs i:nth-child(1) { left: 3%; top: 9%; }
.bulbs i:nth-child(2) { left: 10%; top: 13%; animation-delay: -1s; }
.bulbs i:nth-child(3) { left: 17%; top: 15.5%; animation-delay: -2s; }
.bulbs i:nth-child(4) { left: 24%; top: 16%; animation-delay: -3s; }
.bulbs i:nth-child(5) { left: 31%; top: 14.5%; }
.bulbs i:nth-child(6) { left: 38%; top: 11.5%; animation-delay: -1.5s; }
.bulbs i:nth-child(7) { left: 45%; top: 8%; animation-delay: -2.5s; }
.bulbs i:nth-child(8) { left: 52%; top: 6%; }
.bulbs i:nth-child(9) { left: 59%; top: 7%; animation-delay: -0.5s; }
.bulbs i:nth-child(10) { left: 66%; top: 9.5%; animation-delay: -3.5s; }
.bulbs i:nth-child(11) { left: 73%; top: 11%; animation-delay: -1.2s; }
.bulbs i:nth-child(12) { left: 80%; top: 11.5%; }
.bulbs i:nth-child(13) { left: 87%; top: 10%; animation-delay: -2.2s; }
.bulbs i:nth-child(14) { left: 94%; top: 7.5%; animation-delay: -0.8s; }
@keyframes twinkle { to { opacity: 0.65; } }

.flyer {
  position: absolute; left: 58%; top: 17%; width: clamp(240px, 23vw, 360px); aspect-ratio: 3 / 4.1;
  padding: 9% 9% 7%; background: linear-gradient(180deg, #fbf7ee, #f1eadb); color: var(--deep);
  display: flex; flex-direction: column; gap: 6px; transform: rotate(-3deg);
  box-shadow: 0 2px 3px rgba(32, 31, 26, 0.2), 0 30px 60px -10px rgba(32, 31, 26, 0.45);
}
.flyer-pin { position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9b84, #b53a24); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3); }
.flyer-kicker { font-family: var(--mono); font-size: clamp(0.5rem, 0.65vw, 0.6875rem); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.flyer-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 0.95; letter-spacing: -0.01em; margin: 4px 0 6px; }
.flyer-rule { display: block; height: 2px; width: 40%; background: var(--amber); margin: 4px 0 8px; }
.flyer-row { font-size: clamp(0.7rem, 0.95vw, 0.9375rem); }
.flyer-venue { position: relative; align-self: flex-start; }
.flyer-venue::after { content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.flyer.is-changed .flyer-venue::after { transform: scaleX(1); }
.flyer-foot { margin-top: auto; font-family: var(--mono); font-size: clamp(0.5rem, 0.65vw, 0.6875rem); opacity: 0.6; }
.sticky-note {
  position: absolute; right: -12%; top: 54%; width: 44%; aspect-ratio: 1; padding: 10%;
  background: linear-gradient(160deg, #f7dc7a, #eec95b); color: var(--deep);
  font-size: clamp(0.65rem, 0.9vw, 0.875rem); line-height: 1.2;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 14px 24px -8px rgba(32, 31, 26, 0.45);
  transform: rotate(7deg) scale(1.35); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.25s;
}
.sticky-note b { font-family: var(--serif); font-weight: 400; font-size: 1.45em; }
.flyer.is-changed .sticky-note { transform: rotate(7deg) scale(1); opacity: 1; }

.phone {
  position: absolute; left: 82%; top: 46%; width: clamp(150px, 12vw, 200px); aspect-ratio: 9 / 17;
  padding: 26px 12px 12px; border-radius: 26px; background: #1b1a16; color: #fff;
  box-shadow: inset 0 0 0 2px #3a382f, 0 30px 50px -10px rgba(32, 31, 26, 0.55);
  display: flex; flex-direction: column; gap: 6px; transform: rotate(5deg);
}
.phone-notch { position: absolute; top: 9px; left: 50%; width: 34%; height: 8px; margin-left: -17%; border-radius: 8px; background: #000; }
.phone-row { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; padding: 7px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: clamp(0.5rem, 0.65vw, 0.6875rem); }
.phone-row i { grid-row: span 2; width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; }
.phone-row b { font-weight: 500; }
.phone-row small { opacity: 0.6; font-size: 0.9em; }
.dot-a { background: var(--amber); } .dot-b { background: var(--sky); } .dot-c { background: var(--mint); }
.phone-ok { margin-top: auto; align-self: center; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--deep); font-size: clamp(0.5rem, 0.65vw, 0.6875rem); transition: background-color 0.4s; }
.phone-ok.is-busy { background: #f7dc7a; }

/* The frosted half. Its width grows from half the screen to all of it as you scroll. */
.frost {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 1;
  width: calc(50% + 50% * var(--f));
  -webkit-backdrop-filter: blur(34px) saturate(1.15); backdrop-filter: blur(34px) saturate(1.15);
  background: linear-gradient(180deg, rgba(40, 38, 30, 0.28), rgba(40, 38, 30, 0.42));
}

.hero .timeline { top: 38%; margin-top: -15px; opacity: calc(1 - var(--c)); }
.hero-copy {
  position: absolute; z-index: 2; left: var(--content); top: 56%; max-width: calc(50% - var(--content) - 24px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  opacity: calc(1 - var(--c)); transform: translateY(calc(var(--c) * -24px));
}
.hero-bottom {
  position: absolute; z-index: 2; left: var(--edge); bottom: 24px; width: calc(50% - var(--edge) * 2);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  opacity: calc(1 - var(--c));
}
.hero-facts { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 1rem; line-height: 1.2; }
.built-with { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.8125rem; line-height: 1.1; }
.built-with span { opacity: 0.75; }
.built-with b { font-weight: 500; font-size: 0.9375rem; }

.hero-reveal {
  position: absolute; z-index: 2; left: var(--edge); right: var(--edge); top: 96px;
  opacity: var(--r); visibility: hidden;
}
.hero-pin.is-revealing .hero-reveal { visibility: visible; }
.hero-reveal .label { margin-bottom: 40px; }
.reveal-text { font-family: var(--serif); font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 1.15; max-width: 25em; margin: 0 0 0 calc(var(--content) - var(--edge)); max-width: min(68%, 30ch * 2); }
.reveal-text .w { opacity: 0.25; transition: opacity 0.3s linear; }
.reveal-text .w.is-lit { opacity: 1; }

/* Entrance on load */
.hero-copy > *, .hero .timeline, .hero-bottom > * { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
body:not(.is-ready) .hero-copy > *, body:not(.is-ready) .hero-bottom > * { opacity: 0; transform: translateY(16px); }
body:not(.is-ready) .hero .timeline { opacity: 0; }
body.is-ready .hero-copy > :nth-child(2) { transition-delay: 0.15s; }
body.is-ready .hero-bottom > :nth-child(2) { transition-delay: 0.25s; }

@media (max-width: 899px) {
  .hero { height: 300vh; }
  .frost { width: 100%; top: auto; height: calc(56% + 44% * var(--f)); }
  .flyer { left: 50%; top: 10%; width: min(58vw, 280px); transform: translateX(-50%) rotate(-3deg); }
  .phone { display: none; }
  .hero .timeline { top: 44%; }
  .hero-copy { top: auto; bottom: 196px; max-width: none; right: var(--content); gap: 20px; }
  .hero-copy .cta-pair { gap: 14px; }
  .hero-bottom { width: auto; right: var(--edge); bottom: 108px; }
  .hero-facts { font-size: 0.8125rem; gap: 16px; }
  .built-with { display: none; }
  .reveal-text { max-width: none; margin-left: 0; }
}

/* ---- The difference: expanding cards --------------------------------------------- */

.difference { background: linear-gradient(180deg, var(--mist), var(--sage)); padding: 120px 0 120px; overflow: hidden; }
.cards-track { display: flex; gap: 12px; align-items: flex-start; }
.xcard { position: relative; flex: 0 0 24%; min-width: 0; cursor: pointer; transition: flex-basis 0.9s var(--ease-out); }
.xcard.is-active { flex-basis: 34%; cursor: default; }
.xcard-main { border-radius: 16px; padding: 8px; background: transparent; transition: background-color 0.6s var(--ease-out); }
.xcard.is-active .xcard-main { background: #fff; }
.xcard-media {
  position: relative; height: clamp(300px, 30vw, 420px); border-radius: 10px; overflow: hidden;
  transition: filter 0.8s var(--ease-out);
}
.xcard:not(.is-active) .xcard-media { filter: blur(14px) saturate(0.9); }
.xcard:not(.is-active):hover .xcard-media { filter: blur(8px); }
.xcard-title { padding: 20px 12px 12px; font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.05; color: var(--olive); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease-out); }
.collapse > div { overflow: hidden; min-height: 0; }
.xcard.is-active .collapse { grid-template-rows: 1fr; }
.xcard-note { margin-top: 8px; padding: 18px 20px 20px; border-radius: 16px; background: #fff; }
.xcard-note p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.xcard-note, .xcard-title { opacity: 0; transition: opacity 0.4s; }
.xcard.is-active .xcard-note, .xcard.is-active .xcard-title { opacity: 1; transition-delay: 0.3s; }

.media-one { background: radial-gradient(80% 70% at 30% 20%, #f1dfbf, transparent), linear-gradient(150deg, #d6c09b, #8f7a5d); }
.media-two { background: radial-gradient(80% 70% at 70% 20%, #e3ebf6, transparent), linear-gradient(150deg, #b9c6d9, #6f839d); }
.media-three { background: radial-gradient(80% 70% at 40% 30%, #eef4e2, transparent), linear-gradient(150deg, #cdd9b8, #87996f); }
.media-four { background: radial-gradient(80% 70% at 60% 30%, #f6e1da, transparent), linear-gradient(150deg, #e2bdb0, #a8796a); }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.mini-post {
  grid-area: 1 / 1; width: 50%; max-width: 210px; aspect-ratio: 4 / 3.2; padding: 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 18px 30px -8px rgba(32, 31, 26, 0.3); display: flex; flex-direction: column; gap: 8px; justify-content: center;
  transition: transform 0.9s var(--ease-out);
}
.mini-post em { font-style: normal; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.mini-post i { display: block; height: 8px; border-radius: 8px; background: #ece9df; }
.mini-post i.short { width: 55%; }
.mini-post:nth-child(1) { transform: rotate(-9deg) translate(-26%, 6%); }
.mini-post:nth-child(2) { transform: rotate(2deg) translate(0, -4%); }
.mini-post:nth-child(3) { transform: rotate(10deg) translate(26%, 8%); }
.xcard.is-active .mini-post:nth-child(1) { transform: rotate(-11deg) translate(-40%, 8%); }
.xcard.is-active .mini-post:nth-child(3) { transform: rotate(11deg) translate(40%, 10%); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 1px 10px 0 7px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--olive);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  animation: float 6s var(--ease-in-out) infinite alternate;
}
.chip-dot { width: 10px; height: 10px; border-radius: 50%; }
@keyframes float { to { transform: translateY(-8px); } }
.mini-diff, .mini-cancel {
  position: absolute; left: 50%; top: 50%; width: min(76%, 300px); transform: translate(-50%, -50%);
  background: #fff; border-radius: 14px; padding: 20px; display: grid; gap: 10px; box-shadow: 0 18px 30px -8px rgba(32, 31, 26, 0.3);
}
.d-line { display: block; min-height: 9px; border-radius: 8px; background: #ece9df; font-size: 0.875rem; }
.d-line.short { width: 60%; }
.d-old, .d-new { padding: 5px 10px; min-height: 0; }
.d-old { background: var(--old-bg); color: var(--old); text-decoration: line-through; }
.d-new { background: var(--new-bg); color: var(--new); }
.xcard.is-active .d-new { animation: grow-in 0.8s 0.3s var(--ease-out) both; }
@keyframes grow-in { from { clip-path: inset(0 100% 0 0 round 8px); } to { clip-path: inset(0 0 0 0 round 8px); } }
.mc-row { padding: 8px 10px; border-radius: 8px; background: #f6f3ec; font-size: 0.875rem; }
.mc-row s { text-decoration-color: var(--rose); text-decoration-thickness: 2px; opacity: 0.7; }
.check-ring {
  position: absolute; left: 50%; top: 48%; width: 110px; height: 110px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.35), 0 0 0 34px rgba(255, 255, 255, 0.16);
}
.check-ring svg { width: 50px; height: 50px; fill: none; stroke: var(--new); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; }
.xcard.is-active .check-ring svg { animation: draw 0.9s 0.3s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 24; } }

.cards-nav { display: flex; gap: 8px; margin-top: 24px; }
.round-btn {
  width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--olive); border: 1px solid rgba(65, 63, 50, 0.35); transition: background-color 0.25s, border-color 0.25s, opacity 0.2s;
}
.round-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: #fff; border-color: #fff; }
.round-btn:disabled { opacity: 0.35; cursor: default; background: transparent; border-color: rgba(65, 63, 50, 0.35); }

@media (max-width: 899px) {
  .difference { padding: 88px 0; }
  .cards-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge); scroll-padding: 0 var(--edge); }
  .cards-track::-webkit-scrollbar { display: none; }
  .xcard, .xcard.is-active { flex: 0 0 84%; scroll-snap-align: start; cursor: default; }
  .xcard .xcard-main { background: #fff; }
  .xcard .collapse { grid-template-rows: 1fr; }
  .xcard .xcard-note, .xcard .xcard-title { opacity: 1; }
  .xcard:not(.is-active) .xcard-media { filter: none; }
}

/* ---- How it works ---------------------------------------------------------------- */

.how { background: var(--mist); }
.how-inner { background: var(--sage); border-radius: 0 0 32px 32px; padding: 96px 0 120px; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }

.how-media-col { display: none; }
@media (min-width: 900px) { .how-media-col { display: block; } }
.how-media {
  position: sticky; top: 88px; height: calc(100vh - 112px); max-height: 760px;
  border-radius: 20px; overflow: hidden; background: #d9dccf;
}
.how-slide {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 32px 96px;
  opacity: 0; transform: scale(1.05); filter: blur(8px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), filter 0.8s var(--ease-out);
}
.how-slide.is-active { opacity: 1; transform: none; filter: none; }
.slide-1 { background: radial-gradient(100% 80% at 30% 20%, #f4f4f2, #cfd3c6); }
.slide-2 { background: radial-gradient(100% 80% at 70% 20%, #f6efe4, #d6c9b2); }
.slide-3 { background: radial-gradient(100% 80% at 30% 80%, #eef3e4, #bccaa4); }
.slide-4 { background: radial-gradient(100% 80% at 70% 80%, #f6e8e2, #d4b7aa); }
.slide-5 { background: radial-gradient(100% 80% at 50% 30%, #eef3e4, #b3c497); }

.how-badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 44px; padding: 0 16px 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: var(--olive);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.how-badge-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.how-badge-primary { font-size: 0.875rem; }
.how-badge-secondary { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-left: 10px; }
.how-badge [data-badge-primary], .how-badge [data-badge-secondary] { transition: opacity 0.25s; }
.how-badge.is-swapping [data-badge-primary], .how-badge.is-swapping [data-badge-secondary] { opacity: 0; }

.mock { width: 100%; max-width: 360px; background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -18px rgba(32, 31, 26, 0.35); font-size: 0.875rem; color: var(--deep); }
.mock-head { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; opacity: 0.6; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eeece5; }
.mock-head svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mock-title { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 14px; }
.mock-sub { opacity: 0.65; margin: 0; }
.mock-list { display: grid; gap: 10px; margin-bottom: 18px; }
.mock-list li { display: flex; gap: 10px; align-items: center; }
.mock-list li::before {
  content: ''; width: 16px; height: 16px; border-radius: 5px; flex: none;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.mock-field { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; background: #f5f5f3; margin-bottom: 8px; }
.mock-field span { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.mock-field b { font-weight: 500; }
.mock-post { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid #eeece5; margin-bottom: 8px; }
.mp-kind { flex: 1; }
.mp-when { opacity: 0.6; font-size: 0.8125rem; }
.mp-listen { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px #e1ded4; }
.mp-badge { font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; }
.mp-badge.info { background: var(--info-bg); color: var(--info); }
.mp-badge.warn { background: var(--warn-bg); color: var(--warn); }
.mock-change { margin: -4px 0 14px; }
.mock-change s { color: var(--old); }
.mock-change b { color: var(--new); font-weight: 500; }
.mock-choice { display: flex; gap: 6px; margin: -2px 0 10px 12px; }
.mock-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.mock-btn { padding: 8px 14px; border-radius: 999px; background: var(--olive); color: #fff; font-size: 0.8125rem; }
.mock-btn.ghost { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1px #e1ded4; }
.mock-btn.ghost.on { background: var(--olive); color: #fff; box-shadow: none; }
.mock-result { text-align: center; padding: 34px 22px; }
.mock-check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--new-bg); display: grid; place-items: center; }
.mock-check svg { width: 32px; height: 32px; fill: none; stroke: var(--new); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; }
.how-slide.is-active .mock-check svg { animation: draw 0.9s 0.25s var(--ease-out) both; }
.how-slide.is-active .mock { animation: mock-in 1s var(--ease-out) both; }
@keyframes mock-in { from { transform: translateY(24px); } }

.how-step {
  position: relative; display: grid; grid-template-columns: minmax(96px, 150px) 1fr; grid-template-rows: auto 1fr auto;
  column-gap: 16px; min-height: 78vh; padding-bottom: 48px;
}
.step-pills { grid-row: 1 / 3; display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; padding-top: 4px; }
.step-body { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 16px; border-left: 1px solid rgba(65, 63, 50, 0.22); padding-left: 0; margin-left: -1px; }
.step-rail { position: relative; width: 3px; height: 72px; margin-left: -2px; border-radius: 3px; background: rgba(65, 63, 50, 0.18); overflow: hidden; flex: none; }
.step-rail-fill { position: absolute; inset: 0; background: var(--olive); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step-text { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.12; max-width: 18ch; margin: 0; transition: opacity 0.6s var(--ease-out); }
.how-step:not(.is-active) .step-text { opacity: 0.35; }
.step-foot { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 16px; margin: 0; font-size: 0.8125rem; border-left: 1px solid rgba(65, 63, 50, 0.22); margin-left: -1px; padding-top: 24px; }
.foot-bar { width: 3px; height: 20px; margin-left: -2px; border-radius: 3px; background: rgba(65, 63, 50, 0.35); }
.step-media { display: none; }
@media (max-width: 899px) {
  .how-inner { padding: 72px 0 88px; }
  .how-step { min-height: 0; grid-template-columns: 1fr; padding-bottom: 48px; }
  .step-media { display: block; position: relative; height: 400px; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
  .step-media .how-slide { opacity: 1; transform: none; filter: none; padding: 24px; }
  .step-media .how-slide .mock { animation: none; }
  .step-pills { grid-row: auto; margin-bottom: 16px; }
  .step-body, .step-foot { grid-column: 1; grid-row: auto; }
  .how-step:not(.is-active) .step-text { opacity: 1; }
}

/* ---- Built on Buffer ------------------------------------------------------------- */

.built { background: var(--mist); padding: 120px 0 140px; }
.built-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.capsule { position: relative; width: 14px; height: 96px; border: 1px solid rgba(65, 63, 50, 0.4); border-radius: 999px; margin-bottom: 32px; }
.capsule i { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1px; margin-left: -0.5px; background: rgba(65, 63, 50, 0.4); }
.built .statement { margin: 24px 0 32px; }
.signature { width: 140px; height: 42px; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease-out); }
.built.is-in .signature { stroke-dashoffset: 0; }
.byline { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 48px; font-size: 0.875rem; }
.byline b { font-weight: 500; }
.byline span { font-size: 0.75rem; opacity: 0.7; }

.arch {
  position: relative; width: min(100%, 760px); aspect-ratio: 1.6 / 1; border-radius: 9999px 9999px 32px 32px;
  background: radial-gradient(90% 80% at 50% 10%, #f1f4e9, var(--sage-2)); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; padding: 48px 24px 72px;
}
.arch-track { position: relative; width: 78%; height: 70px; }
.arch-line { position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: rgba(65, 63, 50, 0.35); }
.arch-stop { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 26px; font-size: 0.875rem; }
.arch-stop::before { content: ''; position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px #fff; }
.arch-stop b { font-weight: 500; }
.arch-stop small { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.arch-runner { position: absolute; top: 4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); animation: runner 8s var(--ease-in-out) infinite; }
@keyframes runner { 0%, 100% { left: 0; } 50% { left: calc(100% - 9px); } }
.api-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; }
.api-chips li { height: 28px; display: inline-flex; align-items: center; padding: 1px 12px 0; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-family: var(--mono); font-size: 0.75rem; }

.info-card {
  position: relative; z-index: 1; margin-top: -40px; width: min(calc(100% - 32px), 600px);
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 20px 14px 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 20px 40px -20px rgba(32, 31, 26, 0.3);
}
.info-card p { margin: 0; font-size: 0.8125rem; line-height: 1.4; flex: 1; }
.info-avatars { display: flex; flex: none; }
.av { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; }
.av-1 { background: linear-gradient(135deg, #cfd9bb, #87996f); }
.av-2 { background: linear-gradient(135deg, #f1dfbf, #a99476); margin-left: -14px; }
@media (max-width: 600px) {
  .arch { aspect-ratio: auto; border-radius: 200px 200px 24px 24px; }
  .info-card { flex-wrap: wrap; }
}

/* ---- Closing + footer ------------------------------------------------------------ */

.closing { position: relative; background: var(--stone); color: #fff; overflow: hidden; isolation: isolate; padding: 0 var(--edge) var(--edge); }
.closing-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #c9a9a6, #9cc2c4 55%, #b6c4d6); }
.closing-bg span:not(.grain) { position: absolute; border-radius: 50%; filter: blur(80px); }
.closing-bg .c1 { width: 50vw; height: 50vw; left: -10vw; top: -10vw; background: #e3b7b0; animation: blob-a 24s var(--ease-in-out) infinite alternate; }
.closing-bg .c2 { width: 46vw; height: 46vw; right: -8vw; top: 10vw; background: #79bcc2; animation: blob-b 28s var(--ease-in-out) infinite alternate; }
.closing-bg .c3 { width: 40vw; height: 40vw; left: 30vw; bottom: -14vw; background: #c4d2e6; animation: blob-a 30s var(--ease-in-out) infinite alternate-reverse; }
@keyframes blob-a { to { transform: translate(12vw, 8vw) scale(1.1); } }
@keyframes blob-b { to { transform: translate(-10vw, 6vw) scale(0.9); } }
.timeline-closing { position: relative; margin: 0 calc(var(--edge) * -1); top: 0; padding-top: 0; }
.closing .timeline-closing { margin-top: 160px; }
.closing-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 72px 0 140px; }
.closing-copy p { max-width: 38ch; margin: 0 0 12px; font-size: 1rem; opacity: 0.95; }

.site-footer { color: var(--olive); }
.footer-card { background: #fff; border-radius: 16px; padding: 32px; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 2fr; } }
.footer-brand p { margin: 14px 0 0; font-size: 0.875rem; line-height: 1.3; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.u-link { position: relative; text-decoration: none; font-size: 0.875rem; padding: 1px 0; }
.u-link span { position: relative; }
.u-link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out); }
.u-link:hover span::after, .u-link:focus-visible span::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 72px; font-size: 0.75rem; }
.footer-bottom .u-link { font-size: 0.75rem; }
.footer-disclaimer { font-size: 0.6875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); margin: 16px 0 0; max-width: 120ch; }

/* ---- Sticky card ----------------------------------------------------------------- */

.sticky-cta {
  position: fixed; z-index: 40; right: var(--edge); top: calc(100vh - 72px - var(--edge)); top: calc(100svh - 72px - var(--edge));
  width: min(calc(100% - var(--edge) * 2), 380px); height: 72px;
  display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: rgba(245, 245, 245, 0.88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--deep); text-decoration: none;
  transition: top 0.9s var(--ease-out), opacity 0.4s, transform 0.5s var(--ease-out);
}
body.is-scrolled .sticky-cta { top: 16px; }
.sticky-cta.is-away { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.sticky-thumb { width: 56px; height: 56px; border-radius: 8px; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, #f1f4e9, var(--sage-2)); color: var(--olive); }
.sticky-thumb svg { width: 26px; height: 20px; fill: currentColor; }
.sticky-copy { display: flex; flex-direction: column; flex: 1; gap: 2px; font-size: 0.875rem; line-height: 1.2; }
.sticky-copy small { font-size: 0.75rem; opacity: 0.6; }
.sticky-arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: transform 0.35s var(--ease-out); }
.sticky-arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sticky-cta:hover .sticky-arrow { transform: translateX(3px); }
@media (max-width: 760px) {
  .sticky-cta, body.is-scrolled .sticky-cta { top: auto; bottom: var(--edge); }
  .sticky-cta.is-away { transform: translateY(12px); }
}

/* ---- App (signed in) ------------------------------------------------------------- */

.app-shell { max-width: 860px; margin: 0 auto; padding: 0 var(--edge) var(--edge); }
.view { margin-bottom: 24px; }
.view.view-enter > * { animation: view-in 0.6s var(--ease-out) both; }
.view.view-enter > *:nth-child(2) { animation-delay: 0.06s; }
.view.view-enter > *:nth-child(n + 3) { animation-delay: 0.12s; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }

/* The stone band behind each screen's title: the same colour, grain and type as the landing
   hero. It bleeds to the window edges; the first card below overlaps its lower edge. */
.view-intro {
  position: relative; isolation: isolate; color: #fff;
  margin: 0 calc(50% - 50vw); padding: 128px calc(50vw - 50%) 104px;
  background: var(--stone);
}
.view-intro::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(227, 233, 213, 0.22), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(32, 31, 26, 0.35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
.view-intro + * { position: relative; margin-top: -56px; }
.view-intro .view-title { color: #fff; }
.intro-text { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 52ch; }
.intro-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-intro .back { color: rgba(255, 255, 255, 0.85); margin-bottom: 18px; }
.view-intro .back:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.view-intro button.primary { background: #fff; color: var(--olive); border: 1px solid #fff; min-height: 54px; padding: 0 32px; }
.view-intro button.primary:hover { background: transparent; color: #fff; }
.view-intro .pill.ok { background: rgba(227, 233, 213, 0.95); color: #3d5a1e; }
.view-intro .pill.bad { background: #fbe9e7; color: #a3271c; }

.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.view-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.01em; margin: 20px 0 14px; overflow-wrap: anywhere; }
.view-subtitle { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin: 16px 0 8px; }
#preview { margin-top: 48px; animation: view-in 0.55s var(--ease-out); }
@media (max-width: 760px) {
  .view-intro { padding-top: 104px; padding-bottom: 88px; }
  .view-intro button.primary { width: 100%; }
}

body[data-mode='app'] .muted, .doc .muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3.5vw, 32px); margin-bottom: 16px; box-shadow: var(--shadow); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.row.between { justify-content: space-between; margin-top: 0; }
.row.end { justify-content: flex-end; }
.card > .row.between:last-child { margin-top: 20px; }

label, legend { display: block; margin: 0 0 8px; font-weight: 400; font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.optional { text-transform: none; letter-spacing: 0; font-family: var(--sans); opacity: 0.8; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 14px; font: inherit; color: inherit; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--text)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--surface); }
body[data-mode='app'] :focus-visible { outline-color: var(--accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field.wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 12px; margin: 0; cursor: pointer; background: var(--surface-2); transition: border-color 0.2s, background-color 0.2s; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.actions { display: flex; justify-content: flex-end; }
.field-error { color: var(--error-text); font-size: 0.8125rem; margin-top: 4px; }

/* Flyer upload: a dashed drop target above the form. Filled fields glow until edited. */
.flyer-drop { margin-bottom: 16px; }
.flyer-pick {
  display: flex; align-items: center; gap: 16px; margin: 0; padding: 20px 22px; cursor: pointer;
  font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--text);
  font-weight: 400; font-size: 0.9375rem; border: 1.5px dashed color-mix(in srgb, var(--line) 30%, var(--muted));
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: border-color 0.2s, background-color 0.2s;
}
.flyer-pick strong { font-weight: 500; }
.flyer-pick:hover, .flyer-drop input:focus-visible + .flyer-pick { border-color: var(--accent); background: var(--info-bg); }
.flyer-drop input:focus-visible + .flyer-pick { outline: 2px solid var(--accent); outline-offset: 2px; }
.flyer-icon {
  flex: none; width: 36px; height: 44px; border-radius: 6px; position: relative;
  background: linear-gradient(var(--accent) 0 0) 7px 9px / 22px 3px no-repeat,
    linear-gradient(var(--muted) 0 0) 7px 17px / 16px 2px no-repeat,
    linear-gradient(var(--muted) 0 0) 7px 23px / 19px 2px no-repeat,
    linear-gradient(var(--muted) 0 0) 7px 29px / 12px 2px no-repeat, var(--surface-2);
  border: 1px solid var(--line);
}
.flyer-drop.is-reading .flyer-pick { pointer-events: none; border-style: solid; border-color: var(--accent); }
.flyer-drop.is-reading .flyer-icon::after {
  content: ''; position: absolute; left: 3px; right: 3px; height: 2px; top: 4px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: flyer-scan 1.1s ease-in-out infinite alternate;
}
@keyframes flyer-scan { to { top: 36px; } }
.flyer-status { margin: 8px 4px 0; font-size: 0.875rem; }
.flyer-status:empty { display: none; }
input.is-filled { border-color: color-mix(in srgb, var(--new) 55%, var(--line)); background: var(--new-bg); }
@media (prefers-reduced-motion: reduce) { .flyer-drop.is-reading .flyer-icon::after { animation: none; top: 20px; } }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 0.9375rem; text-decoration: none; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
button:hover { border-color: color-mix(in srgb, var(--line) 40%, var(--text)); }
button:active { transform: scale(0.97); }
button.primary, .button.primary { background: var(--olive); color: #fff; border: 1px solid var(--olive); min-height: 50px; padding: 0 28px; font-weight: 400; font-size: 1rem; transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.25s var(--ease-out); }
button.primary:hover { background: transparent; color: var(--olive); }
button.ghost { border-color: transparent; background: transparent; padding: 0 10px; color: var(--muted); }
button.ghost:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
button.small { min-height: 32px; padding: 0 12px; font-size: 0.8125rem; }
button[aria-busy='true'] { opacity: 0.75; cursor: progress; }
button[aria-busy='true']::after { content: ''; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back { display: flex; width: fit-content; margin: 0 0 10px -10px; }
.back::before { content: ''; width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-right: 2px; }

.list { display: grid; gap: 10px; margin: 20px 0 0; }
.list > li { animation: view-in 0.5s var(--ease-out) both; }
.list > li:nth-child(2) { animation-delay: 0.05s; }
.list > li:nth-child(3) { animation-delay: 0.1s; }
.list > li:nth-child(n + 4) { animation-delay: 0.15s; }
.list button { width: 100%; min-height: 0; justify-content: space-between; text-align: left; gap: 16px; flex-wrap: wrap; background: var(--surface); padding: 22px 26px; border-radius: 16px; font-weight: 400; font-size: 1rem; box-shadow: var(--shadow); }
.list-main > span:first-child { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.list button::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-top: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease-out); }
.list button:hover { border-color: var(--accent); transform: translateY(-1px); }
.list button:hover::after { transform: translateX(3px) rotate(45deg); }
.list-main { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.list-main .muted { font-weight: 400; font-size: 0.875rem; }
.drift { display: flex; flex-wrap: wrap; gap: 6px; }
.drift:empty { display: none; }
.pill.checking { animation: drift-pulse 1.2s ease-in-out infinite alternate; }
@keyframes drift-pulse { from { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .pill.checking { animation: none; } }
.list .muted { font-weight: 400; font-size: 0.875rem; flex: 1 1 100%; order: 2; }
.empty { text-align: center; padding: 48px 24px; }
.empty p { max-width: 40ch; margin: 0 auto 20px; color: var(--muted); }
.list .empty button.primary { width: auto; min-height: 50px; padding: 0 28px; justify-content: center; border-radius: 999px; background: var(--olive); color: #fff; font-size: 1rem; font-weight: 400; box-shadow: none; }
.list .empty button.primary:hover { background: transparent; color: var(--olive); transform: none; }
.empty .statement { margin-bottom: 12px; }
.list .empty button::after { display: none; }

.posts { display: grid; gap: 12px; margin-top: 16px; }
.post { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); animation: view-in 0.5s var(--ease-out) both; }
.post:nth-child(2) { animation-delay: 0.06s; }
.post:nth-child(3) { animation-delay: 0.12s; }
.post:nth-child(n + 4) { animation-delay: 0.18s; }
.card .post { background: var(--surface-2); }
.post .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.post .text { margin: 0; white-space: pre-line; font-size: 0.9375rem; overflow-wrap: anywhere; }
.post .note { font-size: 0.8125rem; color: var(--muted); margin: 10px 0 0; }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.ok { background: var(--new-bg); color: var(--new); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--old-bg); color: var(--old); }
.pill.neutral { background: var(--bg); color: var(--muted); }
.pill.ok::before, .pill.warn::before, .pill.bad::before, .pill.info::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.line-old { display: block; color: var(--old); background: var(--old-bg); text-decoration: line-through; border-radius: 6px; padding: 1px 6px; margin: 1px -6px; }
.line-new { display: block; color: var(--new); background: var(--new-bg); font-weight: 600; border-radius: 6px; padding: 1px 6px; margin: 1px -6px; animation: grow-in 0.7s 0.2s var(--ease-out) both; }
.changes { padding: 14px 16px; margin: 0 0 8px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); }
.changes li { margin-bottom: 4px; }
.changes li:last-child { margin-bottom: 0; }
.changes .from { color: var(--old); text-decoration: line-through; }
.changes .to { color: var(--new); font-weight: 600; }
.practice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.practice-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.practice-edit { display: grid; gap: 10px; }
.choice { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.choice button[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

.lab { margin-top: 40px; font-size: 0.875rem; }
.lab summary { cursor: pointer; color: var(--muted); }
.lab form { margin-top: 12px; }
.lab label { margin-top: 12px; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 0.8125rem; }
/* Footer card: the landing footer's white card, smaller. */
.app-footer { margin: 72px calc(50% - 50vw) 0; padding: 0 var(--edge); }
.app-footer > * { max-width: calc(860px - var(--edge) * 2); margin-left: auto; margin-right: auto; }
.app-footer-top { background: #fff; border-radius: 16px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; color: var(--olive); }
.app-footer-top .wordmark { font-size: 1.375rem; }
.app-footer-links { display: flex; align-items: center; gap: 16px; }
.app-footer-note { font-size: 0.6875rem; color: var(--muted); margin: 14px auto 0; }

@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .row.end > button, .actions > button { width: 100%; }
}

/* ---- Privacy page ---------------------------------------------------------------- */

.doc { color: var(--text); }
.doc .view-title { max-width: 22ch; }
.doc-body { line-height: 1.65; }
.doc-body h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin: 40px 0 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; }
.doc-body li { margin-bottom: 8px; }
.doc-body code { font-family: var(--mono); font-size: 0.8125em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
body[data-mode='app'] .header-bar { left: var(--edge); right: var(--edge); transform: none; justify-content: space-between; transition: background-color 0.3s; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .dash-track, .bulbs i, .chip, .arch-runner, .closing-bg span { animation: none !important; }
  .reveal-text .w { opacity: 1; }
  .signature { stroke-dashoffset: 0; }
}
