/* ==========================================================================
   Fabulous AI: Evergreen & Lime theme (mobile-first, app-style on phones)
   Colours and fonts are tokens in :root. Lime is a fill colour only:
   never use it for text on light backgrounds.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f6f4ee;          /* cream page */
  --white: #ffffff;
  --sand: #efebe1;
  --sage: #e3ede2;
  --field: #fbfaf7;
  --line: #e2ded3;
  --line-strong: #cfcabd;

  /* Text */
  --text: #13211b;        /* ink */
  --muted: #5d6b63;       /* 5.1:1 on cream */

  /* Brand */
  --brand: #0f3b2e;       /* evergreen */
  --brand-2: #16513f;     /* evergreen hover */
  --lime: #c8f169;        /* fills only */
  --lime-2: #b5e04a;
  --coral: #ff7a59;       /* small dots only */
  --on-brand: #f6f4ee;
  --on-brand-muted: #b9cdbf;
  --on-brand-line: rgba(246, 244, 238, 0.16);

  /* Status colours: used only inside the demos */
  --ok: #166534;     --ok-bg: #e2f2e4;
  --warn: #8a4b0f;   --warn-bg: #fbefd9;
  --bad: #a3271a;    --bad-bg: #fbe5e1;
  --info: #1e3a8a;   --info-bg: #e3e9f8;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --shadow-card: 0 1px 2px rgba(15, 59, 46, 0.05), 0 18px 40px -28px rgba(15, 59, 46, 0.35);
  --shadow-window: 0 2px 4px rgba(0, 0, 0, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.55);

  --gutter: 16px;
  --container: 1200px;
  --header-h: 60px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --header-h: 72px; --tabbar-h: 0px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 3.75rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }

mark {
  background: var(--lime);
  color: var(--text);
  padding: 0 0.14em;
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.section--dark :focus-visible, .band :focus-visible, .pilot :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--text); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--brand); color: var(--on-brand);
  border-radius: 999px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.section--sage { background: var(--sage); }
.section--dark { background: var(--brand); color: var(--on-brand); }
.section--dark h2, .section--dark h3 { color: var(--on-brand); }

.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); color: var(--muted); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 1px rgba(15, 59, 46, 0.25); }
.section--dark .eyebrow, .eyebrow--light { color: var(--lime); }
.section--dark .eyebrow::before, .eyebrow--light::before { box-shadow: none; }

.inline-link { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.inline-link:hover { text-decoration-color: var(--brand); }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 62ch; margin: 20px 0 0; padding: 12px 16px;
  border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--muted);
}
.note svg { color: var(--brand); margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-2); }
.btn--lime { background: var(--lime); color: var(--text); }
.btn--lime:hover { background: var(--lime-2); }
.btn--outline { background: var(--white); border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--brand); }
.btn--ghost-light { background: transparent; border-color: rgba(246, 244, 238, 0.35); color: var(--on-brand); }
.btn--ghost-light:hover { border-color: var(--on-brand); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0; border: 0; background: none;
  font-weight: 600; color: inherit;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link svg { width: 15px; height: 15px; }
.section--dark .text-link { text-decoration-color: var(--on-brand-line); }
.section--dark .text-link:hover { text-decoration-color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, transform 0.3s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@media (max-width: 899px) { .site-header.is-hidden { transform: translateY(-100%); } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; }

.nav { display: none; margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--sand); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--sage); }
.header-cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { margin-left: 0; }
}

