/* Rovia CRM — marketing site, v4 "Seal"
   Stone page, charcoal ink, vermilion for the act of approval, highlighter for the proposed sentence.
   Display: Schibsted Grotesk. Text and UI: Geist. Source chips: IBM Plex Mono.
   The signature device is the Receipt: a highlighted sentence (.rcpt) plus a source chip (.src). */

@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* surfaces */
  --stone: #F2F1ED; --stone-2: #E9E7E1; --stone-3: #DFDCD4; --paper: #FFFFFF;
  --rule: #D3D0C8; --rule-2: #C2BEB4; --rule-strong: #9B968A;
  /* text */
  --ink: #1B1D22; --ink-2: #454A54; --muted: #5B6170;
  /* the act of approval */
  --seal: #C4381C; --seal-deep: #A42D14; --seal-soft: #FBE6E0; --seal-line: #EFC1B4;
  /* the proposed sentence */
  --mark: #FFF1B8; --mark-deep: #F5DE7A; --mark-text: #6B4E00;
  /* states */
  --ok: #2E6B4B; --ok-soft: #E1F0E7; --risk: #8E1E12; --risk-soft: #F8E3DF;
  /* the one dark band */
  --char: #22252B; --char-2: #2B2F36; --char-line: rgba(255, 255, 255, 0.12); --char-text: #F2F1ED; --char-muted: #B9BCC4; --char-line-2: rgba(255, 255, 255, 0.45); --char-ok: #9ED9B8;
  /* type */
  --display: "Schibsted Grotesk", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-md: 1rem; --t-body: 1.0625rem; --t-lg: 1.1875rem;
  --ui: 13px; --ui-s: 12px; --ui-xs: 11px;
  /* layout */
  --max: 1180px; --max-wide: 1320px; --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-xs: 3px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(27, 29, 34, 0.07);
  --shadow-md: 0 10px 28px rgba(27, 29, 34, 0.10), 0 2px 6px rgba(27, 29, 34, 0.05);
  --shadow-lg: 0 34px 80px rgba(27, 29, 34, 0.16), 0 12px 24px rgba(27, 29, 34, 0.07);
  --ring: 0 0 0 3px rgba(196, 56, 28, 0.18);
  --ease: cubic-bezier(0.2, 0, 0, 1); --d-fast: 120ms; --d: 240ms; --d-slow: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--stone); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-size: var(--t-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5rem); line-height: 1.0; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.625rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.375rem, 1.1rem + 0.85vw, 1.75rem); line-height: 1.15; letter-spacing: -0.025em; }
