/* ===== MPIP Dashboard — Shared Styles ===== */

:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #181d23;
  --panel-3: #1d242c;
  --line: #1f262e;
  --line-2: #2a323b;
  --line-3: #3a444f;
  --ink: #e6e9ee;
  --ink-dim: #9aa3ad;
  --ink-mute: #6b737d;
  --accent: #f5a524;
  --accent-2: #ffd166;
  --ok: #22c55e;
  --warn: #f59e0b;
  --crit: #ef4444;
  --info: #38bdf8;
  --violet: #a78bfa;
  --p0: #ef4444;
  --p1: #f59e0b;
  --p2: #6b7280;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); margin: 0; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOPNAV ===== */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,13,16,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 12px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 14px/1 inherit; color: var(--ink);
  letter-spacing: 0.04em;
}
.brand .logo {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--accent), #c47803);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #000; font: 800 12px/1 inherit;
}
.brand small { color: var(--ink-mute); font-weight: 400; margin-left: 6px; letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink-dim);
  font: 500 13px/1 inherit;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.nav-links a:hover { background: var(--panel); color: var(--ink); }
.nav-links a.active { background: var(--panel); color: var(--accent-2); }
.nav-meta { font-size: 11px; color: var(--ink-mute); display: flex; gap: 12px; align-items: center; }
.nav-meta b { color: var(--ok); font-weight: 600; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1320px; margin: 0 auto; padding: 32px 28px 80px; }
header.hero { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 32px; }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
h1 { font: 600 36px/1.15 inherit; margin: 8px 0 6px; letter-spacing: -0.02em; }
h2 { font: 600 22px/1.2 inherit; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font: 600 14px/1.3 inherit; margin: 0 0 8px; color: var(--ink); letter-spacing: 0; }
.sub { color: var(--ink-dim); max-width: 920px; font-size: 15px; }
.meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--ink-mute); }
.meta b { color: var(--ink); font-weight: 600; }

section { margin-top: 44px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; flex-wrap: wrap; }
.section-header .hint { font-size: 12px; color: var(--ink-mute); }

/* ===== GLOSSARY & POPOVER ===== */
.g {
  border-bottom: 1px dotted var(--line-3);
  cursor: help;
  color: inherit;
  text-decoration: none;
}
.g:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

#pop {
  position: fixed;
  z-index: 9999;
  max-width: 360px;
  background: #0e1318;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  padding: 14px 16px;
  font: 12px/1.55 inherit;
  color: var(--ink-dim);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
#pop.show { opacity: 1; transform: translateY(0); }
#pop .ptitle { color: var(--ink); font: 600 13px/1.3 inherit; margin-bottom: 6px; letter-spacing: -0.005em; }
#pop .pkv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin-top: 8px; font-size: 11px; }
#pop .pkv b { color: var(--ink-mute); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px; }

/* ===== KPIs ===== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; cursor: help; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: var(--line-3); transform: translateY(-1px); }
.kpi .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.kpi .value { font: 600 28px/1.1 inherit; margin-top: 8px; letter-spacing: -0.01em; }
.kpi .value small { font-size: 13px; color: var(--ink-dim); font-weight: 400; margin-left: 6px; }
.kpi .delta { margin-top: 6px; font-size: 12px; color: var(--ok); }
.kpi .delta.warn { color: var(--warn); }
.kpi .delta.crit { color: var(--crit); }
.kpi.accent { background: linear-gradient(180deg, rgba(245,165,36,0.07), rgba(245,165,36,0) 70%), var(--panel); border-color: rgba(245,165,36,0.35); }

/* ===== PROCESS GRID ===== */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.proc { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; position: relative; cursor: help; transition: border-color .15s, transform .15s; }
.proc:hover { border-color: var(--line-3); transform: translateY(-1px); }
.proc .num { font: 600 11px/1 inherit; color: var(--ink-mute); letter-spacing: 0.1em; }
.proc .name-en { font: 600 14px/1.25 inherit; margin: 4px 0 2px; }
.proc .name-he { font: 400 12px/1.3 inherit; color: var(--ink-dim); direction: rtl; text-align: left; }
.proc .role { font-size: 11px; color: var(--ink-mute); margin-top: 8px; }
.proc .pill { position: absolute; top: 12px; right: 12px; font: 600 10px/1 inherit; padding: 4px 6px; border-radius: 4px; letter-spacing: 0.08em; }
.pill.p0 { background: rgba(239,68,68,0.12); color: var(--p0); border: 1px solid rgba(239,68,68,0.3); }
.pill.p1 { background: rgba(245,158,11,0.12); color: var(--p1); border: 1px solid rgba(245,158,11,0.3); }
.pill.p2 { background: rgba(107,114,128,0.16); color: var(--p2); border: 1px solid rgba(107,114,128,0.3); }

/* ===== ARCHITECTURE LAYERS ===== */
.arch { display: grid; grid-template-columns: 1fr; gap: 10px; }
.layer { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: relative; }
.layer .layer-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.layer h3 { margin: 6px 0 12px; font-size: 16px; }
.layer .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 12px; color: var(--ink-dim); cursor: help; transition: border-color .12s, transform .12s; }
.item:hover { border-color: var(--line-3); transform: translateY(-1px); }
.item b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; font-size: 13px; }
.layer.l1 { border-left: 3px solid var(--accent); }
.layer.l2 { border-left: 3px solid var(--info); }
.layer.l3 { border-left: 3px solid var(--ok); }
.layer.l4 { border-left: 3px solid var(--violet); }

/* ===== INTEGRATIONS ===== */
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.integ { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: help; transition: border-color .15s, transform .15s; }
.integ:hover { border-color: var(--line-3); transform: translateY(-1px); }
.integ .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.integ .name { font: 600 14px/1 inherit; }
.integ .tag { font: 600 10px/1 inherit; padding: 4px 6px; border-radius: 4px; letter-spacing: 0.06em; color: var(--ink-dim); border: 1px solid var(--line-2); background: var(--panel-2); }
.integ .desc { font-size: 12px; color: var(--ink-dim); margin-top: 8px; line-height: 1.5; }
.integ .mech { font-size: 11px; color: var(--ink-mute); margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.integ.p0 { border-left: 3px solid var(--p0); }
.integ.p1 { border-left: 3px solid var(--p1); }

/* ===== PHASES ===== */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phase { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: help; transition: border-color .15s, transform .15s; }
.phase:hover { border-color: var(--line-3); transform: translateY(-1px); }
.phase .pname { font: 600 13px/1.2 inherit; }
.phase .prange { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; margin-top: 2px; text-transform: uppercase; }
.phase ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-dim); }
.phase ul li { margin: 4px 0; padding-left: 12px; position: relative; }
.phase ul li:before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.phase .exit { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 11px; color: var(--ink-mute); }
.phase .exit b { color: var(--ok); }