/* ---------- Bottom tab bar (phones and small tablets) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--line);
  view-transition-name: tabbar;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; font-size: 0.6875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s, transform 0.15s;
}
.tabbar a:active { transform: scale(0.94); }
.tab-icon { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 999px; transition: background-color 0.2s; }
.tab-icon svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); font-weight: 650; }
.tabbar a[aria-current="page"] .tab-icon { background: var(--lime); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Section headings ---------- */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head > p { color: var(--muted); font-size: 1.0625rem; margin: 0; max-width: 48ch; }
.section-head .eyebrow { margin-bottom: 12px; }
.section--dark .section-head > p { color: var(--on-brand-muted); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head > p { justify-self: end; }
  .section-head > :only-child { grid-column: 1 / -1; }
}
.section-head--center { text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 20ch; }
@media (min-width: 900px) {
  .section-head--center { grid-template-columns: 1fr; gap: 14px; }
  .section-head--center > p { justify-self: center; }
}

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero h1 { max-width: 15ch; margin: 0; }
.hero .lead { margin: 22px 0 28px; }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.15s; }
.hero-copy > :nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pill-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin: 0 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: 0.8125rem; color: var(--muted);
}
.pill-status strong { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22a55a; flex: 0 0 auto; }
.dot--live { background: var(--coral); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; }
.proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--muted); }
.proof svg { width: 18px; height: 18px; color: var(--brand); }

.activity {
  display: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow-card);
  animation: rise 0.9s 0.15s var(--ease) both;
}
@media (min-width: 1024px) { .activity { display: block; } }
.activity-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.9375rem; }
.activity-head b { font-weight: 650; }
.activity-meta { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.activity-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-list li:first-child { border-top: 0; }
.act-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sage); color: var(--brand); }
.act-text b { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.act-text small { color: var(--muted); font-size: 0.8125rem; }
.activity-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--brand); color: var(--on-brand-muted); font-size: 0.875rem; }
.activity-foot strong { font-family: var(--display); font-size: 1.375rem; font-weight: 650; color: var(--lime); letter-spacing: -0.02em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin: 0; }
.service-hero { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1024px) { .service-hero { grid-template-columns: 1.35fr 0.65fr; gap: 64px; } }
.service-hero .lead { margin-bottom: 28px; }
.hero-facts { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px; }
.hero-facts div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-facts div:first-child { border-top: 0; }
.hero-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
.hero-facts dt svg { color: var(--brand); }
.hero-facts dd { font-family: var(--display); font-weight: 650; letter-spacing: -0.01em; text-align: right; }

.breadcrumb { margin-bottom: 18px; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--brand); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Swipe rails: horizontal scroll on phones, grid on desktop ---------- */
.rail { display: grid; gap: 16px; }
@media (max-width: 899px) {
  .rail {
    grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}
@media (min-width: 640px) and (max-width: 899px) { .rail { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .rail--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .rail--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rail--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1100px) { .rail--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
@media (min-width: 1024px) { .card { padding: 28px; } }
.card--sage { background: var(--sage); border-color: transparent; }
.card--outline { background: transparent; border-color: var(--line-strong); }
.section--sage .card { border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card > p { color: var(--muted); }

.icon-tile { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 20px; }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--dark { background: var(--brand); color: var(--lime); }
.icon-tile--lime { background: var(--lime); color: var(--text); }
.icon-tile--sage { background: var(--sage); color: var(--brand); }
.icon-tile--white { background: var(--white); color: var(--brand); border: 1px solid var(--line); }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 20px; }
.icon-tile--lg svg { width: 26px; height: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--brand); background: var(--sage); }
.tag--lime { background: var(--lime); color: var(--text); }
.tags--lg .tag { padding: 7px 14px; font-size: 0.9375rem; background: var(--white); border: 1px solid var(--line); }

.service-card { display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s var(--ease); }
.service-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.service-card:active { transform: scale(0.98); }
.service-card .tags { margin: 4px 0 20px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; color: var(--brand); }
.card-link svg { transition: transform 0.2s var(--ease); }
.service-card:hover .card-link svg, a.card-link:hover svg { transform: translateX(4px); }

.fix { display: flex; gap: 8px; margin: 0; font-weight: 500; color: var(--brand); }
.fix svg { width: 18px; height: 18px; margin-top: 3px; }
.problem-card > p:not(.fix) { margin-bottom: 16px; }

.ticks { display: grid; gap: 10px; margin: 18px 0 24px; }
.ticks li { display: flex; gap: 12px; font-size: 0.9375rem; }
.ticks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--lime); color: var(--text); margin-top: 1px; }
.ticks--lg { gap: 14px; }
.ticks--lg li { font-size: 1.0625rem; }

