/* Agenix marketing site. Full-width paper page with hairline guides, painted hillside frames. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f6f2;
  --paper-2: #efede7;
  --card: #ffffff;
  --ink: #1f1e1b;
  --ink-2: #4a4742;
  --muted: #7a766d;
  --faint: #a39f97;
  --line: #e4e0d7;
  --line-2: #d6d1c6;
  --olive: #4f6b35;
  --night: #1c1d18;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Iowan Old Style", "New York", ui-serif, Charter, Georgia, serif;
  --pad: clamp(18px, 4vw, 48px);
  --shadow: 0 1px 2px rgba(31, 30, 27, .06), 0 14px 36px rgba(31, 30, 27, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Page column with faint vertical guides, as in the reference. */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); border-inline: 1px solid var(--line); }
.sec { padding-block: clamp(56px, 8vw, 104px); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.mono-s { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.olive { color: var(--olive); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 9px;
  font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn .ic { width: 15px; height: 15px; stroke-width: 2; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, summary:focus-visible, .links a:focus-visible, .askbar:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border: 1px solid var(--line-2); background: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 7px; }

/* ------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 242, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; }
.mark svg { width: 16px; height: 16px; }
.mark.sm { width: 20px; height: 20px; border-radius: 6px; }
.mark.sm svg { width: 12px; height: 12px; }
.mark.inv { background: #fff; color: var(--ink); }
.links { display: flex; gap: 26px; }
.links a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }

/* ------------------------------------------------ hero */
.hero { text-align: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.lede { margin: 22px auto 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); max-width: 600px; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Painted hillside frames. */
.paint { position: relative; border-radius: 14px; background: #7f9a5e center / cover no-repeat; overflow: hidden; }
.paint-a { background-image: url("/assets/scenes/hills-a.jpg"); }
.paint-b { background-image: url("/assets/scenes/hills-b.jpg"); }
.paint-c { background-image: url("/assets/scenes/hills-c.jpg"); }
.paint-e { background-image: url("/assets/scenes/hills-e.jpg"); }
.paint-f { background-image: url("/assets/scenes/hills-f.jpg"); }
.paint-g { background-image: url("/assets/scenes/hills-g.jpg"); }

.hero-paint { margin-top: clamp(40px, 6vw, 64px); padding: clamp(18px, 4.5vw, 56px) clamp(14px, 5vw, 64px) clamp(56px, 7vw, 88px); text-align: left; }
.app {
  display: grid; grid-template-columns: 176px 1fr 260px; min-height: 380px;
  background: #fff; border-radius: 10px; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 30px 60px rgba(20, 30, 10, .25);
  font-size: 12px; color: var(--ink-2); overflow: hidden;
}
.app strong { color: var(--ink); font-weight: 600; }
.app small { display: block; color: var(--muted); font-size: 11px; }
.app-side { background: #f7f6f2; border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.app-side > span { padding: 6px 8px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.app-side > span em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--ink); color: #fff; border-radius: 99px; padding: 1px 6px; }
.app-side .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); padding: 4px 6px 12px; }
.side-sep { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 14px 8px 6px; }
.d { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; display: inline-block; }
.d.ok { background: #23a25f; } .d.info { background: #4a8fe0; } .d.warn { background: #e0a030; }
.app-main { padding: 14px; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-bar strong { font-size: 14px; }
.tabs-mini { display: flex; gap: 12px; color: var(--muted); }
.tabs-mini b { color: var(--ink); font-weight: 600; }
.app-bar .chip { margin-left: auto; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.agent { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }
.agent img { width: 48px; height: 48px; flex: none; background: radial-gradient(circle at 50% 60%, #f3f1ec, #fff 70%); border-radius: 10px; }
.agent .chip { margin-top: 6px; }
.app-chat { border-left: 1px solid var(--line); background: #fbfaf8; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 22px; height: 22px; }
.msg { border-radius: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.msg.plan { background: #fff; border: 1px solid var(--line); }
.msg.plan ol { margin: 6px 0; padding-left: 16px; }
.msg.plan li { margin: 2px 0; }
.msg.plan em { font-style: normal; color: var(--muted); }
.msg.ok { display: flex; gap: 6px; align-items: center; background: #e3f3e8; color: #1c7a47; }
.msg.ok .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.hero-toast { position: absolute; right: clamp(20px, 8vw, 96px); bottom: clamp(16px, 2.4vw, 28px); animation: rise .6s .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.works { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------ shared small UI */
.fav { width: 22px; height: 22px; border-radius: 6px; flex: none; display: inline-grid; place-items: center; background: var(--c); color: #fff; font: 600 11px/1 var(--sans); }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 500; background: #f1efea; color: var(--ink-2); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.chip.amber { background: #fbf1dc; color: #8a5a0c; } .chip.amber i { background: #e0a030; }
.chip.pink { background: #fbe7ef; color: #a3345f; } .chip.pink i { background: #e879a6; }
.chip.blue { background: #e5effb; color: #24599f; } .chip.blue i { background: #4a8fe0; }
.chip.violet { background: #efeafc; color: #5b3fb5; } .chip.violet i { background: #a78bfa; }
.chip.green { background: #e3f3e8; color: #1c7a47; } .chip.green i { background: #23a25f; }

.toast { display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 12px; padding: 11px 12px; box-shadow: var(--shadow); font-size: 12px; max-width: 400px; text-align: left; }
.toast img { width: 34px; height: 34px; flex: none; }
.toast strong { display: block; color: var(--ink); font-weight: 600; }
.toast small { color: var(--muted); font-size: 11px; display: block; }
.yn { display: flex; gap: 6px; margin-left: auto; flex: none; }
.yn span { padding: 6px 11px; border-radius: 7px; font-weight: 600; font-size: 11.5px; }
.yn .no { background: #f1efea; color: var(--ink-2); }
.yn .yes { background: var(--ink); color: #fff; }

.mini { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; width: min(100%, 290px); font-size: 12px; color: var(--ink-2); text-align: left; }
.mini.wide { width: min(100%, 400px); }
.mini strong, .mini b { color: var(--ink); font-weight: 600; }
.mini small { display: block; color: var(--muted); font-size: 11px; }
.mini-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.mini-head img { width: 24px; height: 24px; }
.mini-head > :last-child { margin-left: auto; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #efece6; }
.mini-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row b { font-weight: 500; white-space: nowrap; }
.mini-row b.warn { color: #b26a0a; }
.mini-row b.link { color: var(--olive); text-decoration: underline; text-decoration-color: #b8c78f; text-underline-offset: 2px; }
.mini-foot { border-top: 1px solid #efece6; padding-top: 8px; font-size: 11px; color: var(--muted); }
.draft { font-size: 12px; line-height: 1.5; color: var(--ink); padding: 2px 0 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; margin-bottom: 6px; color: var(--ink); }
.search .ic { width: 14px; height: 14px; }
.ft { font: 600 8.5px/1 var(--mono); padding: 4px; border-radius: 4px; color: #fff; width: 30px; text-align: center; flex: none; }
.ft.pdf { background: #d6453f; } .ft.doc { background: #2f78d6; } .ft.csv { background: #23a25f; }

/* ------------------------------------------------ section heads */
.label { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 48px; align-items: end; margin: clamp(32px, 4vw, 48px) 0 clamp(32px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -0.035em; }
.sec-head p { color: var(--ink-2); max-width: 460px; }

/* ------------------------------------------------ [01] team cards */

/* ------------------------------------------------ [02] compare */
.compare { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.crow { display: grid; grid-template-columns: 200px 1fr 1.25fr; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow > span { padding: 15px 20px; font-size: 14px; }
.crow > span:nth-child(1) { font-weight: 500; color: var(--ink); }
.crow > span:nth-child(2) { color: var(--muted); }
.crow > span:nth-child(3) { color: var(--ink); background: #f4f6ee; border-left: 1px solid #e1e6d4; }
.chead > span { font: 500 11px/1.3 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; padding-block: 13px; display: flex; align-items: center; gap: 8px; }
.chead > span:nth-child(3) { color: var(--ink) !important; }

/* ------------------------------------------------ [03] models, dark */
.dark { background: var(--night); color: #e9e7e0; }
.dark .wrap { border-color: rgba(255, 255, 255, .08); }
.dark .label { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); }
.dark h2, .dark h3 { color: #fff; }
.dark .sec-head p, .dark .feat p { color: rgba(255, 255, 255, .66); }
.dark .feat .mono-s { color: rgba(255, 255, 255, .45); }
.models { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 20px; }
.mcol { display: grid; gap: 20px; }
.feat { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 20px; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 8px; }
.feat h3 { font-size: 17px; margin-top: 18px; }
.feat p { font-size: 13.5px; }
.router { display: grid; place-items: center; padding: clamp(18px, 3vw, 32px); min-height: 380px; }
.route { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #efece6; }
.route img { width: 26px; height: 26px; flex: none; }
.route > div { flex: 1; min-width: 0; }
.pill { font-size: 10.5px; font-weight: 500; padding: 4px 8px; border-radius: 6px; background: #f1efea; color: var(--ink-2); white-space: nowrap; }
.pill.local { background: #e3f3e8; color: #1c7a47; }
.pill.cloud { background: #e5effb; color: #24599f; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.split2 > div { border-radius: 8px; padding: 10px; display: grid; gap: 2px; }
.split2 > div:first-child { background: #eef5ec; }
.split2 > div:last-child { background: #eef3fb; }
.split2 .ic { width: 16px; height: 16px; margin-bottom: 4px; color: var(--ink-2); }

/* ------------------------------------------------ [04] memory diagram */
.mem {
  --g: 24px; --gap-y: 64px; --ink-line: #2b2a27;
  margin: 0; padding: clamp(16px, 3vw, 36px); border-radius: 16px; border: 1px solid var(--line);
  background-color: #fbfaf7;
  background-image: linear-gradient(rgba(31, 30, 27, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 30, 27, .035) 1px, transparent 1px);
  background-size: 22px 22px;
}
.mbox { border: 1.5px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .7); padding: 18px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mhead.center { justify-content: center; }
.mhead h4 { font-size: 17px; letter-spacing: -0.02em; }
.trig { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.trig > div { display: grid; justify-items: center; gap: 3px; }
.trig .ic { width: 22px; height: 22px; color: var(--olive); margin-bottom: 4px; }
.trig b { font-weight: 500; font-size: 14px; }
.trig small, .mcard small { font: 400 11px/1.45 var(--mono); color: var(--muted); }
.vline { width: 1.5px; height: 40px; margin: 0 auto; background: var(--ink-line); position: relative; }
.vline::after, .arr::after, .bus::after, .always::after, .inject::after, .loop::after { content: ""; position: absolute; width: 0; height: 0; border: 5px solid transparent; }
.vline::after { left: 50%; bottom: -2px; transform: translateX(-50%); border-top: 7px solid var(--ink-line); border-bottom: 0; }

.store { container-type: inline-size; }
.mcards { --cw: calc((100cqw - 3 * var(--g)) / 4); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); position: relative; }
.mcards.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 10px; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; }
.mcard .ic { width: 24px; height: 24px; color: var(--olive); margin-bottom: 6px; }
.mcard b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }

/* The bracket that gathers vault, preferences and knowledge into the check. */
.bus { position: absolute; top: 100%; left: calc(var(--cw) / 2); width: calc(2 * (var(--cw) + var(--g))); height: 18px; border: 1.5px solid var(--ink-line); border-top: 0; }
.bus::before { content: ""; position: absolute; left: 50%; top: 0; height: calc(var(--gap-y) - 4px); border-left: 1.5px solid var(--ink-line); transform: translateX(-.75px); }
.bus::after { left: 50%; top: calc(var(--gap-y) - 6px); transform: translateX(-50%); border-top: 7px solid var(--ink-line); border-bottom: 0; }

.mdecide { --cw: calc((100cqw - 3 * var(--g)) / 4); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: var(--g); margin-top: calc(var(--gap-y) + 18px); position: relative; align-items: center; }
.diamond { height: 120px; display: grid; place-content: center; text-align: center; gap: 2px; background: var(--olive); color: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.diamond b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.diamond small { font: 400 11px/1.3 var(--mono); color: rgba(255, 255, 255, .85); }
.ctx { height: 100%; }
/* Dashed feedback loop: from the diamond back up to the vault. */
.loop { position: relative; height: 100%; }
.loop::before { content: ""; position: absolute; left: 22%; right: calc(-1 * var(--g)); top: calc(-1 * (var(--gap-y) + 18px)); bottom: 50%; border-left: 1.5px dashed var(--olive); border-bottom: 1.5px dashed var(--olive); }
.loop::after { left: 22%; top: calc(-1 * (var(--gap-y) + 18px) - 4px); transform: translateX(calc(-50% + .75px)); border-bottom: 7px solid var(--olive); border-top: 0; }
.loop span { position: absolute; left: 22%; top: calc(50% + 10px); font: 400 10.5px/1.45 var(--mono); color: var(--olive); white-space: nowrap; }
.inject { position: relative; height: 100%; }
.inject::before { content: ""; position: absolute; left: calc(-1 * var(--g)); right: calc(-1 * var(--g) + 4px); top: 50%; border-top: 1.5px solid var(--ink-line); }
.inject::after { right: calc(-1 * var(--g) - 2px); top: 50%; transform: translateY(-50%); border-left: 7px solid var(--ink-line); border-right: 0; }
.inject span { position: absolute; left: 0; right: 0; top: calc(50% - 22px); text-align: center; font: 400 10.5px/1.3 var(--mono); color: var(--muted); }
.always { position: absolute; left: calc(3 * (var(--cw) + var(--g)) + var(--cw) / 2); top: calc(-1 * (var(--gap-y) + 18px)); height: calc(var(--gap-y) + 18px - 4px); border-left: 1.5px solid var(--ink-line); }
.always::after { left: -6px; bottom: -6px; border-top: 7px solid var(--ink-line); border-bottom: 0; }
.always i { position: absolute; left: 10px; top: 40%; font: 400 10.5px/1 var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }

.mlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 56px; }
.mlinks > div { display: flex; justify-content: center; gap: 56px; }
.arr { position: relative; height: 100%; padding-left: 12px; display: flex; align-items: center; font: 400 10.5px/1 var(--mono); color: var(--muted); }
.arr::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; border-left: 1.5px solid var(--ink-line); }
.arr.down::after { left: -4.25px; bottom: 0; border-top: 7px solid var(--ink-line); border-bottom: 0; }
.arr.up::after { left: -4.25px; top: 0; border-bottom: 7px solid var(--ink-line); border-top: 0; }
.mbottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mbottom .mcard { padding: 14px 8px; }
.mbottom .mcard b { font-size: 14px; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 10px; }
.lg-solid, .lg-dash { display: inline-block; width: 34px; border-top: 1.5px solid var(--ink-line); }
.lg-dash { border-top: 1.5px dashed var(--olive); }
.lg-diamond { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--olive); transform: rotate(45deg); }

.types { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.types article { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.types article + article { border-left: 1px solid var(--line); }
.types h3 { font-size: 18px; }
.types p { color: var(--ink-2); font-size: 13.5px; }
.types dl { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 12.5px; }
.types dt { font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.types dt:first-child { margin-top: 0; }
.types dd { margin: 0; color: var(--ink); }
.types u { text-decoration-color: #b8c78f; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* ------------------------------------------------ [05] bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcell { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.bcell h3 { font-size: 17px; }
.bcell > p { color: var(--muted); font-size: 13.5px; min-height: 42px; }
.bshot { margin: 14px -20px 0; border-radius: 0; height: 220px; display: grid; place-items: center; padding: 16px; }
.toast.sm { max-width: 300px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #f6f4ef; }
.col h4 { font-size: 11px; font-weight: 600; margin: 0 2px 6px; display: flex; justify-content: space-between; color: var(--ink-2); }
.col h4 small { display: inline; }
.card-t { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px; margin-bottom: 6px; color: var(--ink); font-weight: 500; font-size: 11.5px; display: grid; gap: 6px; }
.card-t img { width: 20px; height: 20px; }
.card-t.done { border-left: 3px solid #23a25f; }
.bar { height: 4px; border-radius: 4px; background: #eee9e1; overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; background: var(--ink); border-radius: 4px; animation: work 2.8s ease-in-out infinite alternate; }
@keyframes work { from { width: 30%; } to { width: 82%; } }
.also { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 14px; color: var(--ink-2); }
.also b { color: var(--ink); font-weight: 500; }
.also .mono-s { color: var(--olive); margin-right: 6px; }

/* ------------------------------------------------ [06] who */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 48px); }
.today-paint { min-height: 380px; display: grid; place-items: center; padding: 24px; }
.today { width: min(100%, 360px); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 10px 0; }
.timeline li > i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-2); margin-top: 3px; flex: none; background: #fff; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5.5px; top: 27px; bottom: -3px; border-left: 1px dashed var(--faint); }
.accordion { align-self: center; }
.accordion h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; margin-bottom: 22px; max-width: 460px; }
details { border: 1px solid var(--line); border-bottom-width: 0; background: #fff; }
details:first-of-type { border-radius: 10px 10px 0 0; }
details:last-child { border-bottom-width: 1px; border-radius: 0 0 10px 10px; }
details[open] { background: var(--paper-2); }
summary { list-style: none; cursor: pointer; position: relative; padding: 15px 48px 15px 18px; font-size: 18px; color: var(--muted); letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 20px; color: var(--faint); }
details[open] summary { color: var(--ink); font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; max-width: 460px; }

/* ------------------------------------------------ trust */
.trust { text-align: center; border-top: 1px solid var(--line); }
.trust h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.seal { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 0 0 8px #f0eee8, 0 0 0 9px var(--line); }
.seal .ic { width: 28px; height: 28px; color: var(--olive); }
.seals h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.seals p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 0 auto; }

/* ------------------------------------------------ closing + footer */
.closing-wrap { padding-bottom: clamp(56px, 8vw, 96px); }
.closing { background-image: linear-gradient(rgba(25, 38, 15, .28), rgba(25, 38, 15, .08) 70%), url("/assets/scenes/hills-g.jpg"); padding: clamp(72px, 10vw, 128px) 24px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.closing h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; text-shadow: 0 2px 30px rgba(20, 30, 10, .25); max-width: 820px; }
.float { position: absolute; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); animation: bob 5s ease-in-out infinite alternate; }
.f1 { left: 10%; top: 20%; } .f2 { right: 12%; top: 16%; animation-delay: -2s; } .f3 { right: 20%; bottom: 14%; animation-delay: -3.5s; }
@keyframes bob { to { transform: translateY(-12px); } }
.foot { background: var(--night); color: rgba(255, 255, 255, .7); }
.foot .wrap { border-color: rgba(255, 255, 255, .08); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-block: 48px 96px; }
.foot .brand { color: #fff; }
.foot p { margin-top: 10px; font-size: 13.5px; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; font-size: 13.5px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; }

/* Floating ask bar, shown once the hero is scrolled past. */
.askbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 30; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px; width: min(420px, calc(100% - 32px)); padding: 7px 7px 7px 10px;
  border-radius: 999px; background: rgba(40, 40, 36, .88); color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transition: transform .35s ease, opacity .35s ease, visibility .35s;
}
.askbar.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.askbar img { width: 26px; height: 26px; }
.askbar span:nth-child(2) { flex: 1; }
.askbar .go { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.askbar .go .ic { width: 15px; height: 15px; stroke-width: 2; }

/* ------------------------------------------------ at a glance (two panels + strip) */
.glance { border-block: 1px solid var(--line); }
.glance-in { padding-inline: 0; position: relative; }
.glance-in::before, .glance-in::after, .gl-strip::before, .gl-strip::after {
  content: ""; position: absolute; width: 11px; height: 11px; z-index: 1;
  background: linear-gradient(var(--faint), var(--faint)) center / 1px 100% no-repeat, linear-gradient(var(--faint), var(--faint)) center / 100% 1px no-repeat;
}
.glance-in::before { left: -6px; top: -6px; } .glance-in::after { right: -6px; top: -6px; }
.gl-strip::before { left: -6px; top: -6px; } .gl-strip::after { right: -6px; top: -6px; }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; }
.gl-panel + .gl-panel { border-left: 1px solid var(--line); }
.gl-panel header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 24px; }
.gl-tag { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.gl-tag.amber { color: #c26a12; }
.gl-tag.olive { color: #6a8a1f; }
.gl-panel h3 { font-size: 19px; letter-spacing: -0.02em; }
.gl-go { width: 32px; height: 32px; flex: none; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.gl-go:hover { transform: translate(1px, -1px); }
.gl-go .ic { width: 16px; height: 16px; stroke-width: 2; }
.gl-shot { min-height: 340px; display: grid; place-items: center; padding: 34px 24px; border-top: 1px solid var(--line); background: #7f9a5e center / cover no-repeat; }
.gl-warm { background-image: radial-gradient(circle at 80% 85%, rgba(255, 196, 120, .6), transparent 55%), linear-gradient(135deg, rgba(238, 112, 34, .78), rgba(252, 160, 100, .62) 55%, rgba(244, 120, 110, .66)), url("/assets/scenes/hills-e.jpg"); }
.gl-green { background-image: radial-gradient(circle at 75% 15%, rgba(250, 245, 170, .65), transparent 50%), linear-gradient(135deg, rgba(112, 140, 10, .6), rgba(196, 214, 60, .5) 55%, rgba(140, 164, 24, .55)), url("/assets/scenes/hills-g.jpg"); }
.stack { position: relative; width: min(100%, 370px); }
.stack::before, .stack::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(31, 30, 27, .12); }
.stack::before { transform: translate(-10px, -10px) rotate(-2.5deg); opacity: .75; }
.stack::after { transform: translate(8px, 8px) rotate(1.5deg); opacity: .9; }
.gl-card { position: relative; z-index: 1; width: 100%; padding: 14px 16px; }
.gl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.gl-btn { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; }
.gl-btn .ic { width: 13px; height: 13px; }
.gl-select { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px 3px 8px; font-size: 11px; }
.gl-select .ic { width: 12px; height: 12px; transform: rotate(90deg); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #efece6; }
.checks img { width: 22px; height: 22px; }
.checks .grow { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; }
.box .ic { width: 11px; height: 11px; stroke-width: 3; color: #fff; }
.checks .done .box { background: #23a25f; border-color: #23a25f; }
.checks .done .grow { color: var(--faint); text-decoration: line-through; }
/* Animated progress bar (same effects as the app) */
.pbar-wrap { margin: 4px 0 8px; }
.pbar-text { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pbar-text div { min-width: 0; }
.pbar-text b { display: block; font: 600 11.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-text small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pbar-text [data-pct] { font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pbar { position: relative; height: 40px; border-radius: 11px; overflow: hidden; background: #f3f1ec; border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(31, 30, 27, .05); transition: background .4s ease; }
.pbar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pbar-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); padding-bottom: 6px; }
.pbar-meta em { font-style: normal; color: #5b3fb5; }
.styles-dots { display: flex; gap: 5px; }
.styles-dots button { appearance: none; border: 0; padding: 0; width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: width .25s ease, background .25s ease; }
.styles-dots button[aria-pressed="true"] { width: 18px; background: var(--ink); }
.who-rows { display: grid; border-top: 1px solid #efece6; padding-top: 4px; }
.who-row { appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; transition: background .25s ease; }
.who-row:hover, .who-row.on { background: #f3f1ec; }
.who-row:focus-visible { outline: 2px solid var(--olive); outline-offset: -2px; }
.who-row > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.who-row img { width: 22px; height: 22px; }
.who-row .grow { flex: 1; color: var(--ink); }
.who-row .frac { color: var(--muted); font-size: 11px; }
.who-row b { font-weight: 600; color: var(--ink); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.gl-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); position: relative; }
.gl-strip li { padding: 20px 24px 22px; }
.gl-strip li + li { border-left: 1px solid var(--line); }
.gl-strip h4 { display: flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.gl-strip h4 .ic { width: 15px; height: 15px; }
.gl-strip p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) {
  .gl-grid { grid-template-columns: 1fr; }
  .gl-panel + .gl-panel { border-left: 0; border-top: 1px solid var(--line); }
  .gl-strip { grid-template-columns: 1fr 1fr; }
  .gl-strip li:nth-child(3) { border-left: 0; }
  .gl-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .glance-in::before, .glance-in::after, .gl-strip::before, .gl-strip::after { display: none; }
  .gl-panel header { padding: 18px var(--pad); }
  .gl-shot { height: auto; min-height: 280px; padding: 32px 26px; }
  .gl-strip li { padding: 16px var(--pad); }
  .checks .chip { display: none; }
}
@media (max-width: 420px) {
  .gl-strip { grid-template-columns: 1fr; }
  .gl-strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------ meet the team (two tall panels + carousel) */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meet-left, .meet-right { position: relative; border-radius: 28px; min-height: 640px; overflow: hidden; }
.meet-left { background: #efede6; box-shadow: inset 0 0 0 1px rgba(31, 30, 27, .04); display: flex; flex-direction: column; align-items: center; padding: 72px 40px 44px; }
/* Dot-matrix lettering: a mono face filled with a fine dot grid. */
.dotmatrix {
  font: 800 clamp(30px, 3vw, 40px)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: transparent; background-image: radial-gradient(circle, #55524b 1.25px, transparent 1.6px); background-size: 4px 4px;
  -webkit-background-clip: text; background-clip: text;
}
.meet-ctrl { display: flex; gap: 8px; }
/* Example chat with the agent on show; messages arrive one by one, agents "typing" first. */
.meet-chats { flex: 1; width: 100%; max-width: 410px; display: flex; flex-direction: column; justify-content: center; margin: 28px 0; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat[hidden] { display: none; }
.chat .m { animation: msg-in .35s ease both; }
.chat .m:nth-child(1) { animation-delay: .3s; --type: .3s; }
.chat .m:nth-child(2) { animation-delay: 1.2s; --type: 1.2s; }
.chat .m:nth-child(3) { animation-delay: 3s; --type: 3s; }
.chat .m:nth-child(4) { animation-delay: 4.4s; --type: 4.4s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.m.you { align-self: flex-end; max-width: 80%; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 14px; line-height: 1.45; }
.m.bot { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.m.bot img { width: 28px; height: 28px; flex: none; }
.m.bot > div { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); box-shadow: 0 4px 14px rgba(31, 30, 27, .05); }
.m.bot b { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
/* Typing dots cover the reply for a moment, then fade to show it. */
.m.bot > div::after { content: "•••"; position: absolute; inset: 0; background: #fff; display: flex; align-items: center; padding-left: 16px; font-size: 18px; letter-spacing: 3px; color: var(--faint); animation: typing-off .25s ease forwards; animation-delay: calc(var(--type, 0s) + .9s); }
@keyframes typing-off { to { opacity: 0; visibility: hidden; } }
.m .done { display: flex; align-items: center; gap: 6px; color: #1c7a47; }
.m .done .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.m .ask { display: flex; flex-direction: column; gap: 8px; }
.m .ask .yn { margin-left: 0; }
.meet-ctrl button { appearance: none; border: 0; width: 46px; height: 46px; border-radius: 50%; background: #e6e3dc; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.meet-ctrl button:hover { background: #dcd8cf; transform: translateY(-1px); }
.meet-ctrl button:focus-visible, .meet-pills button:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.meet-ctrl .ic { width: 17px; height: 17px; stroke-width: 2; }
.meet-ctrl .flip { transform: scaleX(-1); }

.meet-right {
  color: #fff; display: flex; flex-direction: column; align-items: center; padding: 64px 32px 36px; text-align: center;
  background: #5d7f31 center / cover no-repeat;
  background-image: linear-gradient(180deg, rgba(28, 40, 10, .34), rgba(28, 40, 10, 0) 38%, rgba(28, 40, 10, 0) 70%, rgba(28, 40, 10, .3)),
    radial-gradient(circle at 70% 20%, rgba(250, 245, 170, .5), transparent 50%),
    linear-gradient(135deg, rgba(112, 140, 10, .55), rgba(196, 214, 60, .45) 55%, rgba(120, 150, 20, .55)),
    url("/assets/scenes/hills-g.jpg");
}
.meet-slides { display: grid; flex: 1; width: 100%; }
.meet-slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; animation: slide-in .6s ease both; }
.meet-slide[hidden] { display: none; }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } }
.meet-slide h3 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; max-width: 460px; text-shadow: 0 2px 24px rgba(20, 30, 5, .35); }
.meet-slide p { margin-top: 16px; max-width: 400px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 12px rgba(20, 30, 5, .35); }
.meet-slide b { color: #fff; font-weight: 600; }
.meet-avatar { width: min(240px, 60%); height: auto; margin: auto 0; padding-block: 28px 20px; filter: drop-shadow(0 24px 30px rgba(20, 30, 5, .35)); animation: bob 4.5s ease-in-out infinite alternate; }
.meet-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.meet-pills button {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 8px; border-radius: 99px;
  font: 500 14px/1 var(--sans); color: rgba(255, 255, 255, .72); background: rgba(30, 40, 15, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .25s, color .25s;
}
.meet-pills button img { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .18); padding: 3px; opacity: .8; }
.meet-pills button:hover { color: #fff; background: rgba(30, 40, 15, .4); }
.meet-pills button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(20, 30, 5, .2); }
.meet-pills button[aria-selected="true"] img { background: #efeafc; opacity: 1; }
@media (max-width: 860px) {
  .meet { grid-template-columns: 1fr; }
  .meet-left { min-height: 0; padding: 36px 20px 24px; }
  .meet-chats { margin: 24px 0; min-height: 400px; justify-content: flex-start; }
  .meet-right { min-height: 600px; }
}
@media (max-width: 600px) {
  .meet-left, .meet-right { border-radius: 22px; }
  .dotmatrix { font-size: 18px; letter-spacing: .04em; background-size: 3px 3px; background-image: radial-gradient(circle, #55524b 1px, transparent 1.3px); }
  .meet-right { padding: 44px 18px 24px; min-height: 560px; }
  .meet-pills button { height: 40px; padding: 0 14px 0 6px; font-size: 13px; }
  .meet-pills button img { width: 26px; height: 26px; }
}

/* ------------------------------------------------ memory, the simple version */
.mstory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: none; }
.mstory > li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mstory > li + li::before { content: ""; position: absolute; left: -30px; top: 15px; width: 24px; height: 12px; background: linear-gradient(var(--faint), var(--faint)) left center / 18px 1.5px no-repeat; }
.mstory > li + li::after { content: ""; position: absolute; left: -12px; top: 17px; border: 4px solid transparent; border-left: 6px solid var(--faint); }
.mstep { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; font: 600 14px/1 var(--sans); margin-bottom: 10px; }
.mstory h3 { font-size: 20px; }
.mstory > li > p { color: var(--ink-2); font-size: 14.5px; max-width: 320px; }
.mvis { margin-top: 18px; flex: 1; min-height: 150px; border-radius: 16px; border: 1px solid var(--line); background: #fbfaf7; display: grid; place-items: center; padding: 22px; }
.bubble-said { display: flex; align-items: flex-end; gap: 10px; }
.bubble-said .initial { width: 30px; height: 30px; border-radius: 50%; background: #e6e3dc; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--ink-2); flex: none; }
.bubble-said > span:last-child { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; color: var(--ink); box-shadow: 0 6px 16px rgba(31, 30, 27, .06); }
.bubble-said b { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.ticks .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #e3f3e8; color: #1c7a47; stroke-width: 2.6; }
.note-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 210px; display: grid; gap: 3px; box-shadow: 0 6px 16px rgba(31, 30, 27, .06); }
.note-card small { font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.note-card b { font-size: 15px; font-weight: 600; }
.note-card > span:not(.used) { font-size: 13.5px; color: var(--ink-2); }
.note-card .used { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #efece6; font-size: 11.5px; color: var(--muted); }
.faces { display: flex; padding-left: 6px; }
.faces img { width: 22px; height: 22px; margin-left: -6px; background: #f3f1ec; border-radius: 50%; border: 2px solid #fff; }
.mkinds-title { font-size: 20px; margin: 56px 0 18px; }
.mkinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mkinds > div { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 20px; display: grid; gap: 6px; align-content: start; }
.mkinds .ic { width: 22px; height: 22px; color: var(--olive); margin-bottom: 6px; }
.mkinds h4 { font-size: 16px; }
.mkinds p { color: var(--muted); font-size: 13.5px; }
.mfoot { margin-top: 22px; }
.mcontrol { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--ink-2); }
.mcontrol span { display: inline-flex; align-items: center; gap: 8px; }
.mcontrol .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #e3f3e8; color: #1c7a47; stroke-width: 2.6; }
/* The detailed diagram, folded away for people who want it. */
.mem-more { margin-top: 32px; border: 0; background: none; border-top: 1px solid var(--line); }
.mem-more[open] { background: none; }
.mem-more > summary { display: inline-flex; align-items: center; gap: 8px; padding: 18px 0 0; font: 500 14px/1 var(--sans); color: var(--ink); }
.mem-more > summary::after { content: "+"; position: static; transform: none; font-size: 16px; color: var(--muted); }
.mem-more[open] > summary::after { content: "−"; }
.mem-more > summary:hover { color: var(--olive); }
.mem-more .mem { margin-top: 24px; }
@media (max-width: 860px) {
  .mstory { grid-template-columns: 1fr; gap: 28px; }
  .mstory > li + li::before, .mstory > li + li::after { display: none; }
  .mvis { min-height: 0; }
  .mkinds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mkinds { grid-template-columns: 1fr; }
  .mkinds-title { margin-top: 44px; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr 240px; }
  .app-side { display: none; }
  .models { grid-template-columns: 1fr 1fr; }
  .router { grid-column: 1 / -1; order: -1; }
  .types { grid-template-columns: 1fr 1fr; }
  .types article:nth-child(3) { border-left: 0; }
  .types article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .links { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-chat { border-left: 0; border-top: 1px solid var(--line); }
  .crow { grid-template-columns: 150px 1fr 1.2fr; }
  .split { grid-template-columns: 1fr; }
  .seals { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  /* The memory diagram stacks; its drawn connectors give way to simple arrows. */
  .mcards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bus, .loop, .always, .inject::before, .inject::after { display: none; }
  .mdecide { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 0; margin-top: 0; justify-items: center; }
  .mdecide::before { content: ""; height: 40px; width: 1.5px; background: var(--ink-line); }
  .inject { height: 44px; width: 1.5px; background: var(--ink-line); }
  .inject span { left: 12px; right: auto; top: 50%; transform: translateY(-50%); white-space: nowrap; text-align: left; }
  .diamond { width: 220px; }
  .ctx { width: 100%; }
  .mlinks > div { gap: 40px; }
}
@media (max-width: 600px) {
  .wrap { border-inline: 0; }
  .bento, .types { grid-template-columns: 1fr; }
  .types article + article { border-left: 0; border-top: 1px solid var(--line); }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .agent { padding: 8px; gap: 8px; }
  .agent img { width: 38px; height: 38px; }
  .agent small { display: none; }
  .tabs-mini { display: none; }
  .hero-toast { position: relative; right: auto; bottom: auto; margin: 12px 0 0 auto; max-width: 100%; }
  .hero-paint { padding-bottom: 20px; }
  .label { flex-direction: column; gap: 4px; }
  .crow { grid-template-columns: 1fr 1fr; }
  .crow > span:nth-child(1) { grid-column: 1 / -1; padding-bottom: 4px; font-size: 13px; }
  .crow > span:nth-child(2), .crow > span:nth-child(3) { font-size: 13px; padding-top: 8px; }
  .chead > span:nth-child(1) { display: none; }
  .models { grid-template-columns: 1fr; }
  .split2 { grid-template-columns: 1fr; }
  .trig { grid-template-columns: 1fr 1fr; gap: 14px 8px; }
  .mbottom, .mlinks { grid-template-columns: 1fr; }
  .mlinks { height: 48px; }
  .mlinks > div:last-child { display: none; }
  .mbottom { gap: 14px; }
  .mcards.three { grid-template-columns: 1fr; gap: 6px; }
  .mbottom .mcard { grid-template-columns: 28px 1fr; justify-items: start; text-align: left; column-gap: 12px; row-gap: 0; padding: 10px 12px; }
  .mbottom .mcard .ic { grid-row: span 2; margin: 0; }
  .mbottom .mcard small br, .store .mcard small br { display: none; }
  .mem { padding: 12px; }
  .mbox { padding: 14px; min-width: 0; }
  .mhead { flex-wrap: wrap; }
  .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .m.bot > div::after { display: none; }
  html { scroll-behavior: auto; }
}
