/* OakCred Agents
   Brand language from the "Straightforward Brand Guidelines" template (sidebar index,
   numbered sections, orange / blue-tint / white, Rethink Sans + Hedvig Letters Serif),
   diagrams from the "Data Flow Diagram" template. */

:root {
  --bg: #f4f3ef;
  --paper: #ffffff;
  --ink: #0f0e0d;
  --body: #4a4a48;
  --muted: #8a8985;
  --line: #e8e6e1;
  --line-strong: #d5d2cb;

  --orange: #fa9819;
  --orange-deep: #ea6a2a;
  --amber-soft: #f6c37a;
  --tint: #b8c9cf;
  --tint-soft: #e8eef0;

  --peach: #f6dca8;
  --peach-bar: #f08a38;
  --pink: #f9ddf4;
  --pink-bar: #e79ae8;
  --blue: #92c6f7;
  --blue-bar: #4b4be8;
  --lav: #ece2fb;
  --lav-bar: #9353ee;
  --pill: #d6a6f5;

  --sans: "Rethink Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --side: 232px;
  --pad: clamp(20px, 4.2vw, 72px);
  --radius: 20px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; }
p { margin: 0; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 6px; }
svg:has(> use) { width: 20px; height: 20px; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

/* split-text helpers (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand-mark { width: 22px !important; height: 22px !important; color: var(--orange-deep); }

/* ---------- Shell ---------- */
.shell {
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr);
  max-width: 1600px; margin: 0 auto; background: var(--paper); min-height: 100vh;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.topbar { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--paper); z-index: 20; }
.sidebar > .brand { padding: 26px; border-bottom: 1px solid var(--line); }
.index { position: relative; display: flex; flex-direction: column; padding: 22px 26px 22px 40px; gap: 1px; border-bottom: 1px solid var(--line); }
.index-rail { position: absolute; left: 26px; top: 28px; bottom: 28px; width: 1px; background: var(--line); }
.index-rail i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--orange-deep); transform-origin: top; transform: scaleY(0); }
.index a { font-size: 14px; font-weight: 500; padding: 5px 0; color: var(--muted); display: inline-flex; align-items: flex-start; gap: 2px; transition: color .25s, transform .35s var(--ease); }
.index a sup { font-size: 9px; margin-top: -1px; opacity: .8; }
.index a:hover { color: var(--ink); transform: translateX(3px); }
.index a.active { color: var(--ink); }
.index a.active sup { color: var(--orange-deep); opacity: 1; }
.side-foot { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); flex: 1; }
.side-foot a:hover { color: var(--ink); }
.side-cta { color: var(--ink) !important; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; border: 1px solid var(--ink); border-radius: 999px; padding: 9px 14px; text-align: center; transition: background .25s, color .25s; }
.side-cta:hover { background: var(--ink); color: #fff !important; }
.side-status { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.side-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,179,109,0); } }
main { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--orange); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--orange-deep); }
.btn-line { border-color: var(--line-strong); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { padding: clamp(64px, 8vw, 120px) var(--pad) clamp(40px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--body); padding: 7px 14px 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; margin-bottom: 30px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fb36d; }
.hero-title { font-size: clamp(46px, 7.2vw, 120px); line-height: .94; letter-spacing: -0.058em; font-weight: 500; color: var(--ink); }
.rot { display: inline-block; position: relative; vertical-align: top; height: 1.08em; overflow: hidden; min-width: 6ch; }
.rot span { display: inline-block; position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; color: var(--orange-deep); }
.rot span:first-child { position: relative; }
.rot span + span { transform: translateY(115%); }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: clamp(30px, 3.6vw, 52px); padding-top: 28px; border-top: 1px solid var(--line); }
.hero-lead { color: var(--body); font-size: clamp(16px, 1.25vw, 19px); max-width: 56ch; line-height: 1.5; }
.hero-lead b { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--muted); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 15px; height: 15px; color: var(--ink); }