/* ---------- Demo stage (home) ---------- */
.stage { position: relative; }
.tabs {
  display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 4px; padding: 4px;
  max-width: 720px; margin: 0 auto clamp(24px, 3vw, 40px);
  border: 1px solid var(--on-brand-line); border-radius: 999px; background: rgba(255, 255, 255, 0.06);
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 0.875rem; font-weight: 600; color: var(--on-brand-muted); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--on-brand); }
.tab[aria-selected="true"] { background: var(--lime); color: var(--text); }
.tab { padding-inline: 16px; }
/* Five tabs don't fit a phone: the bar scrolls sideways instead */
@media (max-width: 719px) {
  .tabs { display: flex; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: 24px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding-inline: 14px; }
}
@media (max-width: 479px) { .tab svg { display: none; } .tab { font-size: 0.8125rem; } }
.tab-live {
  margin-left: 2px; padding: 1px 7px; border-radius: 999px;
  background: var(--lime); color: var(--text);
  font-size: 0.625rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; text-transform: uppercase;
}
.tab[aria-selected="true"] .tab-live { background: var(--brand); color: var(--lime); }

.demo-panel { display: grid; gap: 28px; }
.demo-panel[hidden] { display: none; }
@media (min-width: 1024px) {
  .demo-panel { grid-template-columns: 0.72fr 1.28fr; gap: 56px; align-items: start; }
  .demo-copy { padding-top: 20px; }
}
.demo-copy h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); letter-spacing: -0.03em; line-height: 1.12; }
.demo-copy > p { color: var(--on-brand-muted); }
.demo-copy .eyebrow { margin-bottom: 10px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.solo-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .solo-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.demo-solo--wide { max-width: 980px; margin-inline: auto; }
.demo-solo figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: 0.875rem; color: var(--on-brand-muted); }

/* App window */
.window {
  background: var(--white); color: var(--text);
  border-radius: 20px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.window-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.window-meta { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--sage); color: var(--brand); font-size: 0.75rem; font-weight: 600; }

/* Chat parts (shared) */
.msg-row { display: flex; gap: 10px; align-items: flex-end; }
.msg-row--me { justify-content: flex-end; }
.avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage); color: var(--brand);
  font-size: 0.6875rem; font-weight: 700;
}
.avatar--bot { background: transparent; border-radius: 9px; overflow: hidden; }
.avatar--bot svg { width: 30px; height: 30px; }
.bubble { max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.5; }
.bubble--in { background: var(--sand); border-bottom-left-radius: 6px; }
.bubble--out { background: var(--brand); color: var(--white); border-bottom-right-radius: 6px; }
.bubble-meta { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 3px; }
.bubble--out .bubble-meta { color: var(--on-brand-muted); }

