/*
 * Landing page refinements (preserve-mode redesign). Loaded at the end of <body>, after
 * the page's inline styles, so these rules take precedence.
 *
 * Type scale: body copy 16-18px, card and label text 14-16px, nothing under 13px except
 * fine print. Earlier the landing used 10-15px body text, which read as tiny at desktop sizes.
 */

/* ---------- Brand mark ---------- */
.brand .brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(127, 238, 100, 0.25);
}
.side-brand .brand .brand-logo,
.auth-screen .brand .brand-logo { width: 34px; height: 34px; }
.brand:has(.brand-logo) { gap: 12px; }

/* ---------- Icons (Phosphor) ---------- */
.public-site .ph { line-height: 1; vertical-align: middle; }
.public-site .ticker-item .ph { font-size: 17px; }
.public-site .showcase-tab .ph { font-size: 20px; }
.public-site .network-node .node-icon .ph { font-size: 18px; }
.public-site .flow-node .ph { font-size: 17px; }
.public-site .solution-point .ph { font-size: 15px; }
.public-site .industry-card > i .ph { font-size: 30px; color: #7fee64; }
.public-site .benefit > i .ph { font-size: 34px; color: #7fee64; }

/* ---------- Hero ---------- */
@media (min-width: 900px) {
  .public-site .hero .hero-content h1 {
    max-width: 17ch;
    font-size: clamp(44px, 4.3vw, 62px);
    line-height: 1.06;
  }
}
.public-site .hero-copy { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; }

/* ---------- Section copy ---------- */
.public-site .section-head p,
.public-site .intelligence-copy > p,
.public-site .solution-copy > p,
.public-site .feature-copy p,
.public-site .showcase-copy p,
.public-site .final-cta p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  max-width: 60ch;
}
.public-site .section-head.center p { margin-inline: auto; }
.public-site .solution-point span { font-size: 15px; line-height: 1.55; }
.public-site .intelligence-link,
.public-site .market-learn { font-size: 15px; }

/* ---------- Ticker and network diagram ---------- */
.public-site .ticker-item { font-size: 13px; }
.public-site .network-node,
.public-site .flow-node { font-size: 13px; }

/* ---------- Platform showcase ---------- */
.public-site .showcase-tab { font-size: 14px; gap: 10px; }
.public-site .showcase-copy h3 { font-size: clamp(28px, 2.6vw, 40px); }
.public-site .showcase-bullets span { font-size: 14px; }

/* Real product screenshots */
.public-site .shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(127, 238, 100, 0.16);
  background: #f6f9f7;
  box-shadow: 0 24px 60px rgba(4, 12, 6, 0.5);
}
.public-site .shot-crop { overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; }
.public-site .shot-crop .shot { height: 100%; object-fit: cover; object-position: top left; }
.public-site .shot-caption { margin: 12px 0 0; color: #8fa98b; font-size: 13px; line-height: 1.5; }
.public-site .showcase-screen.has-shot { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* ---------- Feature rows ---------- */
.public-site .feature-copy h3 { font-size: clamp(32px, 3.4vw, 46px); }

/* ---------- Industries ---------- */
.public-site .industry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px;
  padding: 28px 26px;
}
.public-site .industry-card > i { margin-bottom: 8px; font-style: normal; }
.public-site .industry-card b { font-size: 19px; line-height: 1.25; }
.public-site .industry-card small { font-size: 14px; line-height: 1.55; }

/* ---------- Why INSOVANT: one lead benefit beside two supporting ones ---------- */
.public-site .benefit { padding: 30px; }
.public-site .benefit > i { font-style: normal; }
.public-site .benefit h3 { font-size: 24px; margin: 14px 0 10px; }
.public-site .benefit p { font-size: 16px; line-height: 1.6; max-width: 46ch; }
@media (min-width: 900px) {
  .public-site .benefit-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-auto-rows: minmax(170px, auto);
    gap: 16px;
  }
  .public-site .benefit-grid .benefit:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(ellipse at 80% 10%, rgba(127, 238, 100, 0.14), transparent 60%), rgba(255, 255, 255, 0.02);
  }
  .public-site .benefit-grid .benefit:first-child h3 { font-size: 30px; }
}

/* ---------- Footer ---------- */
.public-site .footer p { font-size: 14px; line-height: 1.65; max-width: 38ch; }
.public-site .footer-col h4 { font-size: 14px; }
.public-site .footer-col a { font-size: 14px; line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
  .public-site .shot { transition: none; }
}

