/* Fusion site v3: "the network is the page".
   Look from fuze-site: ivory ground, forest ink, sage accent, Manrope.
   Every page opens on a full-screen network; audience pages then give one idea per screen.
   Single light look by choice. */
:root {
  --ivory: #F6F3EC;
  --forest: #1F3A2C;
  --forest-hover: #2B4F3C;
  --sage: #7CA187;
  --deep-sage: #3F6B4F;
  --muted: #5A655F;
  --line: #D9E3DA;
  --white: #FFFFFF;
  --mist: #E9EFE8;
  --wide: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--forest);
  font-family: Manrope, system-ui, -apple-system, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.55;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ivory); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: var(--wide); margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
}

/* ---------- Hero: full-screen network ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.net-canvas { position: absolute; inset: 0; display: block; }
.hero > :not(canvas) { position: relative; z-index: 1; }
.net-area { flex: 1; min-height: 260px; margin-block: 36px 8px; pointer-events: none; }

.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 0; }
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.lockup svg { width: 26px; height: 29px; display: block; }
.lockup span { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.sides { display: flex; gap: 28px; font-size: 15px; font-weight: 700; }
.sides a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
.sides a:hover { color: var(--forest); }
.sides a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--sage); }
@media (max-width: 640px) { .sides { display: none; } }

.hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-block: 0 44px; }
.hero-foot > * { min-width: 0; }
.hero h1 { font-size: clamp(34px, 4.2vw, 58px); max-width: 12ch; }
.hero .sub { margin-top: 16px; font-size: 17px; color: var(--deep-sage); max-width: 30em; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; gap: 28px; padding-block: 0 32px; } }

/* Audience pages: headline left, line and actions right, so the network keeps its height. */
.page .hero-foot { grid-template-columns: 1.25fr 1fr; gap: 48px; }
.page .hero h1 { max-width: 15ch; font-size: clamp(32px, 3.6vw, 50px); }
.page .hero .sub { margin-top: 0; }

.page .hero h1.long { max-width: 26ch; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
@media (max-width: 860px) { .page .hero-foot { grid-template-columns: 1fr; gap: 20px; } }

/* Audience pages: a plain page, no animation */
.intro { padding-block: clamp(48px, 9vh, 96px) clamp(64px, 11vh, 120px); }
.intro h1 { font-size: clamp(32px, 3.6vw, 50px); max-width: 15ch; }
.intro h1.long { max-width: 24ch; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.03em; }
.intro .sub { margin-top: 18px; font-size: 17px; color: var(--deep-sage); max-width: 30em; }
.intro .actions { margin-top: 28px; }
.intro + .screen { padding-top: 24px; }
.statement-block { margin-bottom: 48px; }
.statement-block h2 { max-width: 20ch; }
@media (max-width: 880px) { .intro .split .visual { order: 0; } }

/* The three paths on the home screen */
.paths { display: grid; width: 360px; max-width: 100%; }
.path {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; text-decoration: none;
  padding-block: 14px; border-top: 2px solid var(--line);
}
.path:last-child { border-bottom: 2px solid var(--line); }
.path b { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; transition: transform .2s ease, color .2s ease; }
.path span { font-size: 14px; font-weight: 700; color: var(--muted); transition: color .2s ease; }
.path:hover b, .path.is-lit b, .path:focus-visible b { transform: translateX(6px); }
.path:hover span, .path.is-lit span, .path:focus-visible span { color: var(--deep-sage); }
.path:hover, .path.is-lit { border-top-color: var(--sage); }
@media (max-width: 860px) { .paths { width: 100%; } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px;
  border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  background: var(--forest); color: var(--white); border: 2px solid var(--forest); transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--forest-hover); }
.btn.quiet { background: transparent; color: var(--forest); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--sage); }

/* ---------- Audience pages: one idea per screen ---------- */
.screen { padding-block: clamp(80px, 13vh, 136px); }
.screen + .screen { padding-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split .visual { order: 2; } }
.screen h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.035em; line-height: 1.08; }
.screen .lead { margin-top: 18px; font-size: 17px; color: var(--deep-sage); max-width: 28em; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 28px; } }
.fact { border-top: 2px solid var(--forest); padding-top: 20px; }
.fact h3 { font-size: 19px; letter-spacing: -0.03em; line-height: 1.15; }
.fact p { margin-top: 6px; color: var(--deep-sage); font-size: 16px; }