.typing { display: inline-flex; gap: 4px; padding: 5px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

/* Demo 1: support console */
.console { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 440px; }
@media (min-width: 640px) { .console { padding: 22px; } }
.steps {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  font-size: 0.8125rem;
}
.steps-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.step { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; }
.step-icon { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.step-icon svg { width: 12px; height: 12px; }
.step code { font-family: var(--mono); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-result { color: var(--muted); font-size: 0.78rem; text-align: right; white-space: nowrap; }
@media (max-width: 479px) {
  .step { grid-template-columns: 18px 1fr; }
  .step-result { grid-column: 2; text-align: left; white-space: normal; }
}
.step .ic-run { display: none; }
.step.is-running .ic-run { display: block; animation: spin 1s linear infinite; }
.step.is-running .ic-done { display: none; }
.step.is-running .step-icon { background: var(--sand); color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.resolved {
  display: inline-flex; align-self: flex-end; align-items: center; gap: 6px; margin: 0;
  padding: 5px 12px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 0.8125rem; font-weight: 600;
}
.resolved svg { width: 14px; height: 14px; }

/* Demo 2: inbox */
.inbox { padding: 6px 8px; }
.inbox-row { display: grid; grid-template-columns: 34px 1fr; gap: 3px 12px; padding: 14px 10px; border-radius: var(--r-sm); transition: background-color 0.3s; }
.inbox-row + .inbox-row { border-top: 1px solid var(--line); border-radius: 0; }
.inbox-row.is-scanning { background: var(--sage); }
.inbox-row .avatar { width: 34px; height: 34px; grid-row: span 2; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.inbox-head strong { font-size: 0.9375rem; font-weight: 600; }
.inbox-head .channel { color: var(--muted); font-size: 0.75rem; }
.inbox-text { color: var(--muted); font-size: 0.875rem; margin: 0; }
.inbox-out { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-s { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--sand); color: var(--text); white-space: nowrap; }
.tag-s svg { width: 12px; height: 12px; }
.tag-s--ok { background: var(--ok-bg); color: var(--ok); }
.tag-s--warn { background: var(--warn-bg); color: var(--warn); }
.tag-s--bad { background: var(--bad-bg); color: var(--bad); }
.tag-s--info { background: var(--info-bg); color: var(--info); }
.inbox-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 14px 10px 10px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.inbox-summary strong { color: var(--text); font-weight: 700; }

/* Demo 3: workflow */
.flow-wrap { padding: 20px; display: grid; gap: 18px; }
.flow { display: grid; gap: 8px; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.node {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font-size: 0.8125rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.node-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sand); color: var(--muted); transition: background-color 0.3s, color 0.3s; flex: 0 0 auto; }
.node-icon svg { width: 16px; height: 16px; }
.node b { display: block; font-weight: 600; line-height: 1.3; }
.node small { color: var(--muted); font-size: 0.75rem; }
.node.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--sage); }
.node.is-active .node-icon { background: var(--brand); color: var(--lime); }
.node.is-done .node-icon { background: var(--ok-bg); color: var(--ok); }
@media (min-width: 640px) {
  .node { flex-direction: column; text-align: center; margin-inline: 5px; padding: 14px 6px; }
  .node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -11px; width: 12px; height: 2px; background: var(--line-strong); }
  .node.is-done:not(:last-child)::after { background: var(--ok); }
}
.flow-out { display: grid; gap: 14px; }
@media (min-width: 640px) { .flow-out { grid-template-columns: 1.1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.panel-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.fields { display: grid; gap: 8px; font-size: 0.875rem; }
.fields div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fields div:last-child { border-bottom: 0; padding-bottom: 0; }
.fields dt { color: var(--muted); }
.fields dd { font-family: var(--mono); font-size: 0.8125rem; text-align: right; }
.fields .ok { color: var(--ok); }
.slack-channel { font-weight: 700; font-size: 0.8125rem; margin: 0 0 8px; }
.slack-msg { display: flex; gap: 10px; font-size: 0.875rem; }
.slack-msg time { color: var(--muted); font-size: 0.75rem; margin-left: 6px; }
.slack-msg p { margin: 2px 0 0; }

/* Demo 4: interactive lead chat */
.site-mock { display: grid; }
@media (min-width: 720px) { .site-mock { grid-template-columns: 1.2fr 0.8fr; } }
.chat-col { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .chat-col { border-bottom: 0; border-right: 1px solid var(--line); } }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; height: 340px; overflow-y: auto; scroll-behavior: smooth; }
@media (min-width: 720px) { .chat { height: 360px; } }
.chat .bubble { font-size: 0.875rem; }
.replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); min-height: 72px; align-items: center; }
.reply {
  min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: 0.875rem; font-weight: 500; transition: border-color 0.2s, background-color 0.2s;
}
.reply:hover { border-color: var(--brand); background: var(--sage); }
.reply:disabled { opacity: 0.5; cursor: default; }
.replies-hint { font-size: 0.8125rem; color: var(--muted); width: 100%; margin: 0 0 2px; }
.lead-card { padding: 18px; display: grid; gap: 14px; align-content: start; background: var(--bg); }
.score { display: flex; align-items: center; gap: 14px; }
.score-ring { position: relative; width: 60px; height: 60px; }
.score-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.score-ring .track { stroke: var(--sage); }
.score-ring .bar { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 0.9s var(--ease); }
.score-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; }
.score b { display: block; font-weight: 650; }
.score small { color: var(--muted); font-size: 0.8125rem; }
.lead-card .fields dd.empty { color: var(--line-strong); }
.synced { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8125rem; color: var(--ok); font-weight: 600; }
.synced svg { width: 14px; height: 14px; }
.synced[hidden] { display: none; }