h4 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--seal-deep); text-underline-offset: 0.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b { font-weight: 600; }
small { display: block; font-size: var(--ui-xs); color: var(--muted); font-weight: 400; }
sup { font-size: 0.72em; line-height: 0; margin-left: 0.15em; }
kbd { font: 500 var(--ui-xs)/1 var(--mono); color: var(--muted); border: 1px solid var(--rule-2); border-radius: var(--r-xs); padding: 1px 4px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem; background: var(--ink); color: #fff; border-radius: var(--r-sm); z-index: 30; }
.skip:focus { top: 0.75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; color: var(--muted); }

/* ---------------------------------------------------------------- Receipt device */
.rcpt { background: linear-gradient(transparent 20%, var(--mark) 20%, var(--mark) 92%, transparent 92%); box-shadow: inset 0 -2px 0 var(--mark-deep); border-radius: 2px; padding: 0 0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.src { display: inline-flex; align-items: center; gap: 0.3rem; font: 500 var(--ui-xs)/1 var(--mono); letter-spacing: 0.01em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-xs); padding: 3px 6px; white-space: nowrap; vertical-align: middle; }
.src .ic { width: 12px; height: 12px; }
.src sup { color: var(--seal); font-weight: 700; }
.src-ok { color: var(--ok); border-color: #BBD9C6; background: var(--ok-soft); }
.src-ok .ic { color: var(--ok); }

/* status badges */
.st { display: inline-flex; align-items: center; gap: 0.35rem; font: 500 var(--ui-xs)/1 var(--sans); letter-spacing: 0.01em; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-live { color: var(--ok); background: var(--ok-soft); }
.st-pilot { color: var(--mark-text); background: var(--mark); }
.st-next { color: var(--muted); background: var(--stone-2); }
.st-needs { color: var(--seal-deep); background: var(--seal-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 500; font-size: var(--t-sm); line-height: 1; min-height: 2.75rem; border-radius: var(--r-sm); padding: 0 1.2rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color var(--d-fast) var(--ease), transform 80ms var(--ease), box-shadow var(--d-fast) var(--ease); white-space: nowrap; }
.btn-primary { background: var(--seal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--seal-deep); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 3.25rem; padding: 0 1.4rem; font-size: var(--t-md); }
.btn-sm { min-height: 2.25rem; padding: 0 0.9rem; font-size: var(--t-sm); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242, 241, 237, 0.96); border-bottom: 1px solid transparent; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.top.scrolled { border-bottom-color: var(--rule); box-shadow: var(--shadow-sm); }
.top-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0.7rem var(--gutter); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
/* Lockup: the seal (assets/mark.svg) at 20px beside the wordmark (assets/wordmark.svg) at the nav's cap height. */
.mark { display: block; width: 20px; height: 20px; flex: none; }
.wordmark { display: block; width: 52px; height: 15px; color: var(--ink); }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 0.4rem 0.7rem; border-radius: var(--r-sm); transition: background-color var(--d-fast), color var(--d-fast); }
.nav a:hover { color: var(--ink); background: var(--stone-2); }
.nav a[aria-current="location"] { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.top-login { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 0.4rem 0.2rem; }
.top-login:hover { color: var(--ink); }
.menu-login { border-top: 1px solid var(--rule); margin-top: 0.3rem; padding-top: 0.8rem !important; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 12rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 0.4rem; display: grid; }
.menu nav a { padding: 0.6rem 0.8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--t-md); }
.menu nav a:hover { background: var(--stone-2); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { max-width: 44rem; }
.section-head p { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; margin-top: 1rem; text-wrap: pretty; max-width: 40rem; }
.section-tint { background: var(--stone-2); }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-sm); font-weight: 500; color: var(--muted); margin-bottom: 0.9rem; }

/* ---------------------------------------------------------------- HERO */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.hero-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero-grid > *, .ask > *, .cta-inner > *, .faq-wrap > * { min-width: 0; }
.hero-status { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.hero h1 { max-width: none; }
.hero-sub { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; max-width: 36rem; margin-top: 1.5rem; text-wrap: pretty; }
.hero-form { display: flex; gap: 0.5rem; margin-top: 2rem; max-width: 32rem; }
.hero-form input { flex: 1 1 auto; min-width: 0; min-height: 3.25rem; border-color: var(--rule-2); }
.hero-note { margin-top: 0.75rem; color: var(--muted); font-size: var(--t-sm); }

/* The approval card */
.approval { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.3rem 1.4rem; font-size: var(--t-md); line-height: 1.5; position: relative; overflow: hidden; margin-top: 3.4rem; }
.approval::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--seal); opacity: 0; transition: opacity var(--d) var(--ease); }
.approval-ctx { display: flex; align-items: center; gap: 0.4rem; font-size: var(--ui-s); color: var(--muted); padding-bottom: 0.7rem; margin-bottom: 0.7rem; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
.approval-ctx .mono { margin: 0; }
.approval-foot { display: grid; margin-top: 0.9rem; }
.approval-foot > * { grid-area: 1 / 1; }
.approval.approved::before { opacity: 1; }
.approval-head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.8rem; }
.approval-head .st { margin-left: auto; }
.approval-body { color: var(--ink-2); font-size: var(--t-body); line-height: 1.55; }
.approval-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.8rem; }
.approval-actions { display: flex; gap: 0.45rem; transition: opacity var(--d) var(--ease); }
.approval-done { display: flex; align-items: center; gap: 0.45rem; color: var(--ok); font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity var(--d) var(--ease), transform var(--d) var(--ease); pointer-events: none; min-width: 0; align-items: flex-start; }
.approval-done .ic { color: var(--ok); margin-top: 3px; }
.approval.approved .approval-actions { opacity: 0; }
.approval.approved .approval-done { opacity: 1; transform: none; }
.approval.approved .chip-propose { background: var(--ok-soft); color: var(--ok); }
.mini.pressed { transform: scale(0.96); background: var(--seal-deep); }