/* soft brand panel, as in the guideline template */
.hero-panel { position: relative; margin: 0 var(--pad) var(--pad); height: clamp(240px, 34vw, 460px); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.panel-grad { position: absolute; inset: -10%; z-index: -1; background:
    radial-gradient(55% 75% at 64% 60%, rgba(244, 196, 120, .9) 0%, rgba(244, 196, 120, 0) 70%),
    radial-gradient(45% 65% at 96% 70%, rgba(229, 132, 78, .75) 0%, rgba(229, 132, 78, 0) 72%),
    linear-gradient(110deg, #c4d1d5 0%, #dcd5c0 40%, #efc489 68%, #e79a63 100%);
  will-change: transform; }
.panel-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .18em; color: #fff; font-size: clamp(48px, 8vw, 120px); font-weight: 500; letter-spacing: -0.05em; }
.panel-mark svg { width: .78em !important; height: .78em !important; }
.panel-mark svg use { stroke-width: 2.4; }
.panel-meta { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.9); font-weight: 500; }

/* ---------- Strip ---------- */
.strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding: 22px var(--pad); border-bottom: 1px solid var(--line); }
.strip-label { font-size: 12.5px; color: var(--muted); max-width: 16ch; line-height: 1.35; }
.strip-viewport { overflow: hidden; }
.strip-track { display: flex; flex-wrap: wrap; row-gap: 6px; }
.strip-track span { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: #a9a6a0; padding: 0 22px 0 0; white-space: nowrap; transition: color .3s; }
.strip-track span:hover { color: var(--ink); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 140px) var(--pad); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-bottom: clamp(44px, 6vw, 80px); align-items: end; }
.sec-head h2 { font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -0.05em; line-height: .95; }
.sec-head h2 sup { font-size: .22em; color: var(--orange-deep); font-weight: 500; letter-spacing: 0; vertical-align: top; position: relative; top: .3em; margin-left: 4px; }
.sec-head > p { color: var(--body); font-size: 15.5px; max-width: 50ch; justify-self: end; }
.kicker { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.mini { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.display { font-size: clamp(36px, 4vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.display-sm { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.06; letter-spacing: -0.035em; }
.display-xl { font-size: clamp(44px, 6vw, 96px); line-height: .96; letter-spacing: -0.05em; }

/* ---------- Approach ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: clamp(64px, 8vw, 112px); }
.pillar { padding: 30px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar .p-n { font-family: var(--mono); font-size: 12px; color: var(--orange-deep); display: block; margin-bottom: 40px; }
.pillar h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 14px; }
.pillar h3 .serif { color: var(--orange-deep); }
.pillar p { color: var(--body); font-size: 15px; max-width: 38ch; }

/* ---------- Figures (diagrams) ---------- */
.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.fig-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.fig-head .kicker { margin: 0; color: var(--ink); }
.fig-note { font-size: 12.5px; color: var(--muted); }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure svg { display: block; width: 100%; height: auto; }
#flowSvg { min-width: 860px; padding: 18px 22px 10px; box-sizing: border-box; }
.fl-line { fill: none; stroke: #d3d0c9; stroke-width: 1.5; transition: stroke .25s, stroke-width .25s; }
.fl-line.on { stroke: var(--orange-deep); stroke-width: 2; }
.fl-node rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .25s, fill .25s; }
.fl-node { cursor: default; }
.fl-node.on rect { stroke: var(--orange-deep); fill: #fff8f2; }
.fl-node text { font: 600 14px var(--sans); fill: var(--ink); letter-spacing: -0.01em; }
.fl-node text.sub { font: 500 11.5px var(--sans); fill: var(--muted); }
.fl-col { font: 600 11px var(--sans); fill: var(--muted); letter-spacing: .12em; }
.fl-core > rect.frame { fill: #faf9f6; stroke: var(--ink); stroke-width: 1.5; }
.fl-core text.title { font: 600 16px var(--sans); fill: var(--ink); }
.fl-core .part rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; }
.fl-core .part text { font: 600 13.5px var(--sans); fill: var(--ink); }
.fl-core .part text.sub { font: 500 11.5px var(--sans); fill: var(--muted); }
.fl-core.on > rect.frame { stroke: var(--orange-deep); }
.fl-bound { fill: none; stroke: #b9b5ad; stroke-width: 1.2; stroke-dasharray: 5 6; }
.fl-bound-label { font: 600 10.5px var(--sans); fill: var(--muted); letter-spacing: .12em; }

/* ---------- Catalogue ---------- */
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--body); transition: background .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button sup { font-size: 9.5px; margin-left: 3px; opacity: .6; }
.cat-count { font-size: 13px; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(56px, 7vw, 96px); }
.cat-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; min-height: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  transition: border-color .35s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-card:hover { border-color: var(--ink); }
.cat-card.is-hidden { display: none; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.cc-ico { width: 46px; height: 46px; border-radius: 13px; background: #f4f2ee; display: grid; place-items: center; color: var(--ink); }
.cc-ico svg { width: 22px; height: 22px; }
.cc-mode { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: rgba(255,255,255,.7); }
.cc-mode i { width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; }
.cc-mode.m-cont i { background: #22a45d; }
.cc-mode.m-sched i { background: var(--orange); }
@keyframes live2 { 50% { box-shadow: 0 0 0 4px rgba(34,164,93,.18); } }
.cc-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-card h3 { font-size: 21px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.cat-card p { color: var(--body); font-size: 14.5px; flex: 1; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.cc-src { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-src span { font-size: 11.5px; font-weight: 600; color: var(--body); background: #f4f2ee; border-radius: 6px; padding: 3px 8px; }
.cc-go { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .5s var(--ease); flex: none; }
.cc-go svg { width: 14px; height: 14px; }
.cat-card:hover .cc-go { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-card.custom { background: var(--ink); color: #fff; border-color: var(--ink); justify-content: space-between; }
.cat-card.custom h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.04em; font-weight: 500; }
.cat-card.custom h3 .serif { color: #f0b46a; }
.cat-card.custom p { color: rgba(255,255,255,.65); flex: 0; }
.cat-card.custom .cc-go { border-color: rgba(255,255,255,.3); }
.cat-card.custom:hover .cc-go { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- How it's built ---------- */
.how { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.how-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.how-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.st-n { font-family: var(--mono); font-size: 12px; color: var(--orange-deep); padding-top: 5px; }
.how-steps h4 { font-size: 20px; letter-spacing: -0.025em; margin-bottom: 6px; font-weight: 600; }
.how-steps p { color: var(--body); font-size: 14.5px; }
#kgSvg { padding: 14px 18px 0; box-sizing: border-box; }
.kg-edge { fill: none; stroke: #d3d0c9; stroke-width: 1.5; transition: stroke .3s, stroke-width .3s; }
.kg-edge.on { stroke: var(--orange-deep); stroke-width: 2; }
.kg-arrow { fill: #d3d0c9; transition: fill .3s; }
.kg-arrow.on { fill: var(--orange-deep); }
.kg-elabel rect { fill: #fff; }
.kg-elabel text { font: 500 10px var(--mono); fill: var(--muted); letter-spacing: .02em; transition: fill .3s; }
.kg-elabel.on text { fill: var(--orange-deep); }
.kg-node rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.kg-node.on rect { stroke: var(--orange-deep); fill: #fff8f2; stroke-width: 1.6; }
.kg-node.dim { opacity: .55; }
.kg-node text.type { font: 600 9.5px var(--sans); fill: var(--muted); letter-spacing: .12em; }
.kg-node text.name { font: 600 13.5px var(--sans); fill: var(--ink); }
.kg-node, .kg-edge, .kg-elabel { transition: opacity .3s; }
.kg-answer { padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.kg-answer .mini { margin-top: 0; }
#kgAnswer { font-size: 15.5px; letter-spacing: -0.005em; min-height: 1.5em; }
.kg-path { font-family: var(--mono); font-size: 12px; color: var(--orange-deep); margin-top: 6px; }

/* ---------- DFD ---------- */
.dfd-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.dfd-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dfd-top .kicker { margin: 0; color: var(--ink); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--body); padding: 14px 22px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; display: inline-block; }
.lg-entity { background: var(--peach); border-radius: 4px; }
.lg-process { background: var(--pink); border-radius: 50%; border: 1px solid var(--pink-bar); }
.lg-store { background: var(--blue); }
.lg-agent { background: var(--lav); border-radius: 50%; border: 1px solid var(--lav-bar); }
.dfd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dfd { min-width: 820px; padding: 10px 14px 6px; transition: opacity .3s var(--ease); }
.dfd svg { width: 100%; height: auto; overflow: visible; }
.dfd.fading { opacity: 0; }
.dfd-caption { padding: 0 22px 22px; color: var(--body); font-size: 14.5px; max-width: 80ch; min-height: 2.6em; }
.dfd .shape { transition: transform .4s var(--ease), filter .4s; transform-box: fill-box; transform-origin: center; }
.dfd .node:hover .shape { transform: scale(1.035); filter: drop-shadow(0 14px 24px rgba(30,20,60,.16)); }
.dfd .node-title { font-family: var(--sans); font-weight: 600; font-size: 20px; fill: var(--ink); letter-spacing: -0.02em; }
.dfd .node-sub { font-family: var(--mono); font-size: 11.5px; fill: #4b4b4b; }
.dfd .wire { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dfd .pill rect { fill: var(--pill); }
.dfd .pill text { font-family: var(--mono); font-size: 12px; fill: #2b1240; font-weight: 500; }
.dfd .packet { display: none; }
.dfd .boundary { fill: none; stroke: #9aa9ae; stroke-width: 1.5; stroke-dasharray: 6 7; }
.dfd .boundary-label { font-family: var(--mono); font-size: 11px; fill: #6f8288; letter-spacing: .08em; }

/* ---------- Segmented control ---------- */
.seg { position: relative; display: inline-flex; padding: 4px; background: rgba(15,14,13,.06); border-radius: 999px; margin: 14px 0; max-width: 100%; overflow-x: auto; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .3s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.12); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg-sm { margin: 0; }

/* ---------- Tags ---------- */
.tag-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; color: var(--body); font-size: 15px; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 1.5px; background: var(--orange-deep); }
.tag-ui { border-radius: 24px; background: linear-gradient(160deg, #f7f3ec, #f1ece3); padding: 20px; border: 1px solid var(--line); }
.tag-prompt { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 14px; padding: 15px 18px; min-height: 52px; font-family: var(--mono); font-size: 13.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.prompt-sym { color: var(--orange); font-weight: 700; }
.caret { width: 8px; height: 17px; background: var(--orange); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.brief { background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 50px -30px rgba(40,25,5,.35); }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tag-name { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--lav-bar); }
.brief-meta { color: var(--muted); font-size: 12.5px; }
.brief-summary { margin-top: 12px; font-size: 15.5px; line-height: 1.55; min-height: 4.7em; transition: opacity .3s; }
.brief-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; border: 2px solid #fff; margin-left: -7px; background: var(--tint); }
.avatars span:first-child { margin-left: 0; background: var(--peach); }
.avatars span:nth-child(2) { background: var(--pink); }
.avatars span:nth-child(3) { background: var(--lav); }
.progress { height: 6px; background: #f0eee9; border-radius: 6px; overflow: hidden; margin: 6px 0; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--orange-deep)); border-radius: 6px; transition: width 1.2s var(--ease); }
.brief-grid small { color: var(--muted); font-size: 12.5px; }
.decisions { list-style: none; padding: 0; margin: 0; font-size: 14px; border-top: 1px solid var(--line); transition: opacity .3s; }
.decisions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.decisions li span:last-child { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.brief-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sources { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sources span { display: inline-flex; align-items: center; gap: 5px; }
.sources i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.brief-actions { display: flex; gap: 8px; }

/* ---------- Privacy ---------- */
.section-soft { background: #f7f6f2; }
.privacy-statement { font-size: clamp(28px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -0.04em; max-width: 24ch; margin-bottom: clamp(40px, 5vw, 72px); }
.privacy-statement .serif { color: var(--orange-deep); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
.lane { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.lane-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.lane.ours .lane-title { color: var(--ink); }
.lane-row { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 14px 2px 2px; }
.lgroup { position: relative; display: flex; align-items: center; border: 1.2px dashed #b9b5ad; border-radius: 14px; padding: 18px 14px 14px; flex: none; }
.lgroup.wide { flex: 1; }
.lgroup.wide .lbox { flex: 1; }
.bound-tag { position: absolute; top: -9px; left: 12px; background: #fff; padding: 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lbox { flex: 1; min-width: 130px; padding: 14px 16px; border: 1.2px solid var(--line-strong); border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; background: #fff; white-space: nowrap; }
.lbox.ext { color: var(--body); background: #fbfaf8; }
.larr { position: relative; flex: 0 0 34px; height: 1.5px; background: #b9b5ad; margin: 0 4px; }
.larr::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1.5px solid #b9b5ad; border-right: 1.5px solid #b9b5ad; transform: rotate(45deg); }
.larr.out { background: var(--orange-deep); }
.larr.out::after { border-color: var(--orange-deep); }
.lane-note { font-size: 13.5px; color: var(--body); margin-top: 14px; }
.lane-note b { font-weight: 600; color: var(--ink); }
.guarantees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.guarantees > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.guarantees > div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.guarantees svg { width: 22px; height: 22px; color: var(--ink); margin-bottom: 16px; }
.guarantees h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.guarantees p { color: var(--body); font-size: 14px; }

/* ---------- Interface ---------- */
.app-frame { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #faf9f6; }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #e2dfd8; }
.url { flex: 1; text-align: center; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px; max-width: 340px; margin: 0 auto; font-size: 12.5px; }
.secure { display: inline-flex; align-items: center; gap: 5px; color: #2a9a5e; font-size: 12.5px; font-weight: 600; }
.secure svg { width: 13px; height: 13px; }
.app-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 500px; }
.app-side { border-right: 1px solid var(--line); padding: 6px 14px 18px; display: flex; flex-direction: column; gap: 2px; background: #fcfbf9; }
.ag { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--body); }
.ag svg { width: 17px; height: 17px; }
.ag.active { background: #f1efe9; color: var(--ink); }
.side-tag { font-family: var(--mono); font-size: 11.5px; padding: 6px 10px; color: var(--body); }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-log { flex: 1; padding: 26px clamp(16px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 640px; animation: tin .6s var(--ease) both; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: 14.5px; }
.msg.bot { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14.5px; }
.bot-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: var(--orange); }
.bot-ico svg { width: 16px; height: 16px; }
.bot-name { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.bot-body p { margin-bottom: 8px; }
.bot-body ul { margin: 0 0 10px; padding-left: 18px; }
.bot-body li { margin-bottom: 4px; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; }
.cites span { font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: #faf9f6; }
.cites span b { font-weight: 600; margin-right: 4px; }
.thinking { display: inline-flex; gap: 4px; padding: 10px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-4px); opacity: .4; } }
.chat-input { margin: 0 clamp(16px, 3vw, 44px) 22px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 15px 16px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14.5px; }
.kbd { border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 12px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.tl-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.tl-line i { position: absolute; inset: 0; background: var(--orange-deep); transform-origin: left; transform: scaleX(0); }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.timeline li { position: relative; padding-top: 38px; }
.tl-dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.timeline li.on .tl-dot { background: var(--orange-deep); border-color: var(--orange-deep); box-shadow: 0 0 0 6px rgba(234,106,42,.14); }
.tl-n { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 14px; transition: color .4s; }
.timeline li.on .tl-n { color: var(--orange-deep); }
.timeline h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.025em; }
.timeline p { color: var(--body); font-size: 14px; }
.assist { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 3.5vw, 48px); border-radius: 24px; border: 1px solid var(--line); background: #faf9f6; }
.assist .ticks { margin-top: 0; }

/* ---------- Stack ---------- */
.layers { border-top: 1px solid var(--ink); }
.layer { display: grid; grid-template-columns: 44px 220px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.layer.base { border-bottom: 1px solid var(--ink); background: #faf9f6; padding-left: 12px; padding-right: 12px; }
.ly-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.layer h4 { font-size: 20px; letter-spacing: -0.025em; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 500; color: var(--body); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; background: #fff; }
.principles { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink); }
.principles p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles span { font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -0.04em; }
.principles p:nth-child(even) span { font-family: var(--serif); letter-spacing: -0.02em; }
.principles em { font-style: normal; color: var(--muted); font-size: 14px; text-align: right; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; position: relative; letter-spacing: -0.02em; transition: color .25s; }
.faq summary:hover { color: var(--orange-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--body); padding: 0 0 26px; max-width: 72ch; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 160px) var(--pad); }
.contact-inner { max-width: 980px; }
.contact .eyebrow { background: transparent; border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.75); }
.contact .display-xl .serif { color: #f0b46a; }
.contact-p { color: rgba(255,255,255,.65); margin-top: 22px; max-width: 46ch; font-size: 16.5px; }
.contact-mail { display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(36px, 4vw, 56px); padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.35); font-size: clamp(26px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.035em; transition: border-color .3s, color .3s; }
.contact-mail svg { width: .7em !important; height: .7em !important; transition: transform .4s var(--ease); }
.contact-mail:hover { color: #f0b46a; border-color: #f0b46a; }
.contact-mail:hover svg { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--pad) 28px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-top nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--body); }
.footer-top nav a:hover { color: var(--ink); }
.footer-word { font-size: clamp(52px, 10.2vw, 186px); font-weight: 600; letter-spacing: -0.065em; line-height: .9; margin: clamp(40px, 6vw, 80px) 0 24px; white-space: nowrap;
  color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .tl-line { display: none; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); border: 0; }
  .topbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 40; padding: 14px 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .menu-btn { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
  .sidebar { position: fixed; top: 57px; left: 0; right: 0; height: auto; max-height: calc(100vh - 57px); overflow: auto; z-index: 39; transform: translateY(-110%); transition: transform .45s var(--ease); border-right: 0; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
  .sidebar.open { transform: none; }
  .sidebar > .brand { display: none; }
}
@media (max-width: 860px) {
  .sec-head, .how, .tag-demo, .assist, .contact-inner, .hero-row { grid-template-columns: minmax(0, 1fr); }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .guarantees > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .guarantees > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .layer { grid-template-columns: 34px 1fr; }
  .layer .chips { grid-column: 2; }
  .sec-head { align-items: start; }
  .sec-head > p { justify-self: start; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pillar .p-n { margin-bottom: 16px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-card { min-height: 0; }
  .timeline ol { grid-template-columns: 1fr 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .strip { grid-template-columns: 1fr; gap: 12px; }
  .strip-label { max-width: none; }
}
@media (max-width: 860px) {
  .lane-row, .lgroup { flex-direction: column; align-items: stretch; }
  .lane-row { overflow: visible; }
  .lgroup { padding: 22px 12px 12px; }
  .lbox { min-width: 0; white-space: normal; }
  .larr { flex: 0 0 26px; width: 1.5px; height: 26px; margin: 4px auto; }
  .larr::after { right: auto; left: -3.5px; top: auto; bottom: 0; transform: rotate(135deg); }
}
@media (max-width: 560px) {
  .guarantees { grid-template-columns: 1fr; }
  .guarantees > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .lane-row { padding-bottom: 6px; }
  .brief-grid { grid-template-columns: 1fr; gap: 0; }
  .timeline ol { grid-template-columns: 1fr; }
  .principles p { flex-direction: column; gap: 2px; }
  .principles em { text-align: left; }
  .seg button { padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none !important; }
  .dfd .packet { display: none; }
}