/* Script-driven reveal inside demos */
.js [data-seq] { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js [data-seq].is-hidden { opacity: 0; transform: translateY(6px); }
.js [data-seq].is-gone { display: none; }
.js .fields [data-seq].is-hidden { transform: none; }
.pop { animation: rise 0.35s var(--ease) both; }

/* ---------- Tools strip ---------- */
.tools-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-top: clamp(36px, 5vw, 56px); }
.tools-strip li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--on-brand-line); font-size: 0.9375rem; font-weight: 500; color: var(--on-brand); }
.tools-strip .tools-label { width: 100%; padding: 0; border: 0; margin-bottom: 4px; text-align: center; font-size: 0.875rem; color: var(--on-brand-muted); }
@media (max-width: 899px) {
  .tools-strip {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  }
  .tools-strip::-webkit-scrollbar { display: none; }
  .tools-strip li { flex: 0 0 auto; }
  .tools-strip .tools-label { width: auto; margin: 0 4px 0 0; }
}

/* ---------- Process ---------- */
.process { counter-reset: none; }
.process-step { background: var(--white); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); }
.section--sage .process-step { border-color: transparent; }
.process-step .when { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--lime); font-size: 0.8125rem; font-weight: 600; }
.process-step h3 { margin: 16px 0 8px; }
.process-step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.fact-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.fact-tile strong { font-family: var(--display); font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.fact-tile span { color: var(--muted); font-size: 0.9375rem; }
.fact-tile--dark { background: var(--brand); border-color: var(--brand); }
.fact-tile--dark strong { color: var(--lime); }
.fact-tile--dark span { color: var(--on-brand-muted); }
.fact-tile--lime { background: var(--lime); border-color: var(--lime); }
.fact-tile--lime span { color: var(--text); }

/* ---------- Closing band ---------- */
.band {
  background: var(--brand); color: var(--on-brand);
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: grid; gap: 28px; align-items: end;
}
@media (min-width: 900px) { .band { grid-template-columns: 1.3fr 0.7fr; } }
.band h2 { margin: 0 0 14px; max-width: 14ch; color: var(--on-brand); }
.band p { color: var(--on-brand-muted); margin: 0; max-width: 44ch; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .band-actions { justify-content: flex-end; } }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 16px; }
.service-row { display: grid; gap: 24px; padding: clamp(24px, 3.5vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); }
@media (min-width: 900px) { .service-row { grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: end; } }
.service-row h2 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.125rem); margin-bottom: 10px; }
.service-row-main > p { color: var(--muted); max-width: 52ch; }
.service-row .ticks { margin-bottom: 0; }
.service-row-side { display: grid; gap: 20px; }
.mini-facts { display: grid; gap: 0; padding: 4px 18px; border-radius: var(--r); background: var(--bg); }
.mini-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.mini-facts div:first-child { border-top: 0; }
.mini-facts dt { color: var(--muted); }
.mini-facts dd { font-weight: 600; text-align: right; }

.pilot {
  display: grid; gap: 28px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: var(--brand); color: var(--on-brand);
}
@media (min-width: 900px) { .pilot { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; } }
.pilot h2 { color: var(--on-brand); max-width: 16ch; }
.pilot p { color: var(--on-brand-muted); margin: 0; }
.pilot-points { display: grid; gap: 12px; }
.pilot-points li { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--on-brand-line); }
.pilot-points svg { color: var(--lime); margin-top: 2px; }
.pilot-points b { display: block; font-weight: 650; }
.pilot-points span { color: var(--on-brand-muted); font-size: 0.9375rem; }
.pilot > .btn { justify-self: start; }
@media (min-width: 900px) { .pilot > .btn { grid-column: 1; } }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split h2 { max-width: 16ch; }
.stack-cards { display: grid; gap: 16px; }
.stack-cards .card > p { margin-bottom: 14px; }
.stack-cards .card--outline > p:not(.eyebrow) { color: var(--text); font-size: 1.0625rem; }
.prose-block p { font-size: 1.125rem; color: var(--text); }
.inline-facts { display: grid; gap: 10px; margin-top: 24px; }
.inline-facts li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.inline-facts svg { color: var(--brand); }
.stack-panel { display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--sand); }
@media (min-width: 900px) { .stack-panel { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; } }
.stack-panel h2 { font-size: clamp(1.6rem, 1.4vw + 1rem, 2.25rem); }
.stack-panel p { color: var(--muted); margin: 0; }