/* ---------- Specificity fixes (inline layers use longer selectors for these) ---------- */
.public-site .topnav .brand .brand-logo { width: 40px; height: 40px; object-fit: cover; }
.public-site .market-experience .feature-copy p,
.public-site .feature-row .feature-copy p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; max-width: 52ch; }
@media (min-width: 900px) {
  .public-site .hero .hero-content .hero-copy { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; }
}
/* Solution points were #4e6255 on a near-black section (about 2.3:1 contrast). */
.public-site .solution-points .solution-point { color: #b3c8b0; font-size: 15px; }
/* Industry titles named Manrope with no fallback, so they dropped to a serif when it was missing. */
.public-site .industry-card b { font-family: Manrope, system-ui, sans-serif; color: #e2f5df; }
.public-site .market-experience > .wrap > .section-head p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; max-width: 60ch; }

/* ---------- Workspace sidebar and top bar ---------- */
.app .side-link .ico { display: inline-grid; place-items: center; width: 22px; }
.app .side-link .ico .ph { font-size: 19px; line-height: 1; }
.app .menu-toggle .ph, .app .topbar .icon-btn .ph { font-size: 20px; line-height: 1; vertical-align: middle; }
/* Keep the tagline on one line beside the mark. */
.app .side-brand .brand small { white-space: nowrap; letter-spacing: 0.06em; font-size: 8.5px; }

/* ==========================================================================
   Workspace typography (signed-in pages). Findings, tiles and summaries read
   as business sentences with a clear hierarchy; colours follow each theme.
   ========================================================================== */
.app {
  --wt-body: #334155;
  --wt-good-bg: #dcfce7; --wt-good-fg: #166534;
  --wt-att-bg: #fee2e2;  --wt-att-fg: #b91c1c;
  --wt-watch-bg: #fef3c7; --wt-watch-fg: #92400e;
}
body[data-theme="soft-green"] .app { --wt-body: #1f3d2a; }
body[data-theme="dark-green"] .app {
  --wt-body: #c9dbc6;
  --wt-good-bg: rgba(120, 237, 87, 0.14); --wt-good-fg: #9cf58a;
  --wt-att-bg: rgba(248, 113, 113, 0.16); --wt-att-fg: #fca5a5;
  --wt-watch-bg: rgba(251, 191, 36, 0.14); --wt-watch-fg: #fcd34d;
}

/* Page intro */
.app .page-head p { font-size: 15.5px; line-height: 1.6; color: var(--wt-body); }
.app .page-head p b { color: var(--ws-text); font-weight: 700; }
.app .ws-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--ws-muted); }

/* KPI tiles */
.app .metric { position: relative; }
.app .ws-tile-icon { position: absolute; top: 18px; right: 18px; font-size: 20px; color: var(--ws-accent); }
.app .metric .metric-label { font-size: 13px; font-weight: 600; color: var(--wt-body); }
.app .metric .metric-foot { font-size: 13px; line-height: 1.5; color: var(--wt-body); }
.app .ws-chip {
  display: inline-flex; align-items: center; gap: 5px; margin: 6px 0 4px; padding: 3px 9px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.app .ws-chip .ph { font-size: 14px; }

/* Badges shared by findings and steps */
.app .ws-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.app .ws-good { background: var(--wt-good-bg); color: var(--wt-good-fg); }
.app .ws-attention { background: var(--wt-att-bg); color: var(--wt-att-fg); }
.app .ws-watch { background: var(--wt-watch-bg); color: var(--wt-watch-fg); }

/* Panels */
.app .content .panel-head h3 { font-size: 17px; font-weight: 700; color: var(--ws-text); letter-spacing: -0.01em; }
.app .content .subtle { color: var(--wt-body); }

/* Findings */
.app .ws-finding { padding: 14px 0; border-top: 1px solid var(--ws-border); }
.app .ws-finding:first-child { border-top: 0; padding-top: 4px; }
.app .ws-finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app .ws-finding-head b { font-size: 15px; color: var(--ws-text); }
.app .ws-finding p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--wt-body); }
.app .ws-finding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 32px; }
.app .ws-finding-grid .ws-finding { border-top: 0; border-bottom: 1px solid var(--ws-border); padding: 4px 0 14px; margin-bottom: 12px; }

/* Recommended next steps */
.app .ws-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ws-border); }
.app .ws-step:first-child { border-top: 0; padding-top: 4px; }
.app .ws-step-num {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--wt-good-bg); color: var(--wt-good-fg); font-size: 13px; font-weight: 700;
}
.app .ws-step-text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ws-text); }
.app .ws-step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 13px; color: var(--wt-body); }

/* Lead paragraphs (analysis summary) */
.app .ws-lead { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--wt-body); }
.app .ws-lead b { color: var(--ws-text); }

/* Tables inside the workspace */
.app .live-table td { color: var(--wt-body); }
.app .live-table td b { color: var(--ws-text); }

@media (max-width: 760px) {
  .app .ws-finding-grid { grid-template-columns: minmax(0, 1fr); }
}
.app .metric .ws-na { font-size: 20px; font-weight: 600; color: var(--ws-muted); }