/* Product frame */
.frame { max-width: var(--max-wide); margin: clamp(2.5rem, 5vw, 4rem) auto 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; font-size: var(--ui); line-height: 1.35; letter-spacing: -0.005em; }
.app { display: grid; grid-template-columns: 188px 1fr 300px; }
.app-side { border-right: 1px solid var(--rule); padding: 0.9rem 0.6rem; background: var(--stone); display: flex; flex-direction: column; }
.app-ws { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; padding: 0.25rem 0.5rem 0.9rem; }
.ws-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-xs); background: var(--ink); color: #fff; font: 700 10px/1 var(--display); }
.app-side li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--r-sm); color: var(--ink-2); }
.app-side li.on { background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.app-side li.on .ic { color: var(--seal); }
.side-count { margin-left: auto; font-size: var(--ui-xs); color: var(--muted); background: var(--stone-2); border-radius: 999px; padding: 0.05rem 0.45rem; }
.side-live { color: var(--seal-deep); background: var(--seal-soft); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.5rem 0; border-top: 1px solid var(--rule); font-weight: 500; }
.app-main { padding: 0.75rem 0.9rem 0; min-width: 0; }
.app-toolbar { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.75rem; flex-wrap: wrap; }
.app-title { font-weight: 600; font-size: var(--t-sm); margin-right: 0.25rem; }
.app-pills { display: inline-flex; gap: 2px; background: var(--stone-2); border-radius: var(--r-sm); padding: 2px; }
.app-pills span { padding: 0.2rem 0.55rem; border-radius: var(--r-xs); color: var(--muted); }
.app-pills .pill-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.tb { display: inline-flex; align-items: center; gap: 0.35rem; height: 26px; padding: 0 0.55rem; border: 1px solid var(--rule-2); border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--ui-s); background: var(--paper); white-space: nowrap; }
.tb b { font-weight: 500; color: var(--seal-deep); }
.tb-search { color: var(--muted); min-width: 160px; }
.tb-ask { margin-left: auto; }
.tb-ask .ic { color: var(--seal); }
.tb-new { background: var(--ink); color: #fff; border-color: var(--ink); }
.tb-new .ic { color: #fff; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; padding-bottom: 0.5rem; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; color: var(--ink-2); padding: 0 0.2rem 0.5rem; font-size: var(--ui-s); }
.col-head b { color: var(--muted); font-weight: 400; margin-left: 0.3rem; }
.col-sum { font-family: var(--mono); font-size: var(--ui-xs); color: var(--muted); }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.55rem 0.6rem; margin-bottom: 0.5rem; box-shadow: var(--shadow-sm); }
.card-hot { border-color: var(--seal-line); box-shadow: var(--ring); }
.card-top { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.card-deal { color: var(--ink-2); margin-top: 0.15rem; }
.card-amt { font-family: var(--mono); font-size: var(--ui-s); color: var(--ink); margin-top: 0.25rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.45rem; color: var(--muted); font-size: var(--ui-xs); }
.card-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-xs); font: 600 9px/1 var(--sans); flex: none; letter-spacing: 0; }
.mono-1 { background: #E6E3DA; color: #4A4538; } .mono-2 { background: var(--ok-soft); color: var(--ok); } .mono-3 { background: var(--mark); color: var(--mark-text); } .mono-4 { background: var(--seal-soft); color: var(--seal-deep); }
.av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 9px/1 var(--sans); flex: none; letter-spacing: 0; vertical-align: -4px; margin-right: 0.3rem; }
.av-1 { background: #E6E3DA; color: #4A4538; } .av-2 { background: var(--ok-soft); color: var(--ok); } .av-3 { background: var(--mark); color: var(--mark-text); } .av-4 { background: var(--seal-soft); color: var(--seal-deep); }
.av-agent { width: 22px; height: 22px; background: var(--ink); color: #fff; font: 700 10px/1 var(--display); border-radius: var(--r-xs); }
.card-foot .av { margin: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 0.1rem 0.5rem; font-size: var(--ui-xs); font-weight: 500; white-space: nowrap; }
.tag-agent { background: var(--stone-2); color: var(--ink-2); }
.tag-propose { background: var(--mark); color: var(--mark-text); }
.tag-risk { background: var(--risk-soft); color: var(--risk); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.app-agents { border-left: 1px solid var(--rule); padding: 0.75rem; background: var(--stone); }
.agents-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: var(--t-sm); margin-bottom: 0.6rem; padding: 0 0.1rem; }
.live { font-size: var(--ui-xs); font-weight: 500; color: var(--ok); display: inline-flex; align-items: center; gap: 0.35rem; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.act { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0.6rem 0.65rem; margin-bottom: 0.5rem; transition: border-color var(--d) var(--ease); }
.act-needs { border-color: var(--seal-line); }
.act-dim { opacity: 0.72; border-style: dashed; }
.act-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.act-row .av { margin: 0; }
.act-who { font-weight: 600; font-size: var(--ui-s); display: flex; align-items: center; gap: 0.4rem; }
.act-when { color: var(--muted); font-size: var(--ui-xs); }
.act-needs .act-when { color: var(--seal-deep); }
.act-what { color: var(--ink-2); }
.act-btns { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.mini { display: inline-flex; align-items: center; height: 24px; border-radius: var(--r-xs); padding: 0 0.55rem; font-size: var(--ui-s); font-weight: 500; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--paper); transition: transform 90ms var(--ease), background-color 90ms; }
.mini-primary { background: var(--seal); color: #fff; border-color: var(--seal); }

/* facts line */
.frame-note { max-width: var(--max-wide); margin: 0.75rem auto 0; color: var(--muted); font-size: var(--t-xs); text-align: right; }
.defaults { max-width: var(--max); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2.5rem; border-top: 1px solid var(--rule-2); padding-top: 1.25rem; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.defaults b { display: block; color: var(--ink); font-weight: 600; font-size: var(--t-md); margin-bottom: 0.2rem; }

/* ---------------------------------------------------------------- AGENT rows */
.row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--rule); }
.row:first-of-type { grid-template-columns: 4fr 8fr; padding-top: 0; border-top: 0; }
.row:last-of-type { padding-bottom: 0; }
#agents.section { padding-bottom: clamp(2rem, 4vw, 3rem); }
.row-next .row-ui { box-shadow: var(--shadow-sm); border-style: dashed; }
.row > * { min-width: 0; }
.row-flip .row-copy { order: 2; }
.row-copy > p { color: var(--ink-2); line-height: 1.6; margin-top: 1rem; font-size: var(--t-md); text-wrap: pretty; max-width: 30rem; }
.wont { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: var(--t-sm); }
.wont .ic { margin-top: 3px; }
.row-ui { overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1rem 1.1rem; font-size: var(--ui); line-height: 1.45; box-shadow: var(--shadow-md); letter-spacing: -0.005em; transition: transform var(--d) var(--ease), box-shadow var(--d) var(--ease); }
@media (hover: hover) { .row:hover .row-ui { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.ui-bar { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.6rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
.ui-bar .av, .ui-bar .mono { margin: 0; }
.ui-right { margin-left: auto; color: var(--muted); font-size: var(--ui-s); white-space: nowrap; }
.ui-k { color: var(--muted); flex: none; min-width: 3.4rem; font-size: var(--ui-s); }
.ui-thread { color: var(--ink-2); margin: 0.35rem 0 0.75rem; font-size: var(--t-sm); line-height: 1.55; }
.ui-verdict { border-top: 1px solid var(--rule); padding-top: 0.4rem; }
.ui-vrow { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; flex-wrap: wrap; }
.ui-vrow + .ui-vrow { border-top: 1px dashed var(--rule); }
.ui-vactions { gap: 0.4rem; padding-top: 0.6rem; }
.ui-field { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.ui-body { color: var(--ink-2); padding: 0.7rem 0; font-size: var(--t-sm); line-height: 1.55; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.12rem 0.55rem; font-size: var(--ui-xs); font-weight: 500; white-space: nowrap; line-height: 1.5; }
.chip-propose { background: var(--mark); color: var(--mark-text); }
.chip-risk { background: var(--risk-soft); color: var(--risk); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-plain { background: var(--stone-2); color: var(--ink-2); }
.ui-seq { display: grid; gap: 0.35rem; margin-top: 0.4rem; }
.seq-step { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.55rem; border-radius: var(--r-sm); border: 1px solid var(--rule); color: var(--ink-2); }
.seq-step i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-2); font-size: 9px; font-weight: 600; color: var(--muted); flex: none; }
.seq-step span { margin-left: auto; color: var(--muted); font-size: var(--ui-xs); text-align: right; }
.seq-done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.seq-now { border-color: var(--seal-line); color: var(--ink); font-weight: 500; box-shadow: var(--ring); }
.seq-now i { background: var(--seal); border-color: var(--seal); color: #fff; }

/* CTA strip */
.strip { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.strip p { font: 700 var(--t-lg)/1.2 var(--display); letter-spacing: -0.02em; }
.strip + .section { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------------------------------------------------------------- WORKFLOW (the one dark band) */
.section-dark { background: var(--char); color: var(--char-text); }
.section-dark .section-head p { color: var(--char-muted); }
.section-dark .ui-k { color: var(--char-muted); }
.section-dark .eyebrow { color: var(--char-muted); }
.section-dark .st-next { background: rgba(255, 255, 255, 0.1); color: var(--char-muted); }
.canvas { border: 1px solid var(--char-line); border-radius: var(--r-lg); background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 16px 16px, var(--char-2); overflow: hidden; }
.canvas-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--char-line); font-size: var(--ui); }
.canvas-bar .chip-ok { background: rgba(46, 107, 75, 0.35); color: var(--char-ok); }
.flow { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.flow-row { display: flex; align-items: stretch; width: 100%; }
.flow-row-back { flex-direction: row-reverse; }
.flow-row-back .edge { transform: scaleX(-1); transform-origin: center; }
.node-turn { position: relative; }
.node-turn::after { content: ""; position: absolute; left: 50%; bottom: -1rem; width: 2px; height: 1rem; background: var(--char-line-2); }
.node { flex: 1 1 0; min-width: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--char-line); border-radius: var(--r-md); padding: 0.8rem 0.9rem; font-size: var(--ui); line-height: 1.35; color: var(--char-text); min-height: 4.6rem; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; transition: border-color var(--d) var(--ease), background-color var(--d) var(--ease); }
.node.lit { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.09); }
.node-k { display: flex; align-items: center; gap: 0.35rem; font-size: var(--ui-s); font-weight: 600; color: var(--char-muted); margin-bottom: 0.15rem; }
.node-k .ic { width: 14px; height: 14px; color: inherit; }
.node-trigger { border-color: rgba(255, 255, 255, 0.3); }
.node-cond { border-style: dashed; }
.node-human { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 0 0 1px var(--seal); }
.node-human .node-k { color: var(--seal-deep); }
.node-human .src { margin-top: 0.2rem; align-self: flex-start; }
.node-human.lit { background: var(--paper); box-shadow: 0 0 0 3px rgba(196, 56, 28, 0.35); border-color: var(--seal); }
.node-end { border-color: rgba(158, 217, 184, 0.5); }
.node-end .node-k { color: var(--char-ok); }
.edge { flex: 0 0 26px; align-self: center; height: 1px; background: var(--char-line-2); position: relative; transform-origin: left; }
.edge::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left-color: rgba(255, 255, 255, 0.85); }
.canvas.armed .edge, .canvas.armed .node-turn::after { opacity: 0; }
.canvas.run .node-turn::after { animation: draw 260ms linear forwards; animation-delay: var(--delay, 1260ms); }
.canvas.run .edge { opacity: 0; animation: draw 260ms linear forwards; animation-delay: var(--delay, 0ms); }
@keyframes draw { to { opacity: 1; } }
.flow-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; color: var(--char-muted); font-size: var(--t-md); line-height: 1.6; }
.flow-notes b { color: var(--char-text); display: block; margin-bottom: 0.2rem; }

/* ---------------------------------------------------------------- THE CRM */
.table-wrap { margin-bottom: 1.25rem; }
.tile-ui { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; font-size: var(--ui); letter-spacing: -0.005em; box-shadow: var(--shadow-md); }
.tile-tb { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--rule); background: var(--stone); }
.tile-tb .ui-k { min-width: 0; }
.tile-tb .tb:first-of-type { margin-left: auto; }
.tr { display: grid; grid-template-columns: 22px 2.2fr 1fr 1.3fr 0.9fr 0.7fr 0.6fr 32px; gap: 0.5rem; padding: 0.5rem 0.9rem; align-items: center; white-space: nowrap; }
.tr > span:nth-child(2) { display: block; overflow: hidden; text-overflow: ellipsis; }
.tr > span:nth-child(2) .mono { vertical-align: -4px; margin-right: 0.4rem; }
.tr + .tr { border-top: 1px solid var(--rule); }
.th { background: var(--stone); color: var(--muted); font-weight: 500; font-size: var(--ui-s); }
.cb { width: 14px; height: 14px; border: 1px solid var(--rule-2); border-radius: var(--r-xs); background: var(--paper); }
.num { font-family: var(--mono); font-size: var(--ui-s); }
.tile-foot { display: flex; padding: 0.5rem 0.9rem; color: var(--muted); font-size: var(--ui-s); border-top: 1px solid var(--rule); background: var(--stone); }
.tr .av { margin: 0; }
.tr > .chip, .tr > .tag { justify-self: start; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.tile h3 { font-family: var(--sans); font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule-2); margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.tile p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.tile-next { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; color: var(--muted); }

/* ---------------------------------------------------------------- ASK */
.ask { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ask-copy p:last-child { color: var(--ink-2); font-size: var(--t-md); line-height: 1.6; margin-top: 1rem; text-wrap: pretty; max-width: 30rem; }
.chat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-md); font-size: var(--ui); display: grid; gap: 0.75rem; padding: 0 0 0.9rem; overflow: hidden; letter-spacing: -0.005em; }
.chat-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rule); background: var(--stone); }
.chat-bar .ic { color: var(--seal); }
.chat-q { justify-self: end; background: var(--ink); color: #fff; border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg); padding: 0.7rem 0.95rem; max-width: 78%; margin: 0 0.9rem; font-size: var(--t-sm); }
.chat-think { display: none; gap: 4px; margin: 0 0.9rem; padding: 0.6rem 0.9rem; grid-row: 3; grid-column: 1; align-self: start; min-height: 2.5rem; }
.chat-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); animation: blink 900ms steps(1) infinite; }
.chat-think i:nth-child(2) { animation-delay: 300ms; } .chat-think i:nth-child(3) { animation-delay: 600ms; }
@keyframes blink { 0%, 66% { opacity: 0.35; } 33% { opacity: 1; } }
.chat.thinking .chat-think { display: flex; }
.chat.thinking .chat-a { opacity: 0; }
.chat-a { grid-row: 3; grid-column: 1; background: var(--stone-2); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs); padding: 0.85rem 0.95rem; display: grid; gap: 0.55rem; color: var(--ink-2); margin: 0 0.9rem; font-size: var(--t-sm); line-height: 1.55; transition: opacity var(--d) var(--ease); }
.chat.pending .chat-a { opacity: 0; }
.chat-a p:first-child { color: var(--ink); font-weight: 500; }
.chat-link { color: var(--seal-deep); font-weight: 500; border-bottom: 1px solid var(--seal-line); }
.chat-cites { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-composer { grid-row: 4; display: flex; align-items: center; justify-content: space-between; margin: 0 0.9rem; height: 36px; padding: 0 0.75rem; border: 1px solid var(--rule-2); border-radius: var(--r-sm); color: var(--muted); }
.chat-composer .ic { color: var(--seal); }

/* ---------------------------------------------------------------- TRUST ledger */
.ledger { margin: 0 auto; border-top: 2px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: 14rem 1fr auto; gap: 1rem 2rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule-2); }
.ledger dt { font: 700 var(--t-lg)/1.3 var(--display); letter-spacing: -0.02em; }
.ledger dd { margin: 0; color: var(--ink-2); line-height: 1.6; display: contents; }
.ledger dd p { max-width: 36rem; }
.ledger dd .src { font-size: var(--ui-s); text-decoration: none; justify-self: end; }
a.src:hover { border-color: var(--seal); color: var(--seal-deep); }