/* ---------- Work page ---------- */
.example-card { display: flex; flex-direction: column; }
.example-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.example-top .icon-tile { margin: 0; }
.example-card h2 { font-size: clamp(1.3rem, 0.8vw + 1rem, 1.6rem); letter-spacing: -0.025em; }
.example-card dl { display: grid; gap: 12px; margin-bottom: 20px; font-size: 0.9375rem; }
.example-card dt { font-size: 0.8125rem; font-weight: 600; color: var(--brand); }
.example-card dd { color: var(--muted); margin-top: 2px; }
.example-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: auto 0 18px; padding: 16px 18px; border-radius: var(--r); background: var(--sage); }
.example-result::before { content: "Example result"; flex-basis: 100%; font-size: 0.75rem; font-weight: 600; color: var(--brand); }
.example-result strong { font-family: var(--display); font-size: 2rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.example-result span { color: var(--muted); font-size: 0.9375rem; }
.metric-card p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s; }
.section--sage .faq details { border-color: transparent; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 60px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:active { background: var(--bg); border-radius: var(--r); }
.faq .chev { width: 20px; height: 20px; color: var(--brand); transition: transform 0.3s var(--ease); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }
.faq .answer p { margin: 0; }
.faq-wrap { display: grid; gap: 28px; }
.faq-wrap h2 { margin-bottom: 10px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.75fr 1.25fr; gap: 64px; } }
.faq-groups { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-groups { grid-template-columns: 1fr 1fr; gap: 48px 40px; align-items: start; } }
.faq-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; margin-bottom: 16px; }
.faq-group h2 .icon-tile { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.faq-group h2 .icon-tile svg { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact-section { padding-top: clamp(28px, 5vw, 72px); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.contact-info h1 { font-size: clamp(2.2rem, 2.6vw + 1rem, 3.25rem); max-width: 14ch; }
.contact-info .lead { margin-bottom: 0; }
.next-steps { display: grid; gap: 18px; margin: 32px 0; }
.next-steps li { display: flex; gap: 14px; }
.step-dot { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--sage); color: var(--brand); }
.next-steps strong { display: block; font-weight: 650; }
.next-steps span { color: var(--muted); font-size: 0.9375rem; }
.contact-card { padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.contact-card h2 { font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list svg { width: 18px; height: 18px; color: var(--brand); }
.contact-list a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration-color: var(--brand); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); }
.form-card h2 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 4px; }
.form-card > form > p { color: var(--muted); font-size: 0.9375rem; }
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--field);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%230f3b2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: #737d77; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(200, 241, 105, 0.55); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field-error { display: block; margin-top: 6px; color: var(--bad); font-size: 0.8125rem; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 24px; display: grid; gap: 12px; }
.form-foot small { color: var(--muted); font-size: 0.8125rem; }
.form-foot small a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 0; font-size: 0.9375rem; }
.form-status.is-error { color: var(--bad); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.form-success { display: grid; justify-items: center; text-align: center; padding: 40px 8px; }
.form-success[hidden] { display: none; }
.form-success p { color: var(--muted); max-width: 36ch; }

.quick-links h2 { font-size: 1.375rem; margin-bottom: 18px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; transition: transform 0.15s; }
.link-card:active { transform: scale(0.98); }
.link-card > svg:first-child { color: var(--brand); }
.link-card b { display: block; font-weight: 650; }
.link-card small { color: var(--muted); font-size: 0.875rem; }
.link-card .chev-r { margin-left: auto; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 28px; background: var(--sand); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--muted); font-size: 0.9375rem; margin: 14px 0 18px; max-width: 300px; }
.footer-col h2 { font-family: var(--font); font-size: 0.875rem; font-weight: 650; letter-spacing: 0; color: var(--brand); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 5px 0; font-size: 0.9375rem; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact .contact-list { gap: 6px; }
.footer-contact .contact-list li { font-size: 0.9375rem; }
.footer-contact .contact-list a { text-decoration: none; }
.footer-contact .contact-list a:hover { text-decoration: underline; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); transition: border-color 0.2s; }
.socials a:hover { border-color: var(--brand); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Simple pages ---------- */
.page { padding-block: clamp(32px, 7vw, 104px); }
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.5rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #3d4a43; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--muted); font-size: 0.9375rem; }
.notfound { min-height: calc(100dvh - var(--header-h) - var(--tabbar-h) - 120px); display: grid; place-items: center; text-align: center; }
.notfound .big { display: inline-flex; align-items: center; gap: 0.06em; font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--brand); margin-bottom: 16px; }
.big-dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--lime); }
.notfound h1 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); }
.notfound p { color: var(--muted); font-size: 1.125rem; max-width: 46ch; margin-inline: auto; }
.notfound .actions { margin-top: 28px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Page transitions (supported browsers only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .chat { scroll-behavior: auto; }
}

/* ==========================================================================
   Live demo links (/demo, homepage pill and "Shopping" tab, Work page card)
   ========================================================================== */
.pill-link { text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.pill-link:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--sage); }
.pill-link svg { color: var(--brand); flex: 0 0 auto; }

