/* =========================================================================
   MUNIFICENT — Civic Intelligence design system
   Warm editorial paper · deep civic ink · Gulf teal · impact coral
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --paper:      #F6F1E6;
  --paper-2:    #EFE7D6;
  --paper-3:    #E7DCC6;
  --card:       #FCFAF4;
  --ink:        #17140E;
  --ink-panel:  #1B1811;
  --ink-panel-2:#221E15;

  /* Text */
  --text:       #1B1810;
  --text-soft:  #5A5346;
  --text-faint: #8A8271;
  --text-inv:   #F4EEE0;
  --text-inv-soft: #C5BCA6;

  /* Brand */
  --teal:       #0F6E63;
  --teal-deep:  #0A4A43;
  --teal-tint:  #DCEAE4;
  --coral:      #C24A28;
  --coral-tint: #F4E0D6;
  --amber:      #C98A21;
  --amber-tint: #F3E7CA;
  --seal:       #23372F;

  /* Lines & shadow */
  --line:       rgba(23,20,14,0.13);
  --line-soft:  rgba(23,20,14,0.07);
  --line-inv:   rgba(244,238,224,0.14);
  --shadow-sm:  0 1px 2px rgba(23,20,14,0.06), 0 2px 8px rgba(23,20,14,0.05);
  --shadow-md:  0 4px 14px rgba(23,20,14,0.09), 0 14px 40px rgba(23,20,14,0.10);
  --shadow-lg:  0 10px 30px rgba(23,20,14,0.13), 0 30px 80px rgba(23,20,14,0.16);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

/* Paper grain overlay ------------------------------------------------------ */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

/* Typography helpers ------------------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal);
}
.serif-i { font-family: var(--display); font-style: italic; font-weight: 400; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, color .18s;
  letter-spacing: -0.01em; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--text-inv); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(15,110,99,.28); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Badges ------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line);
}
.badge-high  { background: var(--coral-tint); color: #8a3115; border-color: rgba(194,74,40,.3); }
.badge-med   { background: var(--amber-tint); color: #8a5e0f; border-color: rgba(201,138,33,.35); }
.badge-low   { background: var(--teal-tint); color: var(--teal-deep); border-color: rgba(15,110,99,.28); }

/* Data-source flags — honest provenance of each block:
   real   = genuinely fetched live from Naples (Granicus)
   sample = the real pipeline ran, but on a bundled SAMPLE transcript + a
            fictional profile using offline fallback engines (hashing vectors +
            keyword heuristic) — NOT a real transcription or Claude analysis
   demo   = static mockup, wired to nothing */
