/* Meeting Intelligence — a PrimeLayer Solutions build. Calm, airy productivity workspace. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f6f8fa;
  --card: #ffffff;
  --raise: #fbfdfe;
  --ink: #26303c;
  --ink-2: #5b6b7b;
  --muted: #8697a6;
  --border: #e6ebf0;
  --border-soft: #eef2f6;
  --teal: #0ea5a4;
  --teal-deep: #0b8483;
  --green: #10b981;
  --teal-wash: #ecfbfa;
  --green-wash: #e9faf3;
  --shadow-sm: 0 1px 2px rgba(38, 48, 60, .05);
  --shadow: 0 1px 3px rgba(38, 48, 60, .05), 0 8px 24px rgba(38, 48, 60, .07);
  --shadow-lg: 0 2px 6px rgba(38, 48, 60, .06), 0 18px 46px rgba(38, 48, 60, .10);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* ---- demo sub-header (sits below the injected navy nav) ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(140deg, var(--teal), var(--green));
  box-shadow: 0 3px 10px rgba(14, 165, 164, .28);
}
.brand .sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  padding-left: 11px;
  margin-left: 3px;
  border-left: 1px solid var(--border);
}
.topbar .spacer { flex: 1; }
.topbar .badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border: 1px solid rgba(14, 165, 164, .22);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar .badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

/* ---- layout ---- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 30px 80px; }
.hero { margin-bottom: 28px; }
.hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 680px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* ---- input ---- */
.input-card { padding: 26px 28px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--raise);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder,
textarea::placeholder { color: var(--muted); }
.field input:focus,
textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 164, .12);
}
textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.6;
}
.notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 7px;
}
.notes-head label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.link-btn {
  background: none;
  border: none;
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color .15s ease;
}
.link-btn:hover { color: var(--teal); text-decoration: underline; }

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--green));
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  box-shadow: 0 4px 14px rgba(14, 165, 164, .26);
  transition: transform .14s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(14, 165, 164, .32); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn .spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--muted); font-size: 13px; }

.banner {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.banner.error {
  background: #fdf0ef;
  border: 1px solid #f4d0cd;
  color: #b4342b;
}
.banner .i {
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e05548;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}

/* ---- results ---- */
#results { margin-top: 26px; display: none; }
#results.show { display: block; animation: rise .5s cubic-bezier(.21, .68, .32, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc {
  padding: 34px 38px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 620px) { .doc { padding: 24px 20px; } }

.doc-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-head .eyebrow {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.sample-tag {
  display: inline-block;
  margin-left: 9px;
  vertical-align: middle;
  background: var(--teal-wash);
  color: var(--teal-deep);
  border: 1px solid rgba(14, 165, 164, .3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 2px 8px;
  border-radius: 999px;
}
.doc-head h2 {
  margin: 8px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
.lead {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: var(--ink);
}

.attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--raise);
}
.chip .av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
}

.sec { margin: 28px 0; }
.sec h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin: 0 0 13px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; gap: 8px; } }

/* clean lists */
ul.clean { list-style: none; margin: 0; padding: 0; }
ul.clean li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
ul.clean li:last-child { border-bottom: none; }
ul.clean li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
ul.decisions li::before {
  content: "✓";
  background: none;
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  top: 8px;
  left: 0;
  width: auto;
  height: auto;
}
ul.risk li::before { background: #e8a13a; }

/* action items — soft rows with owner pills */
.ai {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--raise);
  margin-bottom: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ai:hover { border-color: rgba(14, 165, 164, .35); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ai:last-child { margin-bottom: 0; }
.ai .av {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
}
.ai .task { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.ai .meta {
  margin-top: 5px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ai .owner { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ai .due {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-wash);
  border: 1px solid rgba(14, 165, 164, .28);
  padding: 2px 9px;
  border-radius: 999px;
}

/* sentiment — calm color chips */
.sent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sent-row:last-child { border-bottom: none; }
.sent-row .who { font-weight: 700; font-size: 14px; min-width: 118px; color: var(--ink); }
.sent-row .note { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.sp {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-2);
  background: var(--raise);
}
.sp.positive {
  color: var(--teal-deep);
  border-color: rgba(16, 185, 129, .35);
  background: var(--green-wash);
}
.sp.neutral {
  color: var(--ink-2);
  border-color: var(--border);
  background: #f2f5f8;
}
.sp.mixed {
  color: #a06a12;
  border-color: rgba(232, 161, 58, .4);
  background: #fdf4e6;
}
.sp.negative {
  color: #b4342b;
  border-color: rgba(224, 85, 72, .38);
  background: #fdf0ef;
}

/* topics — soft cards */
.topic {
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 10px;
  background: var(--raise);
}
.topic .t-n { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.topic .t-d { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

/* email — transcript-style block with teal rule */
.email {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.email .e-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raise);
}
.email .e-subj { font-weight: 700; font-size: 14px; color: var(--ink); }
.email .e-subj span { color: var(--muted); font-weight: 500; }
.email .e-body {
  padding: 18px;
  border-left: 3px solid var(--teal);
  white-space: pre-wrap;
  font-size: 13.8px;
  line-height: 1.7;
  color: var(--ink);
}
.email .e-copy { margin-left: auto; padding: 8px 14px; font-size: 13px; }

.usage {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.foot-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 40px;
  text-align: center;
  line-height: 1.6;
}