.shop-preview { display: block; text-decoration: none; transition: transform 0.2s; }
.shop-preview:hover { transform: translateY(-3px); }
.shop-mock { display: flex; flex-direction: column; background: var(--white); }
.shop-log { display: flex; flex-direction: column; gap: 12px; height: 420px; padding: 18px; overflow: hidden; }
.shop-input { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 14px 14px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 0.875rem; color: var(--text); }
.shop-input-text:empty::before { content: "Ask for a product or budget…"; color: var(--muted); }
.shop-send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; flex: none; border-radius: 999px; background: var(--brand); color: var(--white); }
.shop-send svg { transform: rotate(-90deg); }
.shop-think-label { margin-left: 10px; font-size: 0.8125rem; color: var(--muted); }
.typing-row .bubble { display: inline-flex; align-items: center; }
.demo-solo--chat { max-width: 720px; margin-inline: auto; }
.shop-mock .bubble { font-size: 0.875rem; }
.shop-recs { display: grid; gap: 8px; margin-left: 40px; }
.shop-rec { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.shop-rec img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.shop-rec-body { display: grid; gap: 2px; font-size: 0.875rem; line-height: 1.35; }
.shop-rec-body b { font-weight: 600; }
.shop-rank { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.shop-price { font-weight: 700; }
.shop-rec-body small { color: var(--muted); font-size: 0.8125rem; }
.shop-steps { margin-left: 40px; }
.shop-preview-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: var(--lime); color: var(--text); font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 479px) { .shop-recs, .shop-steps { margin-left: 0; } }

.demo-store { display: grid; gap: 20px; padding: 14px; }
.demo-store-media { display: block; overflow: hidden; border-radius: calc(var(--r-lg) - 6px); }
.demo-store-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.demo-store-media:hover img { transform: scale(1.03); }
.demo-store-body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: 6px 8px 12px; }
.demo-store-body p { color: var(--muted); max-width: 54ch; }
.demo-store-body h3 { font-size: 1rem; margin-top: 4px; }
.demo-store--compact h2 { font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); }
@media (min-width: 900px) {
  .demo-store { grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 18px; }
  .demo-store-body { padding: 12px 16px 12px 0; }
}
.try-list { display: grid; gap: 8px; width: 100%; }
.try-list a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); text-decoration: none; font-size: 0.9375rem; transition: border-color 0.2s, background-color 0.2s; }
.try-list a:hover { border-color: var(--brand); background: var(--sage); }
.section--live { margin-bottom: clamp(32px, 4vw, 56px); }
.demo-page-actions { margin-top: 28px; }
.demo-more { margin: 20px 0 0; text-align: center; color: var(--on-brand-muted); }
