/* CedarPro platform — application styles (brand: teal/Sora/Inter, matches cedarpro.co.uk) */
:root{
  --teal:#0A8F86; --teal-deep:#123F3A; --teal-dark:#062F2D; --teal-darker:#04211F;
  --cta:#11D38A; --success:#18C98B; --aqua:#E6F5F2; --mint:#F2FBF8; --slate:#3E625F;
  --amber:#F4B740; --coral:#E85D4F; --border:#D8E7E3; --border-soft:#E7F1EE;
  --ink:#1F2933; --ink-soft:#2C3A44; --muted:#5A6472; --muted-2:#8593A0; --canvas:#F6FAF9;
  --font-head:"Sora","Segoe UI",system-ui,sans-serif; --font-body:"Inter","Segoe UI",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
  --radius:16px; --radius-sm:10px; --shadow-sm:0 2px 8px rgba(6,47,45,.06);
  --shadow-md:0 10px 30px rgba(6,47,45,.10); --shadow-lg:0 24px 60px rgba(6,47,45,.16);
  --ring:0 0 0 3px rgba(17,211,138,.35); --ease:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font-body);font-size:15px;line-height:1.6;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%} ul{list-style:none}
a{color:var(--teal);text-decoration:none} a:hover{color:var(--teal-deep)}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:700;letter-spacing:-.015em;line-height:1.2;color:var(--ink)}
::selection{background:var(--teal);color:#fff}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:6px}
::-webkit-scrollbar{width:11px;height:11px}::-webkit-scrollbar-thumb{background:#c3ddd6;border-radius:99px;border:3px solid transparent;background-clip:content-box}

.brand{display:flex;align-items:center;gap:.6rem;font-family:var(--font-head);font-weight:800;font-size:1.25rem;color:var(--ink);letter-spacing:-.02em}
.brand .mk{width:32px;height:32px;flex:none} .brand .pro{color:var(--teal)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.15rem;border-radius:var(--radius-sm);font-weight:600;font-size:.92rem;transition:all .16s var(--ease);border:1px solid transparent;line-height:1;white-space:nowrap}
.btn svg{width:17px;height:17px}
.btn-primary{background:var(--cta);color:#04221a;box-shadow:0 6px 16px rgba(17,211,138,.28)}
.btn-primary:hover{background:#0fbe7c;transform:translateY(-1px)}
.btn-dark{background:var(--teal-dark);color:#fff}.btn-dark:hover{background:var(--teal-deep)}
.btn-outline{background:#fff;border-color:var(--border);color:var(--ink)}.btn-outline:hover{border-color:var(--teal);color:var(--teal);background:var(--mint)}
.btn-ghost{color:var(--muted)}.btn-ghost:hover{background:var(--aqua);color:var(--teal-deep)}
.btn-lg{padding:.85rem 1.5rem;font-size:1rem}.btn-sm{padding:.45rem .8rem;font-size:.82rem}
.btn-block{width:100%}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none!important}

/* ---------- auth screens ---------- */
.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.auth-aside{background:linear-gradient(160deg,var(--teal-dark),var(--teal-darker));color:#fff;padding:3rem;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-aside::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:24px 24px;-webkit-mask-image:radial-gradient(120% 90% at 70% 0,#000,transparent 70%)}
.auth-aside .brand{color:#fff;position:relative}.auth-aside .brand .pro{color:var(--cta)}
.auth-aside h2{color:#fff;font-size:2rem;max-width:14ch;position:relative;margin-bottom:1rem}
.auth-aside p{color:rgba(255,255,255,.78);max-width:42ch;position:relative}
.auth-aside .pts{position:relative;display:flex;flex-direction:column;gap:.7rem;margin-top:1.4rem}
.auth-aside .pt{display:flex;gap:.6rem;align-items:flex-start;color:rgba(255,255,255,.85);font-size:.92rem}
.auth-aside .pt svg{width:18px;height:18px;color:var(--cta);flex:none;margin-top:2px}
.auth-main{display:flex;align-items:center;justify-content:center;padding:2rem}
.auth-card{width:min(420px,100%)}
.auth-card h1{font-size:1.6rem;margin-bottom:.4rem}
.auth-card .sub{color:var(--muted);margin-bottom:1.6rem}
@media(max-width:840px){.auth{grid-template-columns:1fr}.auth-aside{display:none}}

.field{margin-bottom:1rem}
.field label{display:block;font-size:.84rem;font-weight:600;color:var(--ink-soft);margin-bottom:.4rem}
.input,.textarea,.select{width:100%;padding:.7rem .85rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;font-size:.95rem;transition:border-color .15s,box-shadow .15s}
.input:focus,.textarea:focus,.select:focus{border-color:var(--cta);box-shadow:var(--ring)}
.textarea{resize:vertical;min-height:120px;line-height:1.55}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235A6472' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .7rem center;padding-right:2rem}
.hint{font-size:.78rem;color:var(--muted);margin-top:.35rem}
.form-msg{padding:.7rem .9rem;border-radius:var(--radius-sm);font-size:.86rem;margin-bottom:1rem}
.form-msg.err{background:#fdecea;color:#b3392c;border:1px solid #f6c9c2}
.form-msg.ok{background:#eafaf3;color:#0a7d54;border:1px solid #bfe9d6}
.auth-card .alt{text-align:center;margin-top:1.3rem;font-size:.9rem;color:var(--muted)}

/* ---------- app shell ---------- */
.topbar{height:62px;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:1rem;padding:0 1.3rem;position:sticky;top:0;z-index:40}
.topbar .brand{font-size:1.12rem}
.topbar nav{display:flex;gap:.3rem;margin-left:1rem}
.topbar nav a{padding:.45rem .8rem;border-radius:8px;font-weight:500;font-size:.9rem;color:var(--muted)}
.topbar nav a:hover,.topbar nav a.active{background:var(--aqua);color:var(--teal-deep)}
.topbar .sp{flex:1}
.usermenu{position:relative}
.usermenu .av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--cta),var(--success));color:var(--teal-dark);font-weight:700;display:grid;place-items:center;font-size:.82rem}
.usermenu .pop{position:absolute;right:0;top:46px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-md);min-width:200px;padding:.5rem;display:none;z-index:50}
.usermenu.open .pop{display:block}
.usermenu .pop .who{padding:.5rem .6rem;border-bottom:1px solid var(--border-soft);margin-bottom:.3rem}
.usermenu .pop .who strong{display:block;font-size:.9rem}.usermenu .pop .who span{font-size:.78rem;color:var(--muted)}
.usermenu .pop button{display:block;width:100%;text-align:left;padding:.5rem .6rem;border-radius:8px;font-size:.88rem}
.usermenu .pop button:hover{background:var(--mint)}
.wrap{max-width:1180px;margin:0 auto;padding:1.8rem 1.3rem}

.page-head{margin-bottom:1.6rem}
.page-head h1{font-size:1.7rem}.page-head p{color:var(--muted);margin-top:.3rem}
.eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-size:.73rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal)}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--cta);border-radius:2px}

.card{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.card-pad{padding:1.4rem}
.grid{display:grid;gap:1.1rem}
.tools-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.tool-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:#bfe0d8}
.tool-card .tc-top{padding:1.3rem 1.3rem 1rem}
.tool-card .ic{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,var(--teal),var(--teal-deep));margin-bottom:.9rem}
.tool-card.flag .ic{background:linear-gradient(140deg,var(--cta),var(--success));color:#043026}
.tool-card h3{font-size:1.05rem}
.tool-card .sec{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:.5rem}
.tool-card p{color:var(--muted);font-size:.88rem;margin-top:.5rem;flex:1}
.tool-card .tc-foot{padding:1rem 1.3rem;border-top:1px solid var(--border-soft);margin-top:1rem;display:flex;justify-content:space-between;align-items:center}

.badge{display:inline-flex;align-items:center;gap:.35rem;padding:.22rem .6rem;border-radius:99px;font-size:.72rem;font-weight:600;background:var(--aqua);color:var(--teal-deep);white-space:nowrap}
.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.badge-green{background:rgba(24,201,139,.13);color:#0a8f63}.badge-amber{background:rgba(244,183,64,.16);color:#9a7212}
.badge-coral{background:rgba(232,93,79,.13);color:#c0392b}.badge-slate{background:#eef3f2;color:var(--slate)}
.badge-info{background:rgba(61,166,232,.14);color:#1f7fc0}

table.data{width:100%;border-collapse:collapse;font-size:.88rem;background:#fff}
table.data th{text-align:left;padding:.6rem .85rem;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:var(--mint);border-bottom:1px solid var(--border-soft);white-space:nowrap}
table.data td{padding:.7rem .85rem;border-bottom:1px solid var(--border-soft);vertical-align:top}
table.data tr:last-child td{border-bottom:none}
.table-wrap{overflow-x:auto;border:1px solid var(--border-soft);border-radius:12px}

.empty{text-align:center;padding:3rem 1.5rem;color:var(--muted)}
.empty .ic{width:54px;height:54px;border-radius:15px;background:var(--aqua);color:var(--teal);display:grid;place-items:center;margin:0 auto 1rem}

/* analysis list rows */
.alist .row{display:flex;align-items:center;gap:.9rem;padding:.85rem 0;border-bottom:1px solid var(--border-soft)}
.alist .row:last-child{border-bottom:none}
.alist .row .t{flex:1;min-width:0}.alist .row .t strong{font-size:.94rem}.alist .row .t span{font-size:.78rem;color:var(--muted)}

/* tool workspace */
.tool-layout{display:grid;grid-template-columns:380px 1fr;gap:1.3rem;align-items:start}
@media(max-width:920px){.tool-layout{grid-template-columns:1fr}.tool-layout.viewing #right{order:-1}}
.dropzone{border:1.5px dashed var(--border);border-radius:var(--radius);padding:1.4rem;text-align:center;background:var(--mint);cursor:pointer;transition:.15s}
.dropzone:hover,.dropzone.drag{border-color:var(--cta);background:#eafaf3}
.dropzone .ic{width:40px;height:40px;border-radius:11px;background:#fff;display:grid;place-items:center;color:var(--teal);margin:0 auto .5rem;box-shadow:var(--shadow-sm)}
.filechip{display:flex;align-items:center;gap:.5rem;background:var(--mint);border:1px solid var(--border-soft);border-radius:8px;padding:.45rem .6rem;font-size:.82rem;margin-top:.5rem}
.filechip .x{margin-left:auto;color:var(--muted);cursor:pointer}

.run-state{display:flex;flex-direction:column;gap:.6rem}
.agent-row{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;border:1px solid var(--border-soft);border-radius:10px;background:#fff}
.agent-row .n{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--mint);color:var(--muted-2);flex:none}
.agent-row[data-state=active] .n{background:#fff;color:var(--cta);box-shadow:var(--ring)}
.agent-row[data-state=done] .n{background:var(--cta);color:#04221a}
.agent-row .nm{font-weight:600;font-size:.9rem}.agent-row .rl{font-size:.78rem;color:var(--muted)}
.agent-row .st{margin-left:auto;font-size:.76rem;font-weight:600;color:var(--muted-2)}
.agent-row[data-state=active] .st{color:var(--teal)}.agent-row[data-state=done] .st{color:var(--success)}
.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.result-head{display:flex;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.2rem}
.metric{flex:1;min-width:130px;background:#fff;border:1px solid var(--border-soft);border-radius:12px;padding:.9rem 1rem}
.metric .v{font-family:var(--font-head);font-weight:700;font-size:1.5rem}.metric .l{font-size:.78rem;color:var(--muted)}
.section{margin-bottom:1.3rem}
.section h3{font-size:1.02rem;margin-bottom:.7rem;display:flex;align-items:center;gap:.5rem}
.finding{display:flex;gap:.7rem;padding:.7rem 0;border-bottom:1px solid var(--border-soft)}
.finding:last-child{border-bottom:none}
.finding .fb{flex:1}.finding .fb .ft{font-weight:600;font-size:.9rem}.finding .fb .fd{font-size:.84rem;color:var(--muted);margin-top:.15rem}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.kv .k{font-size:.82rem;color:var(--muted)}.kv .v{font-weight:600;font-size:.9rem}
.tl .ti{display:flex;gap:.8rem;padding:.6rem 0;border-bottom:1px solid var(--border-soft)}.tl .ti:last-child{border-bottom:none}
.tl .ti .d{font-family:var(--font-mono);font-size:.8rem;color:var(--teal-deep);white-space:nowrap;min-width:96px}
.prose{font-size:.92rem;line-height:1.65;color:var(--ink-soft)}
.prose p{margin:0 0 .65rem}.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--ink);font-weight:600}
.prose ul{margin:.35rem 0 .75rem;padding-left:1.15rem;list-style:disc}
.prose li{margin:.22rem 0}
.prose h4{font-size:.95rem;margin:.7rem 0 .35rem}

.hitl{border:1px solid rgba(244,183,64,.4);background:linear-gradient(180deg,#fffaf0,#fff);border-radius:var(--radius);padding:1.3rem;position:relative;margin-top:1rem}
.hitl::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:4px 0 0 4px;background:var(--amber)}
.hitl.cleared{border-color:rgba(24,201,139,.4);background:linear-gradient(180deg,#f0fbf6,#fff)}.hitl.cleared::before{background:var(--success)}
.hitl h3{display:flex;align-items:center;gap:.5rem;color:#8a6410;font-size:1.02rem}
.hitl.cleared h3{color:#0a8f63}
.hitl .opts{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}

.toasts{position:fixed;bottom:1.4rem;right:1.4rem;z-index:200;display:flex;flex-direction:column;gap:.6rem}
.toast{background:var(--teal-dark);color:#fff;border-radius:10px;padding:.8rem 1rem;box-shadow:var(--shadow-lg);font-size:.88rem;border-left:3px solid var(--cta);animation:tin .3s var(--ease)}
.toast.err{border-left-color:var(--coral)}.toast.warn{border-left-color:var(--amber)}
@keyframes tin{from{transform:translateX(20px);opacity:0}}

.modal-bd{position:fixed;inset:0;background:rgba(6,33,31,.55);backdrop-filter:blur(4px);z-index:150;display:grid;place-items:center;padding:1.5rem}
.modal{background:#fff;border-radius:18px;box-shadow:var(--shadow-lg);width:min(520px,100%);max-height:88vh;overflow:auto}
.modal-h{padding:1.2rem 1.4rem;border-bottom:1px solid var(--border-soft);font-family:var(--font-head);font-weight:700}
.modal-b{padding:1.4rem}.modal-f{padding:1rem 1.4rem;border-top:1px solid var(--border-soft);display:flex;gap:.6rem;justify-content:flex-end}
.skel{background:linear-gradient(90deg,#eef3f2 25%,#f7fbfa 50%,#eef3f2 75%);background-size:200% 100%;animation:shim 1.3s infinite;border-radius:6px}@keyframes shim{to{background-position:-200% 0}}
.mono{font-family:var(--font-mono)} .muted{color:var(--muted)} .small{font-size:.84rem} .center{text-align:center}
.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}

/* ============================ TAB SWITCHER ============================ */
.seg{display:inline-flex;gap:.25rem;padding:.3rem;background:#fff;border:1px solid var(--border-soft);border-radius:12px;box-shadow:var(--shadow-sm);margin-bottom:1.4rem}
.seg-btn{padding:.55rem 1.05rem;border-radius:9px;font-weight:600;font-size:.9rem;color:var(--muted);transition:all .15s var(--ease)}
.seg-btn:hover{color:var(--teal-deep);background:var(--mint)}
.seg-btn[aria-selected=true]{background:var(--teal-dark);color:#fff;box-shadow:var(--shadow-sm)}
@media(max-width:560px){.seg{display:flex;width:100%}.seg-btn{flex:1;text-align:center}}

/* ======================= ABOUT THIS WORKSPACE ======================= */
/* per-slug accent injected inline: --ac, --ac-soft, --ac-ink */
#panel-about{--ac:var(--teal);--ac-soft:var(--aqua);--ac-ink:var(--teal-deep)}
.about-block{margin-bottom:1.8rem}
.about-h{font-size:1.18rem;margin-bottom:1rem;position:relative;padding-left:.85rem}
.about-h::before{content:"";position:absolute;left:0;top:.15em;bottom:.15em;width:4px;border-radius:3px;background:var(--ac)}

/* hero */
.about-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:1.5rem;align-items:center;background:linear-gradient(150deg,var(--ac-soft),#fff 75%);border:1px solid var(--border-soft);border-radius:var(--radius);padding:2rem;margin-bottom:1.8rem;box-shadow:var(--shadow-sm);overflow:hidden}
.about-sector{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ac);margin-bottom:.7rem}
.about-hero-text h2{font-size:1.9rem;line-height:1.12;color:var(--ac-ink)}
.about-tagline{font-size:1.06rem;line-height:1.55;color:var(--ink-soft);margin:.7rem 0 1.2rem;max-width:46ch}
.about-hero-cta{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.about-hero-cta .btn-primary{background:var(--ac);color:#fff;box-shadow:0 6px 16px rgba(6,47,45,.18)}
.about-hero-cta .btn-primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
.about-freeze{display:inline-flex;align-items:center;gap:.45rem;font-family:var(--font-mono);font-size:.74rem;font-weight:500;color:var(--ac-ink);background:#fff;border:1px solid var(--border);padding:.35rem .7rem;border-radius:99px}
.about-freeze .dot{width:7px;height:7px;border-radius:50%;background:var(--ac);box-shadow:0 0 0 3px var(--ac-soft)}
.about-illu{align-self:center}
.about-illu svg{filter:drop-shadow(0 10px 24px rgba(6,47,45,.12))}
@media(max-width:760px){.about-hero{grid-template-columns:1fr;padding:1.5rem}.about-illu{max-width:280px;margin:0 auto}.about-hero-text h2{font-size:1.5rem}}

/* context / problem / solution */
.about-cps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.8rem}
.about-cps-card{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow-sm)}
.about-cps-h{display:flex;align-items:center;gap:.55rem;font-family:var(--font-head);font-weight:700;font-size:.98rem;color:var(--ac-ink);margin-bottom:.6rem}
.about-cps-ic{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--ac-soft);color:var(--ac);flex:none}
.about-cps-ic svg{width:17px;height:17px}
.about-cps-card p{font-size:.9rem;line-height:1.6;color:var(--muted)}
@media(max-width:760px){.about-cps{grid-template-columns:1fr}}

/* feature grid */
.about-features{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem}
.about-feat{display:flex;align-items:flex-start;gap:.65rem;background:#fff;border:1px solid var(--border-soft);border-radius:11px;padding:.75rem .9rem;font-size:.9rem;line-height:1.45;color:var(--ink-soft)}
.about-feat-ic{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--ac-soft);color:var(--ac);flex:none;margin-top:1px}
.about-feat-ic svg{width:13px;height:13px;stroke-width:2.5}
@media(max-width:620px){.about-features{grid-template-columns:1fr}}

/* how-it-works pipeline */
.about-pipe{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.3rem;box-shadow:var(--shadow-sm)}
.about-node{flex:1 1 0;min-width:150px;background:linear-gradient(180deg,var(--ac-soft),#fff);border:1px solid var(--border-soft);border-radius:12px;padding:.85rem .9rem}
.about-node.gate{background:linear-gradient(180deg,#fffaf0,#fff);border-color:rgba(244,183,64,.45)}
.about-node-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}
.about-node-n{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--ac);color:#fff;font-family:var(--font-head);font-weight:700;font-size:.85rem}
.about-node.gate .about-node-n{background:var(--amber);color:#5a4209}
.about-node.gate .about-node-n svg{width:15px;height:15px}
.about-node-tag{font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ac);background:#fff;border:1px solid var(--border-soft);padding:.15rem .45rem;border-radius:99px}
.about-node-step{font-family:var(--font-head);font-weight:700;font-size:.92rem;color:var(--ac-ink);margin-bottom:.3rem}
.about-node.gate .about-node-step{color:#8a6410}
.about-node-detail{font-size:.8rem;line-height:1.45;color:var(--muted)}
.about-conn{display:flex;align-items:center;justify-content:center;padding:0 .35rem;color:var(--ac);flex:none}
.about-conn svg{width:18px;height:18px}
@media(max-width:820px){.about-pipe{flex-direction:column}.about-node{width:100%}.about-conn{transform:rotate(90deg);padding:.4rem 0}}

/* architecture diagram */
.about-arch{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.3rem;box-shadow:var(--shadow-sm);overflow-x:auto}
.about-arch svg{min-width:680px}
.about-arch-note{font-size:.82rem;color:var(--muted);margin-top:.7rem;line-height:1.55;max-width:74ch}

/* tech chips */
.about-chips{display:flex;flex-wrap:wrap;gap:.55rem}
.about-chip{display:inline-flex;align-items:center;font-size:.83rem;font-weight:500;color:var(--ac-ink);background:#fff;border:1px solid var(--border);border-left:3px solid var(--ac);border-radius:8px;padding:.45rem .8rem}

/* governance panel */
.about-gov{display:flex;gap:1.1rem;background:linear-gradient(180deg,var(--ac-soft),#fff);border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow-sm);margin-bottom:1.6rem}
.about-gov-ic{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--ac);color:#fff;flex:none}
.about-gov-ic svg{width:24px;height:24px}
.about-gov-body{flex:1}
.about-gov-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:.5rem}
.about-gov-row h3{font-size:1.05rem;color:var(--ac-ink)}
.about-gov-badge{background:#fff;border:1px solid var(--border);color:var(--ac-ink);font-family:var(--font-mono);font-weight:500;font-size:.72rem}
.about-gov-badge svg{width:12px;height:12px}
.about-gov-body>p{font-size:.92rem;line-height:1.6;color:var(--ink-soft)}
.about-outcome{margin-top:.9rem;display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--ac-ink);background:#fff;border:1px solid var(--border-soft);border-radius:10px;padding:.7rem .9rem}
.about-outcome svg{width:16px;height:16px;color:var(--ac);flex:none}
@media(max-width:560px){.about-gov{flex-direction:column}}

/* foot CTA */
.about-foot{display:flex;justify-content:center;padding:.5rem 0 1rem}
.about-foot .btn-primary{background:var(--ac);color:#fff;box-shadow:0 8px 20px rgba(6,47,45,.18)}
.about-foot .btn-primary:hover{filter:brightness(1.07);transform:translateY(-1px)}

/* ============================================================================
   PRODUCT LANDING PAGE (public marketing) — product.html
   ========================================================================== */
.product-head{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:.7rem;height:64px;padding:0 1.6rem;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s,height .2s}
.product-head.scrolled{border-bottom-color:var(--border);box-shadow:0 1px 0 rgba(6,47,45,.04),var(--shadow-sm);height:58px}
.product-head .brand{font-size:1.15rem}
.product-head .brand .mk{width:30px;height:30px}
.product-head .sp{flex:1}
@media(max-width:560px){.product-head{padding:0 1rem;gap:.45rem}.product-head .brand span{display:none}}

.product-missing{max-width:560px;margin:5rem auto;padding:0 1.3rem}
.product-missing .empty .ic{background:#fdecea;color:#b3392c}

/* hero */
.product-hero{background:linear-gradient(165deg,var(--ac-soft),#fff 70%);border-bottom:1px solid var(--border-soft);overflow:hidden}
.product-hero-inner{max-width:1140px;margin:0 auto;padding:3.6rem 1.6rem 3.4rem;display:grid;grid-template-columns:1.15fr .85fr;gap:2.6rem;align-items:center}
.product-eyebrow{display:inline-block;font-size:.74rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--ac);margin-bottom:1rem}
.product-hero-text h1{font-size:3rem;line-height:1.06;color:var(--ac-ink);letter-spacing:-.02em}
.product-tagline{font-size:1.18rem;line-height:1.55;color:var(--ink-soft);margin:1.1rem 0 1.7rem;max-width:48ch}
.product-hero-cta{display:flex;gap:.8rem;flex-wrap:wrap}
.product-hero-cta .btn-primary{background:var(--ac);color:#fff;box-shadow:0 10px 24px rgba(6,47,45,.22)}
.product-hero-cta .btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.product-hero-cta .btn-outline:hover{border-color:var(--ac);color:var(--ac);background:#fff}
.product-hero-trust{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;margin-top:1.6rem}
.product-freeze{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.74rem;font-weight:500;color:var(--ac-ink);background:#fff;border:1px solid var(--border);padding:.4rem .75rem;border-radius:99px}
.product-freeze .dot{width:8px;height:8px;border-radius:50%;background:var(--ac);box-shadow:0 0 0 3px var(--ac-soft)}
.product-trust-note{font-size:.82rem;color:var(--muted)}
.product-hero-illu{align-self:center}
.product-hero-illu svg{filter:drop-shadow(0 18px 40px rgba(6,47,45,.16))}
@media(max-width:880px){.product-hero-inner{grid-template-columns:1fr;gap:2rem;padding:2.6rem 1.3rem}.product-hero-text h1{font-size:2.2rem}.product-tagline{font-size:1.05rem}.product-hero-illu{max-width:340px}}

/* shared body wrap + section headings */
.product-body{max-width:1140px;margin:0 auto;padding:0 1.6rem}
.product-section{padding:2.8rem 0;border-bottom:1px solid var(--border-soft)}
.product-section:last-child{border-bottom:none}
.product-h{font-size:1.6rem;margin-bottom:1.5rem;position:relative;padding-left:.95rem;letter-spacing:-.01em}
.product-h::before{content:"";position:absolute;left:0;top:.12em;bottom:.12em;width:5px;border-radius:3px;background:var(--ac)}
@media(max-width:880px){.product-body{padding:0 1.3rem}.product-section{padding:2.2rem 0}.product-h{font-size:1.35rem}}

/* context / problem / solution */
.product-cps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.product-cps-card{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s}
.product-cps-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.product-cps-h{display:flex;align-items:center;gap:.6rem;font-family:var(--font-head);font-weight:700;font-size:1.05rem;color:var(--ac-ink);margin-bottom:.8rem}
.product-cps-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--ac-soft);color:var(--ac);flex:none}
.product-cps-ic svg{width:19px;height:19px}
.product-cps-card p{font-size:.95rem;line-height:1.65;color:var(--muted)}
@media(max-width:820px){.product-cps{grid-template-columns:1fr}}

/* feature grid */
.product-features{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem}
.product-feat{display:flex;align-items:flex-start;gap:.75rem;background:#fff;border:1px solid var(--border-soft);border-radius:12px;padding:.9rem 1.1rem;font-size:.95rem;line-height:1.5;color:var(--ink-soft);box-shadow:var(--shadow-sm)}
.product-feat-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--ac-soft);color:var(--ac);flex:none;margin-top:1px}
.product-feat-ic svg{width:15px;height:15px;stroke-width:2.6}
@media(max-width:640px){.product-features{grid-template-columns:1fr}}

/* how-it-works pipeline */
.product-pipe{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-sm)}
.product-node{flex:1 1 0;min-width:155px;background:linear-gradient(180deg,var(--ac-soft),#fff);border:1px solid var(--border-soft);border-radius:13px;padding:1rem}
.product-node.gate{background:linear-gradient(180deg,#fff6e6,#fff);border-color:rgba(244,183,64,.5)}
.product-node-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}
.product-node-n{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--ac);color:#fff;font-family:var(--font-head);font-weight:700;font-size:.9rem}
.product-node-n svg{width:15px;height:15px}
.product-node.gate .product-node-n{background:var(--amber);color:#5a4209}
.product-node-tag{font-size:.62rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ac);background:#fff;border:1px solid var(--border-soft);padding:.18rem .5rem;border-radius:99px}
.product-node-tag.gate{color:#8a6410;border-color:rgba(244,183,64,.5)}
.product-node-step{font-family:var(--font-head);font-weight:700;font-size:.98rem;color:var(--ac-ink);margin-bottom:.35rem}
.product-node.gate .product-node-step{color:#8a6410}
.product-node-detail{font-size:.82rem;line-height:1.5;color:var(--muted)}
.product-conn{display:flex;align-items:center;justify-content:center;padding:0 .4rem;color:var(--ac);flex:none}
.product-conn svg{width:20px;height:20px}
@media(max-width:880px){.product-pipe{flex-direction:column}.product-node{width:100%}.product-conn{transform:rotate(90deg);padding:.45rem 0}}

/* architecture diagram */
.product-arch{background:#fff;border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-sm);overflow-x:auto}
.product-arch svg{min-width:700px}
.product-arch-note{font-size:.85rem;color:var(--muted);margin-top:.9rem;line-height:1.6;max-width:76ch}

/* tech chips */
.product-chips{display:flex;flex-wrap:wrap;gap:.6rem}
.product-chip{display:inline-flex;align-items:center;font-size:.86rem;font-weight:500;color:var(--ac-ink);background:#fff;border:1px solid var(--border);border-left:3px solid var(--ac);border-radius:8px;padding:.5rem .85rem;box-shadow:var(--shadow-sm)}

/* case study */
.product-case{background:linear-gradient(165deg,var(--ac-soft),#fff 80%);border:1px solid var(--border-soft);border-radius:var(--radius);padding:2.2rem;box-shadow:var(--shadow-md)}
.product-case-tag{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ac);background:#fff;border:1px solid var(--border-soft);padding:.32rem .7rem;border-radius:99px;margin-bottom:1rem}
.product-case-scenario{font-size:1.65rem;color:var(--ac-ink);letter-spacing:-.01em;margin-bottom:1.1rem}
.product-case-prose{max-width:72ch}
.product-case-prose p{font-size:.98rem;line-height:1.7;color:var(--ink-soft);margin-bottom:.9rem}
.product-case-lead{font-family:var(--font-head);font-weight:700;color:var(--ac-ink);margin-right:.2rem}
.product-case-impact{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin:1.6rem 0 1.4rem}
.product-impact-tile{background:#fff;border:1px solid var(--border-soft);border-top:3px solid var(--ac);border-radius:14px;padding:1.3rem 1.2rem;box-shadow:var(--shadow-sm)}
.product-impact-tile .v{font-family:var(--font-head);font-weight:800;font-size:1.7rem;color:var(--ac-ink);line-height:1.1;letter-spacing:-.02em}
.product-impact-tile .l{font-size:.85rem;color:var(--muted);margin-top:.45rem;line-height:1.4}
.product-case-note{display:flex;gap:.7rem;align-items:flex-start;font-size:.86rem;line-height:1.6;color:var(--muted);background:rgba(255,255,255,.7);border:1px solid var(--border-soft);border-radius:12px;padding:.9rem 1.1rem}
.product-case-note svg{width:18px;height:18px;color:var(--ac);flex:none;margin-top:1px}
@media(max-width:720px){.product-case{padding:1.5rem}.product-case-scenario{font-size:1.35rem}.product-case-impact{grid-template-columns:1fr}}

/* lead-gen CTA band (dark teal) */
.product-lead{background:linear-gradient(155deg,var(--teal-dark),var(--teal-darker));color:#fff;position:relative;overflow:hidden}
.product-lead::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:26px 26px;-webkit-mask-image:radial-gradient(120% 100% at 80% 0,#000,transparent 70%)}
.product-lead-inner{position:relative;max-width:820px;margin:0 auto;padding:4rem 1.6rem;text-align:center}
.product-lead-eyebrow{display:inline-block;font-size:.74rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--cta);margin-bottom:1rem}
.product-lead h2{color:#fff;font-size:2.1rem;line-height:1.15;letter-spacing:-.02em;max-width:20ch;margin:0 auto}
.product-lead p{color:rgba(255,255,255,.8);font-size:1.06rem;line-height:1.6;max-width:60ch;margin:1.1rem auto 1.9rem}
.product-lead-cta{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
.product-lead-ghost{background:transparent;border:1px solid rgba(255,255,255,.4);color:#fff}
.product-lead-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}
@media(max-width:640px){.product-lead-inner{padding:2.8rem 1.3rem}.product-lead h2{font-size:1.6rem}.product-lead p{font-size:.98rem}}

/* governance strip */
.product-gov{display:flex;gap:1.3rem;background:linear-gradient(180deg,var(--ac-soft),#fff);border:1px solid var(--border-soft);border-radius:var(--radius);padding:1.7rem;box-shadow:var(--shadow-sm)}
.product-gov-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--ac);color:#fff;flex:none}
.product-gov-ic svg{width:26px;height:26px}
.product-gov-body{flex:1}
.product-gov-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:.6rem}
.product-gov-row h2{font-size:1.25rem;color:var(--ac-ink)}
.product-gov-badge{background:#fff;border:1px solid var(--border);color:var(--ac-ink);font-family:var(--font-mono);font-weight:500;font-size:.72rem}
.product-gov-badge svg{width:12px;height:12px}
.product-gov-body>p{font-size:.95rem;line-height:1.65;color:var(--ink-soft)}
.product-outcome{margin-top:1rem;display:flex;align-items:center;gap:.55rem;font-size:.92rem;color:var(--ac-ink);background:#fff;border:1px solid var(--border-soft);border-radius:11px;padding:.8rem 1rem}
.product-outcome svg{width:17px;height:17px;color:var(--ac);flex:none}
@media(max-width:560px){.product-gov{flex-direction:column}}

/* final CTA */
.product-foot{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;padding:.4rem 0}
.product-foot .btn-primary{background:var(--ac);color:#fff;box-shadow:0 10px 24px rgba(6,47,45,.2)}
.product-foot .btn-primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.product-foot .btn-outline:hover{border-color:var(--ac);color:var(--ac)}

/* footer */
.product-footer{background:var(--teal-darker);color:rgba(255,255,255,.7)}
.product-footer-inner{max-width:1140px;margin:0 auto;padding:2.4rem 1.6rem;display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}
.product-footer .brand{color:#fff;font-size:1.1rem}
.product-footer .brand .pro{color:var(--cta)}
.product-footer-links{display:flex;gap:1.4rem;margin-left:auto}
.product-footer-links a{color:rgba(255,255,255,.72);font-size:.88rem}
.product-footer-links a:hover{color:#fff}
.product-copy{flex-basis:100%;font-size:.8rem;color:rgba(255,255,255,.5);border-top:1px solid rgba(255,255,255,.1);padding-top:1.2rem;margin-top:.4rem}
@media(max-width:560px){.product-footer-links{margin-left:0;gap:1rem}}

/* analysis row CRUD actions */
.alist .row{gap:.6rem;flex-wrap:wrap}
.alist .row .t{flex:1 1 60%}
.alist .row .badge{margin-left:auto}
.row-actions{display:flex;align-items:center;gap:.35rem;flex:none}
.row-actions .btn-sm{height:32px;padding-top:0;padding-bottom:0}
.iconbtn{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--muted-2);border:1px solid transparent;transition:.15s;background:none;flex:none}
.iconbtn svg{width:16px;height:16px}
.iconbtn:hover{background:var(--mint);color:var(--teal-deep)}
.iconbtn:focus-visible{box-shadow:var(--ring);color:var(--teal-deep)}
.iconbtn.danger:hover{background:#fdecea;color:#b3392c}
.iconbtn.danger:focus-visible{box-shadow:0 0 0 3px rgba(232,93,79,.3);color:#b3392c}
.usermenu .pop a:hover{background:var(--mint)}

/* responsive topbar: collapse nav into the account menu on small screens */
.usermenu .pop .pop-nav{display:none;padding:.5rem .6rem;border-radius:8px;font-size:.88rem;color:var(--ink);text-decoration:none}
.usermenu .pop .pop-nav:hover{background:var(--mint);color:var(--teal-deep)}
@media(max-width:720px){
  .topbar > nav{display:none}
  .usermenu .pop .pop-nav{display:block}
  .usermenu .pop .pop-nav:last-of-type{border-bottom:1px solid var(--border-soft);margin-bottom:.3rem;padding-bottom:.55rem}
  .topbar{padding:0 1rem}
}

/* UX audit fixes: eyebrow contrast + larger mobile touch target for the account menu */
.eyebrow{color:#0a7d72}
@media(max-width:720px){
  .usermenu .av{width:44px;height:44px;font-size:.9rem}
  .topbar .brand{font-size:1.06rem}
}