.srcflag {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 2px 8px 2px 7px; border-radius: 100px; border: 1px solid var(--line);
  white-space: nowrap;
}
.srcflag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.srcflag.real   { background: var(--teal-tint); color: var(--teal-deep); border-color: rgba(15,110,99,.3); }
.srcflag.sample { background: var(--amber-tint); color: #8a5e0f; border-color: rgba(201,138,33,.35); }
.srcflag.demo   { background: var(--paper-3); color: var(--text-faint); border-color: var(--line); }
.srcflag.demo::before { opacity: .55; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: #ff5a3c; box-shadow: 0 0 0 0 rgba(255,90,60,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,90,60,.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,90,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); }
}

/* Cards -------------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* Reveal-on-load animation ------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .dot-live { animation: none; }
}

/* =========================================================================
   SITE HEADER
   ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(246,241,230,0.82);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand .mark {
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  background: #fff; object-fit: contain; padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(10,74,67,.12), 0 2px 6px rgba(10,74,67,.28);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-soft); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.head-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* =========================================================================
   LANDING
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 76px;
  background:
    radial-gradient(80% 60% at 78% -8%, rgba(15,110,99,0.10), transparent 60%),
    radial-gradient(60% 50% at 8% 108%, rgba(194,74,40,0.08), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 500; letter-spacing: -0.032em; line-height: 0.98; }
.hero h1 em { font-style: italic; color: var(--teal); font-weight: 400; }
.hero-lede { font-size: 20px; color: var(--text-soft); margin: 26px 0 0; max-width: 30ch; }
.hero-lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-fine { margin-top: 20px; font-size: 13.5px; color: var(--text-faint); font-family: var(--mono); letter-spacing: .01em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 60px 0 50px; } }

/* Hero device: live meeting scanner mock */
.scanner {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-panel); color: var(--text-inv);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.5);
  transform: rotate(0.6deg);
}
.scanner-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line-inv);
  background: linear-gradient(var(--ink-panel-2), var(--ink-panel));
}
.scanner-top .meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-inv-soft); letter-spacing: .04em; }
.scanner-body { padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.7; min-height: 288px; }
.tline { display: block; margin-bottom: 3px; color: var(--text-inv-soft); }
.tline .spk { color: #7fd8c9; }
.tline.flagged { color: var(--text-inv); background: rgba(194,74,40,.16); border-left: 2px solid var(--coral); padding: 3px 8px; margin: 6px -8px; border-radius: 4px; }
.caret { display: inline-block; width: 8px; height: 15px; background: #7fd8c9; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.scanner-alert {
  margin: 6px 16px 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(194,74,40,.14); border: 1px solid rgba(255,120,90,.35);
  font-family: var(--sans); font-size: 13px; color: #ffd9cd;
  display: flex; gap: 10px; align-items: flex-start;
}
.scanner-alert b { color: #fff; }

/* Trust strip */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.trust .wrap { display: flex; align-items: center; gap: 40px; padding: 22px 28px; flex-wrap: wrap; justify-content: center; }
.trust span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.trust b { color: var(--text-soft); font-weight: 600; }

/* Section shell */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.025em; }
.section-head p { font-size: 19px; color: var(--text-soft); margin: 18px 0 0; }

/* Advisor / credibility band */
.advisor { background: var(--seal); color: var(--text-inv); position: relative; overflow: hidden; }
.advisor::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(60% 80% at 90% 10%, rgba(127,216,201,.12), transparent 60%);
}
.advisor .eyebrow { color: #7fd8c9; }
.advisor h2 { color: #fff; }
.advisor p { color: var(--text-inv-soft); }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.founder {
  border: 1px solid var(--line-inv); border-radius: var(--radius); padding: 26px;
  background: rgba(255,255,255,.03);
}
.founder .fname { font-family: var(--display); font-size: 23px; color: #fff; }
.founder .frole { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #7fd8c9; margin-top: 4px; }
.founder p { margin: 14px 0 0; font-size: 15px; color: var(--text-inv-soft); }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }

/* Obstacles: alternating rows with testimonial */
.obstacles { display: grid; gap: 20px; }
.obstacle {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 38px; box-shadow: var(--shadow-sm);
}
.obstacle .onum { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: .1em; }
.obstacle h3 { font-size: 26px; margin: 10px 0 12px; letter-spacing: -0.02em; }
.obstacle .odesc { color: var(--text-soft); font-size: 16px; }
.quote {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 22px;
}
.quote p { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.42; color: var(--text); margin: 0; font-weight: 400; }
.quote cite { display: block; margin-top: 14px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: .04em; color: var(--text-faint); }
.obstacle:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.obstacle:nth-child(even) .obstacle-copy { order: 2; }
@media (max-width: 820px) {
  .obstacle, .obstacle:nth-child(even) { grid-template-columns: 1fr; gap: 22px; padding: 28px; }
  .obstacle:nth-child(even) .obstacle-copy { order: 0; }
}

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; }
.step .snum { font-family: var(--mono); font-size: 12px; color: var(--coral); letter-spacing: .1em; }
.step h4 { font-size: 19px; margin: 14px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); margin: 0; }
.step .ico { font-size: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Triumph */
.triumph { background: var(--paper-2); }
.triumph-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 56px; box-shadow: var(--shadow-md); text-align: center; max-width: 860px; margin: 0 auto;
}
.triumph-card .big { font-family: var(--display); font-size: clamp(26px,3.6vw,38px); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; }
.triumph-card .big em { font-style: italic; color: var(--teal); }
.triumph-card cite { display: block; margin-top: 26px; font-family: var(--mono); font-style: normal; font-size: 13px; letter-spacing: .04em; color: var(--text-faint); }
.stat-row { display: flex; justify-content: center; gap: 56px; margin-top: 44px; flex-wrap: wrap; }
.stat .n { font-family: var(--display); font-size: 44px; font-weight: 600; color: var(--teal); line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; }

/* Final CTA */
.finalcta { background: var(--ink); color: var(--text-inv); text-align: center; }
.finalcta h2 { color: #fff; font-size: clamp(32px,4.6vw,54px); letter-spacing: -0.03em; }
.finalcta h2 em { font-style: italic; color: #7fd8c9; }
.finalcta p { color: var(--text-inv-soft); font-size: 19px; margin: 20px auto 34px; max-width: 46ch; }

/* Footer */
.foot { padding: 46px 0; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot small { color: var(--text-faint); font-size: 13.5px; }
.foot .brand { font-size: 18px; }

/* =========================================================================
   APP SHELL
   ========================================================================= */
.app-body { background: var(--paper-2); }
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh; align-self: start;
  background: var(--ink-panel); color: var(--text-inv);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 5px;
  border-right: 1px solid rgba(0,0,0,.4);
}
.side .brand { color: #fff; padding: 6px 8px 20px; font-size: 20px; }
.side .brand .mark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.3); }
.nav-group-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); padding: 16px 10px 8px; }
.navitem {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: var(--text-inv-soft); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .14s, color .14s; position: relative;
}
.navitem:hover { background: rgba(255,255,255,.05); color: #fff; }
.navitem.active { background: rgba(127,216,201,.14); color: #fff; }
.navitem.active::before { content:""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; background: #7fd8c9; border-radius: 0 3px 3px 0; }
.navitem .ni-ico { width: 18px; text-align: center; opacity: .9; }
.navitem .ni-count { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--coral); color: #fff; padding: 1px 7px; border-radius: 100px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line-inv); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,var(--coral),#8a3115); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.side-foot .who { font-size: 13px; line-height: 1.3; }
.side-foot .who b { color: #fff; display: block; font-weight: 600; }
.side-foot .who span { color: var(--text-faint); font-size: 12px; }

.main { padding: 0; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px; background: rgba(239,231,214,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 24px; font-weight: 600; }
.topbar .sub { font-size: 13.5px; color: var(--text-soft); margin-top: 2px; }
.searchbox {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 16px; width: 320px; max-width: 34vw; color: var(--text-faint); font-size: 14px;
}
.searchbox input { border: none; background: none; outline: none; font-family: var(--sans); font-size: 14px; width: 100%; color: var(--text); }

.view { padding: 30px 32px 60px; max-width: 1120px; }
.view.hidden { display: none; }

/* Section titles inside app */
.blocktitle { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 16px; }
.blocktitle h2 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.blocktitle a { font-size: 13.5px; color: var(--teal); font-weight: 600; cursor: pointer; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 30px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.tile .tl { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.tile .tn { font-family: var(--display); font-size: 34px; font-weight: 600; margin-top: 8px; line-height: 1; }
.tile .td { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; }
.tile .tn.alert { color: var(--coral); }
.tile .tn.ok { color: var(--teal); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* Alert feed cards */
.impact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: box-shadow .18s, transform .18s, border-color .18s; cursor: pointer;
}
.impact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(23,20,14,.22); }
.impact-card .ic-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.impact-card .ic-src { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-left: auto; }
.impact-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.impact-card .ic-summary { color: var(--text-soft); font-size: 15px; margin: 10px 0 14px; }
.impact-card .ic-foot { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-faint); font-family: var(--mono); }
.impact-card .ic-foot .why { color: var(--teal); font-weight: 600; cursor: pointer; margin-left: auto; font-family: var(--sans); }

/* Meeting rows */
.mrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; cursor: pointer; }
.mrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mdate { text-align: center; border-right: 1px solid var(--line-soft); padding-right: 16px; }
.mdate .mo { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--coral); }
.mdate .dy { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.mrow h4 { font-size: 17px; font-weight: 600; }
.mrow .msub { font-size: 13px; color: var(--text-soft); margin-top: 3px; font-family: var(--mono); }
.mrow .mstat { text-align: right; }

/* Two-column app layout */
.split { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 1040px) { .split { grid-template-columns: 1fr; } }

/* Panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.panel-body { padding: 18px 20px; }

/* Agenda list */
.agenda-item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: flex-start; }
.agenda-item:last-child { border-bottom: none; }
.agenda-item .aidx { font-family: var(--mono); font-size: 12px; color: var(--text-faint); flex: none; width: 30px; }
.agenda-item .atitle { font-size: 14.5px; font-weight: 500; }
.agenda-item .adesc { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.agenda-item.hot .atitle { color: var(--coral); }

/* Transcript (archived) */
.transcript { font-family: var(--mono); font-size: 14px; line-height: 1.85; color: var(--text); max-height: 520px; overflow-y: auto; padding-right: 10px; }
.transcript p { margin: 0 0 14px; }
.transcript .ts { color: var(--text-faint); margin-right: 10px; }
.transcript .spk { color: var(--teal-deep); font-weight: 600; }
.transcript mark { background: var(--coral-tint); color: #7a2c12; padding: 2px 3px; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(194,74,40,.4); }

/* Profile */
.profile-hero { display: flex; gap: 20px; align-items: center; padding: 24px; background: linear-gradient(120deg, var(--seal), #1a2a24); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.profile-hero .plogo { width: 62px; height: 62px; border-radius: 14px; background: var(--card); color: var(--seal); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; flex: none; }
.profile-hero h2 { color: #fff; font-size: 26px; }
.profile-hero .purl { font-family: var(--mono); font-size: 13px; color: #7fd8c9; margin-top: 4px; }
.profile-hero .pmeta { color: var(--text-inv-soft); font-size: 13.5px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 100px; background: var(--paper-2); border: 1px solid var(--line); color: var(--text-soft); }
.chip.on { background: var(--teal-tint); border-color: rgba(15,110,99,.3); color: var(--teal-deep); }

/* Q&A deepening */
.qcard { background: linear-gradient(var(--card),var(--card)) padding-box, linear-gradient(120deg, var(--teal), var(--coral)) border-box; border: 1.5px solid transparent; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.qcard .qlabel { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.qcard .qtext { font-family: var(--display); font-size: 21px; font-weight: 500; margin: 10px 0 16px; letter-spacing: -0.01em; }
.qopts { display: flex; flex-wrap: wrap; gap: 10px; }
.qopt { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s; }
.qopt:hover { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-deep); transform: translateY(-1px); }

/* Definition list */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 2px 20px; }
.dl dt { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.dl dd { margin: 0; padding: 11px 0; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }

/* Recommended actions */
.reco { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.reco:last-child { border-bottom: none; }
.reco .rk { width: 24px; height: 24px; border-radius: 7px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.reco .rt { font-size: 14.5px; }
.reco .rt b { font-weight: 600; }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: var(--text-inv); padding: 14px 22px; border-radius: 100px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 500; z-index: 999; transition: transform .4s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .dot { background: #7fd8c9; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .brand { padding: 6px 8px; }
  .nav-group-label { display: none; }
  .side-foot { display: none; }
  .searchbox { display: none; }
}

/* =========================================================================
   ONBOARDING
   ========================================================================= */
.ob-body { background: var(--paper); min-height: 100vh; }
.ob-wrap { max-width: 620px; margin: 0 auto; padding: 40px 24px 80px; }
.ob-progress { display: flex; gap: 8px; margin-bottom: 40px; }
.ob-progress .seg { height: 4px; flex: 1; border-radius: 4px; background: var(--paper-3); transition: background .4s; }
.ob-progress .seg.done { background: var(--teal); }
.ob-step { }
.ob-step.hidden { display: none; }
.ob-step .eyebrow { margin-bottom: 14px; display: block; }
.ob-step h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.025em; }
.ob-step .ob-sub { color: var(--text-soft); font-size: 17px; margin: 14px 0 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field .hint { color: var(--text-faint); font-weight: 400; }
.input, textarea.input {
  width: 100%; padding: 14px 16px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--sans); font-size: 16px; color: var(--text); outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus, textarea.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.input.url { font-family: var(--mono); font-size: 15px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
.ob-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.ob-back { font-size: 14px; color: var(--text-faint); cursor: pointer; font-weight: 500; }
.ob-back:hover { color: var(--text); }

/* scanning animation block */
.scanbox { background: var(--ink-panel); color: var(--text-inv); border-radius: var(--radius); padding: 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; min-height: 180px; box-shadow: var(--shadow-md); }
.scanbox .sl { opacity: 0; animation: rise .5s forwards; color: var(--text-inv-soft); }
.scanbox .sl .ok { color: #7fd8c9; }
.scanbox .sl .hl { color: #ffb59e; }

/* checkbox grid */
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkitem { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; background: var(--card); transition: all .14s; font-size: 14.5px; font-weight: 500; }
.checkitem:hover { border-color: var(--teal); }
.checkitem.on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-deep); }
.checkitem .cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; color: #fff; }
.checkitem.on .cb { background: var(--teal); border-color: var(--teal); }
@media (max-width: 520px) { .checkgrid { grid-template-columns: 1fr; } }

.result-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.result-card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }

/* =========================================================================
   CRM — Lobby Together (live, backed by the local API)
   ========================================================================= */
.crm-cols { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .crm-cols { grid-template-columns: 1fr; } }
.crm-rail { display: flex; flex-direction: column; gap: 8px; }
.crm-camp { text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: all .14s; }
.crm-camp:hover { border-color: var(--teal); }
.crm-camp.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: var(--teal-tint); }
.crm-camp .cn { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; }
.crm-camp .cm { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.crm-camp.shared { border-style: dashed; }

.tabnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 18px; flex-wrap: wrap; }
.tab { padding: 9px 15px; font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--teal-deep); border-bottom-color: var(--teal); }

.crm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); margin-bottom: 10px; }
.crm-row .grow { flex: 1; min-width: 0; }
.crm-row h4 { font-family: var(--display); font-size: 15.5px; font-weight: 600; }
.crm-row .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.crm-row .acts { display: flex; gap: 6px; align-items: center; flex: none; }

.spill { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.spill.prospect   { color: var(--text-soft); border-color: var(--line); background: var(--paper-2); }
.spill.invited    { color: #8a5e0f; border-color: rgba(201,138,33,.35); background: var(--amber-tint); }
.spill.subscriber { color: var(--teal-deep); border-color: rgba(15,110,99,.3); background: var(--teal-tint); }

.linkbtn { background: none; border: none; color: var(--teal); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--coral); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea, .field select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 14px; background: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.authcard { max-width: 420px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 8px; }
.inline-form .field { margin-bottom: 0; }
.crm-note { font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }
.crm-people { margin: 6px 0 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.crm-people .pr { font-size: 13px; color: var(--text-soft); padding: 3px 0; display: flex; gap: 8px; align-items: center; }