/* ===== RISKS ===== */
.risks { display: grid; grid-template-columns: 1fr; gap: 8px; }
.risk { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: help; transition: border-color .15s, transform .15s; }
.risk:hover { border-color: var(--line-3); transform: translateY(-1px); }
.risk .idx { font: 600 11px/1 inherit; color: var(--ink-mute); }
.risk .title { font-size: 13px; font-weight: 500; }
.risk .mit { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.badge { font: 600 10px/1 inherit; padding: 5px 7px; border-radius: 4px; letter-spacing: 0.08em; text-align: center; min-width: 64px; }
.b-h-crit { background: rgba(239,68,68,0.14); color: var(--crit); border: 1px solid rgba(239,68,68,0.3); }
.b-h-high { background: rgba(245,158,11,0.14); color: var(--warn); border: 1px solid rgba(245,158,11,0.3); }
.b-h-med  { background: rgba(56,189,248,0.12); color: var(--info); border: 1px solid rgba(56,189,248,0.3); }
.b-h-low  { background: rgba(107,114,128,0.18); color: var(--ink-dim); border: 1px solid rgba(107,114,128,0.3); }
.risk.top { background: linear-gradient(180deg, rgba(239,68,68,0.05), rgba(0,0,0,0)), var(--panel); border-color: rgba(239,68,68,0.25); }

/* ===== GENERIC PANELS ===== */
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.panel h3 { margin-bottom: 12px; font-size: 14px; }
.panel ul { padding-left: 18px; margin: 0; }
.panel ul li { color: var(--ink-dim); margin: 6px 0; font-size: 13px; }
.panel ul li b { color: var(--ink); font-weight: 600; }

/* ===== PERSONAS ===== */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.persona { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: help; transition: border-color .15s, transform .15s; }
.persona:hover { border-color: var(--line-3); transform: translateY(-1px); }
.persona .role { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.persona .who { font: 600 16px/1.2 inherit; margin-top: 4px; }
.persona .what { font-size: 12px; color: var(--ink-dim); margin-top: 10px; line-height: 1.55; }

/* ===== SKETCHES ===== */
.sketches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sketches.single { grid-template-columns: 1fr; }
.sketch { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.sketch-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.sketch-head h3 { font-size: 13px; }
.sketch-head .stag { font: 600 10px/1 inherit; padding: 4px 6px; border-radius: 4px; letter-spacing: 0.08em; background: rgba(56,189,248,0.1); color: var(--info); border: 1px solid rgba(56,189,248,0.25); }
.sketch-head .stag.host { background: rgba(167,139,250,0.1); color: var(--violet); border-color: rgba(167,139,250,0.25); }
.device { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.device-body { padding: 14px; }
.device-body.rtl { direction: rtl; text-align: right; }
.sketch-notes { font-size: 11px; color: var(--ink-mute); margin-top: 10px; line-height: 1.6; }
.sketch-notes b { color: var(--accent-2); font-weight: 600; }
.sketch-notes ul { margin: 4px 0; padding-left: 16px; }

/* ===== M365 SURFACE CHROME ===== */
.m365-bar {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #1f2329, #181c22);
  padding: 6px 10px; border-bottom: 1px solid var(--line-2);
  font-size: 11px; color: var(--ink-dim);
}
.m365-bar .waffle {
  width: 14px; height: 14px;
  background-image: radial-gradient(circle, var(--ink-mute) 1.2px, transparent 1.4px);
  background-size: 5px 5px; background-position: 0 0;
  opacity: .7;
}
.m365-bar .ms-logo { font: 700 11px/1 inherit; color: #5b8def; letter-spacing: 0.02em; }
.m365-bar .ms-logo span { color: #ec6f6f; }
.m365-bar .app-name { color: var(--ink); font-weight: 600; font-size: 11px; }
.m365-bar .sep { color: var(--ink-mute); }
.m365-bar .search { flex: 1; max-width: 240px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px; font-size: 10px; color: var(--ink-mute); }
.m365-bar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-mute); }
.m365-bar .avatar { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #c47803); color: #000; font: 700 9px/18px inherit; text-align: center; }

.teams-frame { display: grid; grid-template-columns: 36px 160px 1fr; min-height: 0; }
.teams-rail { background: #1c1f25; border-right: 1px solid var(--line-2); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9px; color: var(--ink-mute); }
.teams-rail .ico { width: 24px; height: 24px; border-radius: 4px; background: var(--panel-3); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.teams-rail .ico.active { background: rgba(91,141,239,0.15); color: #8ab0f3; border: 1px solid rgba(91,141,239,0.35); }
.teams-sidebar { background: var(--panel-2); border-right: 1px solid var(--line-2); padding: 8px 10px; font-size: 10px; }
.teams-sidebar .team-name { color: var(--ink); font-weight: 600; font-size: 11px; margin-bottom: 6px; }
.teams-sidebar .chan { color: var(--ink-dim); padding: 3px 0; cursor: default; }
.teams-sidebar .chan.active { color: var(--ink); font-weight: 600; }
.teams-sidebar .chan.active::before { content: "│ "; color: var(--accent); }
.teams-tabbar { background: var(--panel-3); padding: 6px 12px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; font-size: 11px; color: var(--ink-mute); }
.teams-tabbar .tab { padding: 3px 0; }
.teams-tabbar .tab.active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; font-weight: 600; }
.teams-tabbar .mpip-badge { margin-left: auto; font: 600 9px/1 inherit; padding: 3px 5px; border-radius: 3px; background: rgba(245,165,36,0.12); color: var(--accent); border: 1px solid rgba(245,165,36,0.3); letter-spacing: 0.04em; }

.sp-header { background: linear-gradient(180deg, #232830, #1a1e25); padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.sp-header .crumb { font-size: 10px; color: var(--ink-mute); letter-spacing: 0.04em; }
.sp-header .crumb b { color: var(--ink-dim); font-weight: 600; }
.sp-header .title { color: var(--ink); font: 600 14px/1.2 inherit; margin-top: 4px; }
.sp-header .meta-row { display: flex; gap: 10px; margin-top: 6px; font-size: 10px; color: var(--ink-mute); flex-wrap: wrap; }
.sp-toolbar { background: var(--panel-3); padding: 6px 12px; border-bottom: 1px solid var(--line-2); display: flex; gap: 12px; font-size: 11px; color: var(--ink-dim); align-items: center; flex-wrap: wrap; }
.sp-toolbar .act { padding: 2px 6px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 10px; }
.sp-toolbar .mpip-badge { margin-left: auto; font: 600 9px/1 inherit; padding: 3px 5px; border-radius: 3px; background: rgba(245,165,36,0.12); color: var(--accent); border: 1px solid rgba(245,165,36,0.3); letter-spacing: 0.04em; }

.word-header { background: #1a2942; padding: 6px 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-dim); flex-wrap: wrap; }
.word-header .wlogo { font: 700 12px/1 inherit; color: #6ab1f7; }
.word-header .docname { color: var(--ink); font-weight: 600; }
.word-header .right { margin-left: auto; }
.word-ribbon { background: var(--panel-3); padding: 5px 12px; border-bottom: 1px solid var(--line-2); font-size: 10px; color: var(--ink-mute); display: flex; gap: 12px; flex-wrap: wrap; }
.word-ribbon .grp { color: var(--ink-dim); }
.word-ribbon .grp.active { color: var(--ink); font-weight: 600; }
.word-ribbon .mpip-badge { margin-left: auto; font: 600 9px/1 inherit; padding: 3px 5px; border-radius: 3px; background: rgba(245,165,36,0.12); color: var(--accent); border: 1px solid rgba(245,165,36,0.3); letter-spacing: 0.04em; }

.outlook-bar { background: #182030; padding: 6px 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-dim); }
.outlook-bar .olabel { color: #6aa9f7; font-weight: 700; font-size: 12px; letter-spacing: 0.02em; }

.papps-rail { background: #2c2f36; padding: 4px 0; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 10px; color: var(--ink-mute); }
.papps-rail .plogo { color: #a78bfa; font-weight: 700; font-size: 10px; }

.mpip-sliver {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, rgba(245,165,36,0.05), rgba(245,165,36,0));
  border-top: 1px dashed rgba(245,165,36,0.25);
  padding: 5px 12px; font-size: 10px; color: var(--ink-mute);
  flex-wrap: wrap; gap: 6px;
}
.mpip-sliver b { color: var(--accent-2); font-weight: 600; }

/* ===== INNER UI MOCKS ===== */
.chat-msg { background: var(--panel-3); padding: 8px 10px; border-radius: 8px; font-size: 11px; margin-bottom: 6px; color: var(--ink-dim); }
.chat-msg.user { background: rgba(245,165,36,0.08); border-left: 2px solid var(--accent); }
.chat-msg.assist { background: var(--panel-3); border-left: 2px solid var(--info); }
.chat-msg b { color: var(--ink); font-weight: 600; display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; color: var(--ink-mute); }
.chat-cite { font-size: 10px; color: var(--ink-mute); margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line-2); font-family: ui-monospace, monospace; }
.chat-input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; font-size: 11px; color: var(--ink-mute); margin-top: 8px; }

.mock-portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-card { background: var(--panel-3); padding: 6px 8px; border-radius: 4px; font-size: 10px; border-left: 3px solid var(--ok); }
.mock-card.ry { border-left-color: var(--warn); }
.mock-card.rd { border-left-color: var(--crit); }
.mock-card b { display: block; font-size: 9px; color: var(--ink-mute); }
.mock-card .vv { color: var(--ink); font-weight: 600; }

.flow { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.flow .step { flex: 1; min-width: 95px; background: var(--panel-3); padding: 8px; border-radius: 4px; text-align: center; font-size: 10px; color: var(--ink-dim); border: 1px solid var(--line-2); }
.flow .step b { display: block; color: var(--ink); font-weight: 600; font-size: 11px; margin-bottom: 2px; }
.flow .step.ok { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.06); }
.flow .step.active { border-color: rgba(245,165,36,0.5); background: rgba(245,165,36,0.06); }
.flow .arrow { color: var(--ink-mute); font-size: 12px; }

.queue { display: grid; gap: 4px; }
.qrow { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; background: var(--panel-3); padding: 6px 8px; border-radius: 4px; font-size: 10px; }
.qrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.qrow .dot.warn { background: var(--warn); }
.qrow .dot.crit { background: var(--crit); }
.qrow .when { color: var(--ink-mute); font-size: 9px; }

.mobile-frame { width: 200px; margin: 0 auto; background: var(--bg); border: 2px solid var(--line-3); border-radius: 16px; padding: 8px; }
.mobile-screen { background: var(--panel-3); border-radius: 10px; padding: 12px; min-height: 220px; font-size: 10px; }
.mobile-screen h4 { margin: 0 0 8px; font-size: 12px; color: var(--ink); }
.mobile-screen .photo { background: var(--line); height: 60px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--ink-mute); margin-bottom: 6px; font-size: 18px; }
.mobile-screen .field { background: var(--panel-2); padding: 6px; border-radius: 4px; margin-bottom: 4px; color: var(--ink-dim); font-size: 10px; }
.mobile-screen .field b { color: var(--ink-mute); font-size: 9px; display: block; }
.mobile-screen .btn { background: var(--accent); color: #000; padding: 6px; border-radius: 4px; text-align: center; font-weight: 600; margin-top: 6px; font-size: 11px; }

.rfp-table { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.rfp-table > div { background: var(--panel-3); padding: 6px 8px; font-size: 10px; color: var(--ink-dim); }
.rfp-table .h { background: var(--panel); color: var(--ink-mute); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.rfp-table .name { color: var(--ink); }
.score { display: inline-block; padding: 2px 5px; border-radius: 3px; font-weight: 600; font-size: 10px; }
.score.hi { background: rgba(34,197,94,0.15); color: var(--ok); }
.score.md { background: rgba(245,158,11,0.15); color: var(--warn); }
.score.lo { background: rgba(107,114,128,0.2); color: var(--ink-mute); }

.doc-preview { background: white; color: #1a1a1a; padding: 14px; border-radius: 4px; font-size: 10px; line-height: 1.5; font-family: Georgia, "Times New Roman", serif; }
.doc-preview h4 { margin: 0 0 6px; font-size: 12px; color: #000; }
.doc-preview .draft-tag { background: rgba(245,165,36,0.2); color: #8a5400; padding: 2px 6px; border-radius: 3px; font: 600 9px/1 inherit; letter-spacing: 0.08em; font-family: -apple-system, sans-serif; }
.doc-preview .row { display: flex; justify-content: space-between; margin: 4px 0; padding: 2px 0; border-bottom: 1px dotted #ccc; }
.doc-preview .row b { color: #000; }
.doc-preview .row .red { color: #c0392b; font-weight: 600; }
.doc-preview .row .green { color: #16a34a; font-weight: 600; }

.pattern { background: linear-gradient(180deg, rgba(167,139,250,0.06), transparent), var(--panel-3); border: 1px solid rgba(167,139,250,0.3); border-radius: 6px; padding: 10px; font-size: 11px; }
.pattern .ptag { color: var(--violet); font: 600 9px/1 inherit; letter-spacing: 0.08em; text-transform: uppercase; }
.pattern .ph { color: var(--ink); font-weight: 600; margin: 4px 0; font-size: 11px; }
.pattern .pbody { color: var(--ink-dim); }

/* Email list */
.maillist { display: grid; gap: 1px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.mailrow { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; background: var(--panel-3); padding: 6px 10px; font-size: 10px; align-items: center; }
.mailrow .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mailrow .from { color: var(--ink); font-weight: 600; }
.mailrow .subj { color: var(--ink-dim); }
.mailrow .meta { color: var(--ink-mute); font-size: 9px; }
.mailrow.routed { background: rgba(34,197,94,0.05); }

/* Audit log */
.audit { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; color: var(--ink-dim); }
.audit .line { padding: 4px 8px; border-left: 2px solid var(--line-2); background: var(--panel-3); margin-bottom: 2px; }
.audit .line b { color: var(--ink); }
.audit .line.hit { border-left-color: var(--ok); background: rgba(34,197,94,0.05); }
.audit .ts { color: var(--ink-mute); }

/* Lineage tree */
.lineage { font-size: 11px; color: var(--ink-dim); }
.lineage .node { padding: 6px 10px; background: var(--panel-3); border-radius: 4px; margin: 2px 0; border-left: 2px solid var(--line-3); }
.lineage .node.active { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
.lineage .node b { color: var(--ink); font-weight: 600; }
.lineage .indent-1 { margin-left: 16px; }
.lineage .indent-2 { margin-left: 32px; }
.lineage .indent-3 { margin-left: 48px; }

/* Variance / budget table */
.budget-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.6fr; gap: 8px; padding: 6px 10px; background: var(--panel-3); border-radius: 4px; font-size: 10px; align-items: center; margin-bottom: 2px; }
.budget-row.h { background: var(--panel); color: var(--ink-mute); font: 600 9px/1 inherit; letter-spacing: 0.06em; text-transform: uppercase; }
.budget-row .pos { color: var(--ok); font-weight: 600; }
.budget-row .neg { color: var(--crit); font-weight: 600; }

/* SVG architecture diagram */
.arch-svg-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; overflow-x: auto; }
.arch-svg-wrap svg { display: block; min-width: 720px; width: 100%; height: auto; }
.arch-svg-wrap text { font: 12px -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif; fill: var(--ink); }
.arch-svg-wrap text.sm { font-size: 10px; fill: var(--ink-dim); }
.arch-svg-wrap text.lbl { font-size: 11px; fill: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.arch-svg-wrap .box { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1; }
.arch-svg-wrap .box.accent { stroke: var(--accent); stroke-width: 1.5; fill: rgba(245,165,36,0.05); }
.arch-svg-wrap .box.info { stroke: var(--info); stroke-width: 1.5; fill: rgba(56,189,248,0.05); }
.arch-svg-wrap .box.ok { stroke: var(--ok); stroke-width: 1.5; fill: rgba(34,197,94,0.05); }
.arch-svg-wrap .box.violet { stroke: var(--violet); stroke-width: 1.5; fill: rgba(167,139,250,0.05); }
.arch-svg-wrap .lane { fill: rgba(255,255,255,0.015); stroke: var(--line); stroke-dasharray: 4 4; }
.arch-svg-wrap .arrow { stroke: var(--ink-mute); stroke-width: 1.5; fill: none; }
.arch-svg-wrap .arrow.accent { stroke: var(--accent); }
.arch-svg-wrap .arrow.info { stroke: var(--info); }

/* Schema tables */
.schema-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.schema-table { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.schema-table h3 { font-size: 13px; margin-bottom: 10px; }
.schema-table .row {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 12px;
}
.schema-table .row:last-child { border-bottom: 0; }
.schema-table .row b { color: var(--ink); font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }
.schema-table .row span { color: var(--ink-dim); }

/* Ack tier ladder */
.tier-ladder { display: grid; gap: 6px; }
.tier-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--panel-3); border-radius: 6px; font-size: 12px; }
.tier-row .tier-num { font: 700 14px/1 inherit; color: var(--ink-mute); }
.tier-row .tier-name { color: var(--ink); font-weight: 600; }
.tier-row .tier-desc { color: var(--ink-dim); font-size: 11px; margin-top: 2px; }
.tier-row .tier-grade { font: 600 10px/1 inherit; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.tier-row.t1 { border-left: 3px solid var(--ok); }
.tier-row.t1 .tier-grade { background: rgba(34,197,94,0.15); color: var(--ok); }
.tier-row.t2 { border-left: 3px solid var(--info); }
.tier-row.t2 .tier-grade { background: rgba(56,189,248,0.15); color: var(--info); }
.tier-row.t3 { border-left: 3px solid var(--warn); }
.tier-row.t3 .tier-grade { background: rgba(245,165,36,0.15); color: var(--warn); }
.tier-row.t4 { border-left: 3px solid var(--crit); }
.tier-row.t4 .tier-grade { background: rgba(239,68,68,0.15); color: var(--crit); }

/* Page nav (next/prev) */
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-nav a { display: block; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; flex: 1; text-decoration: none; color: var(--ink-dim); transition: border-color .15s; }
.page-nav a:hover { border-color: var(--line-3); }
.page-nav a small { display: block; font-size: 10px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.page-nav a b { color: var(--ink); font-weight: 600; font-size: 14px; }
.page-nav a.next { text-align: right; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-mute); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }
  .sketches { grid-template-columns: 1fr; }
  .schema-tables { grid-template-columns: 1fr; }
  .topnav-inner { padding: 12px 16px; gap: 16px; }
  .nav-meta { display: none; }
  h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .wrap { padding: 20px 16px 60px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
}


/* ===== INTERACTIVE ARCHITECTURE DIAGRAM (vanilla) ===== */
.rf-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 720px;
  position: relative;
  overflow: hidden;
}
.rf-shell.rf-vanilla { user-select: none; }

.rf-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}
.rf-viewport:active { cursor: grabbing; }
.rf-stage {
  position: relative;
  transform-origin: 0 0;
  transition: none;
}
.rf-edges {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.rf-lane {
  position: absolute;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.012);
  border: 1px dashed var(--line);
  border-radius: 12px;
  pointer-events: none;
}
.rf-lane-label {
  position: absolute;
  top: 8px; left: 14px;
  font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.rf-node {
  position: absolute;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  height: 60px;
  cursor: pointer;
  transition: transform .12s ease, opacity .15s ease, box-shadow .12s ease, border-color .12s ease;
  color: var(--ink-dim);
  z-index: 2;
}
.rf-node:hover { border-color: var(--line-3); transform: translateY(-1px); }
.rf-node--accent { border-left: 3px solid var(--accent); background: rgba(245,165,36,0.04); }
.rf-node--info   { border-left: 3px solid var(--info);   background: rgba(56,189,248,0.04); }
.rf-node--ok     { border-left: 3px solid var(--ok);     background: rgba(34,197,94,0.04); }
.rf-node--violet { border-left: 3px solid var(--violet); background: rgba(167,139,250,0.04); }
.rf-node--gray   { border-left: 3px solid var(--line-3); }
.rf-node.is-dim  { opacity: 0.18; }
.rf-node.is-hl   { box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(245,165,36,0.18); border-color: var(--accent); }
.rf-node.is-sel  { box-shadow: 0 0 0 2px var(--accent-2), 0 6px 22px rgba(255,209,102,0.22); border-color: var(--accent-2); }
.rf-node-title   { color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: -0.005em; }
.rf-node-sub     { color: var(--ink-mute); font-size: 10px; margin-top: 3px; line-height: 1.3; }

.rf-edge {
  stroke-width: 1.4;
  opacity: 0.55;
  transition: opacity .15s, stroke-width .15s;
}
.rf-edge--data    { stroke: #f5a524; }
.rf-edge--query   { stroke: #38bdf8; }
.rf-edge--control { stroke: #9aa3ad; opacity: 0.4; }
.rf-edge--render  { stroke: #a78bfa; }
.rf-edge--auth    { stroke: #a78bfa; opacity: 0.35; }
.rf-edge.is-hl    { opacity: 1 !important; stroke-width: 2.2 !important; }

/* Panels (filter + detail) */
.rf-panel {
  position: absolute;
  background: rgba(14,19,24,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink-dim);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 10;
}
.rf-panel--filter { top: 14px; left: 14px; min-width: 170px; }
.rf-panel--detail { top: 14px; right: 14px; min-width: 240px; max-width: 320px; }

.rf-panel-h {
  font: 600 10px/1 inherit;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 6px 0 6px;
}
.rf-panel-h:first-child { margin-top: 0; }
.rf-panel-hint {
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
  font-style: italic;
  line-height: 1.5;
}

.rf-filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  color: var(--ink-dim);
}
.rf-filter-row:hover { color: var(--ink); }
.rf-filter-row input { accent-color: var(--accent); cursor: pointer; margin: 0; }
.rf-filter-line { display: inline-block; width: 20px; height: 2px; border-radius: 2px; }
.rf-filter-row--data    .rf-filter-line { background: #f5a524; }
.rf-filter-row--query   .rf-filter-line { background: #38bdf8; }
.rf-filter-row--control .rf-filter-line { background: #9aa3ad; opacity: 0.6; }
.rf-filter-row--render  .rf-filter-line { background: #a78bfa; }
.rf-filter-row--auth    .rf-filter-line { background: #a78bfa; opacity: 0.4; background-image: linear-gradient(to right, #a78bfa 50%, transparent 50%); background-size: 6px 2px; }

.rf-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.rf-panel-title { color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
.rf-close { background: transparent; border: 0; color: var(--ink-mute); font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }
.rf-close:hover { color: var(--ink); }
.rf-panel-sub { color: var(--ink-mute); font-size: 11px; margin-bottom: 4px; }

.rf-conn {
  padding: 4px 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--ink-dim);
}
.rf-conn-dir { color: var(--ink-mute); width: 12px; display: inline-block; flex-shrink: 0; }
.rf-conn-name { flex: 1; }
.rf-conn-type {
  font: 600 9px/1 inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.rf-conn-type--data    { background: rgba(245,165,36,0.12); color: var(--accent); }
.rf-conn-type--query   { background: rgba(56,189,248,0.12); color: var(--info); }
.rf-conn-type--control { background: rgba(107,114,128,0.18); color: var(--ink-dim); }
.rf-conn-type--render  { background: rgba(167,139,250,0.12); color: var(--violet); }
.rf-conn-type--auth    { background: rgba(167,139,250,0.08); color: var(--violet); }

/* Zoom controls */
.rf-controls {
  position: absolute;
  bottom: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(14,19,24,0.94);
  border: 1px solid var(--line-3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
  z-index: 10;
}
.rf-controls button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-dim);
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.rf-controls button:last-child { border-bottom: 0; }
.rf-controls button:hover { background: var(--panel-2); color: var(--ink); }

/* ===== FULLSCREEN SECTIONS (one-viewport-per-section) ===== */
.section-fullscreen {
  min-height: calc(100vh - 60px);
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 60px;
}
.section-fullscreen + .section-fullscreen {
  border-top: 1px solid var(--line);
}
.section-fullscreen .section-header { flex-shrink: 0; }

/* ===== PROCESSES LIST ===== */
.proc-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.proc-list thead th {
  background: var(--panel-2);
  color: var(--ink-mute);
  font: 600 10px/1 inherit;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.proc-list tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.proc-list tbody tr:hover { background: rgba(255,255,255,0.02); }
.proc-list tbody td {
  padding: 11px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.proc-list tbody tr:last-child td { border-bottom: 0; }
.proc-list .col-num   { color: var(--ink-mute); font: 600 11px/1 ui-monospace, monospace; width: 44px; letter-spacing: 0.06em; }
.proc-list .col-en    { color: var(--ink); font-weight: 600; width: 220px; }
.proc-list .col-he    { color: var(--ink-dim); direction: rtl; text-align: right; width: 140px; font-size: 12px; }
.proc-list .col-role  { color: var(--ink-dim); font-size: 12px; }
.proc-list .col-owner { color: var(--ink-mute); font-size: 11px; width: 160px; white-space: nowrap; }
.proc-list .col-freq  { color: var(--ink-mute); font-size: 11px; width: 100px; white-space: nowrap; }
.proc-list .col-pri   { width: 60px; text-align: right; }
.proc-list .col-pri .pill { position: static; }

/* ===== ARCHITECTURE LAYERS · static (no hover) ===== */
.layer-static .items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
.layer-static .item {
  cursor: default;
  padding: 8px 10px;
  font-size: 11px;
}
.layer-static .item b {
  font-size: 12px;
  margin-bottom: 1px;
}
.layer-static .item:hover {
  border-color: var(--line);
  transform: none;
}
.layer-static {
  padding: 14px 16px;
}
.layer-static h3 { margin: 4px 0 8px; font-size: 14px; }
.layer-static .layer-label { font-size: 10px; }

/* ===== Collapsible filter panel ===== */
.rf-panel--filter {
  padding: 0;
  overflow: hidden;
  transition: width .18s ease, padding .18s ease;
}
.rf-panel-toggle {
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  font: 600 11px/1 inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rf-panel-toggle:hover { color: var(--ink); }
.rf-toggle-icon {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease;
  color: var(--accent);
}
.rf-toggle-label { color: var(--ink); font-weight: 600; }
.rf-toggle-count {
  margin-left: auto;
  font: 600 10px/1 inherit;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  background: var(--panel-2);
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
}
.rf-panel--filter .rf-panel-body {
  padding: 0 12px 10px;
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
}
.rf-panel--filter.is-collapsed .rf-panel-body { display: none; }
.rf-panel--filter.is-collapsed .rf-toggle-icon { transform: rotate(180deg); }
.rf-panel--filter.is-collapsed { min-width: 0; width: auto; }
.rf-panel--filter:not(.is-collapsed) { min-width: 200px; }

/* ===== LANDING PAGE (.lp-*) — light, airy, sales-ready ===== */
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.lp-section { padding: 88px 0; position: relative; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-section-h { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 40px; }
.lp-eyebrow { font: 600 10px/1 inherit; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.lp-section-title { font: 600 30px/1.2 inherit; letter-spacing: -0.018em; margin: 0; color: var(--ink); }
.lp-section-sub { color: var(--ink-mute); max-width: 660px; font-size: 14px; margin-top: 6px; line-height: 1.6; }
.lp-section-sub em { color: var(--accent-2); font-style: normal; }

/* Hero */
.lp-hero { padding: 92px 0 60px; position: relative; overflow: hidden; border-bottom: 0; }
.lp-hero::before { content: ""; position: absolute; inset: -40% -25% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(245,165,36,0.08), transparent 65%); pointer-events: none; z-index: 0; }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1 inherit; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.lp-hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(245,165,36,0.6); }
.lp-hero h1 { font: 600 54px/1.06 inherit; letter-spacing: -0.028em; margin: 22px 0 18px; max-width: 880px; }
.lp-hero h1 em { color: var(--accent-2); font-style: normal; }
.lp-hero-sub { font-size: 18px; color: var(--ink-dim); max-width: 700px; line-height: 1.55; }
.lp-hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000 !important; font: 600 13px/1 inherit; padding: 13px 20px; border-radius: 8px; text-decoration: none; letter-spacing: 0.02em; transition: transform .12s, box-shadow .12s; }
.lp-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(245,165,36,0.28); text-decoration: none; }
.lp-hero-cta-sec { color: var(--ink-dim); font-size: 13px; text-decoration: none; padding: 13px 4px; }
.lp-hero-cta-sec:hover { color: var(--ink); text-decoration: none; }
.lp-hero-meta { margin-top: 56px; display: flex; gap: 36px; flex-wrap: wrap; font-size: 12px; color: var(--ink-mute); }
.lp-hero-meta b { color: var(--ink-dim); font-weight: 600; }

/* Money moment */
.lp-money { background: linear-gradient(180deg, var(--panel) 0%, transparent 100%); border-radius: 16px; padding: 36px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: center; }
.lp-money-callouts { display: flex; flex-direction: column; gap: 22px; }
.lp-callout { display: flex; gap: 14px; }
.lp-callout-bullet { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(245,165,36,0.15); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 700 13px/1 inherit; }
.lp-callout-text { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }
.lp-callout-text b { color: var(--ink); font-weight: 600; }

/* Personas (ghost) */
.lp-personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-persona { padding: 8px 4px; }
.lp-persona-role { font: 600 10px/1 inherit; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.lp-persona-who { font: 600 20px/1.2 inherit; color: var(--ink); margin: 12px 0 8px; letter-spacing: -0.01em; }
.lp-persona-what { color: var(--ink-dim); font-size: 13px; line-height: 1.65; }
.lp-persona-win { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-mute); }
.lp-persona-win b { color: var(--accent-2); font-weight: 600; }

/* Architecture preview */
.lp-arch-preview { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.lp-arch-stack { display: grid; gap: 8px; }
.lp-arch-layer { background: rgba(255,255,255,0.02); border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-dim); transition: background .12s; }
.lp-arch-layer:hover { background: rgba(255,255,255,0.04); }
.lp-arch-layer .ll { color: var(--ink); font-weight: 600; font-size: 13px; }
.lp-arch-layer .lc { color: var(--ink-mute); font-size: 11px; }
.lp-arch-layer.l1 { border-left: 3px solid var(--accent); }
.lp-arch-layer.l2 { border-left: 3px solid var(--info); }
.lp-arch-layer.l3 { border-left: 3px solid var(--ok); }
.lp-arch-layer.l4 { border-left: 3px solid var(--violet); }
.lp-arch-copy h3 { font: 600 22px/1.3 inherit; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em; }
.lp-arch-copy h3 em { color: var(--accent-2); font-style: normal; }
.lp-arch-copy p { color: var(--ink-dim); font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.lp-arch-copy p em { color: var(--accent-2); font-style: normal; font-weight: 500; }

/* Flow showcase */
.lp-flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-flow { text-decoration: none; display: flex; flex-direction: column; gap: 14px; transition: transform .15s; color: inherit; }
.lp-flow:hover { transform: translateY(-3px); text-decoration: none; }
.lp-flow-frame { background: var(--panel-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); height: 240px; display: flex; flex-direction: column; }
.lp-flow-frame .lp-flow-body { padding: 12px 14px; font-size: 10px; color: var(--ink-dim); flex: 1; overflow: hidden; }
.lp-flow-cap { padding: 0 4px; font: 600 14px/1.2 inherit; color: var(--ink); letter-spacing: -0.005em; }
.lp-flow-cap small { display: block; color: var(--ink-mute); font-weight: 400; margin-top: 4px; font-size: 11px; letter-spacing: 0.04em; }

/* Process strip */
.lp-procs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lp-proc { background: rgba(255,255,255,0.015); border-radius: 6px; padding: 11px 12px; transition: background .12s, transform .12s; }
.lp-proc:hover { background: rgba(255,255,255,0.04); transform: translateY(-1px); }
.lp-proc-num { font: 600 10px/1 inherit; color: var(--ink-mute); letter-spacing: 0.06em; }
.lp-proc-en { font: 600 13px/1.2 inherit; color: var(--ink); margin: 5px 0 2px; }
.lp-proc-he { font-size: 11px; color: var(--ink-dim); direction: rtl; text-align: right; line-height: 1.3; }

/* Backlink */
.lp-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font: 600 13px/1 inherit; text-decoration: none; margin-top: 28px; transition: gap .15s ease, color .12s; }
.lp-link::after { content: "→"; transition: transform .15s; }
.lp-link:hover { gap: 14px; color: var(--accent); text-decoration: none; }
.lp-link:hover::after { transform: translateX(2px); }

/* M365 surfaces */
.lp-m365 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lp-m365-cell { padding: 22px 8px; text-align: center; }
.lp-m365-icon { width: 36px; height: 36px; margin: 0 auto 12px; border-radius: 8px; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; font: 700 14px/1 inherit; color: var(--ink); }
.lp-m365-cell:nth-child(1) .lp-m365-icon { color: #6264a7; }
.lp-m365-cell:nth-child(2) .lp-m365-icon { color: #0078d4; }
.lp-m365-cell:nth-child(3) .lp-m365-icon { color: #0078d4; }
.lp-m365-cell:nth-child(4) .lp-m365-icon { color: #2b579a; }
.lp-m365-cell:nth-child(5) .lp-m365-icon { color: #742774; }
.lp-m365-cell:nth-child(6) .lp-m365-icon { color: #0066ff; }
.lp-m365-name { font: 600 12px/1.2 inherit; color: var(--ink); }
.lp-m365-role { font-size: 11px; color: var(--ink-mute); margin-top: 4px; }

/* KPIs lighter */
.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-kpi { padding: 4px 0; }
.lp-kpi-num { font: 600 38px/1 inherit; letter-spacing: -0.025em; color: var(--ink); }
.lp-kpi-num em { color: var(--accent-2); font-style: normal; }
.lp-kpi-unit { font-size: 14px; color: var(--ink-dim); margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.lp-kpi-label { margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.lp-kpi-spot { margin-top: 6px; font-size: 11px; color: var(--ink-dim); font-style: italic; line-height: 1.5; }

/* CTA strip */
.lp-cta-strip { background: linear-gradient(135deg, rgba(245,165,36,0.06), rgba(245,165,36,0)); border: 1px solid rgba(245,165,36,0.18); border-radius: 16px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.lp-cta-strip h3 { font: 600 24px/1.25 inherit; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.015em; }
.lp-cta-strip p { color: var(--ink-dim); font-size: 13px; line-height: 1.65; margin: 0; max-width: 480px; }
.lp-cta-strip-actions { display: flex; flex-direction: column; gap: 6px; }
.lp-cta-strip-actions a { display: block; padding: 12px 16px; background: rgba(255,255,255,0.02); border-radius: 8px; text-decoration: none; color: var(--ink-dim); font-size: 13px; transition: background .12s, color .12s, transform .12s; }
.lp-cta-strip-actions a:hover { background: rgba(255,255,255,0.05); color: var(--ink); transform: translateX(2px); text-decoration: none; }
.lp-cta-strip-actions a b { color: var(--accent-2); font-weight: 600; margin-right: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .lp-money { grid-template-columns: 1fr; padding: 28px; }
  .lp-personas { grid-template-columns: 1fr; }
  .lp-arch-preview { grid-template-columns: 1fr; gap: 32px; }
  .lp-flows { grid-template-columns: 1fr; }
  .lp-procs { grid-template-columns: repeat(2, 1fr); }
  .lp-kpis { grid-template-columns: repeat(2, 1fr); }
  .lp-m365 { grid-template-columns: repeat(3, 1fr); }
  .lp-cta-strip { grid-template-columns: 1fr; padding: 28px; }
  .lp-section { padding: 64px 0; }
  .lp-hero h1 { font-size: 36px; }
  .lp-hero-sub { font-size: 16px; }
}
@media (max-width: 560px) {
  .lp-procs { grid-template-columns: 1fr; }
  .lp-m365 { grid-template-columns: repeat(2, 1fr); }
  .lp-kpis { grid-template-columns: 1fr; }
  .lp-wrap { padding: 0 16px; }
  .lp-hero { padding: 60px 0 40px; }
  .lp-hero h1 { font-size: 32px; }
}

/* override .wrap for landing — landing handles its own gutters */
body.lp-page .wrap { max-width: none; padding: 0; }

/* ========== RTL ADJUSTMENTS ========== */
html[dir="rtl"] body {
  font-family: -apple-system, "Heebo", "Assistant", "Segoe UI", "Helvetica Neue", sans-serif;
}

/* Topnav: brand on right, nav center, meta on left — flex mirrors automatically */
html[dir="rtl"] .brand small { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .nav-links { direction: rtl; }

/* Backlink arrows: in RTL, "go forward" = points left */
html[dir="rtl"] .lp-link::after { content: "←"; }
html[dir="rtl"] .lp-link:hover::after { transform: translateX(-3px); }

/* Hero radial glow: move to top-left in RTL */
html[dir="rtl"] .lp-hero::before { inset: -40% auto auto -25%; }

/* Border-left utility flips */
html[dir="rtl"] .arch-node--accent,
html[dir="rtl"] .arch-node--info,
html[dir="rtl"] .arch-node--ok,
html[dir="rtl"] .arch-node--violet,
html[dir="rtl"] .arch-node--gray {
  border-left: 1px solid var(--line-2);
  border-right-width: 3px;
  border-right-style: solid;
}
html[dir="rtl"] .arch-node--accent { border-right-color: var(--accent); }
html[dir="rtl"] .arch-node--info   { border-right-color: var(--info); }
html[dir="rtl"] .arch-node--ok     { border-right-color: var(--ok); }
html[dir="rtl"] .arch-node--violet { border-right-color: var(--violet); }
html[dir="rtl"] .arch-node--gray   { border-right-color: var(--line-3); }

html[dir="rtl"] .layer.l1,
html[dir="rtl"] .layer.l2,
html[dir="rtl"] .layer.l3,
html[dir="rtl"] .layer.l4 { border-left: 0; }
html[dir="rtl"] .layer.l1 { border-right: 3px solid var(--accent); }
html[dir="rtl"] .layer.l2 { border-right: 3px solid var(--info); }
html[dir="rtl"] .layer.l3 { border-right: 3px solid var(--ok); }
html[dir="rtl"] .layer.l4 { border-right: 3px solid var(--violet); }

html[dir="rtl"] .lp-arch-layer { border-left: 0; }
html[dir="rtl"] .lp-arch-layer.l1 { border-right: 3px solid var(--accent); }
html[dir="rtl"] .lp-arch-layer.l2 { border-right: 3px solid var(--info); }
html[dir="rtl"] .lp-arch-layer.l3 { border-right: 3px solid var(--ok); }
html[dir="rtl"] .lp-arch-layer.l4 { border-right: 3px solid var(--violet); }

html[dir="rtl"] .integ.p0,
html[dir="rtl"] .integ.p1 { border-left: 1px solid var(--line); }
html[dir="rtl"] .integ.p0 { border-right: 3px solid var(--p0); }
html[dir="rtl"] .integ.p1 { border-right: 3px solid var(--p1); }

html[dir="rtl"] .chat-msg.user   { border-left: 0; border-right: 2px solid var(--accent); }
html[dir="rtl"] .chat-msg.assist { border-left: 0; border-right: 2px solid var(--info); }

html[dir="rtl"] .mock-card,
html[dir="rtl"] .mock-card.ry,
html[dir="rtl"] .mock-card.rd { border-left: 0; border-right-width: 3px; border-right-style: solid; }
html[dir="rtl"] .mock-card    { border-right-color: var(--ok); }
html[dir="rtl"] .mock-card.ry { border-right-color: var(--warn); }
html[dir="rtl"] .mock-card.rd { border-right-color: var(--crit); }

html[dir="rtl"] .tier-row.t1 { border-left: 0; border-right: 3px solid var(--ok); }
html[dir="rtl"] .tier-row.t2 { border-left: 0; border-right: 3px solid var(--info); }
html[dir="rtl"] .tier-row.t3 { border-left: 0; border-right: 3px solid var(--warn); }
html[dir="rtl"] .tier-row.t4 { border-left: 0; border-right: 3px solid var(--crit); }

html[dir="rtl"] .phase ul li { padding-left: 0; padding-right: 12px; }
html[dir="rtl"] .phase ul li::before { left: auto; right: 0; }

html[dir="rtl"] .proc-list .col-he { text-align: right; direction: rtl; }
html[dir="rtl"] .proc-list .col-en { direction: ltr; text-align: left; }

/* Architecture interactive diagram stays LTR */
.force-ltr { direction: ltr !important; text-align: left; }
.force-ltr * { direction: ltr; }

/* Page-nav arrows in RTL */
html[dir="rtl"] .page-nav a.next { text-align: left; }

/* Hero CTA — adjust margin direction */
html[dir="rtl"] .lp-hero-cta-sec { margin-left: 0; margin-right: 12px; }

/* M365 bar/Word ribbon arrow icons — flip when in RTL containers if needed */
html[dir="rtl"] .m365-bar { direction: ltr; }
html[dir="rtl"] .m365-bar .right { margin-left: 0; margin-right: auto; }

/* Process strip RTL */
html[dir="rtl"] .lp-proc-en { direction: ltr; text-align: left; }
html[dir="rtl"] .lp-proc-num { letter-spacing: 0.06em; }

/* Sketch frame contents that should remain LTR (code paths etc) */
html[dir="rtl"] .chat-cite { direction: ltr; text-align: left; }

/* ===== CAROUSEL (money moment) ===== */
.lp-carousel { position: relative; }
.lp-carousel-viewport { overflow: hidden; border-radius: 16px; }
.lp-carousel-track {
  display: flex;
  direction: ltr;
  transition: transform .45s cubic-bezier(0.22, 0.1, 0.25, 1);
  will-change: transform;
}
.lp-carousel-slide { flex: 0 0 100%; min-width: 0; }

.lp-carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 22px;
}
.lp-carousel-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font: 600 18px/1 inherit;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lp-carousel-btn:hover {
  background: rgba(245,165,36,0.08);
  color: var(--accent);
  border-color: rgba(245,165,36,0.4);
}
.lp-carousel-btn:active { transform: scale(0.95); }
.lp-carousel-counter {
  font: 600 13px/1 inherit;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  min-width: 56px;
  text-align: center;
}
.lp-carousel-counter b { color: var(--accent-2); font-weight: 600; font-size: 16px; }

.lp-carousel-dots {
  display: flex; gap: 6px;
  justify-content: center;
  margin-top: 18px;
}
.lp-dot {
  width: 24px; height: 4px;
  background: var(--line-2);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background .15s, width .25s;
}
.lp-dot.active { background: var(--accent); width: 42px; }
.lp-dot:hover:not(.active) { background: var(--line-3); }

.lp-carousel-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}
.lp-carousel-caption b { color: var(--ink); font-weight: 600; }

@media (max-width: 980px) {
  .lp-carousel-btn { width: 38px; height: 38px; font-size: 16px; }
}

/* =========================================================
   ===== LIGHT THEME (final override) =====
   Body and panels are warm white. Device-frame mockups
   (.lp-flow-frame, .device, .mobile-frame) keep dark colors
   internally so they look like actual M365 dark-mode screens.
   ========================================================= */

:root {
  --bg:        #faf8f3;
  --panel:     #ffffff;
  --panel-2:   #f5f2ec;
  --panel-3:   #ece8df;
  --line:      #ebe7dd;
  --line-2:    #d6d1c5;
  --line-3:    #b8b2a4;
  --ink:       #18181b;
  --ink-dim:   #44423d;
  --ink-mute:  #87837a;
  --accent:    #c2670d;
  --accent-2:  #d97706;
  --ok:        #15803d;
  --warn:      #b45309;
  --crit:      #b91c1c;
  --info:      #0369a1;
  --violet:    #6d28d9;
  --p0:        #b91c1c;
  --p1:        #b45309;
  --p2:        #525252;
}

/* Topnav: light glassmorphism */
.topnav {
  background: rgba(255, 252, 245, 0.85);
}
.brand .logo {
  background: linear-gradient(135deg, var(--accent), #8c4906);
  color: #fff;
}

/* Hover backgrounds switch from white-alpha to black-alpha */
.lp-arch-layer,
.lp-proc,
.lp-cta-strip-actions a {
  background: rgba(0, 0, 0, 0.025);
}
.lp-arch-layer:hover,
.lp-proc:hover {
  background: rgba(0, 0, 0, 0.05);
}
.lp-cta-strip-actions a:hover {
  background: rgba(0, 0, 0, 0.05);
}
.lp-m365-icon {
  background: rgba(0, 0, 0, 0.03);
}

/* Hero radial glow becomes warmer + lighter */
.lp-hero::before {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.10), transparent 65%);
}

/* Money carousel container */
.lp-money {
  background: linear-gradient(180deg, #ffffff 0%, transparent 100%);
  border: 1px solid var(--line);
}

/* CTA strip background tint */
.lp-cta-strip {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05), rgba(217, 119, 6, 0));
  border-color: rgba(217, 119, 6, 0.22);
}

/* Hero CTA button - darker hover shadow on light bg */
.lp-hero-cta:hover {
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.30);
}

/* KPI accent card */
.kpi.accent {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), rgba(217, 119, 6, 0) 70%), #ffffff;
}

/* Carousel buttons */
.lp-carousel-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--line-2);
}
.lp-carousel-btn:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.4);
}
.lp-dot {
  background: var(--line-2);
}
.lp-dot:hover:not(.active) {
  background: var(--line-3);
}

/* Popover (hover tooltip) — switch to light surface */
#pop {
  background: #ffffff;
  border-color: var(--line-2);
  color: var(--ink-dim);
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.12), 0 0 0 1px rgba(0,0,0,0.02) inset;
}

/* Architecture interactive diagram bg — soft paper */
.rf-shell { background: #ffffff; }
.rf-lane {
  background: rgba(0, 0, 0, 0.015);
  border-color: var(--line-2);
}
.rf-panel {
  background: rgba(255, 252, 245, 0.95);
  border-color: var(--line-2);
  color: var(--ink-dim);
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.12);
}

/* ===== Process list (light) ===== */
.proc-list {
  background: #ffffff;
}
.proc-list thead th {
  background: var(--panel-2);
  border-bottom-color: var(--line-2);
}
.proc-list tbody tr:hover { background: rgba(0, 0, 0, 0.02); }

/* Generic panel + section divider tweaks */
section.lp-section + section.lp-section,
.section-fullscreen + .section-fullscreen {
  border-top-color: var(--line);
}

/* =========================================================
   DEVICE FRAMES — locally re-introduce dark theme so the
   Microsoft 365 mockups look like real dark-mode screenshots
   ========================================================= */
.lp-flow-frame,
.device,
.mobile-frame {
  --bg:       #0b0d10;
  --panel:    #12161b;
  --panel-2:  #181d23;
  --panel-3:  #1d242c;
  --line:     #1f262e;
  --line-2:   #2a323b;
  --line-3:   #3a444f;
  --ink:      #e6e9ee;
  --ink-dim:  #9aa3ad;
  --ink-mute: #6b737d;
}
.lp-flow-frame, .device {
  background: #12161b;
  border-color: #2a323b;
  color: #e6e9ee;
}
.mobile-frame {
  background: #0b0d10;
  border-color: #3a444f;
}


/* =========================================================
   ===== MARGOLIN BRAND IDENTITY =====
   Monochrome (black & white + warm cream) — matching mec.co.il
   ========================================================= */

:root {
  /* Override accent to Margolin's monochrome black */
  --accent:   #0a0a0a;
  --accent-2: #44423d;
}

/* Brand logo in topnav */
.brand .logo { display: none; }
.brand-logo {
  height: 22px;
  width: auto;
  color: #0a0a0a;
  display: block;
}
.brand small {
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-right: 6px;
}

/* CTAs become Margolin-black */
.lp-hero-cta {
  background: #0a0a0a;
  color: #ffffff !important;
}
.lp-hero-cta:hover {
  background: #1a1a1a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

/* Hero radial-glow: subtle warm gray (no orange) */
.lp-hero::before {
  background: radial-gradient(circle, rgba(10, 10, 10, 0.04), transparent 65%);
}

/* Eyebrow tags lose the orange glow — monochrome with subtle warmth */
.lp-eyebrow      { color: var(--ink-mute); }
.lp-hero-eyebrow .dot { background: #0a0a0a; box-shadow: none; }
.lp-persona-role { color: var(--ink-mute); }
.lp-callout-bullet {
  background: rgba(10, 10, 10, 0.06);
  color: #0a0a0a;
}

/* Backlink chevrons in ink, not orange */
.lp-link { color: var(--ink); }
.lp-link:hover { color: #000; }

/* Hero h1 <em> becomes deep charcoal (was orange) */
.lp-hero h1 em,
.lp-section-sub em,
.lp-arch-copy h3 em,
.lp-arch-copy p em,
.lp-kpi-num em {
  color: #0a0a0a;
  font-weight: 700;
}

/* KPI accent card: switch to neutral, no orange tint */
.kpi.accent {
  background: #ffffff;
  border-color: var(--line-2);
}

/* CTA strip: subtle neutral gradient */
.lp-cta-strip {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0));
  border-color: var(--line-2);
}
.lp-cta-strip-actions a b { color: #0a0a0a; }

/* Carousel — buttons + dots in monochrome */
.lp-carousel-btn:hover {
  background: rgba(10, 10, 10, 0.06);
  color: #0a0a0a;
  border-color: var(--line-3);
}
.lp-dot.active { background: #0a0a0a; }
.lp-carousel-counter b { color: #0a0a0a; }

/* Arch preview layer borders stay colored (info/violet/ok), but layer1 (data) switches to black */
.lp-arch-layer.l1 { border-right-color: #0a0a0a; }
html[dir="rtl"] .lp-arch-layer.l1 { border-right: 3px solid #0a0a0a; }

/* Tagline element */
.lp-tagline {
  display: inline-block;
  font: 500 13px/1 inherit;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-right: 2px solid #0a0a0a;
  padding-right: 10px;
  margin-right: 0;
  margin-top: 8px;
}

/* nav-meta in light theme */
.nav-meta b { color: #0a0a0a; }

/* =========================================================
   ===== MARGOLIN DESIGN SYSTEM — full alignment =====
   Pattern: dark hero · light body · dark footer
   Device mockups: Microsoft 365 LIGHT theme (cleaner, less chrome)
   ========================================================= */

/* ---------- Dark hero (mec.co.il pattern) ---------- */
.lp-hero {
  background: #0a0a0a;
  color: #ffffff;
  margin: 0 calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-bottom: 0;
}
.lp-hero h1 { color: #ffffff; }
.lp-hero h1 em { color: #ffffff; font-weight: 700; opacity: 0.92; }
.lp-hero-sub { color: rgba(255,255,255,0.65); }
.lp-hero-eyebrow { color: rgba(255,255,255,0.55); }
.lp-hero-eyebrow .dot {
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255,255,255,0.5);
}
.lp-hero-cta {
  background: #ffffff;
  color: #0a0a0a !important;
}
.lp-hero-cta:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 28px rgba(255,255,255,0.18);
}
.lp-hero-cta-sec { color: rgba(255,255,255,0.65); }
.lp-hero-cta-sec:hover { color: #ffffff; }
.lp-hero-meta { color: rgba(255,255,255,0.4); }
.lp-hero-meta b { color: rgba(255,255,255,0.88); }
.lp-hero::before {
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 65%);
  inset: -40% auto auto -25%;
}

/* ---------- Money wrapper: slight off-white to differentiate from page ---------- */
.lp-money {
  background: #f7f5f0;
  border: 1px solid #e7e5e0;
}

/* ---------- Device frames: Microsoft 365 LIGHT theme ---------- */
.lp-flow-frame,
.device {
  --bg:       #ffffff;
  --panel:    #ffffff;
  --panel-2:  #f7f5f0;
  --panel-3:  #ece8df;
  --line:     #ebe7dd;
  --line-2:   #d6d1c5;
  --line-3:   #b8b2a4;
  --ink:      #18181b;
  --ink-dim:  #44423d;
  --ink-mute: #87837a;

  background: #ffffff !important;
  border: 1px solid #ebe7dd !important;
  color: #18181b !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* --- M365 top bar — light --- */
.lp-flow-frame .m365-bar,
.device .m365-bar {
  background: linear-gradient(180deg, #f8f7f3, #f0eee9);
  border-bottom-color: #e7e5e0;
  color: #525050;
}
.lp-flow-frame .m365-bar .app-name,
.device .m365-bar .app-name { color: #18181b; }
.lp-flow-frame .m365-bar .ms-logo,
.device .m365-bar .ms-logo { color: #6264a7; }
.lp-flow-frame .m365-bar .ms-logo span,
.device .m365-bar .ms-logo span { color: #d97706; }
.lp-flow-frame .m365-bar .search,
.device .m365-bar .search {
  background: #ffffff;
  border-color: #d6d1c5;
  color: #87837a;
}
.lp-flow-frame .m365-bar .waffle,
.device .m365-bar .waffle {
  background-image: radial-gradient(circle, #87837a 1.2px, transparent 1.4px);
  opacity: 0.7;
}
.lp-flow-frame .m365-bar .avatar,
.device .m365-bar .avatar {
  background: linear-gradient(135deg, #6264a7, #4a4c8c);
  color: #ffffff;
}
.lp-flow-frame .m365-bar .sep,
.device .m365-bar .sep { color: #b8b2a4; }
.lp-flow-frame .m365-bar .right,
.device .m365-bar .right { color: #87837a; }

/* --- Teams chrome — light --- */
.lp-flow-frame .teams-rail,
.device .teams-rail {
  background: #f0eee9;
  border-right-color: #e7e5e0;
  color: #87837a;
}
.lp-flow-frame .teams-rail .ico,
.device .teams-rail .ico { background: rgba(0,0,0,0.04); color: #44423d; }
.lp-flow-frame .teams-rail .ico.active,
.device .teams-rail .ico.active {
  background: rgba(98,100,167,0.14);
  color: #6264a7;
  border-color: rgba(98,100,167,0.35);
}
.lp-flow-frame .teams-sidebar,
.device .teams-sidebar {
  background: #f7f5f0;
  border-right-color: #e7e5e0;
}
.lp-flow-frame .teams-sidebar .team-name,
.device .teams-sidebar .team-name { color: #18181b; }
.lp-flow-frame .teams-sidebar .chan,
.device .teams-sidebar .chan { color: #525050; }
.lp-flow-frame .teams-sidebar .chan.active,
.device .teams-sidebar .chan.active { color: #18181b; font-weight: 600; }
.lp-flow-frame .teams-sidebar .chan.active::before,
.device .teams-sidebar .chan.active::before { color: #6264a7; }

.lp-flow-frame .teams-tabbar,
.device .teams-tabbar {
  background: #ffffff;
  border-bottom-color: #e7e5e0;
  color: #87837a;
}
.lp-flow-frame .teams-tabbar .tab.active,
.device .teams-tabbar .tab.active {
  color: #18181b;
  border-bottom-color: #6264a7;
}
.lp-flow-frame .teams-tabbar .mpip-badge,
.device .teams-tabbar .mpip-badge,
.lp-flow-frame .sp-toolbar .mpip-badge,
.device .sp-toolbar .mpip-badge,
.lp-flow-frame .word-ribbon .mpip-badge,
.device .word-ribbon .mpip-badge {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}

/* --- SharePoint chrome — light --- */
.lp-flow-frame .sp-header,
.device .sp-header {
  background: linear-gradient(180deg, #ffffff, #f7f5f0);
  border-bottom-color: #e7e5e0;
}
.lp-flow-frame .sp-header .crumb,
.device .sp-header .crumb { color: #87837a; }
.lp-flow-frame .sp-header .crumb b,
.device .sp-header .crumb b { color: #44423d; }
.lp-flow-frame .sp-header .title,
.device .sp-header .title { color: #18181b; }
.lp-flow-frame .sp-header .meta-row,
.device .sp-header .meta-row { color: #87837a; }
.lp-flow-frame .sp-toolbar,
.device .sp-toolbar {
  background: #f7f5f0;
  border-bottom-color: #e7e5e0;
  color: #525050;
}
.lp-flow-frame .sp-toolbar .act,
.device .sp-toolbar .act {
  background: #ffffff;
  border-color: #d6d1c5;
  color: #44423d;
}

/* --- Word Online — keep iconic blue --- */
.lp-flow-frame .word-header,
.device .word-header {
  background: #2b579a;
  color: #ffffff;
  border-bottom-color: #2b579a;
}
.lp-flow-frame .word-header .docname,
.device .word-header .docname,
.lp-flow-frame .word-header .wlogo,
.device .word-header .wlogo { color: #ffffff; }
.lp-flow-frame .word-header .right,
.device .word-header .right { color: rgba(255,255,255,0.7); }
.lp-flow-frame .word-ribbon,
.device .word-ribbon {
  background: #f7f5f0;
  border-bottom-color: #e7e5e0;
  color: #87837a;
}
.lp-flow-frame .word-ribbon .grp,
.device .word-ribbon .grp { color: #44423d; }
.lp-flow-frame .word-ribbon .grp.active,
.device .word-ribbon .grp.active { color: #2b579a; }

/* --- Outlook bar — keep blue --- */
.lp-flow-frame .outlook-bar,
.device .outlook-bar {
  background: #0078d4;
  color: #ffffff;
  border-bottom-color: #0078d4;
}
.lp-flow-frame .outlook-bar .olabel,
.device .outlook-bar .olabel { color: #ffffff; }

/* --- Power Apps rail — light --- */
.lp-flow-frame .papps-rail,
.device .papps-rail {
  background: #f0eee9;
  border-bottom-color: #e7e5e0;
  color: #44423d;
}
.lp-flow-frame .papps-rail .plogo,
.device .papps-rail .plogo { color: #742774; }

/* --- MPIP sliver at bottom of every frame --- */
.lp-flow-frame .mpip-sliver,
.device .mpip-sliver {
  background: linear-gradient(90deg, rgba(10,10,10,0.04), rgba(10,10,10,0));
  border-top: 1px dashed rgba(10,10,10,0.15);
  color: #87837a;
}
.lp-flow-frame .mpip-sliver b,
.device .mpip-sliver b { color: #18181b; }

/* --- Chat messages — light --- */
.lp-flow-frame .chat-msg.user,
.device .chat-msg.user {
  background: #ece8df;
  border-color: #0a0a0a;
}
.lp-flow-frame .chat-msg.assist,
.device .chat-msg.assist {
  background: #f7f5f0;
  border-color: #87837a;
}
.lp-flow-frame .chat-msg,
.device .chat-msg { color: #18181b; }
.lp-flow-frame .chat-msg b,
.device .chat-msg b { color: #44423d; }
.lp-flow-frame .chat-cite,
.device .chat-cite { color: #87837a; border-top-color: #d6d1c5; }
.lp-flow-frame .chat-input,
.device .chat-input {
  background: #f7f5f0;
  border-color: #d6d1c5;
  color: #87837a;
}

/* --- Portfolio cards --- */
.lp-flow-frame .mock-card,
.device .mock-card {
  background: #f7f5f0;
  color: #18181b;
}
.lp-flow-frame .mock-card b,
.device .mock-card b { color: #87837a; }
.lp-flow-frame .mock-card .vv,
.device .mock-card .vv { color: #18181b; }

/* --- Audit log --- */
.lp-flow-frame .audit .line,
.device .audit .line {
  background: #f7f5f0;
  border-left-color: #d6d1c5;
  color: #44423d;
}
.lp-flow-frame .audit .line.hit,
.device .audit .line.hit {
  background: rgba(21,128,61,0.07);
  border-left-color: #15803d;
}
.lp-flow-frame .audit .line b,
.device .audit .line b { color: #18181b; }
.lp-flow-frame .audit .ts,
.device .audit .ts { color: #87837a; }

/* --- Flow steps --- */
.lp-flow-frame .flow .step,
.device .flow .step {
  background: #f7f5f0;
  border-color: #d6d1c5;
  color: #44423d;
}
.lp-flow-frame .flow .step b,
.device .flow .step b { color: #18181b; }
.lp-flow-frame .flow .step.ok,
.device .flow .step.ok {
  background: rgba(21,128,61,0.07);
  border-color: rgba(21,128,61,0.35);
}
.lp-flow-frame .flow .step.active,
.device .flow .step.active {
  background: rgba(10,10,10,0.04);
  border-color: #0a0a0a;
}
.lp-flow-frame .flow .arrow,
.device .flow .arrow { color: #87837a; }

/* --- Queue rows --- */
.lp-flow-frame .qrow,
.device .qrow {
  background: #f7f5f0;
  color: #44423d;
}
.lp-flow-frame .qrow .when,
.device .qrow .when { color: #87837a; }

/* --- RFP table --- */
.lp-flow-frame .rfp-table,
.device .rfp-table { background: #d6d1c5; }
.lp-flow-frame .rfp-table > div,
.device .rfp-table > div { background: #ffffff; color: #44423d; }
.lp-flow-frame .rfp-table .h,
.device .rfp-table .h { background: #f0eee9; color: #87837a; }
.lp-flow-frame .rfp-table .name,
.device .rfp-table .name { color: #18181b; }
.lp-flow-frame .score.hi,
.device .score.hi { background: rgba(21,128,61,0.12); color: #15803d; }
.lp-flow-frame .score.md,
.device .score.md { background: rgba(180,83,9,0.14); color: #b45309; }
.lp-flow-frame .score.lo,
.device .score.lo { background: rgba(135,131,122,0.18); color: #87837a; }

/* --- Email list --- */
.lp-flow-frame .maillist,
.device .maillist { background: #ebe7dd; }
.lp-flow-frame .mailrow,
.device .mailrow { background: #ffffff; color: #44423d; }
.lp-flow-frame .mailrow .from,
.device .mailrow .from { color: #18181b; }
.lp-flow-frame .mailrow .meta,
.device .mailrow .meta { color: #87837a; }
.lp-flow-frame .mailrow.routed,
.device .mailrow.routed { background: rgba(21,128,61,0.05); }

/* --- Cross-project pattern callout --- */
.lp-flow-frame .pattern,
.device .pattern {
  background: linear-gradient(180deg, rgba(109,40,217,0.04), transparent), #ffffff;
  border-color: rgba(109,40,217,0.3);
  color: #44423d;
}
.lp-flow-frame .pattern .ptag,
.device .pattern .ptag { color: #6d28d9; }
.lp-flow-frame .pattern .ph,
.device .pattern .ph { color: #18181b; }

/* --- Lineage tree --- */
.lp-flow-frame .lineage .node,
.device .lineage .node {
  background: #f7f5f0;
  border-left-color: #d6d1c5;
  color: #44423d;
}
.lp-flow-frame .lineage .node.active,
.device .lineage .node.active {
  border-left-color: #0a0a0a;
  color: #18181b;
}
.lp-flow-frame .lineage .node b,
.device .lineage .node b { color: #18181b; }

/* --- Budget rows --- */
.lp-flow-frame .budget-row,
.device .budget-row {
  background: #f7f5f0;
  color: #44423d;
}
.lp-flow-frame .budget-row.h,
.device .budget-row.h {
  background: #f0eee9;
  color: #87837a;
}

/* --- Mobile frame switches to light Microsoft mobile --- */
.mobile-frame {
  background: #f0eee9;
  border-color: #d6d1c5;
}
.mobile-frame .mobile-screen { background: #ffffff; color: #18181b; }
.mobile-frame .mobile-screen h4 { color: #18181b; }
.mobile-frame .mobile-screen .photo {
  background: #ece8df;
  color: #87837a;
}
.mobile-frame .mobile-screen .field {
  background: #f7f5f0;
  color: #44423d;
}
.mobile-frame .mobile-screen .field b { color: #87837a; }
.mobile-frame .mobile-screen .btn {
  background: #0a0a0a;
  color: #ffffff;
}

/* --- Doc preview (Word-style document) — already light, just confirm --- */
.lp-flow-frame .doc-preview,
.device .doc-preview { background: #ffffff; color: #1a1a1a; }

/* ---------- Dark footer (matching Margolin) ---------- */
body.lp-page footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.5);
  border-top: 0;
  margin: 64px calc(50% - 50vw) 0;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding-top: 32px;
  padding-bottom: 32px;
}
body.lp-page footer span { color: rgba(255,255,255,0.55); }

/* ---------- Section divider tweaks ---------- */
.lp-page .lp-section + .lp-section {
  border-top-color: #ebe7dd;
}

/* ---------- Brand logo color: white when in dark hero context ---------- */
/* (Already uses currentColor; topnav stays light so logo is dark — perfect) */

/* =========================================================
   ===== CAROUSEL ANIMATIONS (30% faster) =====
   ========================================================= */

/* 30% faster transition (.45s × 0.7 ≈ .315s) */
.lp-carousel-track {
  transition: transform 0.315s cubic-bezier(0.22, 0.1, 0.25, 1);
}

/* Hide all animated children by default; they'll fade in when .is-active */
.lp-carousel-slide .chat-msg,
.lp-carousel-slide .audit .line,
.lp-carousel-slide .flow > .step,
.lp-carousel-slide .flow > .arrow,
.lp-carousel-slide .mock-portfolio .mock-card,
.lp-carousel-slide .mobile-screen h4,
.lp-carousel-slide .mobile-screen .photo,
.lp-carousel-slide .mobile-screen .field,
.lp-carousel-slide .mobile-screen .btn,
.lp-carousel-slide .mpip-sliver,
.lp-carousel-slide .lp-callout {
  opacity: 0;
}

/* --- Slide 1: Chat (user types, assistant replies, citations appear) --- */
.lp-carousel-slide.is-active .chat-msg.user {
  animation: lpFadeUp 0.30s 0.10s ease-out both;
}
.lp-carousel-slide.is-active .chat-msg.assist {
  animation: lpFadeUp 0.40s 0.65s ease-out both;
}
.lp-carousel-slide.is-active .chat-msg.assist .chat-cite {
  opacity: 0;
  animation: lpFadeIn 0.30s 1.20s ease-out both;
}

/* --- Slide 2: Dashboard (portfolio cards stagger in) --- */
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(1) { animation: lpFadeUp 0.22s 0.10s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(2) { animation: lpFadeUp 0.22s 0.16s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(3) { animation: lpFadeUp 0.22s 0.22s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(4) { animation: lpFadeUp 0.22s 0.28s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(5) { animation: lpFadeUp 0.22s 0.34s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(6) { animation: lpFadeUp 0.22s 0.40s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(7) { animation: lpFadeUp 0.22s 0.46s ease-out both; }
.lp-carousel-slide.is-active .mock-portfolio .mock-card:nth-child(8) { animation: lpFadeUp 0.22s 0.52s ease-out both; }

/* --- Slide 3: Audit log (rows appear one by one) --- */
.lp-carousel-slide.is-active .audit .line:nth-child(1) { animation: lpFadeUp 0.25s 0.20s ease-out both; }
.lp-carousel-slide.is-active .audit .line:nth-child(2) { animation: lpFadeUp 0.25s 0.45s ease-out both; }
.lp-carousel-slide.is-active .audit .line:nth-child(3) { animation: lpFadeUp 0.25s 0.70s ease-out both; }
.lp-carousel-slide.is-active .audit .line:nth-child(4) { animation: lpFadeUp 0.25s 0.95s ease-out both; }

/* --- Slide 4: Transmittal flow (steps light up sequentially) --- */
.lp-carousel-slide.is-active .flow > .step:nth-child(1)  { animation: lpStepIn 0.30s 0.10s ease-out both; }
.lp-carousel-slide.is-active .flow > .arrow:nth-child(2) { animation: lpFadeIn 0.18s 0.30s ease-out both; }
.lp-carousel-slide.is-active .flow > .step:nth-child(3)  { animation: lpStepIn 0.30s 0.32s ease-out both; }
.lp-carousel-slide.is-active .flow > .arrow:nth-child(4) { animation: lpFadeIn 0.18s 0.55s ease-out both; }
.lp-carousel-slide.is-active .flow > .step:nth-child(5)  { animation: lpStepIn 0.30s 0.55s ease-out both; }
.lp-carousel-slide.is-active .flow > .arrow:nth-child(6) { animation: lpFadeIn 0.18s 0.80s ease-out both; }
.lp-carousel-slide.is-active .flow > .step:nth-child(7)  { animation: lpStepIn 0.30s 0.78s ease-out both; }
.lp-carousel-slide.is-active .flow > .arrow:nth-child(8) { animation: lpFadeIn 0.18s 1.05s ease-out both; }
.lp-carousel-slide.is-active .flow > .step:nth-child(9)  { animation: lpStepIn 0.30s 1.00s ease-out both; }

/* --- Slide 5: Mobile capture (fields fill in, button pulses) --- */
.lp-carousel-slide.is-active .mobile-screen h4    { animation: lpFadeUp 0.25s 0.10s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .photo { animation: lpFadeUp 0.30s 0.25s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .field:nth-of-type(1) { animation: lpFadeRight 0.22s 0.45s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .field:nth-of-type(2) { animation: lpFadeRight 0.22s 0.60s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .field:nth-of-type(3) { animation: lpFadeRight 0.22s 0.75s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .field:nth-of-type(4) { animation: lpFadeRight 0.22s 0.90s ease-out both; }
.lp-carousel-slide.is-active .mobile-screen .btn  { animation: lpPulseBtn 0.40s 1.10s ease-out both; }

/* --- MPIP sliver and callouts (every slide) --- */
.lp-carousel-slide.is-active .mpip-sliver { animation: lpFadeIn 0.30s 1.30s ease-out both; }
.lp-carousel-slide.is-active .lp-callout:nth-child(1) { animation: lpFadeRight 0.28s 0.30s ease-out both; }
.lp-carousel-slide.is-active .lp-callout:nth-child(2) { animation: lpFadeRight 0.28s 0.45s ease-out both; }
.lp-carousel-slide.is-active .lp-callout:nth-child(3) { animation: lpFadeRight 0.28s 0.60s ease-out both; }

/* Keyframes */
@keyframes lpFadeIn {
  to { opacity: 1; }
}
@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lpFadeRight {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lpStepIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lpPulseBtn {
  0%   { opacity: 0; transform: scale(0.92); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lp-carousel-slide *,
  .lp-carousel-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   ===== MARGOLIN OFFICIAL DESIGN SYSTEM (final) =====
   Sourced directly from margolin.webflow.shared.876eb28f5.css
   Brand vars · Polin typeface · navy/blue/beige section system
   ========================================================= */

/* ---------- Polin (Margolin custom Hebrew typeface) ---------- */
@font-face {
  font-family: 'Polin';
  src: url('Polin-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Polin';
  src: url('Polin-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Polin';
  src: url('Polin-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Margolin brand palette ---------- */
:root {
  --mar-almost-white:    #f7f7f8;
  --mar-black-pearl:     #091832;
  --mar-blue-sky:        #6395e0;
  --mar-blue-sky-darker: #166ae9;
  --mar-brand-blue:      #001c9c;
  --mar-golden-brown:    #90661d;
  --mar-dark-purple:     #5e4df2;
  --mar-soft-beige:      #d6b690;
  --mar-soft-beige-2:    #e5d2b8;

  /* Re-bind the existing app tokens to Margolin's actual brand values */
  --bg:       var(--mar-almost-white);
  --panel:    #ffffff;
  --panel-2:  #f0eee9;
  --panel-3:  #e7e3d8;
  --line:     #e3dfd3;
  --line-2:   #cfcabc;
  --line-3:   #aba599;
  --ink:      var(--mar-black-pearl);
  --ink-dim:  #2a3656;
  --ink-mute: #5d6c7b;
  --accent:   var(--mar-black-pearl);
  --accent-2: var(--mar-blue-sky-darker);
}

/* ---------- Body typography: Polin first ---------- */
html, body {
  font-family: 'Polin', -apple-system, BlinkMacSystemFont, 'Heebo', 'Assistant', 'Segoe UI', sans-serif;
  font-weight: 400;
}

/* Subtle weight harmony — headings use Polin Medium (500) */
h1, h2, h3, .lp-section-title, .lp-persona-who, .lp-flow-cap, .brand {
  font-weight: 500;
}
.lp-hero h1 { font-weight: 500; letter-spacing: -0.024em; }

/* ---------- Topnav: light cream with navy text ---------- */
.topnav { background: rgba(247, 247, 248, 0.88); border-bottom-color: var(--line); }
.brand-logo { color: var(--mar-black-pearl); }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { background: rgba(9, 24, 50, 0.04); color: var(--mar-black-pearl); }
.nav-links a.active { background: rgba(9, 24, 50, 0.06); color: var(--mar-black-pearl); }
.nav-meta b { color: var(--mar-brand-blue); }

/* ============================================================
   SECTION VARIANTS — full-bleed light / navy / beige / blue
   ============================================================ */

/* Light section (default) — already handled by body bg */
.lp-section { background: transparent; }

/* Dark navy section (matches Margolin's hero + numbers + footer) */
.lp-section--dark,
.lp-hero {
  background: var(--mar-black-pearl);
  color: var(--mar-almost-white);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.lp-section--dark .lp-section-title,
.lp-hero h1 { color: var(--mar-almost-white); }
.lp-section--dark .lp-section-sub,
.lp-hero-sub { color: rgba(247, 247, 248, 0.7); }
.lp-section--dark .lp-eyebrow,
.lp-hero-eyebrow { color: var(--mar-blue-sky); }
.lp-section--dark .lp-eyebrow { letter-spacing: 0.22em; }
.lp-hero-eyebrow .dot { background: var(--mar-blue-sky); box-shadow: 0 0 14px rgba(99, 149, 224, 0.55); }
.lp-section--dark .lp-link,
.lp-hero a { color: var(--mar-blue-sky); }
.lp-section--dark .lp-link:hover { color: var(--mar-almost-white); }

/* Architecture preview tiles on dark */
.lp-section--dark .lp-arch-layer {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 247, 248, 0.7);
}
.lp-section--dark .lp-arch-layer:hover { background: rgba(255, 255, 255, 0.07); }
.lp-section--dark .lp-arch-layer .ll { color: var(--mar-almost-white); }
.lp-section--dark .lp-arch-layer .lc { color: rgba(247, 247, 248, 0.5); }
.lp-section--dark .lp-arch-layer.l1 { border-right-color: var(--mar-blue-sky-darker); }
.lp-section--dark .lp-arch-layer.l2 { border-right-color: var(--mar-blue-sky); }
.lp-section--dark .lp-arch-layer.l3 { border-right-color: var(--mar-soft-beige); }
.lp-section--dark .lp-arch-layer.l4 { border-right-color: var(--mar-dark-purple); }
.lp-section--dark .lp-arch-copy h3 { color: var(--mar-almost-white); }
.lp-section--dark .lp-arch-copy h3 em { color: var(--mar-blue-sky); font-style: normal; }
.lp-section--dark .lp-arch-copy p { color: rgba(247, 247, 248, 0.7); }
.lp-section--dark .lp-arch-copy p em { color: var(--mar-blue-sky); font-style: normal; }

/* KPIs on dark */
.lp-section--dark .lp-kpi-num { color: var(--mar-almost-white); }
.lp-section--dark .lp-kpi-num em { color: var(--mar-blue-sky); font-style: normal; }
.lp-section--dark .lp-kpi-unit { color: rgba(247, 247, 248, 0.55); }
.lp-section--dark .lp-kpi-label { color: rgba(247, 247, 248, 0.55); }
.lp-section--dark .lp-kpi-spot { color: rgba(247, 247, 248, 0.5); }

/* CTA buttons on dark hero */
.lp-hero-cta {
  background: var(--mar-blue-sky-darker);
  color: #ffffff !important;
}
.lp-hero-cta:hover {
  background: var(--mar-brand-blue);
  box-shadow: 0 12px 30px rgba(22, 106, 233, 0.35);
}
.lp-hero-cta-sec { color: rgba(247, 247, 248, 0.65); }
.lp-hero-cta-sec:hover { color: var(--mar-almost-white); }
.lp-hero-meta { color: rgba(247, 247, 248, 0.4); }
.lp-hero-meta b { color: rgba(247, 247, 248, 0.85); }
.lp-hero::before {
  background: radial-gradient(circle, rgba(99, 149, 224, 0.12), transparent 65%);
}

/* Beige section (warm sandy — construction industry feel) */
.lp-section--beige {
  background: var(--mar-soft-beige);
  color: var(--mar-black-pearl);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.lp-section--beige .lp-section-title { color: var(--mar-black-pearl); }
.lp-section--beige .lp-section-sub { color: rgba(9, 24, 50, 0.7); }
.lp-section--beige .lp-eyebrow { color: var(--mar-brand-blue); }
.lp-section--beige .lp-link { color: var(--mar-brand-blue); }
.lp-section--beige .lp-link:hover { color: var(--mar-black-pearl); }
.lp-section--beige .lp-proc {
  background: rgba(9, 24, 50, 0.04);
  color: var(--mar-black-pearl);
}
.lp-section--beige .lp-proc:hover { background: rgba(9, 24, 50, 0.08); }
.lp-section--beige .lp-proc-num { color: rgba(9, 24, 50, 0.55); }
.lp-section--beige .lp-proc-en { color: var(--mar-black-pearl); }
.lp-section--beige .lp-proc-he { color: rgba(9, 24, 50, 0.7); }

/* Blue-tint section (subtle blue-sky background — used as a quiet variant) */
.lp-section--blue {
  background: linear-gradient(180deg, rgba(99, 149, 224, 0.10), rgba(99, 149, 224, 0.02));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}
.lp-section--blue .lp-eyebrow { color: var(--mar-brand-blue); }

/* ---------- Default-light accent / non-dark-section colors ---------- */
.lp-eyebrow { color: var(--mar-brand-blue); }
.lp-link { color: var(--mar-brand-blue); }
.lp-link:hover { color: var(--mar-blue-sky-darker); }
.lp-hero h1 em,
.lp-section-sub em,
.lp-arch-copy h3 em,
.lp-arch-copy p em,
.lp-kpi-num em { color: var(--mar-blue-sky); }

/* CTAs on light bg: navy filled */
.lp-hero-cta {
  /* hero is dark, so the inverted style above applies there */
}

/* CTA strip on light pages */
.lp-cta-strip {
  background: linear-gradient(135deg, rgba(99, 149, 224, 0.08), rgba(99, 149, 224, 0));
  border-color: rgba(99, 149, 224, 0.25);
}
.lp-cta-strip h3 { color: var(--mar-black-pearl); }
.lp-cta-strip p { color: rgba(9, 24, 50, 0.7); }
.lp-cta-strip-actions a { background: rgba(9, 24, 50, 0.03); }
.lp-cta-strip-actions a:hover { background: rgba(9, 24, 50, 0.07); }
.lp-cta-strip-actions a b { color: var(--mar-brand-blue); }

/* Footer: navy */
body.lp-page footer {
  background: var(--mar-black-pearl);
  color: rgba(247, 247, 248, 0.55);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* M365 positioning grid on light section */
.lp-m365-cell:nth-child(1) .lp-m365-icon { color: #6264a7; background: rgba(98,100,167,0.08); }
.lp-m365-cell:nth-child(2) .lp-m365-icon { color: var(--mar-brand-blue); background: rgba(0,28,156,0.08); }
.lp-m365-cell:nth-child(3) .lp-m365-icon { color: #0078d4; background: rgba(0,120,212,0.08); }
.lp-m365-cell:nth-child(4) .lp-m365-icon { color: #2b579a; background: rgba(43,87,154,0.08); }
.lp-m365-cell:nth-child(5) .lp-m365-icon { color: var(--mar-dark-purple); background: rgba(94,77,242,0.08); }
.lp-m365-cell:nth-child(6) .lp-m365-icon { color: var(--mar-blue-sky-darker); background: rgba(22,106,233,0.08); }

/* Carousel controls: blue accent on light */
.lp-carousel-btn:hover {
  background: rgba(22, 106, 233, 0.08);
  border-color: var(--mar-blue-sky-darker);
  color: var(--mar-brand-blue);
}
.lp-dot.active { background: var(--mar-brand-blue); }
.lp-carousel-counter b { color: var(--mar-brand-blue); }

/* Callout bullets — Margolin blue */
.lp-callout-bullet {
  background: rgba(22, 106, 233, 0.12);
  color: var(--mar-brand-blue);
}

/* MPIP badge inside device frames: navy not pure black */
.lp-flow-frame .teams-tabbar .mpip-badge,
.device .teams-tabbar .mpip-badge,
.lp-flow-frame .sp-toolbar .mpip-badge,
.device .sp-toolbar .mpip-badge,
.lp-flow-frame .word-ribbon .mpip-badge,
.device .word-ribbon .mpip-badge {
  background: var(--mar-black-pearl);
  color: var(--mar-almost-white);
  border-color: var(--mar-black-pearl);
}

/* Chat user bubble: deep navy edge */
.lp-flow-frame .chat-msg.user,
.device .chat-msg.user { border-color: var(--mar-black-pearl); }

/* Mobile button → navy */
.mobile-frame .mobile-screen .btn { background: var(--mar-black-pearl); }

/* =========================================================
   ===== FIX: 18 processes section — refined cream + white cards =====
   ========================================================= */

.lp-section--beige {
  background: linear-gradient(180deg, #f4ead4 0%, #ede0c0 100%);
  color: var(--mar-black-pearl);
}

/* Override the tile styling — white cards stand out from the cream wash */
.lp-section--beige .lp-procs {
  gap: 12px;
}
.lp-section--beige .lp-proc {
  background: #ffffff;
  border: 1px solid rgba(9, 24, 50, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(9, 24, 50, 0.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
}
.lp-section--beige .lp-proc:hover {
  background: #ffffff;
  border-color: var(--mar-blue-sky);
  box-shadow: 0 8px 20px rgba(0, 28, 156, 0.10);
  transform: translateY(-2px);
}
.lp-section--beige .lp-proc-num {
  font: 700 10px/1 inherit;
  letter-spacing: 0.14em;
  color: var(--mar-brand-blue);
}
.lp-section--beige .lp-proc-en {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mar-black-pearl);
  letter-spacing: -0.005em;
}
.lp-section--beige .lp-proc-he {
  font-size: 12px;
  color: rgba(9, 24, 50, 0.55);
  margin-top: 3px;
  font-weight: 400;
}

/* Section header on beige: ensure good contrast */
.lp-section--beige .lp-eyebrow { color: var(--mar-brand-blue); }
.lp-section--beige .lp-section-title { color: var(--mar-black-pearl); }
.lp-section--beige .lp-section-sub { color: rgba(9, 24, 50, 0.72); }
.lp-section--beige .lp-link {
  color: var(--mar-brand-blue);
  font-weight: 500;
}
.lp-section--beige .lp-link:hover { color: var(--mar-black-pearl); }

/* =========================================================
   ===== MARGOLIN RADIUS SCALE + EASING + INTRO ANIMATIONS =====
   ========================================================= */

:root {
  /* Margolin radius scale (matches their compiled CSS) */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* Margolin signature easing */
  --ease-mar: cubic-bezier(.645, .045, .355, 1);
}

/* --- Enforce conservative radii everywhere --- */

/* Large containers — 8px (was 10-16px) */
.kpi, .panel, .lp-money, .lp-cta-strip, .lp-carousel-viewport,
.section-fullscreen .panel, .integ, .phase, .risk,
.schema-table, .arch-svg-wrap, .layer, .rf-shell,
.sketch, .device, .doc-preview, .lp-flow-frame { border-radius: var(--r-md) !important; }

/* Medium cards — 4px (was 6-10px) */
.proc, .lp-proc, .lp-arch-layer, .item, .mock-card, .qrow,
.tier-row, .lineage .node, .audit .line, .mailrow,
.budget-row, .pattern, .chat-msg, .field, .step,
.lp-cta-strip-actions a, .lp-m365-icon { border-radius: var(--r-sm) !important; }

/* Small chips / pills / badges — 2px */
.pill, .badge, .stag, .mpip-badge, .score, .draft-tag,
.chat-cite, .chat-input, .sp-toolbar .act, .lp-dot,
.brand .logo, .mobile-screen .field, .rf-controls button { border-radius: var(--r-xs) !important; }

/* CTAs — 4px (was 8px), button-like */
.lp-hero-cta, .lp-hero-cta-sec, .mobile-screen .btn { border-radius: var(--r-sm) !important; }

/* Carousel buttons stay round */
.lp-carousel-btn { border-radius: var(--r-circle) !important; }

/* Brand logo container keeps its squircle */
.brand .logo { border-radius: var(--r-sm) !important; }

/* Avatar circles stay round */
.m365-bar .avatar { border-radius: var(--r-circle) !important; }

/* Image-frame / hero glow — 12px (the largest, used sparingly) */
.lp-money, .lp-carousel-viewport { border-radius: var(--r-lg) !important; }

/* --- Adopt Margolin's signature easing on all transitions --- */
* {
  transition-timing-function: var(--ease-mar);
}

/* =========================================================
   ===== HERO INTRO ANIMATION (Margolin-style) =====
   On-load reveal: eyebrow → headline → sub → CTAs → meta
   Uses cubic-bezier(.645, .045, .355, 1)
   ========================================================= */

@keyframes marRevealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marRevealDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes marExpandLine {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Topnav: slide down on load */
.topnav {
  animation: marRevealDown 0.6s var(--ease-mar) both;
}

/* Hero children: stagger reveal */
.lp-hero .lp-hero-eyebrow {
  animation: marRevealUp 0.9s 0.10s var(--ease-mar) both;
}
.lp-hero h1 {
  animation: marRevealUp 1.2s 0.25s var(--ease-mar) both;
}
.lp-hero h1 em {
  display: inline-block;
  animation: marRevealUp 1.2s 0.45s var(--ease-mar) both;
}
.lp-hero-sub {
  animation: marRevealUp 1.0s 0.55s var(--ease-mar) both;
}
.lp-hero-actions {
  animation: marRevealUp 0.8s 0.75s var(--ease-mar) both;
}
.lp-hero-meta {
  animation: marRevealUp 0.8s 0.95s var(--ease-mar) both;
}

/* Underline accent on the hero <em> emphasis (Margolin signature underline animation) */
.lp-hero h1 em {
  position: relative;
}
.lp-hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--mar-blue-sky);
  transform-origin: right center;
  animation: marExpandLine 0.9s 1.3s var(--ease-mar) both;
}

/* Subtle hero dot pulse (the brand accent — eyebrow dot pulses softly) */
.lp-hero-eyebrow .dot {
  animation: marDotPulse 2s 1.6s var(--ease-mar) infinite;
}
@keyframes marDotPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(99, 149, 224, 0.45);
  }
  50% {
    box-shadow: 0 0 24px rgba(99, 149, 224, 0.85);
  }
}

/* Scroll-revealed elements (apply class via JS or rely on IntersectionObserver) */
.lp-section .lp-section-h,
.lp-section .lp-money,
.lp-section .lp-arch-preview,
.lp-section .lp-flows,
.lp-section .lp-procs,
.lp-section .lp-m365,
.lp-section .lp-kpis,
.lp-section .lp-cta-strip {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-mar), transform 0.9s var(--ease-mar);
}
.lp-section.is-revealed .lp-section-h,
.lp-section.is-revealed .lp-money,
.lp-section.is-revealed .lp-arch-preview,
.lp-section.is-revealed .lp-flows,
.lp-section.is-revealed .lp-procs,
.lp-section.is-revealed .lp-m365,
.lp-section.is-revealed .lp-kpis,
.lp-section.is-revealed .lp-cta-strip {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger the inner content reveal */
.lp-section.is-revealed .lp-money,
.lp-section.is-revealed .lp-arch-preview,
.lp-section.is-revealed .lp-flows,
.lp-section.is-revealed .lp-procs,
.lp-section.is-revealed .lp-m365,
.lp-section.is-revealed .lp-kpis,
.lp-section.is-revealed .lp-cta-strip {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .topnav, .lp-hero *, .lp-section * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================
   ===== MARGOLIN SPLASH SCREEN + CURTAIN REVEAL =====
   Replicates Margolin's signature opening: navy overlay covering
   the page, logo + tagline center, then lifts up curtain-style.
   Hero text uses translate3d(0, 105%, 0) curtain reveal.
   ========================================================= */

/* Splash overlay */
.mar-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--mar-black-pearl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  will-change: transform;
  animation: marSplashLift 1.2s 1.4s var(--ease-mar) forwards;
}
.mar-splash.skip {
  display: none !important;
}
.mar-splash-logo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0;
  animation: marSplashFadeIn 0.7s 0.10s var(--ease-mar) forwards;
}
.mar-splash-logo {
  width: 220px;
  height: auto;
  color: var(--mar-almost-white);
}
.mar-splash-tagline {
  font: 500 11px/1 'Polin', sans-serif;
  letter-spacing: 0.32em;
  color: rgba(247, 247, 248, 0.55);
}
.mar-splash-progress {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: rgba(247, 247, 248, 0.12);
  overflow: hidden;
}
.mar-splash-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mar-blue-sky);
  transform-origin: right center;
  animation: marSplashProgress 1.4s 0.10s var(--ease-mar) forwards;
}

@keyframes marSplashFadeIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes marSplashProgress {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes marSplashLift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* While splash is showing, prevent content scroll-pop */
body.mar-splash-active { overflow: hidden; }

/* =========================================================
   Hero curtain text reveal (matches Margolin's translate3d 105%)
   Delayed so it starts as the splash is lifting off
   ========================================================= */

/* Wrap every hero text line in overflow:hidden so the reveal slides
   the text up from "behind" the lines below it. */
.lp-hero h1,
.lp-hero-sub,
.lp-hero-eyebrow,
.lp-hero-actions,
.lp-hero-meta {
  overflow: hidden;
}

/* Override the earlier animations to use longer Margolin-style timing,
   triggered AFTER the splash lifts (~1.7s into page load). */
.lp-hero .lp-hero-eyebrow {
  animation: marCurtainUp 1.0s 1.50s var(--ease-mar) both;
}
.lp-hero h1 {
  animation: none;  /* parent does NOT animate, only inner span */
}
.lp-hero h1 > * {
  display: inline-block;
  animation: marCurtainUp 1.4s 1.70s var(--ease-mar) both;
}
.lp-hero h1 em {
  display: inline-block;
  animation: marCurtainUp 1.4s 2.00s var(--ease-mar) both;
}
.lp-hero-sub {
  animation: marCurtainUp 1.1s 2.20s var(--ease-mar) both;
}
.lp-hero-actions {
  animation: marCurtainUp 0.9s 2.45s var(--ease-mar) both;
}
.lp-hero-meta {
  animation: marCurtainUp 0.9s 2.65s var(--ease-mar) both;
}
.lp-hero h1 em::after {
  animation: marExpandLine 1.0s 2.95s var(--ease-mar) both;
}
.lp-hero-eyebrow .dot {
  animation: marDotPulse 2s 3.20s var(--ease-mar) infinite;
}

@keyframes marCurtainUp {
  0%   { transform: translate3d(0, 105%, 0); opacity: 0; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Reduced-motion respect: skip splash entirely */
@media (prefers-reduced-motion: reduce) {
  .mar-splash { display: none !important; }
  .lp-hero * { animation: none !important; transform: none !important; opacity: 1 !important; }
  body.mar-splash-active { overflow: auto; }
}

/* =========================================================
   ===== MARGOLIN AUTHENTIC OPENING (matches mec.co.il) =====
   No logo splash overlay. The "splash" is the dark navy hero
   with the nav dropping from -7rem and all hero text rising
   from translate3d(0, 105%, 0).
   ========================================================= */

/* Disable the previous fake-splash overlay */
.mar-splash { display: none !important; }

/* Override the topnav reveal — exactly Margolin's pattern */
.topnav {
  animation: marNavDrop 0.8s 0.40s cubic-bezier(.215, .61, .355, 1) both;
}
@keyframes marNavDrop {
  0%   { transform: translate3d(0, -7rem, 0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Hero text curtain reveal — Margolin's exact translate3d(0, 105%, 0) pattern */
.lp-hero .lp-hero-eyebrow,
.lp-hero h1,
.lp-hero h1 em,
.lp-hero-sub,
.lp-hero-actions,
.lp-hero-meta {
  overflow: visible;
}
.lp-hero .lp-hero-eyebrow,
.lp-hero-sub,
.lp-hero-actions,
.lp-hero-meta {
  display: block;
  /* Each becomes its own curtain box */
}

/* Inner reveal — fires after a 400ms blank pause to mimic the "splash" sensation */
.lp-hero .lp-hero-eyebrow { animation: marCurtainUp 1.0s 0.50s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero h1               { animation: marCurtainUp 1.2s 0.70s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero h1 em            { animation: marCurtainUp 1.2s 0.95s cubic-bezier(.215, .61, .355, 1) both; display: inline-block; }
.lp-hero-sub              { animation: marCurtainUp 1.0s 1.15s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero-actions          { animation: marCurtainUp 0.9s 1.40s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero-meta             { animation: marCurtainUp 0.9s 1.60s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero h1 em::after     { animation: marExpandLine 0.9s 1.95s cubic-bezier(.215, .61, .355, 1) both; }
.lp-hero-eyebrow .dot     { animation: marDotPulse 2.4s 2.10s cubic-bezier(.215, .61, .355, 1) infinite; }

/* The translate3d(0, 105%) is Margolin's signature — gives a "lifting from below the line" feel */
@keyframes marCurtainUp {
  0%   { transform: translate3d(0, 105%, 0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Subtle veil fade on hero — replicates the empty-navy "splash" moment */
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mar-black-pearl);
  pointer-events: none;
  z-index: 5;
  animation: marVeilLift 0.4s 0.30s cubic-bezier(.215, .61, .355, 1) both;
}
@keyframes marVeilLift {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .topnav, .lp-hero *, .lp-hero::after { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* =========================================================
   ===== TASTE-SKILL UPGRADE — 2026-05-20 (DV=8 MI=6 VD=4) =====
   Perpetual motion utilities + bento variance + refined card
   hover. All GPU-only (transform + opacity). Brand-locked
   tokens. prefers-reduced-motion honored.
   ========================================================= */

/* --- Perpetual motion: gradient rail sweep along a line --- */
@keyframes gx-rail-sweep {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}
.gx-rail-sweep {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 149, 224, 0.35) 30%,
    rgba(22, 106, 233, 0.55) 50%,
    rgba(99, 149, 224, 0.35) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: gx-rail-sweep 6.4s linear infinite;
}

/* --- Breathing dot (status indicator) — for the "current" phase, live status --- */
@keyframes gx-breath {
  0%, 100% { transform: scale(1);   opacity: 0.85; box-shadow: 0 0 0 0 rgba(22,106,233,0.45); }
  50%      { transform: scale(1.08); opacity: 1;    box-shadow: 0 0 0 6px rgba(22,106,233,0); }
}
.gx-breath {
  animation: gx-breath 2.6s cubic-bezier(.645,.045,.355,1) infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

/* --- Soft pulse for accent labels (subtler than breath) --- */
@keyframes gx-soft-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.gx-soft-pulse { animation: gx-soft-pulse 3.2s ease-in-out infinite; }

/* --- Skeleton shimmer (loading-state aesthetic, reusable as accent) --- */
@keyframes gx-shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position:  150% 0; }
}
.gx-shimmer-edge {
  position: relative;
  overflow: hidden;
}
.gx-shimmer-edge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%, transparent 40%,
    rgba(255,255,255,0.5) 50%, transparent 60%,
    transparent 100%);
  background-size: 200% 100%;
  animation: gx-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* --- Stagger cascade for any list — set --gx-stagger on parent --- */
@keyframes gx-rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gx-stagger > * {
  opacity: 0;
  animation: gx-rise-in 0.55s cubic-bezier(.215,.61,.355,1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* --- Refined card hover (applied to .panel, .integ, .item, .phase) --- */
.panel, .integ, .item, .phase, .risk, .sketch, .schema-table, .tier-row, .ph-card {
  transition: transform .25s var(--ease-mar, cubic-bezier(.645,.045,.355,1)),
              box-shadow .25s var(--ease-mar, cubic-bezier(.645,.045,.355,1)),
              border-color .15s ease;
}
.panel:hover, .integ:hover, .item:hover, .sketch:hover, .schema-table:hover, .tier-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(9, 24, 50, 0.22),
              0 2px 8px -2px rgba(9, 24, 50, 0.08);
}

/* --- Bento grid: variable spans for "anti-3-column" mandate --- */
.gx-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gx-bento > * { grid-column: span 2; }                /* default: 3 across (6/2) */
.gx-bento > [data-span="3"] { grid-column: span 3; }  /* 2 across */
.gx-bento > [data-span="4"] { grid-column: span 4; }  /* feature tile */
.gx-bento > [data-span="6"] { grid-column: span 6; }  /* full width */
.gx-bento > [data-tall]      { grid-row: span 2; }
@media (max-width: 980px) {
  .gx-bento { grid-template-columns: repeat(2, 1fr); }
  .gx-bento > *, .gx-bento > [data-span] { grid-column: span 1; }
  .gx-bento > [data-span="4"], .gx-bento > [data-span="6"] { grid-column: span 2; }
  .gx-bento > [data-tall] { grid-row: span 1; }
}
@media (max-width: 640px) {
  .gx-bento { grid-template-columns: 1fr; }
  .gx-bento > *, .gx-bento > [data-span] { grid-column: span 1; }
}

/* --- Tinted divider — replaces solid hr in dense sections --- */
.gx-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--line-2, #d6d1c5) 20%,
    var(--line-2, #d6d1c5) 80%,
    transparent 100%);
  border: 0;
  margin: 18px 0;
}

/* --- "Live" status pill (used wherever we mark something running/active) --- */
.gx-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10px/1 inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ok, #15803d);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(21,128,61,0.08);
  border: 1px solid rgba(21,128,61,0.22);
}
.gx-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok, #15803d);
  animation: gx-breath 2.6s cubic-bezier(.645,.045,.355,1) infinite;
}

/* --- Bidi-safe FR-code / vendor chip (matches the one used in delivery.html) --- */
.gx-code {
  direction: ltr;
  unicode-bidi: isolate;
  font: 600 10.5px/1 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 2px 5px;
  border-radius: 3px;
  margin-inline: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Honor reduced motion globally for taste-skill animations --- */
@media (prefers-reduced-motion: reduce) {
  .gx-rail-sweep,
  .gx-breath,
  .gx-soft-pulse,
  .gx-shimmer-edge::after,
  .gx-stagger > *,
  .gx-live::before {
    animation: none !important;
  }
  .gx-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================
   ===== FL-PAGE · flow-detail page redesign (2026-05-20) =====
   Scoped to body.fl-page · used by flows-pm/exec/admin.html
   Adds host-colored top stripes, numbered badges, section
   rhythm, sticky TOC sidebar, and anchor scroll polish.
   ========================================================= */

body.fl-page .wrap { max-width: 1400px; }

body.fl-page .sketches {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body.fl-page .sketch {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  position: relative;
  scroll-margin-top: 96px;
  transition: transform .25s var(--ease-mar), box-shadow .25s var(--ease-mar), border-color .15s ease;
}
body.fl-page .sketch:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -20px rgba(9, 24, 50, 0.22),
              0 3px 10px -3px rgba(9, 24, 50, 0.08);
  border-color: var(--line-3);
}

/* Top stripe per host */
body.fl-page .sketch::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to left, #6395e0, #166ae9);
  z-index: 1;
}
body.fl-page .sketch[data-host*="Teams"]::before      { background: linear-gradient(to left, #5b5fc7, #4f52b2); }
body.fl-page .sketch[data-host*="SharePoint"]::before { background: linear-gradient(to left, #038387, #0078d4); }
body.fl-page .sketch[data-host*="Word"]::before       { background: linear-gradient(to left, #2b579a, #1a4480); }
body.fl-page .sketch[data-host*="Outlook"]::before    { background: linear-gradient(to left, #0078d4, #005a9e); }
body.fl-page .sketch[data-host*="PowerApps"]::before  { background: linear-gradient(to left, #742774, #5c1c5c); }
body.fl-page .sketch[data-host*="PowerBI"]::before    { background: linear-gradient(to left, #f2c811, #c2670d); }

/* Sketch head: flex layout · handles any number of trailing .stag spans */
body.fl-page .sketch-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 24px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(99,149,224,0.025), transparent);
  position: relative;
  z-index: 2;
}
body.fl-page .sketch-head h3 {
  flex: 1 1 220px;
  min-width: 0;
}
body.fl-page .sketch-head::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--ink);
  opacity: 0.6;
}

/* Numbered badge in head (replaces the ① in h3) */
body.fl-page .sketch-head .fl-num {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font: 700 16px/1 inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
  direction: ltr;
}
body.fl-page .sketch[data-host*="Teams"] .fl-num      { background: rgba(91,95,199,0.1);  border-color: rgba(91,95,199,0.32);  color: #4f52b2; }
body.fl-page .sketch[data-host*="SharePoint"] .fl-num { background: rgba(0,120,212,0.08); border-color: rgba(0,120,212,0.32);  color: #0078d4; }
body.fl-page .sketch[data-host*="Word"] .fl-num       { background: rgba(43,87,154,0.08); border-color: rgba(43,87,154,0.32);  color: #2b579a; }
body.fl-page .sketch[data-host*="Outlook"] .fl-num    { background: rgba(0,120,212,0.08); border-color: rgba(0,120,212,0.32);  color: #005a9e; }
body.fl-page .sketch[data-host*="PowerApps"] .fl-num  { background: rgba(116,39,116,0.08);border-color: rgba(116,39,116,0.32); color: #742774; }
body.fl-page .sketch[data-host*="PowerBI"] .fl-num    { background: rgba(242,200,17,0.12);border-color: rgba(242,200,17,0.42); color: #8a5f1d; }

body.fl-page .sketch-head h3 {
  font: 600 17px/1.25 inherit;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
body.fl-page .sketch-head h3 bdi { unicode-bidi: isolate; }

body.fl-page .sketch-head .stag {
  font: 700 10px/1 inherit;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  direction: ltr;
  unicode-bidi: isolate;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
}
body.fl-page .sketch-head .stag.host {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
/* Device mockup inside the sketch */
body.fl-page .sketch .device {
  margin: 18px 24px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
}

/* Sketch notes panel — promote from footnote to a proper insight bar */
body.fl-page .sketch-notes {
  margin: 0;
  padding: 14px 24px 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  border-top: 1px dashed var(--line-2);
  background: linear-gradient(180deg, transparent, rgba(99,149,224,0.03));
}
body.fl-page .sketch-notes b { color: var(--ink); font-weight: 600; }
body.fl-page .sketch-notes bdi { unicode-bidi: isolate; }

/* Inline top-of-page TOC — sits inside .wrap, no overlap, collapses to chips on mobile */
body.fl-page .fl-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
body.fl-page .fl-toc-label {
  font: 700 10px/1 inherit;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 6px 0 0;
  padding: 0 12px 0 0;
  border-bottom: 0;
  border-left: 1px solid var(--line);
}
body.fl-page .fl-toc-label {
  font: 700 10px/1 inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
body.fl-page .fl-toc a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  font-size: 11.5px;
  color: var(--ink-dim);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
}
body.fl-page .fl-toc a:hover {
  background: var(--panel);
  border-color: var(--line-3);
  color: var(--ink);
  transform: translateY(-1px);
}
body.fl-page .fl-toc a .fl-toc-num {
  font: 700 10px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink-mute);
  flex-shrink: 0;
  direction: ltr;
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 3px 5px;
  border-radius: 4px;
}
body.fl-page .fl-toc a > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
body.fl-page .fl-toc a.is-active {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}
body.fl-page .fl-toc a.is-active .fl-toc-num { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }

/* Page hero on flow-detail pages */
body.fl-page header.hero { padding-bottom: 32px; margin-bottom: 24px; }
body.fl-page header.hero h1 {
  font: 600 32px/1.15 inherit;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
body.fl-page header.hero .sub { font-size: 15px; }

@media (max-width: 980px) {
  body.fl-page .sketch-head { padding: 18px 18px 14px; gap: 12px; }
  body.fl-page .sketch-head h3 { flex-basis: 100%; }
  body.fl-page .sketch .device { margin: 14px 18px; }
  body.fl-page .sketch-notes { padding: 12px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.fl-page .sketch { transition: none; }
}

/* =========================================================
   ===== Interactive schema ERD (arch-schema.js)
   ========================================================= */

.rf-schema-shell, #rf-schema-mount {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.rf-canvas-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  background: var(--panel-2);
  min-height: 580px;
}

.rf-schema-svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
  background:
    radial-gradient(circle at 50% 50%, rgba(99,149,224,0.04) 0%, transparent 60%),
    var(--panel);
}

.rf-schema-node {
  cursor: pointer;
  transition: opacity .18s ease;
}
.rf-schema-node rect {
  transition: stroke-width .15s ease, filter .15s ease;
}
.rf-schema-node:hover rect,
.rf-schema-node.is-hl rect {
  stroke-width: 2;
  filter: drop-shadow(0 4px 10px rgba(9, 24, 50, 0.18));
}
.rf-schema-node.is-sel rect {
  stroke-width: 2.5;
  filter: drop-shadow(0 6px 18px rgba(22, 106, 233, 0.32));
}
.rf-schema-node.is-dim { opacity: 0.28; }
.rf-schema-anchor rect {
  stroke-width: 2;
}
.rf-schema-node-label {
  font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace;
  pointer-events: none;
}
.rf-schema-node-he {
  font: 400 10.5px/1 -apple-system, "Segoe UI", sans-serif;
  fill: var(--ink-mute);
  pointer-events: none;
}
.rf-schema-edge {
  transition: opacity .15s ease, stroke-width .15s ease;
  pointer-events: none;
}

.rf-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  font-size: 12px;
}
.rf-filter-label {
  font: 700 10px/1 inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-inline-end: 4px;
}
.rf-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel-2);
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 12px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.rf-filter-toggle:hover { color: var(--ink); border-color: var(--line-3); }
.rf-filter-toggle input {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--line-3);
  background: var(--panel);
  cursor: pointer;
  margin: 0;
  position: relative;
}
.rf-filter-toggle input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.rf-filter-toggle input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 3px;
  height: 6px;
  border: solid var(--panel);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.rf-filter-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.rf-reset {
  margin-inline-start: auto;
  background: transparent;
  border: 0;
  font: 600 10px/1 inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 4px 8px;
}
.rf-reset:hover { color: var(--ink); }

.rf-schema-detail {
  background: var(--panel);
  border-inline-start: 1px solid var(--line);
  padding: 18px 20px;
  overflow-y: auto;
  max-height: 580px;
}
.rf-schema-detail-empty {
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 24px 0;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
}
.rf-schema-detail-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
}
.rf-schema-detail-cat {
  font: 700 10px/1 inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rf-schema-detail-name {
  font: 700 18px/1.1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  direction: ltr;
  letter-spacing: -0.005em;
}
.rf-schema-detail-he {
  font: 500 13px/1.3 inherit;
  color: var(--ink-dim);
  margin-top: 2px;
}
.rf-schema-detail-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  padding: 10px 12px;
  background: var(--panel-2);
  border-radius: 6px;
  margin-bottom: 14px;
}
.rf-schema-detail-section + .rf-schema-detail-section { margin-top: 16px; }
.rf-schema-detail-label {
  font: 700 10px/1 inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.rf-schema-props {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-schema-props li code {
  display: block;
  font: 500 11px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.rf-schema-edges-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rf-schema-edge-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  font-size: 12px;
}
.rf-schema-edge-pill {
  font: 600 10.5px/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  direction: ltr;
  unicode-bidi: isolate;
}
.rf-schema-edge-target {
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.rf-schema-jump {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  text-decoration: underline dotted;
  direction: ltr;
}
.rf-schema-jump:hover { background: var(--panel-2); color: #166ae9; }

@media (max-width: 980px) {
  .rf-canvas-wrap { grid-template-columns: 1fr; }
  .rf-schema-detail { border-inline-start: 0; border-top: 1px solid var(--line); max-height: none; }
}
