/* Intellimand — editorial white layout, Intellimand palette (navy, gold, teal), Exo 2 display + Manrope text, black-and-white photography. Loads after style.css. */
:root {
  --paper: #FFFFFF; --panel: #FFFFFF; --field: #F6F6F6;
  --ink: #1D2B36; --ink-2: #33434F; --muted: #66737D; --faint: #9AA4AC;
  --rule: #E6E6E6; --rule-soft: #EFEFEF; --panel-border: #E9E9E9;
  --accent: #2F7A70; --accent-ink: #1F5E55; --signal: #2F7A70; --gold: #B48A3C; --gold-soft: #D4B06A; --navy: #1D2B36; --teal-soft: #6FC2B4;
  --display: "Exo 2", "Manrope", Arial, sans-serif;
  --label: "Manrope", Arial, sans-serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;
  --serif: var(--display); --mono: "Manrope", Arial, Helvetica, sans-serif;
  --shadow: none; --radius: 4px; --max: 1200px;
}
html, body { background: #fff; }
body { font-family: var(--sans); font-size: 14px; color: var(--ink); line-height: 1.6; }

/* type */
.disp { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 0.98; color: var(--ink); }
.h1 { font-size: 40px; } .h2 { font-size: 30px; } .h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
@media (min-width: 900px) { .h1 { font-size: 64px; } .h2 { font-size: 36px; } }
.eyebrow { font-family: var(--label); font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.lead { font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--muted); font-weight: 400; }
.mono { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.src, .note, .tiny { color: var(--muted); }

/* header: wordmark with accent full stop */
.top { background: #fff; border-bottom: 0; padding: 22px var(--gutter); }
.brand .emblem { display: block; flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.01em; line-height: 1; color: var(--navy); }
.wordmark .mand { color: var(--gold); }
.brand-txt { display: flex; flex-direction: column; gap: 6px; }
b.ai { font-weight: 700; color: var(--accent); }
.nav a { font-family: var(--label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.nav a.on { color: var(--accent); border-bottom: 0; }
.nav .tenant { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--faint); }

/* stage indicator: numbered line, not boxed stamps */
.stamps { gap: 0; margin: 4px 0 28px; border-bottom: 1px solid var(--rule); }
.stamp { border: 0; border-radius: 0; background: none; padding: 0 22px 12px 0; margin-right: 22px; font-family: var(--label); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); position: relative; }
.stamp b { font-family: var(--display); font-size: 13px; color: inherit; margin-right: 6px; letter-spacing: 0; }
.stamp.on { background: none; color: var(--ink); }
.stamp.on::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -1px; height: 3px; background: var(--gold); }
.stamp.off { color: #CFCFCF; border: 0; }

/* sections: whitespace and a thin top rule, no boxes */
.page > .sec, .cols > div > .sec, .card, .cols > div > .card, .page > .card { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.sec { margin-top: 44px; }
.sec > .eyebrow:first-child + *, .sec-h { }
.sec-title { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--accent); margin: 0 0 14px; }
.sec-title .cnt { font-family: var(--label); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; color: var(--faint); margin-left: 10px; vertical-align: middle; }
.ledger { border-top: 1px solid var(--ink); }
.row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cols > div > .eyebrow + .ledger, .cols > div > .ledger:first-child, .tblwrap { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.cols > div > .eyebrow + .ledger { border-top: 1px solid var(--ink); }

/* figures: huge, black, no box */
.four > .fig, .two > .fig { background: none; border: 0; box-shadow: none; padding: 0; border-top: 1px solid var(--ink); padding-top: 12px; border-radius: 0; }
.fig .n, .fig .n.mono { font-family: var(--display); font-size: 56px; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.fig .n.signal { color: var(--accent); }
.fig .disp.h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }

/* controls */
.inp, .sel, .ta { height: 48px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #DADADA; border-radius: 4px; padding: 0 16px; box-shadow: none; transition: border-color 150ms, box-shadow 150ms; }
.ta { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.6; }
.inp:hover, .sel:hover, .ta:hover { border-color: #BDBDBD; }
.inp:focus, .sel:focus, .ta:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 122, 112, 0.14); }
.inp::placeholder, .ta::placeholder { color: #B3B3B3; }
.sel { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff 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.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
label.lb { font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }

.btn { height: 48px; font-family: var(--sans); font-size: 14px; font-weight: 400; border-radius: 999px; padding: 0 28px; border: 1px solid var(--accent); color: var(--accent); background: #fff; box-shadow: none; transition: background 150ms, color 150ms; }
.btn:hover { background: var(--accent); color: #fff; }
.btn.pri { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.pri:hover { background: var(--accent); border-color: var(--accent); }
.btn.sm { height: 34px; padding: 0 16px; font-size: 12px; }
.btn[disabled] { border-color: #D9D9D9; color: #BDBDBD; background: #fff; opacity: 1; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }
.actions .btn { flex: none; }
.lnk { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(47, 122, 112, 0.35); }
.lnk:hover { border-bottom-color: var(--accent); }
.chip { font-family: var(--sans); font-size: 13px; border-radius: 999px; padding: 7px 16px; border: 1px solid #DADADA; background: #fff; color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.drop { border: 1px dashed #CFCFCF; border-radius: 4px; background: #FAFAFA; padding: 22px; }
.status .dot.ok { background: var(--accent); }
.demo { background: #fff; border-top: 1px solid var(--rule); font-family: var(--label); font-size: 10px; letter-spacing: 0.06em; color: var(--faint); }

/* art hero: black-and-white photograph with a swept corner, headline overlapping the edge */
.art-hero { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 calc(var(--gutter) * -1) 48px; }
.art-hero figure { margin: 0; position: relative; height: 320px; overflow: hidden; border-bottom-right-radius: 160px; }
.art-hero img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.18) contrast(0.88); display: block; }
.art-hero figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 55%, rgba(255,255,255,0.78) 100%); pointer-events: none; }
.art-hero .credit { position: absolute; left: 12px; bottom: 10px; font-family: var(--label); font-size: 9px; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); text-transform: uppercase; }
.art-hero .txt { padding: 28px var(--gutter) 0; }
.art-hero .disp { font-size: 44px; }
@media (min-width: 900px) {
  .art-hero { grid-template-columns: 46% 54%; margin: -22px 0 64px calc(var(--gutter) * -1 - max(0px, (100vw - var(--max)) / 2)); min-height: 520px; }
  .art-hero figure { height: auto; min-height: 520px; border-bottom-right-radius: 240px; }
  .art-hero .txt { padding: 150px 0 0 0; margin-left: -120px; position: relative; z-index: 2; }
  .art-hero .disp { font-size: 76px; }
  .art-hero .lead { max-width: 440px; margin-left: 120px; margin-top: 22px; }
  .art-hero .hero-actions { margin-left: 120px; }
  .art-hero .txt > .eyebrow { margin-left: 120px; }
}
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 34px; }
.hero-meta div { border-top: 1px solid var(--ink); padding-top: 10px; min-width: 120px; }
@media (min-width: 900px) { .hero-meta { margin-left: 120px; } }
.hero-meta .n { font-family: var(--display); font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.hero-meta .n.signal { color: var(--accent); }

/* signal ledger: score deltas as a small bar */
.wbar { display: inline-block; height: 6px; background: var(--accent); vertical-align: middle; margin-right: 8px; border-radius: 3px; }
.wbar.neg { background: #C0392B; }

/* home masthead */
.masthead .disp { font-size: 46px; }
.masthead .eyebrow.by { color: var(--accent); letter-spacing: 0.24em; }
@media (min-width: 900px) {
  .masthead { min-height: calc(100vh - 90px); grid-template-columns: 52% 48%; margin-top: -22px; }
  .masthead figure { min-height: calc(100vh - 90px); border-bottom-right-radius: 320px; }
  .masthead .txt { padding-top: 22vh; margin-left: -160px; }
  .masthead .disp { font-size: 84px; max-width: 720px; }
  .masthead .txt > .eyebrow, .masthead .lead, .masthead .hero-actions, .masthead .note { margin-left: 160px; }
  .masthead .lead { max-width: 440px; }
}
.page > .cols .moves .row .k { font-family: var(--display); color: var(--accent); }
.four > .fig .n, .two > .fig .n { margin: 6px 0 0; }
.masthead .txt > .eyebrow + .eyebrow { margin-top: -2px; }

/* compact hero for vendor and D3 pages */
.art-hero.compact figure { height: 240px; border-bottom-right-radius: 140px; }
@media (min-width: 900px) {
  .art-hero.compact { min-height: 360px; grid-template-columns: 38% 62%; margin-bottom: 48px; }
  .art-hero.compact figure { min-height: 360px; border-bottom-right-radius: 200px; }
  .art-hero.compact .txt { padding-top: 96px; margin-left: -90px; }
  .art-hero.compact .txt > .eyebrow, .art-hero.compact .lead { margin-left: 90px; }
  .art-hero.compact .disp { font-size: 58px; }
}
/* the stamps row sits above the D2/D3 hero, which bleeds to the left edge */
.page > .stamps + .art-hero, .brief > .art-hero { margin-top: 0; }

/* byline next to the wordmark */
.brand { gap: 14px; align-items: center; }
.brand .byline { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.brand .byline em { font-style: normal; color: var(--faint); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--rule); }
@media (max-width: 720px) { .brand .byline em { display: none; } .wordmark { font-size: 22px; } .brand .emblem { height: 40px !important; } }

/* cloud sync status */
.sync { position: fixed; left: 16px; bottom: 16px; z-index: 50; font: 12px/1 "Manrope", Arial, sans-serif; padding: 8px 12px; border-radius: 999px; background: #fff; border: 0.5px solid var(--rule); color: var(--muted); transition: opacity .3s; }
.sync.idle { opacity: 0; pointer-events: none; }
.sync.saving { color: var(--ink); }
.sync.saved { color: var(--signal); }
.sync.error, .sync.offline { color: var(--warn); border-color: var(--warn); }

/* D3 call script */
.ce { outline: none; border-radius: 4px; padding: 2px 4px; margin: 2px -4px 6px; transition: background .15s; }
.ce:hover { background: rgba(0,0,0,.03); }
.ce:focus { background: #fff; box-shadow: 0 0 0 1px var(--rule); }
details.obj { border-bottom: 0.5px solid var(--rule); padding: 10px 0; }
details.obj summary { cursor: pointer; list-style: none; font-size: 14px; }
details.obj summary::-webkit-details-marker { display: none; }
details.obj summary::before { content: "+"; display: inline-block; width: 16px; color: var(--muted); }
details.obj[open] summary::before { content: "–"; }

/* Intellimand brand touches */
.chip.on { background: var(--navy); border-color: var(--navy); }
.masthead .eyebrow.by { color: var(--gold); }
.page > .cols .moves .row .k { color: var(--gold); }
.hero .emblem { margin: 0 auto; display: block; }
.hero .wm { margin: 14px 0 0; } .hero .wm .wordmark { font-size: 44px; }
.hero .by { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.top { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); }
.fig .n, .fig .n.mono, .hero-meta .n { letter-spacing: -0.02em; }
.hero-meta .n { margin: 8px 0 0; }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .brand .byline { display: none; }
  .top .nav { width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 2px; white-space: nowrap; }
}

/* home: collapsible stages */
.stages { border-top: 1px solid var(--ink); }
details.stage { border-bottom: 1px solid var(--rule); }
details.stage summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 180px) 1fr 28px; align-items: baseline; gap: 12px; padding: 22px 0; }
details.stage summary::-webkit-details-marker { display: none; }
details.stage summary:hover .nm { color: var(--accent); }
details.stage summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
details.stage .k { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--gold); line-height: 1; }
details.stage .nm { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1.1; }
details.stage .tg { color: var(--muted); font-size: 15px; }
details.stage .pm { position: relative; width: 18px; height: 18px; align-self: center; justify-self: end; }
details.stage .pm::before, details.stage .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--accent); transition: transform 200ms; }
details.stage .pm::after { transform: rotate(90deg); }
details.stage[open] .pm::after { transform: rotate(0deg); }
details.stage .body { padding: 0 0 28px 76px; }
details.stage .what { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 78ch; margin: 0 0 20px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three p { margin: 0 0 6px; }
.three > div > p:not(.eyebrow) { color: var(--ink-2); line-height: 1.6; }
.three .eyebrow { color: var(--accent); font-weight: 700; }
ul.ticks { margin: 0; padding: 0; list-style: none; }
ul.ticks li { position: relative; padding-left: 18px; margin: 0 0 8px; line-height: 1.55; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-soft); }
.roles > div { border-top: 1px solid var(--ink); padding-top: 12px; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
ol.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 12px; color: var(--ink-2); line-height: 1.6; }
ol.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--gold); margin-bottom: 6px; }
ol.steps b { color: var(--ink); }
.disclaim { margin: 48px 0 8px; padding: 18px 22px; background: #F3F4F1; border-left: 3px solid var(--gold); }
.disclaim p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.home-more .sec:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .three, ol.steps { grid-template-columns: 1fr; gap: 18px; }
  details.stage summary { grid-template-columns: 48px 1fr 24px; }
  details.stage .tg { grid-column: 2 / 3; font-size: 14px; }
  details.stage .pm { grid-row: 1; grid-column: 3; }
  details.stage .k { font-size: 24px; } details.stage .nm { font-size: 20px; }
  details.stage .body { padding-left: 0; }
}

/* legal pages */
.legal { max-width: 820px; }
.legal .lead { margin-top: 14px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 13px; }
.legal .toc a { color: var(--accent); text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal .sec { margin-top: 36px; scroll-margin-top: 20px; }
.legal .sec p, .legal .sec li { font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 72ch; }
.legal .sec b { color: var(--ink); }

/* sign-up agreement and footer links */
label.agree { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
label.agree input { margin-top: 3px; accent-color: var(--accent); }
.demo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.demo a:hover { color: var(--accent); }
