@font-face { font-family: "JB"; src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff2"); font-weight: 400; }
@font-face { font-family: "JB"; src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff2"); font-weight: 500; }
@font-face { font-family: "JB"; src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-600-normal.woff2"); font-weight: 600; }
:root {
  --brand: #E8461A; --brand-d: #C93A12; --brand-50: #FFF1EB; --brand-100: #FFE0D3;
  --ink: #14161C; --ink-2: #3B404C; --mut: #6B7180; --line: #E7E8EE; --line-2: #F0F1F5;
  --navy: #1B1E27; --navy-2: #262A35;
  --green: #138A4E; --green-bg: #E2F5EA; --amber: #A86A00; --amber-bg: #FFF2D6;
  --violet: #6D4AE8; --teal: #0E8F74; --pink: #D23B78;
  --mono: "JB", "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Inter", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }

/* ---------- app window ---------- */
.win { position: absolute; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(20,22,28,.04), 0 30px 60px -20px rgba(40,30,80,.28), 0 12px 24px -12px rgba(40,30,80,.14);
  border: 1px solid rgba(20,22,28,.06); display: flex; flex-direction: column; }
.win .bar { height: 46px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #FAFAFC; border-bottom: 1px solid var(--line); }
.win .bar b { width: 11px; height: 11px; border-radius: 50%; background: #E2E3EA; }
.win .url { margin-left: 14px; flex: 1; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 500 13px var(--mono); color: var(--mut); display: flex; align-items: center; padding: 0 12px; }
.win .url::before { content: ""; width: 9px; height: 11px; margin-right: 9px; border: 1.6px solid #A0A4B0; border-radius: 2px 2px 3px 3px; border-top-width: 4px; }
.wb { flex: 1; display: flex; min-height: 0; position: relative; }
.sb { width: 210px; flex: none; background: var(--navy); padding: 22px 14px; color: #C9CCD6; }
.sb .org { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; font-size: 16px; margin: 0 6px 26px; }
.sb .org i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; font: 700 14px Inter; color: #fff; font-style: normal; }
.sb .ni { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.sb .ni .ic { width: 16px; height: 16px; border: 1.8px solid #7D8292; border-radius: 4px; }
.sb .ni.on { background: var(--navy-2); color: #fff; }
.sb .ni.on .ic { border-color: var(--brand); background: rgba(232,70,26,.25); }
.main { flex: 1; padding: 28px 32px; position: relative; min-width: 0; }
.crumb { font: 500 12.5px var(--mono); letter-spacing: .06em; color: var(--mut); text-transform: uppercase; margin-bottom: 8px; }
.h { font: 650 24px "Inter Display", Inter; letter-spacing: -.01em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.h .cnt { font: 600 13px Inter; background: var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 3px 9px; }

/* ---------- form bits ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld label { display: block; font-size: 13.5px; font-weight: 500; color: var(--mut); margin-bottom: 7px; }
.inp { height: 46px; border: 1.5px solid var(--line); border-radius: 11px; display: flex; align-items: center; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; white-space: nowrap; overflow: hidden; transition: none; }
.inp.focus, .inp.typing { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--brand); margin-left: 2px; vertical-align: -2px; }
.inp .typing::after { }
.mb { margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 11px; font: 600 15.5px Inter; background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(232,70,26,.6), inset 0 -2px 0 rgba(0,0,0,.12); white-space: nowrap; }
.btn.full { width: 100%; }
.btn.sec { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.dark { background: var(--ink); box-shadow: none; }
.row { display: flex; align-items: center; gap: 12px; }
.sp { flex: 1; }
.note { background: #F6F7FA; border-radius: 11px; padding: 13px 16px; font-size: 14.5px; color: var(--mut); line-height: 1.45; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.or { background: var(--brand-50); color: var(--brand-d); }
.chip.gr { background: var(--green-bg); color: var(--green); }
.chip.am { background: var(--amber-bg); color: var(--amber); }
.chip.vi { background: #EEE9FF; color: var(--violet); }
.chip.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok::before { content: "✓"; font-size: 12px; }
.card { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.card.hl { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.list > * + * { margin-top: 10px; }
.ttl { font-weight: 600; font-size: 16px; }
.sub { font-size: 14px; color: var(--mut); margin-top: 3px; }
.meta { font: 500 12.5px var(--mono); color: var(--mut); white-space: nowrap; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-weight: 650; font-size: 14px; color: var(--ink-2); flex: none; border: 1.5px solid var(--line); }
.toast { position: absolute; right: 24px; bottom: 24px; background: var(--ink); color: #fff; font: 600 15px Inter; padding: 12px 18px; border-radius: 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); z-index: 5; }
.toast::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: #2BB673; display: grid; place-items: center; font-size: 12px; }
.toast.info::before { content: "↗"; background: var(--brand); }
.tog { width: 46px; height: 26px; border-radius: 99px; background: #D5D7DF; position: relative; transition: none; flex: none; }
.tog::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tog.on { background: var(--green); }
.tog.on::after { left: 23px; }
.chk { display: flex; gap: 11px; align-items: center; font-size: 15.5px; padding: 7px 0; color: var(--ink-2); }
.chk i { width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid #C6C9D3; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; flex: none; }
.chk.on i { background: var(--green); border-color: var(--green); }
.chk.on i::before { content: "✓"; }
.sel { border-color: var(--brand) !important; box-shadow: 0 0 0 4px var(--brand-50); }

/* ---------- code ---------- */
.code { background: #15171E; border-radius: 14px; padding: 18px 0; font: 400 15px/1.75 var(--mono); color: #C9CED8; position: relative; overflow: hidden; }
.code .ln { padding: 0 22px; white-space: pre; position: relative; }
.code .ln.hl { background: rgba(232,70,26,.18); box-shadow: inset 3px 0 0 var(--brand); }
.code .c { color: #6C7386; } .code .k { color: #FF8A65; } .code .s { color: #8BD5A6; } .code .t { color: #8AB4FF; } .code .a { color: #F5C26B; }
.tab { display: inline-flex; font: 500 13.5px var(--mono); border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 12px; margin-bottom: 12px; color: var(--ink-2); background: #fff; }
.term { background: #15171E; border-radius: 12px; padding: 14px 20px; font: 400 15px var(--mono); color: #C9CED8; margin-bottom: 14px; }
.term::before { content: "$ "; color: var(--brand); }

/* ---------- website mock ---------- */
.site { flex: 1; display: flex; flex-direction: column; background: #FBFBFD; position: relative; }
.site .nav { height: 58px; display: flex; align-items: center; padding: 0 28px; gap: 26px; font-size: 14.5px; color: var(--mut); background: #fff; border-bottom: 1px solid var(--line); }
.site .nav b { color: var(--ink); font-size: 16px; margin-right: auto; font-weight: 700; }
.site .hero { padding: 44px 36px; }
.site .hero h3 { font: 700 34px/1.12 "Inter Display"; letter-spacing: -.02em; max-width: 360px; }
.site .bar1 { height: 10px; border-radius: 9px; background: #E9EAF0; margin-top: 20px; width: 300px; }
.site .bar2 { height: 10px; border-radius: 9px; background: #E9EAF0; margin-top: 12px; width: 220px; }
.launch { position: absolute; right: 24px; bottom: 22px; height: 46px; padding: 0 20px; border-radius: 99px; background: var(--brand); color: #fff; font: 600 15.5px Inter; display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 24px -10px rgba(232,70,26,.7); }
.launch::before { content: ""; width: 14px; height: 12px; border-radius: 7px 7px 7px 2px; background: #fff; }
.launch.teal { background: #0E7C86; box-shadow: 0 12px 24px -10px rgba(14,124,134,.7); }
.chat { position: absolute; right: 24px; bottom: 82px; width: 340px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(30,20,60,.35); border: 1px solid var(--line); }
.chat .hd { background: var(--brand); color: #fff; font-weight: 650; padding: 14px 18px; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.chat .bd { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 82%; padding: 11px 14px; border-radius: 16px 16px 16px 5px; background: #F1F2F6; font-size: 15px; line-height: 1.4; align-self: flex-start; }
.bub.me { background: var(--brand); color: #fff; border-radius: 16px 16px 5px 16px; align-self: flex-end; }
.bub.sys { background: none; border: 1.5px dashed var(--line); color: var(--mut); font-size: 13.5px; }

/* ---------- flow nodes (zapier-like) ---------- */
.node { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 6px 16px -10px rgba(30,20,60,.25); position: relative; }
.node .ni2 { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 14px Inter; color: #fff; background: var(--brand); flex: none; }
.node .nt { font-weight: 600; font-size: 16px; }
.node .ns { font-size: 13px; color: var(--mut); margin-top: 2px; }
.conn { width: 2px; height: 22px; background: repeating-linear-gradient(#C9CCD6 0 4px, transparent 4px 8px); margin: 0 auto; }
.added { margin-left: auto; }