/* ---------------------------------------------------------------- STATUS */
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
.status-col { border-top: 2px solid var(--ink); padding: 1rem 0 0; }
.status-col h3 { margin-bottom: 0.9rem; font-size: var(--t-md); }
.status-col li { position: relative; padding: 0.6rem 0 0.6rem 1rem; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.status-col li .src { flex: none; }
.status-col li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.status-col:nth-child(1) li::before { background: var(--ok); }
.status-col:nth-child(2) li::before { background: var(--mark-deep); }
.status-col li:first-child { border-top: 0; }

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-2); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font-weight: 600; font-size: var(--t-md); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 1.5rem; color: var(--seal); transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.25rem; max-width: 40rem; line-height: 1.6; }

/* ---------------------------------------------------------------- CTA / waitlist */
.section-cta { background: var(--stone-2); border-top: 1px solid var(--rule); }
.section-cta input, .section-cta textarea, .section-cta select { background: var(--paper); border-color: var(--rule); }
.cta-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cta-copy p { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; margin-top: 1rem; max-width: 26rem; text-wrap: pretty; }
.terms { margin-top: 1.5rem; display: grid; gap: 0.6rem; color: var(--ink-2); font-size: var(--t-md); }
.terms li { display: flex; align-items: center; gap: 0.6rem; }
.terms .ic { color: var(--ok); }
.wl-form { display: grid; gap: 1rem; padding: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.field { display: grid; gap: 0.4rem; }
.field label { font: 500 var(--ui-s)/1.3 var(--mono); letter-spacing: 0.02em; color: var(--ink-2); }
.optional { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="email"], input[type="text"], textarea, select { font: 400 var(--t-md)/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 0.75rem 0.9rem; width: 100%; min-height: 2.75rem; transition: box-shadow var(--d-fast), border-color var(--d-fast); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235B6170' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--seal); box-shadow: var(--ring); }
input.flash { animation: flash 600ms var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(196, 56, 28, 0.4); } 100% { box-shadow: 0 0 0 10px rgba(196, 56, 28, 0); } }
textarea { resize: vertical; }
.field-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wl-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wl-status { font-size: var(--t-sm); color: var(--muted); min-height: 1.4em; }
.wl-status.ok { color: var(--ok); font-weight: 500; }
.wl-status.err { color: var(--risk); }
.wl-consent { color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.wl-form.sent .field, .wl-form.sent .field-row, .wl-form.sent .btn, .wl-form.sent .wl-consent { display: none; }
.wl-form.sent .wl-status { font-size: var(--t-lg); }

/* ---------------------------------------------------------------- Footer */
.foot { border-top: 1px solid var(--rule); padding: 3rem var(--gutter) 2rem; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; }
.foot-brand p { color: var(--muted); margin-top: 0.75rem; max-width: 22rem; font-size: var(--t-sm); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot-h { font-size: var(--t-sm); font-weight: 600; margin-bottom: 0.6rem; }
.foot-cols a { display: block; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); padding: 0.2rem 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-legal { max-width: var(--max); margin: 2.5rem auto 0; color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }

/* ---------------------------------------------------------------- Privacy page */
.prose { max-width: 42rem; padding-top: 3rem; padding-bottom: 5rem; margin: 0 auto; }
.top-inner > .top-actions:nth-child(2) { margin-left: auto; }
.top-back { font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; }
.top-back:hover { color: var(--ink); }
.foot-nav { display: flex; gap: 1.5rem; }
.foot-nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 0.9rem; list-style: disc; }

/* ---------------------------------------------------------------- Motion guard */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr 260px; }
  .app-side { display: none; }
  .approval-ctx .ui-right { display: none; }
  .tb-search { display: none; }
  .tr { grid-template-columns: 22px 2fr 1fr 1.2fr 32px; }
  .tr > span:nth-child(5), .tr > span:nth-child(6), .tr > span:nth-child(7) { display: none; }
  .defaults { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
  .ledger > div { grid-template-columns: 12rem 1fr; }
  .ledger dd .src { grid-column: 2; justify-self: start; }
}
@media (max-width: 900px) {
  .nav, .top-actions:has(.menu) .top-login { display: none; }
  .top-actions { margin-left: auto; }
  .menu { display: block; }
  .approval { margin-top: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-agents { border-left: 0; border-top: 1px solid var(--rule); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .row, .row:first-of-type, .row-flip .row-copy { grid-template-columns: 1fr; order: 0; }
  .ask, .faq-wrap, .cta-inner, .foot-inner, .status { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .flow-row, .flow-row-back { flex-direction: column; gap: 0.5rem; }
  .node { flex: none; }
  .edge, .node-turn::after { display: none; }
  .flow-notes { grid-template-columns: 1fr; }
  .ledger > div { grid-template-columns: 1fr; gap: 0.4rem; }
  .ledger dd .src { grid-column: 1; }
}
@media (max-width: 600px) {
  .tiles, .foot-cols, .field-row, .facts { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .board .col:first-child, .board .col:last-child { display: none; }
  .tb-search, .tb-new { display: none; }
  .tile-tb, .canvas-bar { flex-wrap: wrap; }
  .hero-form { flex-direction: column; }
  .tr { grid-template-columns: 22px 1.6fr 1fr; }
  .tr > span:nth-child(3), .tr > span:nth-child(n+5) { display: none; }
  .strip p { font-size: var(--t-md); }
  .ui-vrow { flex-wrap: wrap; }
  .ui-bar { white-space: normal; flex-wrap: wrap; }
  .ui-bar .ui-right, .canvas-bar .ui-right { margin-left: 0; width: 100%; }
  .tb-ask kbd { display: none; }
  .status { grid-template-columns: 1fr; gap: 1.5rem; }
  .defaults { grid-template-columns: 1fr; gap: 1rem; }
}
