/* Prospertide Solutions — site.css
   Paper colour matches the logo file's own background exactly (#FCF7F2),
   so the logo sits on the page with no visible box. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JB Mono";
  src: url("../fonts/jbmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fcf7f2;
  --paper-2: #f5eee5;
  --card: #ffffff;
  --line: #e7dfd4;
  --line-2: #d9cfc1;
  --ink: #152a1f;
  --ink-2: #4b5b52;
  --ink-3: #7a857e;
  --green: #1a402d;
  --green-2: #2b5a40;
  --green-3: #e6efe7;
  --leaf: #6f9b75;
  --won: #2f7a4c;
  --lost: #b3594f;
  --lost-2: #f6e6e2;
  --sand: #b7a88f;
  /* Muted amber: a warm second accent, used sparingly against the green. */
  --amber: #c0801f;
  --amber-2: #8a5c12;   /* darker, safe for text on cream */
  --amber-3: #f7e6c8;   /* soft tint for fills */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JB Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 80px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(56px, 6.4vw, 92px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 1px 2px rgba(26, 64, 45, .05), 0 12px 32px -12px rgba(26, 64, 45, .14);
}
@media (max-width: 720px) { :root { --header-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 720px) { body { font-size: 16px; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #fff; }

:focus-visible { outline: 2.5px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 12px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num, .mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -.028em; line-height: 1.08; text-wrap: balance; }
.h1 { font-size: clamp(44px, 6.3vw, 86px); letter-spacing: -.042em; line-height: 1.0; font-weight: 780; }
.h2 { font-size: clamp(31px, 4.1vw, 52px); letter-spacing: -.035em; }
.h3 { font-size: clamp(20px, 1.9vw, 23px); letter-spacing: -.02em; line-height: 1.25; font-weight: 720; }
.lead { font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--green-2); margin-bottom: 18px; letter-spacing: -.005em; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--amber); border-radius: 3px; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font-size: 16.5px; font-weight: 680; letter-spacing: -.01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(26,64,45,.6); }
.btn--primary:hover { background: #12321f; transform: translateY(-1px); }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background-color: var(--green); color: #fff; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--green-3); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15.5px; border-radius: 10px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link { color: var(--green); font-weight: 680; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }

/* ---------- Header (logo always visible) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(21,42,31,.35); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; height: 100%; flex: none; }
.brand img { height: 60px; width: auto; }
@media (max-width: 720px) { .brand img { height: 48px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); background-color: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--green); }
.nav .btn { margin-left: 10px; }
.nav .btn .sm { display: none; }
@media (max-width: 420px) { .nav .btn .lg { display: none; } .nav .btn .sm { display: inline; } }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav a:not(.btn) { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-left: 4px; margin-right: -8px;
    border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  }
  .menu-btn .burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-btn .burger { display: grid; gap: 6px; }
  .menu-open .menu-btn .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  box-shadow: 0 24px 40px -24px rgba(21,42,31,.3);
}
.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 56px; font-size: 20px; font-weight: 680; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 20px; }
@media (min-width: 881px) { .mobile-menu { display: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .7) 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.split-head .section-head { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero-track { position: relative; }
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { padding: clamp(28px, 5vh, 56px) 0; }
.hero-copy .lead { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 16px; font-weight: 700; color: var(--green); letter-spacing: -.01em; transition: opacity .4s; }
.scroll-cue i { position: relative; width: 2.5px; height: 36px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--green); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { display: none; } }

.tree-stage { position: relative; width: 100%; aspect-ratio: 1 / 1.02; max-height: calc(100svh - var(--header-h) - 40px); margin-inline: auto; }
.tree-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.tree--fallback canvas { display: none; }
.tree--fallback .tree-fallback { display: block; }
.tree-label {
  position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform;
}
.tree-label .dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--green); transform: scale(0); transition: transform .5s var(--ease); }
.tree-label .pill {
  position: absolute; top: 0; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 680; color: var(--green); letter-spacing: -.005em;
  box-shadow: var(--shadow);
  opacity: 0; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.tree-label[data-side="left"] .pill { right: 16px; transform: translate(8px, -50%); }
.tree-label[data-side="right"] .pill { left: 16px; transform: translate(-8px, -50%); }
.tree-label[data-side="top"] .pill { right: 12px; bottom: 12px; top: auto; transform: translate(6px, 6px); }
.tree-stage.is-narrow .tree-label[data-side="left"] .pill { right: auto; left: -12px; top: 14px; transform: translateY(6px); }
.tree-stage.is-narrow .tree-label[data-side="right"] .pill { left: auto; right: -12px; top: 14px; transform: translateY(6px); }
.tree-stage.is-narrow .tree-label[data-side="top"] .pill { right: auto; left: 50%; bottom: 14px; transform: translate(-50%, 6px); }
.tree-stage.is-narrow .tree-label .pill { font-size: 12.5px; padding: 6px 11px; }
.tree-label.is-on .dot { transform: scale(1); }
.tree-label.is-on .pill { opacity: 1; }
.tree-label.is-on[data-side="left"] .pill { transform: translate(0, -50%); }
.tree-label.is-on[data-side="right"] .pill { transform: translate(0, -50%); }
.tree-label.is-on[data-side="top"] .pill { transform: none; }
.tree-stage.is-narrow .tree-label.is-on[data-side] .pill { transform: none; }
.tree-stage.is-narrow .tree-label.is-on[data-side="top"] .pill { transform: translateX(-50%); }

@media (min-width: 961px) {
  .hero-track { height: calc(100svh + 70vh); }
  .hero { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero .wrap { width: 100%; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 8px; }
  .scroll-cue { display: none; }
  .tree-stage { max-width: 460px; max-height: none; margin-top: 8px; }
}

/* Proof strip */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.strip li { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 12px 16px; font-weight: 680; letter-spacing: -.015em; font-size: 17px; }
.strip li + li { border-left: 1px solid var(--line); }
.strip svg { color: var(--amber); flex: none; }
@media (max-width: 640px) {
  .strip ul { grid-template-columns: 1fr; }
  .strip li { justify-content: flex-start; min-height: 56px; padding: 8px var(--gutter); }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Leak moments ---------- */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.moment { position: relative; padding: 28px 26px 30px; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); }
.moment .when { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--lost); margin-bottom: 22px; }
.moment .when::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--lost-2); }
.moment h3 { margin-bottom: 10px; }
.moment p { color: var(--ink-2); }
@media (max-width: 900px) { .moments { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.service-body { padding: clamp(26px, 3vw, 40px); }
.service-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--green-2); background: var(--green-3); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.service h3 { font-size: clamp(25px, 2.4vw, 31px); letter-spacing: -.03em; }
.service .lead { margin-top: 12px; font-size: 18px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink); }
.ticks li svg { margin-top: 3px; color: var(--won); }
.note { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.note strong { color: var(--ink); }
.service-demo { margin-top: auto; position: relative; padding: 22px clamp(20px, 3vw, 32px) 26px; background: var(--paper-2); border-top: 1px solid var(--line); min-height: 250px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

.example-tag { position: absolute; top: 12px; right: 14px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .01em; }

/* demo: notification stack */
.stack { display: grid; gap: 10px; max-width: 420px; margin-top: 14px; }
.toast { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-3); color: var(--green); }
.toast b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.toast span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.toast time { font-size: 12.5px; color: var(--ink-3); align-self: start; }

/* demo: ad bars */
.adbars { display: grid; gap: 14px; margin-top: 14px; max-width: 440px; }
.adbar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 14.5px; font-weight: 650; }
.adbar .track { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.adbar .fill { height: 100%; width: var(--w, 40%); border-radius: 99px; background: var(--green-2); transition: width 1.1s var(--ease), background-color .6s; }
.adbar .chip { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); transition: all .4s; }
.adbar.is-paused .fill { background: var(--lost); opacity: .55; }
.adbar.is-paused .chip { color: var(--lost); border-color: #ecc9c3; background: var(--lost-2); }
.adbar.is-boosted .chip { color: var(--won); border-color: #c5dccb; background: var(--green-3); }

/* ---------- Tabs (segmented) ---------- */
.seg { display: inline-flex; position: relative; padding: 4px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.section--alt .seg { background: var(--card); }
.seg button {
  position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border: 0; background: transparent; border-radius: 10px;
  font-size: 15.5px; font-weight: 680; color: var(--ink-2); cursor: pointer; transition: color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg button[aria-selected="true"] { color: #fff; }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--green); transition: transform .45s var(--ease), width .45s var(--ease); }
@media (max-width: 520px) { .seg { display: flex; width: 100%; } .seg button { flex: 1; padding: 0 10px; } }

/* ---------- Flow timeline ---------- */
.flow { position: relative; }
.flow-panel[hidden] { display: none; }
.flow-panel { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps-wrap::before, .steps-wrap .progress { content: ""; position: absolute; left: 17px; right: calc((100% - 80px) / 5 - 18px); top: 17px; height: 2px; background: var(--line); border-radius: 2px; }
.steps-wrap .progress { background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .15s linear; }
.step { position: relative; }
.step .node { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .4s, background-color .4s; }
.step .node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background-color .4s, transform .4s var(--ease); }
.step.is-lit .node { border-color: var(--green); background: var(--card); }
.step.is-lit .node::after { background: var(--green); transform: scale(1.1); }
.step .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 20px 0 8px; font-size: 13.5px; color: var(--ink-3); }
.step .meta .num { color: var(--ink-2); font-size: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps-wrap::before, .steps-wrap .progress { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; }
  .steps-wrap .progress { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 36px 1fr; gap: 0 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step .node { grid-row: 1 / span 3; }
  .step .meta { margin: 6px 0 4px; justify-content: flex-start; }
}
.flow-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.flow-foot p { color: var(--ink-2); max-width: 46em; font-size: 15.5px; }

/* ---------- Targets band ---------- */
.band { background: var(--green); color: #eef3ee; }
.band .kicker { color: #b9d2bf; }
.band h2 { color: #fff; }
.band .fine { font-size: 14.5px; color: #b9d2bf; margin-top: 12px; }
.targets { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 0; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255,255,255,.14); }
.target { padding: 28px 24px 0 0; }
.target + .target { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.target dt { font-size: 15px; color: #b9d2bf; margin-bottom: 14px; }
.target dd { margin: 0; color: #fff; }
.target .big { font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.04em; }
.target .unit { font-size: 18px; color: #b9d2bf; margin-left: 6px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.target .words { font-size: clamp(24px, 2.5vw, 32px); font-weight: 740; letter-spacing: -.03em; line-height: 1.12; }
@media (max-width: 900px) {
  .targets { grid-template-columns: 1fr 1fr; }
  .target { padding: 24px 16px 20px 0; }
  .target + .target { border-left: 0; padding-left: 0; }
  .target:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
  .target:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.process li { position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); counter-increment: p; }
.process li::before { content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber-3); color: var(--amber-2); box-shadow: inset 0 0 0 1.5px var(--amber); font-family: var(--mono); font-size: 15px; margin-bottom: 26px; }
.process li.is-key { background: var(--green); color: #fff; border-color: var(--green); }
.process li.is-key::before { background: rgba(255,255,255,.14); color: #fff; }
.process li.is-key p { color: #d6e4d9; }
.process h3 { margin-bottom: 8px; }
.process p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Preview cards ---------- */
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.preview { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.preview:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.preview .pv-art { position: relative; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 28px; min-height: 220px; display: grid; place-items: center; }
.preview .pv-body { padding: 24px 28px 28px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.preview .pv-body p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.preview .go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-3); color: var(--green); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.preview:hover .go { background: var(--green); color: #fff; transform: translateX(3px); }
@media (max-width: 900px) { .previews { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(32px, 6vw, 88px); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.why-list h3 { margin-bottom: 10px; }
.why-list p { color: var(--ink-2); font-size: 16px; }
.why-list svg { color: var(--green); margin-bottom: 16px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 72px; padding: 16px 0; font-size: clamp(17.5px, 1.6vw, 19.5px); font-weight: 700; letter-spacing: -.02em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); transition: background-color .3s, transform .4s var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--green); border-radius: 2px; transition: transform .4s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--green-3); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq .answer p + p { margin-top: -10px; }

/* ---------- Audit form ---------- */
.audit { background: var(--paper-2); }
.audit-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.audit-grid .lead { margin-top: 20px; }
.guide { margin-top: 36px; padding: 22px 24px; border-left: 4px solid var(--amber); background: var(--card); border-radius: 0 var(--r-md) var(--r-md) 0; }
.guide h3 { font-size: 16px; margin-bottom: 12px; }
.guide .formula { font-family: var(--mono); font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.guide .formula span { color: var(--ink-3); }
.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.next li b { color: var(--ink); font-weight: 700; }
.next .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--green); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form .full { grid-column: 1 / -1; }
.f label, .f legend { display: block; font-size: 15px; font-weight: 680; margin-bottom: 8px; letter-spacing: -.01em; padding: 0; }
.f .opt { font-weight: 500; color: var(--ink-3); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f select, .f textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%231a402d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5 7 9.5l4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.f textarea { min-height: 124px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: #9aa39d; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--green-2); background: #fff; box-shadow: 0 0 0 4px var(--green-3); }
.f.has-error input, .f.has-error select, .f.has-error textarea { border-color: var(--lost); }
.f .err { display: none; margin-top: 6px; font-size: 14px; color: var(--lost); font-weight: 600; }
.f.has-error .err { display: block; }
fieldset.f { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 620; transition: all .2s var(--ease); }
.chip-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: #fff; transition: all .2s; }
.chip-check input[type="radio"] + span::before { border-radius: 50%; }
.chip-check input:checked + span { border-color: var(--green); background: var(--green-3); color: var(--green); }
.chip-check input:checked + span::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 7.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }
.chip-check input:focus-visible + span { outline: 2.5px solid var(--green-2); outline-offset: 2px; }
.f .consent, .consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; padding: 4px 0; margin: 0; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; min-height: 56px; font-size: 17px; }
.form-foot { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; border-radius: 16px; padding: 22px; margin-top: 4px; }
.form-status.is-error { display: block; background: var(--lost-2); border: 1px solid #ecc9c3; }
.form-status h3 { font-size: 18px; margin-bottom: 6px; }
.form-status p { font-size: 15.5px; color: var(--ink-2); }
.form-status .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.success { text-align: left; padding: 8px 4px; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-3); display: grid; place-items: center; margin-bottom: 22px; }
.success .check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 10px; }
.success p { color: var(--ink-2); }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 64px; width: auto; }
.foot-grid .about { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 30em; }
.foot-grid h4 { font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: -.005em; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 620; color: var(--ink); }
.foot-grid li a:hover { color: var(--green); }
.foot-grid .plain { color: var(--ink-2); font-size: 15px; }
.foot-base { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); }
.foot-base a { color: var(--ink-3); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Mobile sticky CTA ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; transform: translateY(140%); transition: transform .45s var(--ease); }
.dock .btn { width: 100%; box-shadow: 0 16px 36px -12px rgba(21,42,31,.55); }
.dock.is-on { transform: none; }
@media (max-width: 720px) { .dock { display: block; } }

/* ---------- Page intro (console / reporting / privacy) ---------- */
.page-intro { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); }
.page-intro .lead { margin-top: 18px; }
.page-intro .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.example-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.example-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

/* ---------- Console ---------- */
.console { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.console-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); background: var(--paper); }
.console-top .who { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.015em; }
.console-top .who i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; font-size: 14px; }
.console-top .who small { display: block; font-weight: 550; color: var(--ink-3); font-size: 13px; letter-spacing: 0; }
.console-body { position: relative; padding: clamp(18px, 2.6vw, 32px); }
.panels { display: grid; }
.panels > .panel { grid-area: 1 / 1; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.panels > .panel:not(.is-active) { opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 18px 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.kpi dt { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.kpi dd { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.035em; line-height: 1.1; }
.kpi dd small { font-size: 14px; color: var(--ink-3); margin-left: 4px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.kpi.good dd { color: var(--won); }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.box-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.box-h span { font-weight: 550; font-size: 13px; color: var(--ink-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 13px; padding: 10px 18px; white-space: nowrap; }
table.t td { padding: 13px 18px; border-top: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; }
table.t tbody tr { transition: background-color .2s; }
table.t tbody tr:hover { background: var(--paper); }
.who-cell b { display: block; font-weight: 680; }
.who-cell span { font-size: 13px; color: var(--ink-3); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--green-3); color: var(--won); }
.st.warn { background: #f7eedc; color: #8a6420; }
.st.bad { background: var(--lost-2); color: var(--lost); }
.bars { display: flex; align-items: end; gap: 14px; height: 150px; padding: 20px 18px 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: end; }
.bars i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: var(--green-2); height: 0; transition: height .9s var(--ease); }
.bars div:last-child i { background: var(--leaf); }
.bars span { font-size: 12.5px; color: var(--ink-3); }
.bars b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.box-p { padding: 16px 18px; font-size: 14.5px; color: var(--ink-2); }
.approvals { display: grid; gap: 10px; padding: 14px; }
.approval { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); transition: background-color .35s, border-color .35s; }
.approval b { display: block; font-size: 15px; letter-spacing: -.01em; margin-bottom: 4px; }
.approval p { font-size: 14px; color: var(--ink-2); }
.approval .acts { display: flex; gap: 8px; margin-top: 12px; }
.approval .acts .btn { flex: 1; }
.approval .done { display: none; margin-top: 10px; font-size: 13.5px; font-weight: 650; color: var(--won); }
.approval.is-approved { background: var(--green-3); border-color: #c5dccb; }
.approval.is-dismissed { opacity: .6; }
.approval.is-approved .acts, .approval.is-dismissed .acts { display: none; }
.approval.is-approved .done, .approval.is-dismissed .done { display: block; }
.approval.is-dismissed .done { color: var(--ink-3); }
.agent-mode { display: flex; gap: 12px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.agent-mode i { flex: none; margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #c49a3c; box-shadow: 0 0 0 4px #f7eedc; }

/* ---------- Reporting ---------- */
.report { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 30px); }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.summary-line { font-size: clamp(16px, 1.45vw, 18px); font-weight: 650; letter-spacing: -.02em; line-height: 1.5; max-width: 52em; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; }
.summary-line .num { font-size: .95em; }
.sankey-wrap { position: relative; }
.sankey { width: 100%; height: auto; overflow: visible; }
.sankey .lnk { transition: opacity .3s; }
.sankey .lbl { font-family: var(--font); font-size: 14px; font-weight: 680; fill: var(--ink); }
.sankey .lbl-v { font-family: var(--mono); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.sankey .lbl-p { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.caption { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 50em; }
.ba { margin-top: 20px; }
.ba table.t td:nth-child(3) { color: var(--won); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: var(--green); color: #fff; }
.cta-card h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cta-card p { color: #c9dccd; margin-top: 8px; }

/* Reporting additions */
.report-top .who { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.015em; }
.report-top .who i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; font-size: 14px; }
.report-top .who small { display: block; font-weight: 550; color: var(--ink-3); font-size: 13px; letter-spacing: 0; }
.sankey .lbls, .sankey .heads { transition: opacity .5s var(--ease) .15s; }
.sankey-wrap:not(.is-drawn) .lbls, .sankey-wrap:not(.is-drawn) .heads { opacity: 0; }
.sankey .col-h { font-family: var(--font); font-size: 12.5px; font-weight: 650; fill: var(--ink-3); }
.sankey .chip-bg { fill: #fff; stroke: var(--line); filter: drop-shadow(0 2px 6px rgba(21,42,31,.07)); }
.sankey .lbl { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.sankey .lbl-v { font-size: 12.5px; }
.sankey .lbl-p { font-size: 12.5px; font-weight: 500; }
.sankey .lbl-p.won { fill: var(--won); } .sankey .lbl-p.lost { fill: var(--lost); } .sankey .lbl-p.mid { fill: var(--ink-2); }
.ba .h3 { margin: 0; }
@media (max-width: 620px) { .sankey .lbl { font-size: 13px; } .sankey .lbl-v, .sankey .lbl-p { font-size: 12px; } }
.ba table.t td:first-child { white-space: normal; }
@media (max-width: 620px) { .ba table.t th, .ba table.t td { padding-left: 10px; padding-right: 10px; } }
.report .panels { position: relative; }
.report .panels > .panel:not(.is-active) { position: absolute; top: 0; left: 0; right: 0; }

.num, .sankey .lbl-v { word-spacing: -.3em; }

/* ---------- Hover motion for buttons and links (subtle, site-wide) ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn svg { transition: transform .3s var(--ease); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--primary:hover { box-shadow: 0 14px 26px -12px rgba(26,64,45,.7); }
  .btn--primary:hover::after, .btn--light:hover::after { transform: translateX(120%); }
  .btn--light::after { background: linear-gradient(105deg, transparent 30%, rgba(26,64,45,.08) 50%, transparent 70%); }
  .btn--ghost { background-image: linear-gradient(var(--green), var(--green)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left center;
    transition: background-size .35s var(--ease), color .25s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
  .btn--ghost:hover { background-color: transparent; background-size: 100% 100%; box-shadow: 0 12px 22px -14px rgba(26,64,45,.6); }
  .btn--light:hover { box-shadow: 0 12px 24px -14px rgba(0,0,0,.35); }
  .seg button:not([aria-selected="true"]):hover { color: var(--ink); }
  .seg button { transition: color .2s var(--ease), transform .2s var(--ease); }
  .seg button:not([aria-selected="true"]):active { transform: scale(.97); }
  .nav a:not(.btn) { background-image: linear-gradient(var(--green), var(--green)); background-repeat: no-repeat; background-size: 0% 1.5px; background-position: 50% calc(100% - 6px); transition: background-size .3s var(--ease), color .2s, background-color .2s; }
  .nav a:not(.btn):hover { background-size: calc(100% - 28px) 1.5px; }
  .faq summary:hover .pm { background: var(--green-3); transform: rotate(90deg); }
  .faq details[open] summary:hover .pm { transform: rotate(0); }
  .menu-btn:hover .burger span:first-child { transform: translateX(-2px); }
  .menu-open .menu-btn:hover .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .foot-grid a { transition: color .2s var(--ease); }
  .foot-grid a:hover { color: var(--green); }
  .preview .pv-flow { transition: opacity .4s var(--ease); }
  .preview:hover .pv-flow { opacity: .75; }
}
.btn:active { transform: translateY(0) scale(.975); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .btn svg, .nav a:not(.btn), .faq summary .pm { transition: none !important; }
  .btn:hover, .btn:hover svg { transform: none; }
}

/* ---------- Console: automated reply card ---------- */
.reply-card { position: relative; z-index: 3; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; box-shadow: 0 24px 48px -22px rgba(21,42,31,.35), 0 2px 6px rgba(21,42,31,.05);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s; }
.rc-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-2); }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--won); box-shadow: 0 0 0 4px rgba(47,122,76,.14); }
.rc-to { margin-left: auto; font-weight: 550; color: var(--ink-3); }
.rc-msg { margin: 10px 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.rc-f { display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 9px; }
.rc-f .num { color: var(--ink-2); }
.rc-tick { display: inline-grid; color: var(--won); } .rc-tick svg { width: 15px; height: 15px; }
.rc-typing { display: none; gap: 4px; padding: 12px 0 8px; }
.rc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); animation: rcdot 1s var(--ease) infinite; }
.rc-typing i:nth-child(2) { animation-delay: .15s; } .rc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rcdot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
/* staged entrance: card -> typing -> message -> delivered */
.reply-card.is-waiting { opacity: 0; transform: translateY(16px) scale(.98); }
.reply-card.is-typing .rc-typing { display: flex; }
.reply-card.is-typing .rc-msg, .reply-card.is-typing .rc-f { display: none; }
.reply-card .rc-msg, .reply-card .rc-f { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reply-card.is-sent .rc-f { animation: rcin .4s var(--ease) .35s both; }
.reply-card.is-sent .rc-msg { animation: rcin .45s var(--ease) both; }
@keyframes rcin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reply-card, .reply-card * { animation: none !important; transition: none !important; } }

/* ---------- Console page: compact so the whole view fits one screen ---------- */
.page-intro--compact { padding: clamp(12px, 1.4vw, 24px) 0 clamp(12px, 1.2vw, 16px); }
.page-intro--compact .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.page-intro--compact .kicker { margin-bottom: 4px; }
.page-intro--compact .h2 { font-size: clamp(28px, 2.8vw, 36px); }
.page-intro--compact .lead { font-size: 16px; margin-top: 4px; }
.console-top { padding-top: 10px; padding-bottom: 10px; }
.console-top .who small { display: inline; margin-left: 8px; }
.console-top .who i { width: 30px; height: 30px; font-size: 13px; }
.console .panels { position: relative; }
.console .panels > .panel:not(.is-active) { position: absolute; top: 0; left: 0; right: 0; }
.console-body { padding: clamp(14px, 1.6vw, 20px); }
.kpis { gap: 10px; margin: 0; }
.kpi { padding: 8px 14px 9px; border-radius: 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.kpi dt { font-size: 13px; }
.kpi dd { margin: 0 0 1px; font-size: clamp(21px, 1.9vw, 25px); }
.cols { margin-top: 12px; gap: 12px; }
.box-h { padding: 10px 16px; font-size: 15px; }
table.t th { padding: 8px 16px; }
table.t td { padding: 6px 16px; }
.console .who-cell b { display: inline; margin-right: 8px; }
.console .who-cell span { font-size: 12.5px; }
.side { display: grid; gap: 12px; align-content: start; }
.bars { height: 92px; padding: 10px 16px 6px; gap: 12px; }
.bars i { max-width: 38px; }
.side .reply-card { padding: 12px 14px 10px; border-radius: 14px; box-shadow: 0 16px 34px -20px rgba(21,42,31,.35), 0 1px 4px rgba(21,42,31,.05); }
.side .rc-msg { font-size: 14px; margin: 6px 0 8px; line-height: 1.45; }
.side .rc-f { padding-top: 7px; font-size: 12px; }
.approvals { padding: 12px; gap: 8px; }
.approval { padding: 10px 12px; }
.approval .acts { margin-top: 6px; }
@media (pointer: fine) { .approval .btn--sm { min-height: 36px; font-size: 14.5px; } }
.approval b { font-size: 14.5px; margin-bottom: 2px; } .approval p { font-size: 13.5px; }
.agent-mode { padding: 10px 14px !important; }

/* ---------- Hover states for cards and blocks (site-wide) ---------- */
.moment, .kpi, .box, .service, .approval, .toast, .why-list > div, .step, .target, .prose-card, .adbar {
  transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
@media (hover: hover) {
  .moment:hover, .service:hover { transform: translateY(-4px); border-color: rgba(26,64,45,.28); box-shadow: 0 22px 44px -26px rgba(21,42,31,.4); }
  .moment h3, .service h3, .why-list h3, .step h3 { transition: color .25s var(--ease); }
  .moment:hover h3, .service:hover h3 { color: var(--green); }
  .moment .when::before { transition: box-shadow .35s var(--ease); }
  .moment:hover .when::before { box-shadow: 0 0 0 7px var(--lost-2); }
  .kpi:hover { transform: translateY(-2px); background: var(--card); border-color: rgba(26,64,45,.26); box-shadow: 0 12px 24px -18px rgba(21,42,31,.4); }
  .box:hover, .approval:hover { border-color: rgba(26,64,45,.26); box-shadow: 0 12px 26px -20px rgba(21,42,31,.35); }
  .toast:hover { transform: translateX(3px); border-color: rgba(26,64,45,.26); }
  .why-list > div:hover { transform: translateY(-3px); }
  .why-list > div svg { transition: transform .35s var(--ease); }
  .why-list > div:hover svg { transform: scale(1.1) rotate(-4deg); }
  .why-list > div:hover h3, .step:hover h3 { color: var(--green); }
  .step:hover .node { border-color: var(--green); }
  .step:hover .node::after { background: var(--green); transform: scale(1.15); }
  .target:hover dt { color: #fff; }
  .target dt { transition: color .25s var(--ease); }
  .target .big, .target .words { display: inline-block; transition: transform .35s var(--ease); }
  .target:hover .big, .target:hover .words { transform: translateY(-3px); }
  table.t tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--green); }
  .bars div i { transition: height .9s var(--ease), background-color .25s, transform .25s var(--ease); }
  .bars div:hover i { background: var(--green); transform: scaleX(1.06); }
  .bars div:hover b { color: var(--green); }
  .side .reply-card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .moment:hover, .service:hover, .kpi:hover, .toast:hover, .why-list > div:hover, .side .reply-card:hover { transform: none; }
}
/* on narrow stages the fourth label drops below its dot so it doesn't collide with "Replied instantly" */
.tree-stage.is-narrow .tree-label[data-label="3"] .pill { left: -12px; right: auto; top: 14px; bottom: auto; transform: translateY(6px); }
.tree-stage.is-narrow .tree-label.is-on[data-label="3"] .pill { transform: none; }


/* ---------- Muted amber halo on primary buttons ----------
   box-shadow rather than a pseudo-element: .btn sets overflow:hidden for its
   shimmer sweep, which would clip a ring drawn as a child. Slow cycle and a
   small blur radius keep the repaint cost negligible on phones. */
@keyframes amber-breathe {
  0%, 100% { box-shadow: 0 8px 20px -10px rgba(26,64,45,.6), 0 0 0 2px rgba(192,128,31,.45), 0 0 18px 0 rgba(192,128,31,.26); }
  50%      { box-shadow: 0 8px 20px -10px rgba(26,64,45,.6), 0 0 0 3px rgba(192,128,31,.95), 0 0 30px 3px rgba(192,128,31,.55); }
}
.btn--primary { animation: amber-breathe 3.2s var(--ease) infinite; }
.btn--primary:hover,
.btn--primary:focus-visible {
  animation: none;
  box-shadow: 0 10px 24px -10px rgba(26,64,45,.65), 0 0 0 3px rgba(192,128,31,1), 0 0 34px 4px rgba(192,128,31,.6);
}
/* Ghost buttons get the warmth only on hover, so the pair never competes. */
.btn--ghost:hover { box-shadow: 0 0 0 2px rgba(192,128,31,.8), 0 0 22px -2px rgba(192,128,31,.4); }

@media (prefers-reduced-motion: reduce) {
  .btn--primary { animation: none; box-shadow: 0 8px 20px -10px rgba(26,64,45,.6), 0 0 0 3px rgba(192,128,31,.85), 0 0 24px 2px rgba(192,128,31,.4); }
}

/* Amber carried into the interactive states too, so it reads as a real second
   accent rather than three stray decorations. */
.link:hover { color: var(--amber-2); }
.faq summary .pm::before, .faq summary .pm::after { background: var(--amber-2); }
.faq summary:hover .pm { background: var(--amber-3) !important; }
:focus-visible { outline-color: var(--amber); }