.close h2 { font-size: clamp(30px, 3.6vw, 48px); }
.close .actions { margin-top: 28px; }
.close .lead { margin-top: 14px; font-size: 17px; color: var(--deep-sage); max-width: 34em; }
.elsewhere { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 700; font-size: 15px; color: var(--muted); }
.elsewhere a { text-decoration: none; color: var(--forest); border-bottom: 2px solid var(--line); }
.elsewhere a:hover { border-bottom-color: var(--sage); }

.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 0 36px; font-size: 14px; color: var(--muted); }

/* ---------- Visuals ---------- */
.phone { width: 300px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 40px; background: var(--forest); box-shadow: 0 30px 70px rgba(31,58,44,.22); }
.screen-ui { border-radius: 30px; background: var(--ivory); padding: 22px 16px 18px; display: grid; gap: 12px; font-size: 15px; }
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-top b { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.screen-top b svg { width: 16px; height: 18px; }
.screen-top small { font-size: 12px; color: var(--muted); font-weight: 600; }
.card { background: var(--white); border: 2px solid var(--sage); border-radius: 14px; padding: 14px; display: grid; gap: 7px; }
.card-label { font-size: 12.5px; font-weight: 800; color: var(--deep-sage); }
.card-meta { font-size: 13px; color: var(--muted); }
.line { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.line span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.line.total { border-top: 2px solid var(--line); padding-top: 8px; margin-top: 2px; font-weight: 800; }
.pair { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; margin-top: 4px; }
.pill { height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14.5px; }
.pill.no { background: var(--white); border: 2px solid var(--line); }
.pill.yes { background: var(--forest); color: var(--white); }

.code { background: var(--forest); color: #E8EFE9; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(31,58,44,.20); }
.code-head { display: flex; justify-content: space-between; padding: 14px 20px; font: 600 13px ui-monospace, Menlo, monospace; color: #9DB9A5; border-bottom: 1px solid #2E4C3B; }
.code pre { margin: 0; padding: 22px 20px 26px; overflow-x: auto; font: 14.5px/1.85 ui-monospace, "SF Mono", Menlo, monospace; }
.k { color: #B7D3BF; } .f { color: #F6F3EC; font-weight: 700; } .s { color: #A9CDB2; } .c { color: #7E9C88; }

.feed { background: var(--white); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(31,58,44,.10); }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 2px solid var(--line); font-weight: 800; }
.live { font-size: 13px; font-weight: 700; color: var(--deep-sage); display: flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.order { display: flex; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 2px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order b { display: block; font-weight: 700; font-size: 16px; }
.order small { display: block; color: var(--muted); font-size: 13.5px; }
.order .ok { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--deep-sage); background: var(--mist); border-radius: 6px; padding: 2px 8px; }
.order .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Contact forms (dialog) ---------- */
.form-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 20px; background: var(--ivory); color: var(--forest); box-shadow: 0 40px 100px rgba(31,58,44,.28); }
.form-dialog::backdrop { background: rgba(31,58,44,.35); backdrop-filter: blur(3px); }
.form-dialog form, .form-dialog .done { padding: 28px 28px 26px; display: grid; gap: 16px; }
.form-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.form-head h2 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; }
.form-head p { margin-top: 6px; font-size: 15px; color: var(--deep-sage); }
.x { all: unset; cursor: pointer; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.x:hover { background: var(--mist); color: var(--forest); }
.x:focus-visible { outline: 3px solid var(--sage); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--forest); background: var(--white);
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--deep-sage); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices label {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 16px;
  background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.choices label:has(input:checked) { border-color: var(--deep-sage); background: var(--mist); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--sage); outline-offset: 2px; }
.field .choices input { accent-color: var(--deep-sage); width: 18px; height: 18px; margin: 0; padding: 0; border: 0; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.form-error { font-size: 14px; color: #8A3B2E; }
.form-dialog .btn { width: 100%; margin-top: 4px; }
.done h2 { font-size: 24px; letter-spacing: -0.03em; }
.done p { color: var(--deep-sage); }

/* ---------- Humans page: two-phone prototype ---------- */
.intro-demo .split { grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
@media (max-width: 1080px) { .intro-demo .split { grid-template-columns: 1fr; } }
.demo { min-width: 0; }
.phones { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.dphone { margin: 0; display: grid; gap: 12px; justify-items: center; }
.dphone figcaption { font-size: 13px; font-weight: 700; color: var(--muted); }
.dscreen {
  width: 276px; height: 560px; border-radius: 40px; padding: 12px; background: var(--forest);
  box-shadow: 0 30px 70px rgba(31,58,44,.22); display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.dscreen > * { background: var(--white); }
.dstatus { border-radius: 28px 28px 0 0; padding: 10px 20px 4px; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.atlas .dscreen > * { background: var(--ivory); }
.agent-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 10px; border-bottom: 1.5px solid var(--line); }
.agent-pick label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.agent-pick select {
  font: inherit; font-size: 14px; font-weight: 800; color: var(--forest); background: var(--mist); border: 0; border-radius: 10px;
  padding: 6px 28px 6px 10px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.atlas-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; border-bottom: 1.5px solid var(--line); }
.atlas-bar svg { width: 15px; height: 17px; }
.dbody { flex: 1; min-height: 0; border-radius: 0 0 28px 28px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; overflow: hidden; }
.screen-title { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.crumbs { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.search { background: var(--mist); border-radius: 10px; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row-t { flex: 1; min-width: 0; display: grid; } .row-t b { font-size: 14px; } .row-t small { font-size: 11.5px; color: var(--muted); }
.tile { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--mist); display: grid; place-items: center; }
.tile svg { width: 15px; height: 17px; }
.dim { opacity: .45; }
.ui-chip { font: inherit; font-size: 12.5px; font-weight: 800; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--forest); color: var(--white); cursor: pointer; }
.ui-chip[disabled] { background: var(--mist); color: var(--muted); cursor: default; }
.ui-btn { font: inherit; font-weight: 800; font-size: 14px; border: 0; border-radius: 12px; padding: 12px; background: var(--forest); color: var(--white); cursor: pointer; width: 100%; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dtile { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 4px; justify-items: start; }
.dtile b { font-size: 13.5px; } .dtile small { font-size: 11px; color: var(--muted); }
.dtile.feat { border-color: var(--sage); }
.muted-p { font-size: 12.5px; color: var(--muted); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle-row span:first-child { display: grid; } .toggle-row small { font-size: 11.5px; color: var(--muted); }
.tog { width: 40px; height: 24px; border-radius: 999px; background: var(--line); border: 0; position: relative; flex: none; cursor: pointer; padding: 0; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); }
.tog.on { background: var(--sage); } .tog.on::after { left: 19px; }
.sheet { margin-top: auto; background: var(--ivory); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.sheet-mark svg { width: 22px; height: 24px; }
.sheet h4 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; color: var(--deep-sage); }
.ticks li::before { content: "✓"; color: var(--sage); font-weight: 800; margin-right: 8px; }
.wait { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; }
.wait small { color: var(--muted); font-size: 12px; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--sage); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.4; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
.msg.bot { background: var(--mist); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--forest); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; background: transparent; font-size: 11.5px; font-weight: 700; color: var(--deep-sage); padding: 0; }
.msg.typing { display: flex; gap: 4px; padding: 11px 12px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.mini { margin-top: 8px; background: var(--white); border-radius: 10px; padding: 8px 10px; display: grid; gap: 3px; }
.mini .line { font-size: 12px; }
.composer { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 12.5px; }
.composer span:first-child { flex: 1; min-width: 0; } .composer .ph { color: var(--muted); }
.send { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; background: var(--forest); color: var(--white); font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.send.off { background: var(--line); }
.dbody .card { gap: 6px; }
.dbody .line { font-size: 13px; }
.agent-line { display: flex; align-items: center; gap: 8px; }
.agent-line b { font-size: 14px; line-height: 1.25; }
.mono { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--forest); color: var(--white); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.dbody .pill { font: inherit; font-weight: 800; font-size: 13px; height: 38px; cursor: pointer; }
.dbody .pill[disabled] { cursor: default; opacity: .6; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; }
.toast { background: var(--mist); color: var(--deep-sage); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 12.5px; animation: pop .25s ease; }
.label-sm { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.dbody .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dbody .chip { font-size: 12px; font-weight: 700; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.faceid, .paid { margin: auto; display: grid; justify-items: center; gap: 8px; text-align: center; animation: pop .25s ease; }
.faceid small, .paid small { color: var(--muted); font-size: 12px; }
.face { width: 64px; height: 64px; border-radius: 18px; border: 3px solid var(--sage); position: relative; animation: scan 1.2s ease-in-out infinite; }
.face::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--sage); }
@keyframes scan { 50% { transform: scale(.92); } }
.big-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--white); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.paid b { font-size: 20px; letter-spacing: -0.02em; }

/* Prototype hotspot: the one thing to tap next */
.hot { position: relative; box-shadow: 0 0 0 0 rgba(124,161,135,.7); animation: hot 1.6s ease-out infinite; }
@keyframes hot { 0% { box-shadow: 0 0 0 0 rgba(124,161,135,.75); } 100% { box-shadow: 0 0 0 12px rgba(124,161,135,0); } }

/* Wire between phones: a dot travels when something passes between them */
.wire { width: 56px; height: 2px; margin-top: 280px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); position: relative; flex: none; }
.wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); opacity: 0; }
.wire.to-right i { animation: toR .6s ease-in-out; }
.wire.to-left i { animation: toL .6s ease-in-out; }
@keyframes toR { 0% { left: -6px; opacity: 1; } 100% { left: 52px; opacity: 1; } }
@keyframes toL { 0% { left: 52px; opacity: 1; } 100% { left: -6px; opacity: 1; } }

.demo-foot { margin-top: 18px; display: flex; justify-content: center; align-items: baseline; gap: 16px; flex-wrap: wrap; text-align: center; }
.demo-cap { font-size: 15px; color: var(--deep-sage); min-height: 1.5em; }
.demo-cap b { color: var(--forest); }
.restart, .again { font: inherit; font-size: 14px; font-weight: 700; background: none; border: 0; padding: 0; color: var(--forest); border-bottom: 2px solid var(--line); cursor: pointer; }
.again { margin-left: 8px; }
.restart:hover, .again:hover { border-bottom-color: var(--sage); }

@media (max-width: 640px) {
  .phones { flex-direction: column; align-items: center; }
  .wire { width: 2px; height: 36px; margin: 0; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
  .wire i { display: none; }
  .dscreen { width: 280px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Humans demo v2: real connect flows ---------- */
.dbody { position: relative; }
.urlbar { background: var(--mist); border-radius: 9px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.note { background: var(--ivory); border-left: 3px solid var(--sage); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.4; color: var(--deep-sage); }
.title-row { display: flex; align-items: center; justify-content: space-between; }
.menu { border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; display: grid; gap: 2px; box-shadow: 0 10px 24px rgba(31,58,44,.12); animation: pop .2s ease; }
.menu > * { font: inherit; font-size: 13px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; }
.menu button { font-weight: 800; color: var(--forest); cursor: pointer; background: var(--mist); }
.ff { display: grid; gap: 4px; } .ff > span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ff-in { border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 600; background: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-in.mono-in { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.check-row { font: inherit; font-size: 12.5px; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--forest); }
.check-row .box { width: 18px; height: 18px; flex: none; border: 2px solid var(--line); border-radius: 5px; display: grid; place-items: center; }
.check-row.ticked .box { background: var(--forest); border-color: var(--forest); }
.check-row.ticked .box::after { content: "✓"; color: var(--white); font-size: 12px; font-weight: 800; }
.ui-btn[disabled] { background: var(--line); color: var(--muted); cursor: default; }
.ui-btn.ghost { background: var(--white); color: var(--forest); border: 1.5px solid var(--line); }
.plugin-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.plugin-head > span:last-child { display: grid; } .plugin-head b { font-size: 17px; } .plugin-head small { font-size: 12px; color: var(--muted); }
.tile.big { width: 48px; height: 48px; border-radius: 14px; } .tile.big svg { width: 22px; height: 24px; }
.ok-t { color: var(--deep-sage) !important; font-weight: 800; }
.row.as-btn { font: inherit; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: inherit; border-radius: 8px; padding: 8px 6px; }
.modal { position: absolute; inset: 0; background: rgba(31,58,44,.35); display: flex; align-items: flex-end; border-radius: 0 0 28px 28px; animation: fade .2s ease; }
.modal-card { background: var(--white); width: 100%; border-radius: 20px 20px 28px 28px; padding: 16px 14px; display: grid; gap: 10px; animation: up .25s ease; }
.modal-t { font-size: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); } }
.composer.tall { border-radius: 16px; align-items: flex-end; font-size: 11.5px; line-height: 1.35; }
.connect-card { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 170px; }
.connect-card > span:nth-child(2) { display: grid; flex: 1; } .connect-card small { font-size: 11px; color: var(--muted); }
.linkbtn { display: block; margin-top: 8px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--forest); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* Web view the agent opens for Fusion's sign-in */
.webview { position: absolute; inset: 0; background: var(--ivory); border-radius: 0 0 28px 28px; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s ease; z-index: 3; }
.webview.open { transform: none; }
.wv-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px; background: var(--white); border-bottom: 1px solid var(--line); }
.wv-done { font: inherit; font-size: 12.5px; font-weight: 800; color: var(--forest); background: none; border: 0; padding: 0; justify-self: start; cursor: pointer; }
.wv-url { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wv-progress { height: 2px; background: var(--line); } .wv-progress i { display: block; height: 100%; width: 30%; background: var(--sage); transition: width .8s ease; }
.wv-progress.done i { width: 100%; opacity: 0; transition: width .3s ease, opacity .3s .3s; }
.wv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cs-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; } .cs-brand svg { width: 14px; height: 16px; }
.cs-card { background: var(--white); border-radius: 16px; padding: 12px; display: grid; gap: 7px; box-shadow: 0 6px 18px rgba(31,58,44,.08); animation: pop .25s ease; }
.cs-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cs-card h4 { margin: 0; font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; }
.cs-intro { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cs-account { display: flex; align-items: center; gap: 8px; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; }
.cs-account > span:last-child { display: grid; } .cs-account small { font-size: 10.5px; color: var(--muted); } .cs-account b { font-size: 12px; }
.cs-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--mist); color: var(--deep-sage); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.cs-h { font-size: 12.5px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; }
.cs-perms { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12px; }
.cs-perms li::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); color: var(--deep-sage); font-size: 10px; font-weight: 800; margin-right: 7px; }
.cs-control { background: var(--mist); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.cs-control b { display: block; color: var(--forest); font-size: 12px; margin-bottom: 2px; }
.cs-allow, .cs-deny { font: inherit; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 11px; cursor: pointer; }
.cs-allow { background: var(--forest); color: var(--white); border: 0; }
.cs-deny { background: none; border: 0; color: var(--muted); padding: 4px; }

/* Atlas: push banner and connected row */
.push { display: flex; gap: 9px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 9px 11px; box-shadow: 0 8px 22px rgba(31,58,44,.14); font-size: 12px; line-height: 1.35; animation: drop .35s ease; }
.push > span:last-child { display: grid; } .push b { font-size: 11.5px; color: var(--muted); }
.push-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--mist); display: grid; place-items: center; } .push-ic svg { width: 12px; height: 13px; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.agent-row { display: flex; align-items: center; gap: 9px; background: var(--white); border-radius: 12px; padding: 8px 10px; animation: pop .25s ease; }
.agent-row b { flex: 1; font-size: 14px; }
.ok-pill { font-size: 11.5px; font-weight: 800; color: var(--deep-sage); background: var(--mist); border-radius: 999px; padding: 3px 9px; }

/* Agent builders: a single screen */
.one-page .intro h1 { max-width: 19ch; font-size: clamp(36px, 4.6vw, 64px); }
.one-page .intro .sub { max-width: 46ch; }
.one-page .facts { margin-top: clamp(48px, 7vw, 88px); }

/* Contact form spam trap: off-screen, never seen by people */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-dialog .btn[disabled] { opacity: .6; cursor: progress; }
