/* Note: Bricolage Grotesque is requested from Google Fonts as its fixed opsz-96 instance because
   Pencil renders it at that cut at every size; with the variable opsz axis the browser draws it
   ~8% wider and re-wraps headlines. (A font-variation-settings rule can't do this reliably: the
   `font:` shorthand resets it.)

   FamilyWell.org landing. Values mirror the Pencil design (design-site.pen, node zPuAb)
   at 1440px; smaller breakpoints are our own since the design is desktop-only. */

:root {
  --paper: #F7F5EE;
  --paper-2: #EFECE2;
  --card: #FFFFFF;
  --ink: #121100;
  --ink-2: #2A2918;
  --muted: #5E5B4E;
  --line: #E2DED1;
  --sun: #FFDF00;
  --sun-soft: #FFF4A8;
  --dark-line: #3A3826;
  --dark-text: #C9C6B6;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

/* Lucide renders <svg class="lucide"> in place of <i data-lucide>; size per context below. */
.lucide, i[data-lucide] { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* Pencil strokes are drawn inside the box, so inset shadows reproduce them without changing size. */
.stroke-line { box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Shared type ---------- */
.h-64, .h-68, .h-60, .h-56, .h-44, h1 { font-family: var(--font-display); font-weight: 700; }
.h-64 { font-size: 64px; line-height: 1; letter-spacing: -2px; }
.h-68 { font-size: 68px; line-height: 1; letter-spacing: -2.2px; }
.h-60 { font-size: 60px; line-height: 1.02; letter-spacing: -2px; }
.h-56 { font-size: 56px; line-height: 1.2; letter-spacing: -1.8px; }
.h-44 { font-size: 44px; line-height: 1.2; letter-spacing: -1.4px; }
.lh-102 { line-height: 1.02; }

.kicker {
  display: flex; align-items: center; gap: 8px;
  font: 400 13px/1.2 var(--font-mono); letter-spacing: .5px; color: var(--muted);
}
.kicker.sun { color: var(--sun); }
.sun { color: var(--sun); }
.well {
  width: 30px; height: 30px; border-radius: 9px; background: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.lede { width: 400px; flex-shrink: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.lede-17 { font-size: 17px; line-height: 1.6; color: var(--ink-2); }

.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.split-left { display: flex; flex-direction: column; gap: 18px; width: 820px; max-width: 100%; }

.link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; transition: transform .15s ease, background-color .15s ease;
}
.btn .lucide { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 700; padding: 17px 26px; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline { padding: 17px 22px; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: rgba(18, 17, 0, .04); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 18px; gap: 8px; font-size: 14px; }
.btn-sm .lucide { width: 16px; height: 16px; }
.btn-15 { padding: 15px 22px; font-size: 15px; }
.btn-17 { padding: 18px 28px; font-size: 17px; }
.btn-ink.btn-17 { font-weight: 700; }
.btn-line2 { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.btn-demo2 { padding: 18px 24px; }
.btn-ghost-white { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-block { width: 100%; }
.i-sun { color: var(--sun); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.logo img { width: 158px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
/* Six items since the MCP link: tighten the gap before the nav hides at 1080px. */
@media (max-width: 1280px) { .nav-links { gap: 22px; } }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.gh-stars {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--card); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.gh-stars .lucide { width: 18px; height: 18px; }
.gh-stars .div { width: 1px; height: 16px; background: var(--line); }
.gh-stars .count { font: 400 13px var(--font-mono); color: var(--muted); }

/* ---------- Modules megamenu (design node HYJYQ) ---------- */
.nav { position: sticky; top: 0; z-index: 50; }
/* Sticky site header (all pages): megamenu.js adds .nav-stuck once the page scrolls and .nav-hide
   while scrolling down, so the bar gets out of the way when reading and comes back on scroll up. */
body > header { transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
body > header.nav-hide { translate: 0 -100%; }
html { scroll-padding-top: 96px; }  /* anchor jumps land below the bar */
.nav.mm-open, .nav.nav-stuck { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
/* Full-bleed paper bar behind the (max-width) header so the open/stuck nav reads as a solid strip. */
.nav.mm-open::before, .nav.nav-stuck::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--paper); box-shadow: 0 1px 0 var(--line); z-index: -1; }
.mm-trigger {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  /* Pill padding is always there but cancelled by margins, so opening it doesn't shift the links. */
  padding: 7px 12px 7px 14px; margin: -7px -12px -7px -14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .15s ease;
}
.mm-trigger .lucide { transition: rotate .2s ease; }
.mm-trigger:hover { color: var(--ink); }
.mm-trigger[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.mm-trigger[aria-expanded="true"] .lucide { rotate: 180deg; }

.mm-scrim { position: fixed; inset: 0; z-index: 40; background: #1211002E; opacity: 0; transition: opacity .2s ease; }
.mm-in + .mm-scrim { opacity: 1; }

.mm-panel {
  position: absolute; top: calc(100% + 12px); left: var(--gutter); right: var(--gutter);
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 64px #12110033;
  opacity: 0; translate: 0 -8px; transition: opacity .2s ease, translate .25s cubic-bezier(.22, 1, .36, 1);
}
.mm-in .mm-panel { opacity: 1; translate: 0 0; }
/* Items settle in one after another; --i is set per item below. */
.mm-item, .mm-featured > * { opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .4s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 25ms + 40ms); }
.mm-in .mm-item, .mm-in .mm-featured > * { opacity: 1; translate: 0 0; }
.mm-group:nth-child(2) .mm-item { --c: 1; } .mm-group:nth-child(3) .mm-item { --c: 2; }
.mm-item:nth-of-type(1) { --i: calc(var(--c, 0) + 0); } .mm-item:nth-of-type(2) { --i: calc(var(--c, 0) + 1); }
.mm-item:nth-of-type(3) { --i: calc(var(--c, 0) + 2); } .mm-item:nth-of-type(4) { --i: calc(var(--c, 0) + 3); }
.mm-featured > * { --i: 4; }

.mm-top { display: flex; }
.mm-modules { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px 24px 24px; }
.mm-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-group { display: flex; flex-direction: column; gap: 2px; }
.mm-heading { padding: 0 12px 8px; font: 600 11px/1.2 var(--font-mono); letter-spacing: 1px; color: var(--muted); }
.mm-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; }
.mm-item:hover, .mm-item:focus-visible { background: var(--paper); }
.mm-tile { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--paper-2); transition: background-color .15s ease; }
.mm-tile .lucide { width: 20px; height: 20px; }
.mm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mm-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.mm-badge { padding: 2px 7px; border-radius: 999px; background: var(--sun); font: 700 10px/1.2 var(--font-mono); font-style: normal; }
.mm-desc { font-size: 13px; line-height: 1.2; color: var(--muted); }
.mm-item[aria-current="page"] { background: var(--paper); }
.mm-item[aria-current="page"] .mm-tile { background: var(--sun); }
.mm-ask { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mm-ask .mm-tile { background: var(--sun); }
.mm-addons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mm-addons .mm-heading { padding: 0; }
.mm-addons span:not(.mm-heading) { display: flex; align-items: center; gap: 8px; }
.mm-addons b { font-size: 14px; font-weight: 600; color: var(--ink); }
.mm-featured { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--ink); color: #fff; }
.mm-featured img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.mm-kicker { display: flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--font-mono); letter-spacing: 1px; color: var(--sun); }
.mm-kicker .lucide { width: 14px; height: 14px; }
.mm-featured strong { font: 800 24px/1.1 var(--font-display); letter-spacing: -.6px; }
.mm-fdesc { font-size: 14px; line-height: 1.5; color: #B9B6A6; }
.mm-flink { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sun); }
.mm-featured:hover .mm-flink .lucide { translate: 3px 0; }
.mm-flink .lucide { transition: translate .2s ease; }
.mm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 36px; background: var(--paper); box-shadow: inset 0 1px 0 var(--line); font-size: 13px; line-height: 1.2; }
.mm-foot-l, .mm-foot-r { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mm-foot-r { gap: 24px; }
.mm-foot-l span, .mm-foot-r a { display: flex; align-items: center; gap: 6px; }
.mm-foot-l { color: var(--ink-2); }
.mm-foot-r a { font-weight: 600; }
.mm-foot-r a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mm-foot .lucide { width: 15px; height: 15px; }
.mm-div { width: 1px; height: 14px; background: var(--line); }

/* Megamenu on narrower screens (module pages keep their trigger visible on phones). */
@media (max-width: 1080px) {
  .mm-featured, .mm-addons, .mm-foot-l { display: none; }
  .mm-groups { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}
@media (max-width: 640px) {
  .mm-panel { max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .mm-modules { padding: 18px 10px 10px; }
  .mm-groups { grid-template-columns: 1fr; }
  .mm-foot { padding: 14px 20px; }
}

/* ---------- Mobile menu (design nodes CPGLS, sgpRg, dDERL) ----------
   The hamburger shows wherever the nav links are hidden (<=1080px). The drawer is injected by
   megamenu.js on every page; its Modules view re-uses the megamenu's .mm-* groups, restyled here. */
.mn-btn { display: none; width: 42px; height: 42px; flex-shrink: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.mn-btn .lucide { width: 20px; height: 20px; }
.cta-short { display: none; }
@media (max-width: 1080px) { .mn-btn { display: flex; } }
@media (max-width: 640px) {
  .cta-long, .nav-actions .btn .lucide { display: none; }
  .cta-short { display: inline; }
  html { scroll-padding-top: 76px; }  /* phone bar is 70px */
}
html.mn-lock { overflow: hidden; }
.mn { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--paper); opacity: 0; transition: opacity .2s ease; }
.mn.mn-in { opacity: 1; }
.mn-view { position: absolute; inset: 0; display: flex; flex-direction: column; transition: translate .3s cubic-bezier(.22, 1, .36, 1); }
.mn-main { overflow-y: auto; overscroll-behavior: contain; translate: 0 -8px; }
.mn-in .mn-main { translate: 0 0; }
.mn-mods { background: var(--card); translate: 100% 0; }
.mn-sub .mn-main { translate: -30% 0; }
.mn-sub .mn-mods { translate: 0 0; }
.mn-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; }
.mn-mods .mn-top { padding-left: 16px; }
.mn-logo img { width: 128px; height: 26px; }
.mn-close { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--ink); color: var(--sun); cursor: pointer; }
.mn-close .lucide { width: 20px; height: 20px; }
.mn-links { display: flex; flex-direction: column; padding: 12px 20px 0; }
.mn-links > * { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font: 700 34px/1.2 var(--font-display); letter-spacing: -1px; color: var(--ink); }
.mn-links > a .lucide { width: 22px; height: 22px; }
/* MCP + AI pill in the drawer: the pill scales up with the 34px label. */
.mn-links .nav-ai { gap: 10px; }
.mn-links .ai-pill { padding: 3px 8px; border-radius: 7px; font-size: 15px; letter-spacing: 0; }
.mn-mods-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.mn-mods-l { display: flex; flex-direction: column; gap: 12px; }
.mn-title { display: flex; align-items: center; gap: 10px; }
.mn-count { padding: 3px 9px; border-radius: 999px; background: var(--sun); font: 700 12px/1.2 var(--font-mono); font-style: normal; letter-spacing: 0; }
.mn-strip { display: flex; align-items: center; gap: 6px; }
.mn-strip .lucide { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: var(--paper-2); }
.mn-strip b { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.mn-go { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.mn-go .lucide { width: 18px; height: 18px; }
.mn-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 28px; background: var(--paper-2); box-shadow: inset 0 1px 0 var(--line); }
.mn-gh { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; font-size: 14px; font-weight: 600; }
.mn-gh > span:first-child { display: flex; align-items: center; gap: 8px; }
.mn-gh .lucide { width: 18px; height: 18px; }
.mn-gh-n { font: 400 13px var(--font-mono); color: var(--muted); }
.mn-btn-demo { padding: 14px 22px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.mn-btn-start { padding: 14px 22px; }
.mn-micro { font-size: 12px; line-height: 1.2; text-align: center; color: var(--muted); }
/* Modules view */
.mn-scroll { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; }  /* positioned: group offsetTops are measured against it */
.mn-back { display: flex; align-items: center; gap: 4px; padding: 10px 14px 10px 10px; border: 0; border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.mn-back .lucide { width: 18px; height: 18px; }
.mn-head { display: flex; flex-direction: column; gap: 8px; padding: 8px 20px 16px; }
.mn-title-40 { font: 700 40px/1.2 var(--font-display); letter-spacing: -1.4px; }
.mn-head p { font-size: 15px; line-height: 1.47; color: var(--muted); }
.mn-chips { position: sticky; top: 0; z-index: 1; display: flex; gap: 8px; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: none; background: var(--card); box-shadow: inset 0 -1px 0 var(--line); }
.mn-chips a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; line-height: 1.2; }
.mn-chips a.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.mn .mm-groups { display: flex; flex-direction: column; gap: 20px; padding: 20px 8px 8px; }
.mn .mm-heading { padding-bottom: 6px; }
.mn .mm-item, .mn .mm-featured > * { opacity: 1; translate: none; transition: none; }  /* desktop stagger is keyed to .mm-in */
.mn-extras { display: flex; flex-direction: column; gap: 16px; padding: 8px 16px 24px; }
.mn .mm-ask { margin: 0; }
.mn-feat { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.mn-feat img { width: 88px; height: 88px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.mn-feat > span { display: flex; flex-direction: column; gap: 6px; }
.mn-feat .mm-kicker { font-size: 10px; gap: 6px; }
.mn-feat .mm-kicker .lucide { width: 12px; height: 12px; }
.mn-feat strong { font: 800 17px/1.12 var(--font-display); letter-spacing: -.4px; }
.mn-feat-link { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--sun); }
.mn-feat-link .lucide { width: 14px; height: 14px; }
.mn .mm-addons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 12px 4px; border: 0; font-size: 13px; }
.mn .mm-addons .lucide { width: 16px; height: 16px; }
.mn-build { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.mn-build > span { display: flex; align-items: center; gap: 8px; }
.mn-build .lucide { width: 16px; height: 16px; }
.mn-build > .lucide { width: 18px; height: 18px; }
.mn-sticky { padding: 14px 16px 24px; background: var(--paper); box-shadow: inset 0 1px 0 var(--line); }
.mn-sticky .btn { width: 100%; }
.mn a:focus-visible, .mn button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mn, .mn-view { transition: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: 48px; display: flex; flex-direction: column; gap: 56px; }
.hero-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero-head { display: flex; flex-direction: column; gap: 28px; width: 760px; }
.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; background: var(--card); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.tag { white-space: nowrap; padding: 3px 9px; background: var(--sun); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); }
h1 { font-size: 96px; line-height: .95; letter-spacing: -3.5px; }
.hero-pitch { width: 500px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.subhead { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.micro { display: flex; gap: 18px; flex-wrap: wrap; }
.micro li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.micro .lucide { width: 15px; height: 15px; }
.hero-visual { aspect-ratio: 1312 / 600; border-radius: 36px 36px 0 0; overflow: hidden; background: var(--sun); }
/* Layered mockups (hero, split costs): every layer is a full-canvas export of the design frame,
   stacked at the same origin. --canvas-w lets phones show a cropped centre of a wide canvas. */
.layered { position: relative; --canvas-w: 100%; }
.layered .layer-bg, .layered .layer {
  position: absolute; top: 0; left: 50%; width: max(100%, var(--canvas-w)); translate: -50% 0;
}
.layered .layer { will-change: transform; }
.layered .layer img, .layered .layer-bg { width: 100%; max-width: none; }
h1 .line { display: inline-block; }

/* ---------- Module strip ---------- */
.strip { background: var(--ink); padding-block: 40px; }
.strip { display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.strip-row { display: flex; justify-content: space-between; gap: 16px; font: 400 13px var(--font-mono); color: #B9B6A6; }
.strip-row span:first-child { letter-spacing: .5px; }
/* Full-bleed row: three copies of the list, centred, so it overhangs both edges by a full set
   and can drift ±240px with scroll without ever showing an empty end. */
.chips-viewport { display: flex; justify-content: center; }
.chips { display: flex; gap: 10px; flex-shrink: 0; will-change: transform; }
.chips li {
  /* 13px not the design's 14px: browser Inter sets ~2px wider per chip than Pencil, which overflowed 1440. */
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px;
  background: #24231A; border-radius: 999px; color: #F2F0E6;
  font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.chips .lucide { color: var(--sun); }
.chips li.yours { background: none; box-shadow: inset 0 0 0 1.5px var(--sun); color: var(--sun); font-weight: 600; }

/* ---------- Features ---------- */
.features { padding-top: 120px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 96px; }
.feature { display: flex; align-items: center; gap: 88px; }
.feature-copy { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.feature-copy h3 { font: 700 44px/1.04 var(--font-display); letter-spacing: -1.4px; }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ticks { display: flex; flex-direction: column; gap: 12px; padding-block: 4px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFDF00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.feature-visual { flex: 1; min-width: 0; border-radius: 32px; overflow: hidden; }
.feature-visual img { width: 100%; }

/* ---------- Split costs ---------- */
.splitcosts { background: var(--paper-2); padding-block: 120px; }
.splitcosts .wrap { display: flex; flex-direction: column; gap: 48px; }
.splitcosts .split-head { gap: 48px; }
.panel-img { border-radius: 36px; overflow: hidden; }
.panel-img img { width: 100%; }
.panel-split { background: var(--sun); aspect-ratio: 1312 / 720; }
.points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.points li { display: flex; flex-direction: column; gap: 10px; }
.points .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--sun);
  display: flex; align-items: center; justify-content: center;
}
.points .ico .lucide { width: 19px; height: 19px; }
.points strong { font: 700 19px/1.2 var(--font-display); }
.points span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Bento ---------- */
.bento { padding-top: 24px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.bento-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.bento-row { display: flex; gap: 20px; }
.tile {
  flex: 1; min-width: 0; height: 540px; display: flex; flex-direction: column; gap: 22px;
  padding: 28px 28px 0; background: var(--card); border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.bento-b .tile { height: 500px; }
.tile-420 { flex: 0 0 420px; }
.tile-400 { flex: 0 0 400px; }
.tile-sun { background: var(--sun-soft); }
.tile-dark { background: var(--ink); box-shadow: none; }
.tile-head { display: flex; gap: 14px; }
.tile-head > div { display: flex; flex-direction: column; gap: 4px; }
.tile .well { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--sun); flex-shrink: 0; }
.tile .well .lucide { width: 20px; height: 20px; }
.tile-dark .well { background: var(--sun); color: var(--ink); }
.tile h3 { font: 700 24px/1.2 var(--font-display); }
.tile p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile-dark h3 { color: #fff; }
.tile-dark p { color: var(--dark-text); }
.shot { flex: 1; min-height: 0; display: flex; justify-content: center; }
/* Exported at the design's size: the phones sit at the top of the tile and the tile's overflow cuts them
   off at the bottom, like the design's Shot Area. align-self keeps the flex row from stretching the image
   to the shot's height (which squashed the phones); on narrow tiles it shrinks to fit, keeping its ratio.
   The exports carry 80px of transparent margin each side so the phone's shadow fades out instead of ending
   in a hard edge; that margin may spill into the tile's padding (+80px) before the image starts shrinking. */
.shot img { align-self: flex-start; height: auto; max-width: calc(100% + 80px); }

/* ---------- AI ---------- */
.ai { padding-top: 24px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 48px; }
.ai .lede { color: var(--ink-2); }
.ai-right { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ai-right .link { font-size: 16px; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  background: var(--ink); border-radius: 999px; color: var(--sun); font: 600 12px/1.2 var(--font-mono);
}
.badge .lucide { width: 14px; height: 14px; }
.panel-ai { background: var(--sun); }
.ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.widgets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.widgets li {
  padding: 6px 10px; background: var(--card); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; line-height: 1.2; color: var(--ink-2);
}
.widgets li.label { padding: 0; background: none; box-shadow: none; font-family: var(--font-mono); color: var(--muted); }
.perm { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }

/* ---------- Modular ---------- */
.modular { background: var(--ink); color: #fff; padding-block: 120px; }
.modular .wrap { display: flex; flex-direction: column; gap: 72px; }
.mod-left { display: flex; flex-direction: column; gap: 20px; width: 900px; max-width: 100%; }
.modular .lede { width: 360px; font-size: 17px; color: var(--dark-text); }
.mod-body { display: flex; align-items: center; gap: 72px; }
.mod-art { width: 700px; flex-shrink: 1; min-width: 0; }
.steps { flex: 1; min-width: 0; }
.steps li { display: flex; gap: 20px; padding-block: 26px; border-top: 1px solid var(--dark-line); }
.steps .num { font: 400 14px/1.6 var(--font-mono); color: var(--sun); }
.steps div { display: flex; flex-direction: column; gap: 8px; }
.steps h3 { font: 700 26px/1.2 var(--font-display); }
.steps p { font-size: 16px; line-height: 1.55; color: var(--dark-text); }
.mod-foot { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; border-top: 1px solid var(--dark-line); }
.ideas { display: flex; align-items: center; gap: 16px; }
.ideas-label { font: 400 13px var(--font-mono); color: #8F8B76; white-space: nowrap; }
.ideas ul { display: flex; gap: 10px; flex-wrap: wrap; }
.ideas li {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px #4A4834; font-size: 14px; line-height: 1.2; color: #E6E3D6;
}
.ideas .lucide { width: 15px; height: 15px; color: var(--dark-text); }

/* ---------- Perks ---------- */
.perks { padding-block: 120px; display: flex; flex-direction: column; gap: 48px; }
.perks .bento-head { padding-bottom: 0; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk-grid li {
  min-height: 250px; display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--card); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line);
}
.perk-grid .well { width: 44px; height: 44px; border-radius: 13px; background: var(--paper-2); margin-bottom: auto; }
.perk-grid .well .lucide { width: 22px; height: 22px; }
.perk-grid h3 { font: 700 22px/1.2 var(--font-display); }
.perk-grid p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper-2); padding-block: 120px; }
.pricing .wrap { display: flex; flex-direction: column; gap: 48px; }
.pricing-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pricing-lede { font-size: 18px; color: var(--muted); }
.plans { display: flex; justify-content: center; gap: 24px; }
.plan {
  width: 520px; min-height: 690px; display: flex; flex-direction: column; gap: 28px; padding: 40px;
  background: var(--card); border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line);
}
.plan-dark { background: var(--ink); box-shadow: none; color: #fff; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-head h3 { font: 700 24px/1.2 var(--font-display); }
.pill { white-space: nowrap; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.pill-sun { background: var(--sun); box-shadow: none; color: var(--ink); font-weight: 700; }
.pill-sm { padding: 3px 10px; font-size: 12px; font-weight: 500; }
.price { display: flex; align-items: flex-end; gap: 10px; }
.price strong { font: 700 72px/1 var(--font-display); letter-spacing: -2.5px; }
.price span { font-size: 16px; color: var(--muted); }
.plan-dark .price strong { color: var(--sun); }
.plan-dark .price span { color: var(--dark-text); }
.tagline { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.plan-dark .tagline { color: #E6E3D6; }
.includes { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-dark .includes { border-color: var(--dark-line); }
.includes li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.2; }
.includes .lucide { width: 18px; height: 18px; }
.plan-dark .includes li { color: #F2F0E6; }
.plan-dark .includes .lucide { color: var(--sun); }
.spacer { flex: 1; }
.terminal {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border: 0;
  background: var(--ink); border-radius: 14px; cursor: copy; text-align: left; font: 400 14px/1.2 var(--font-mono);
}
.terminal code { flex: 1; color: #F2F0E6; font: inherit; }
.terminal .lucide { width: 15px; height: 15px; color: #8F8B76; }
.btn-line2.btn-block { padding: 16px 22px; }
.yearly {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #24231A; border-radius: 14px;
  font-size: 15px; font-weight: 500; color: #F2F0E6; line-height: 1.2;
}
.yearly .lucide { width: 18px; height: 18px; color: var(--sun); }
.yearly span { flex: 1; }
.yearly em { font-style: normal; padding: 4px 10px; background: var(--sun); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 700; }
.btn-start { padding: 18px 22px; box-shadow: none; }
.plan-demo { align-self: center; font-size: 14px; color: var(--dark-text); }
.plan-demo:hover { color: #fff; }

/* ---------- Open source ---------- */
.open { padding-top: 120px; padding-bottom: 96px; display: flex; align-items: center; gap: 96px; }
.open-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.open-ctas { display: flex; align-items: center; gap: 20px; padding-top: 8px; flex-wrap: wrap; }
.count-pill { padding: 3px 9px; background: #2E2D20; border-radius: 999px; font: 400 12px var(--font-mono); color: var(--sun); }
.repo {
  width: 600px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; padding: 32px;
  background: var(--card); border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px #1211001A;
}
.repo-head { display: flex; align-items: center; gap: 12px; }
.repo-head > .lucide { width: 20px; height: 20px; color: var(--muted); }
.repo-name { flex: 1; font-size: 20px; font-weight: 600; }
.repo-desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.langbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.langs { display: flex; gap: 20px; flex-wrap: wrap; }
.langs li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.langs li span { width: 9px; height: 9px; border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--paper); border-radius: 16px; }
.stats span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stats .lucide { width: 15px; height: 15px; }
.stats strong { font: 700 28px/1.2 var(--font-display); }
.stack { display: flex; gap: 8px; flex-wrap: wrap; }
.stack li { padding: 6px 11px; background: var(--sun-soft); border-radius: 8px; font: 400 12px/1.2 var(--font-mono); color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-inner { display: flex; gap: 96px; padding-top: 96px; padding-bottom: 120px; }
.faq-head { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.faq-head h2 { font: 700 48px/1.02 var(--font-display); letter-spacing: -1.5px; }
.faq-head p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.faq-list { flex: 1; min-width: 0; }
.faq-list details { padding-block: 26px; border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  font: 600 22px/1.25 var(--font-display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .lucide { width: 20px; height: 20px; margin-left: auto; }
details[open] .i-plus, details:not([open]) .i-minus { display: none; }
.faq-list details p { max-width: 720px; margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final-wrap { padding-bottom: 64px; }
.final { position: relative; height: 520px; border-radius: 40px; overflow: hidden; background: var(--sun); }
/* Art keeps the design's 1312x520 canvas, anchored right; smaller screens shrink and shift it. */
.final-art { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1312 / 520; pointer-events: none; }
.final-art img { position: absolute; top: 0; left: 0; width: 100%; max-width: none; }
/* Rotate around the phone's own centre (1109,412 on the 1312x760 canvas), not the canvas centre. */
.final-phone { transform-origin: 84.5% 54.2%; }
.final-content { position: relative; display: flex; flex-direction: column; gap: 28px; width: 780px; max-width: 100%; padding: 88px 0 0 80px; }
.final-content h2 { font: 700 84px/.96 var(--font-display); letter-spacing: -3px; }
.final-content p { max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.final-content .ctas { padding-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding-top: 72px; padding-bottom: 40px; }
.footer .wrap { display: flex; flex-direction: column; gap: 56px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; }
.foot-brand { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { width: 158px; height: 32px; }
.foot-brand p { font-size: 15px; line-height: 1.5; color: #B9B6A6; }
.foot-cols { display: flex; gap: 96px; }
.foot-cols nav { display: flex; flex-direction: column; gap: 14px; }
.foot-cols h4 { font: 400 12px/1.2 var(--font-mono); letter-spacing: .5px; color: var(--sun); }
.foot-cols a { font-size: 15px; line-height: 1.2; color: #E6E3D6; }
.foot-cols a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 13px; color: #8F8B76; }
.foot-bottom .mono { font: 400 12px var(--font-mono); }
.foot-bottom a { color: inherit; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.modular a:focus-visible, .footer a:focus-visible, .plan-dark a:focus-visible { outline-color: var(--sun); }

/* ================= Responsive ================= */

/* Narrow desktop / tablet landscape: same layout, fluid type, chip strip wraps. */
@media (max-width: 1320px) {
  :root { --gutter: 48px; }
  h1 { font-size: clamp(64px, 7vw, 96px); }
  .hero-head { width: auto; flex: 1; }
  .hero-pitch { width: 440px; }
  .feature { gap: 56px; }
  .feature-copy { width: 400px; }
  .feature-copy h3 { font-size: 38px; }
  .points { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .mod-body { gap: 48px; }
  .mod-art { width: 52%; }
  .open { gap: 56px; }
  .repo { width: 520px; }
  .final-content h2 { font-size: 72px; }
}

/* Tablet: stack two-column sections. */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .nav-links { display: none; }
  .hero-copy, .split-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-pitch, .lede, .modular .lede { width: 100%; max-width: 620px; }
  .h-64, .h-68 { font-size: clamp(44px, 6vw, 64px); }
  .h-60 { font-size: clamp(42px, 5.5vw, 60px); }
  .features { padding-top: 96px; gap: 72px; }
  .feature { flex-direction: column; align-items: stretch; gap: 40px; }
  .feature-rev .feature-visual { order: 2; }
  .feature-copy { width: 100%; max-width: 620px; }
  .feature-visual { width: 100%; }
  .bento-row { flex-direction: column; }
  .tile, .bento-b .tile { flex: none; height: 520px; }
  .mod-body { flex-direction: column; align-items: stretch; }
  .mod-art { width: 100%; max-width: 700px; }
  .ideas { flex-direction: column; align-items: flex-start; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { flex-direction: column; align-items: center; }
  .plan { width: 100%; max-width: 560px; min-height: 0; }
  .plan .spacer { display: none; }
  .open { flex-direction: column; align-items: stretch; }
  .repo { width: 100%; max-width: 600px; }
  .faq-inner { flex-direction: column; gap: 40px; }
  .faq-head { width: 100%; max-width: 520px; }
  .final { height: auto; min-height: 520px; }
  .final-content { padding: 64px 48px 300px; width: 100%; }
  .final-art { top: auto; height: 420px; right: -40px; bottom: -60px; }
  .foot-top { flex-direction: column; }
  .foot-cols { gap: 64px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { padding-block: 16px; }
  .logo img { width: 128px; height: 26px; }
  .gh-stars { display: none; }
  .btn-sm { padding: 10px 14px; font-size: 13px; }
  .hero { padding-top: 24px; gap: 40px; }
  .eyebrow { font-size: 12px; padding-right: 12px; }
  h1 { font-size: 48px; letter-spacing: -1.6px; }
  .subhead { font-size: 17px; }
  .ctas { flex-direction: column; align-items: stretch; }
  /* Phones get their own composition built from the same layers: desktop browsers are hidden and
     each phone/panel layer is placed by hand. Canvases render at a fixed scale and are positioned
     from the container's centre, so the arrangement holds from 320px to 640px wide.
     Offsets = target position − design position × scale (hero 0.68, split 0.62). */
  .layered .l-browser { display: none; }
  .hero-visual .layer, .panel-split .layer { translate: none; }

  .hero-visual { margin-inline: calc(var(--gutter) * -1); border-radius: 0; aspect-ratio: auto; height: 380px; }
  .hero-visual .layer-bg { height: 100%; object-fit: cover; }
  .hero-visual .layer { width: 892px; }                                   /* 1312 × 0.68 */
  .hero-visual .l-phone-l { left: calc(50% - 206px); top: -32px; }        /* phone at x16, y70 */
  .hero-visual .l-phone-r { left: calc(50% - 684px); top: 20px; }         /* phone at x184, y100: overlaps, sits lower-right */
  .hero-visual .l-toast   { left: calc(50% - 543px); top: 5px; }          /* toast centred above both */

  .panel-split { aspect-ratio: auto; height: 440px; }
  .panel-split .layer-bg { height: 100%; object-fit: cover; object-position: left bottom; }
  .panel-split .layer { width: 813px; }                                   /* 1312 × 0.62 */
  .panel-split .l-share { left: calc(50% - 460px); top: -54px; }          /* share sheet (+ chat bubble) on the left: design x470, y200 */
  .panel-split .l-phone { left: calc(50% - 612px); top: -4px; }           /* guest phone overlapping on the right */

  /* Single-image features: crop toward the phone instead of shrinking the whole desktop scene. */
  .fv-shopping img, .fv-spending img { height: 420px; object-fit: cover; }
  .fv-shopping img { object-position: 100% 0; }
  .fv-spending img { object-position: 12% 0; }
  .strip { padding-block: 28px; }
  .strip-row { flex-direction: column; gap: 6px; }
  .strip { gap: 16px; }
  .h-64, .h-68, .h-60, .h-56 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.04; }
  .h-44 { font-size: 32px; letter-spacing: -1px; line-height: 1.1; }
  /* Hidden <br>s leave the preceding space, so lines re-flow naturally on phones. */
  .h-64 br, .h-68 br, .h-60 br { display: none; }
  .lede, .lede-17 { font-size: 16px; }
  .features, .splitcosts, .modular, .perks, .pricing { padding-block: 72px; }
  .features { padding-bottom: 48px; gap: 64px; }
  .feature-copy h3 { font-size: 32px; letter-spacing: -1px; }
  .feature-visual, .panel-img { border-radius: 20px; }
  .points { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .bento { padding-bottom: 72px; }
  .tile, .bento-b .tile { height: 460px; padding: 22px 22px 0; border-radius: 22px; }
  .ai { padding-bottom: 72px; gap: 32px; }
  .modular .wrap { gap: 48px; }
  .steps h3 { font-size: 22px; }
  .perk-grid { grid-template-columns: 1fr; }
  .perk-grid li { min-height: 0; }
  .perk-grid .well { margin-bottom: 20px; }
  .plan { padding: 28px 22px; gap: 24px; border-radius: 24px; }
  .price strong { font-size: 60px; }
  .yearly { flex-wrap: wrap; }
  .open { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .repo { padding: 22px; border-radius: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .faq-inner { padding-top: 64px; padding-bottom: 72px; }
  .faq-head h2 { font-size: 38px; }
  .faq-list summary { font-size: 19px; }
  .faq-list details { padding-block: 20px; }
  .final-wrap { padding-bottom: 40px; }
  .final { border-radius: 28px; }
  .final-content { padding: 44px 24px 280px; gap: 22px; }
  .final-content h2 { font-size: 46px; letter-spacing: -1.6px; }
  .final-content p { font-size: 17px; }
  .final-content .btn { white-space: normal; text-align: center; padding: 16px 20px; font-size: 16px; }  /* long demo label must wrap at 320–360px */
  .final-art { height: 400px; right: -9px; bottom: -40px; }    /* phone fully on-screen, ~16px from the edge */
  .footer { padding-top: 56px; }
  .foot-cols { gap: 32px 48px; flex-wrap: wrap; }
}

/* ---------- Motion ----------
   html.motion is set by an inline script only when motion is allowed; motion.js animates these
   back in. Without JS (or with reduced motion) nothing here applies and the page is static. */
.motion [data-reveal], .motion [data-reveal-group] > *,
.motion .eyebrow, .motion h1 .line, .motion .hero-pitch > *,
.motion .hero-visual img, .motion .final-phone, .motion [data-enter], .motion .v-hero-art img { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-item, .mm-featured > *, .mm-scrim { transition: none; }
  html { scroll-behavior: auto; }
  body > header { transition: none; }
  .btn { transition: none; }
}

/* ---------- Chat demos (ChatGPT / Claude mockups) ----------
   The mockups are flat exports, so motion.js "plays" the conversation by laying white covers
   (same colour as the chat window) over each part and wiping them away in order: photo, user
   message, tool call, reply, widget. Covers only exist once JS arms the demo (.cd-armed), so a
   failed script or reduced motion leaves the full static mockup. Geometry comes from data-chat-demo
   (px in the export's own coordinate space) and is turned into % so it scales with the image. */
.cd { position: relative; container-type: inline-size; }
.cd-cover { position: absolute; display: none; background: #fff; pointer-events: none; will-change: transform; }
.cd-armed .cd-cover { display: block; }
.cd-status { position: absolute; display: none; align-items: center; opacity: 0; pointer-events: none; font-size: calc(var(--cd-fs) * 1cqw); }
.cd-armed .cd-status { display: flex; }
.cd-call, .cd-dots { display: none; }
.cd-status[data-s="dots"] .cd-dots, .cd-status[data-s="call"] .cd-call { display: inline-flex; }
.cd-dots { gap: .28em; padding: .55em .8em; border-radius: 999px; background: #F1EFE8; }
.cd-dots b { width: .42em; height: .42em; border-radius: 50%; background: #8A8778; animation: cd-bounce 1s ease-in-out infinite; }
.cd-dots b:nth-child(2) { animation-delay: .15s; }
.cd-dots b:nth-child(3) { animation-delay: .3s; }
.cd-call { width: 100%; height: 100%; align-items: center; gap: .6em; padding: 0 .9em; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 400 1em/1 var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.cd-call code { font: inherit; color: var(--ink); }
.cd-spin { flex: none; width: 1em; height: 1em; border-radius: 50%; border: .13em solid var(--line); border-top-color: var(--ink); animation: cd-spin .8s linear infinite; }
@keyframes cd-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.3em); opacity: 1; } }
@keyframes cd-spin { to { transform: rotate(360deg); } }

/* ---------- Hero video (module pages: Recipes, Vehicles) ---------- */
/* Design's play button: a frosted white disc on the video card. Each page sets left/top/width in %
   of its hero art crop; it sits inside the video's parallax layer so it moves with the card. */
.hero-play { position: absolute; translate: -50% -50%; display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); cursor: pointer; box-shadow: 0 10px 30px rgba(18, 17, 0, .25); transition: scale .2s ease; }
.hero-play:hover { scale: 1.08; }
.hero-play:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.hero-play .lucide { width: 36%; height: 36%; margin-left: 6%; fill: currentColor; }
/* Layers above the video card are pictures: let clicks through to the play button. */
.layer[data-passthrough] { pointer-events: none; }
/* Hover areas in a layer crop (bounds as % of the crop). .hero-video-hit is the video card: the cursor hides
   and the play button follows it (/hero-video.js); plain .hit spans on the cards above block that hover. */
.hit { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); pointer-events: auto; }
.hero-video-hit { cursor: none; }
/* Leaving the card: the button flies back to its spot with a fast ease-out. While following, only scale animates. */
.hero-play { transition: scale .2s ease, left .45s cubic-bezier(.16, 1, .3, 1), top .45s cubic-bezier(.16, 1, .3, 1); }
.hero-play.following { transition: scale .2s ease; pointer-events: none; }

/* Player (/hero-video.js): no controls, no frame. The page shows through a dark frosted blur and the
   9:16 video floats in the middle at full viewport height. Click the video to pause/resume. */
.hero-video { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.hero-video[open] { display: grid; place-items: center; }
.hero-video::backdrop { background: rgba(18, 17, 0, .55); -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3); }
.hero-video video { display: block; height: calc(100dvh - 48px); width: auto; max-width: calc(100vw - 32px); object-fit: contain; border-radius: 18px; background: #000; cursor: pointer; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero-video-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.hero-video-close:hover { background: rgba(255, 255, 255, .26); }
.hero-video-close .lucide { width: 22px; height: 22px; }
@media (max-width: 640px) { .hero-video video { height: 100dvh; max-width: 100vw; border-radius: 0; } }

/* "MCP AI" nav item (design: Links › MCP) on page navs: label plus a small sun pill. */
.nav-ai { display: inline-flex; align-items: center; gap: 6px; }
.ai-pill { padding: 2px 5px; border-radius: 5px; background: var(--sun); color: var(--ink); font: 700 10px/1.2 'Geist Mono', ui-monospace, monospace; }

/* ---------- Consent banner (/visitor.js) ----------
   Dark card in the corner, like the module heroes' toasts: sun "Allow", quiet "No thanks", equal weight
   in size so declining is as easy as accepting. Slides up once; reduced motion just appears. */
/* One compact row (text left, buttons right) so it covers as little of the page as possible; stacks below 640px. */
.consent { position: fixed; z-index: 200; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 16px; width: min(560px, calc(100vw - 32px)); padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--ink); color: #E6E3D6; box-shadow: inset 0 0 0 1px #3A3826, 0 18px 50px rgba(18, 17, 0, .35); font: 400 13px/1.45 var(--font-body); opacity: 0; translate: 0 16px; transition: opacity .3s ease, translate .3s cubic-bezier(.22, 1, .36, 1); }
.consent.is-in { opacity: 1; translate: 0 0; }
.consent strong { color: #fff; font-weight: 600; }
.consent a { color: var(--sun); text-decoration: underline; text-underline-offset: 2px; }
.consent-btns { display: flex; gap: 8px; flex: none; }
.consent-btns button { flex: 1; padding: 9px 14px; white-space: nowrap; border: 0; border-radius: 999px; font: 700 14px/1.2 var(--font-body); cursor: pointer; transition: background-color .15s ease; }
.consent-yes { background: var(--sun); color: var(--ink); }
.consent-yes:hover { background: #FFE94D; }
.consent-no { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #4A4733; }
.consent-no:hover { background: rgba(255, 255, 255, .06); }
.consent-btns button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
@media (max-width: 640px) { .consent { left: 16px; bottom: 16px; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; translate: none; } }

/* ---------- Pricing: intro offer (design HHhec; filled in by megamenu.js from familywell.co/pricing.json) ---------- */
.offer { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-radius: 20px; background: var(--sun); color: var(--ink); }
.offer[hidden] { display: none; }
.offer strong { font: 700 76px/.9 var(--font-display); letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.offer div { display: flex; flex-direction: column; gap: 6px; }
.offer b { font: 700 13px/1.2 var(--font-mono); letter-spacing: 1.2px; }
.offer span { font-size: 15px; font-weight: 500; line-height: 1.4; }
.plan-dark .price > span { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; font-weight: 500; color: #E6E3D6; }
.plan-dark .price small { font-size: 14px; font-weight: 400; color: #A9A592; }
.plan-dark .price small b { font-weight: inherit; }
.yearly b { font-weight: inherit; }
[data-intro-only][hidden], [data-standard-only][hidden] { display: none; }
@media (max-width: 640px) {
  .offer { gap: 16px; padding: 16px 18px; }
  .offer strong { font-size: 60px; }
}

/* Language switch in the header ("DE" on English pages, "EN" on German ones). currentColor, so the same pill
   works on the light landing header and the dark module headers. */
.lang-pill { display: inline-flex; align-items: center; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); color: inherit; font: 600 13px/1 var(--font-mono); letter-spacing: .04em; text-decoration: none; opacity: .85; }
.lang-pill:hover { opacity: 1; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }
.mn-lang { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.mn-lang .flag { width: 20px; height: 20px; }
/* Round flags on every language switch. Square SVGs (the GB one is the centre of the flag), rounded here. */
.flag { display: inline-block; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); vertical-align: -3px; margin-right: 6px; }
.mn-lang .flag { margin-right: 0; }
@media (max-width: 640px) { .lang-pill { display: none; } }  /* in the mobile drawer instead (megamenu.js) */

/* "This page is also available in …" (visitor.js). In the flow above the header, so it scrolls away and never
   covers anything. */
.lang-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; background: var(--ink); color: #E6E3D6; font: 400 14px/1.3 var(--font-body); box-shadow: inset 0 -1px 0 #3A3826; }
.lang-bar a { color: var(--sun); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lang-bar button { padding: 0; border: 0; background: none; color: #8F8B76; font: inherit; cursor: pointer; }
.lang-bar button:hover { color: #fff; }
