/* ==========================================================================
   Party.Camera — Investor Web Design System
   Derived from DESIGN.md (Party Camera app). Cream/ink duotone with the
   four-color party gradient used as accent.
   ========================================================================== */

:root {
  /* Core duotone */
  --cream: #F7F4F1;
  --cream-soft: #F2EEE7;
  --ink: #262525;
  --ink-soft: rgba(38, 37, 37, 0.72);
  --ink-mute: rgba(38, 37, 37, 0.56);
  --ink-faint: rgba(38, 37, 37, 0.32);
  --rule: rgba(38, 37, 37, 0.14);
  --rule-soft: rgba(38, 37, 37, 0.08);

  /* Party palette */
  --dawn: #F19699;   /* pink */
  --day:  #EC782E;   /* orange */
  --dusk: #7F5AC0;   /* purple */
  --night:#384173;   /* navy */

  --party-gradient: linear-gradient(135deg, var(--dawn) 0%, var(--day) 33%, var(--dusk) 66%, var(--night) 100%);

  /* Accent tints */
  --tint-dawn: rgba(241, 150, 153, 0.14);
  --tint-day:  rgba(236, 120,  46, 0.14);
  --tint-dusk: rgba(127,  90, 192, 0.14);
  --tint-night:rgba( 56,  65, 115, 0.14);

  /* Typography */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fragment Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Radius scale (continuous rounded rects — iOS feel) */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows — soft, never harsh */
  --shadow-1: 0 1px 2px rgba(38, 37, 37, 0.06), 0 0 0 1px var(--rule);
  --shadow-2: 0 4px 18px rgba(38, 37, 37, 0.08), 0 0 0 1px var(--rule);
  --shadow-3: 0 12px 40px rgba(38, 37, 37, 0.12), 0 0 0 1px var(--rule);
  --shadow-gradient: 0 10px 40px rgba(56, 65, 115, 0.22), 0 2px 8px rgba(127, 90, 192, 0.18);

  /* Legacy compat aliases — flywheel_<name>.html and network.html reference these */
  --bg: var(--cream);
  --mid: var(--ink-mute);
  --faint: var(--ink-faint);
  --gold: var(--day);
  --goldbg: var(--tint-day);
  --wine: var(--dusk);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

img { max-width: 100%; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 36px 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 620;
}
h1 { font-size: 52px; line-height: 1.02; letter-spacing: -0.028em; font-weight: 680; }
h2 { font-size: 32px; line-height: 1.1;  letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.2;  letter-spacing: -0.012em; }
h4 { font-size: 17px; line-height: 1.3;  letter-spacing: -0.005em; }
p  { margin: 0 0 14px; }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 28px;
}

.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.tiny  { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

/* Selection */
::selection { background: var(--dawn); color: var(--ink); }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.sec-label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--ink-faint);
  display: inline-block;
}

.section h2 { margin-bottom: 8px; }
.section .lede { margin-bottom: 32px; }

/* ==========================================================================
   Top nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 241, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  letter-spacing: -0.005em;
}
.nav-brand .mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--party-gradient) center/cover no-repeat;
  background-image: url("assets/app_icon-square.jpg");
  box-shadow: var(--shadow-gradient);
  flex-shrink: 0;
}
.nav-brand .brand-name { font-size: 14px; }
.nav-brand .brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: var(--r-md);
  transition: background 120ms ease, color 120ms ease;
}
.nav-links a:hover {
  background: var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--ink);
  color: var(--cream);
}
.nav-links a.deck {
  color: var(--ink);
  font-weight: 540;
  border: 1px solid var(--rule);
}
.nav-links a.deck:hover { background: var(--cream-soft); }

/* App Store badge in nav */
.nav-appstore img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-appstore { transition: opacity 140ms ease; }
.nav-appstore:hover { opacity: 0.82; text-decoration: none; }

/* ==========================================================================
   Page header (big gradient hero)
   ========================================================================== */

.page-header {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.page-header .hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.page-header .hero-meta span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dusk);
  margin-right: 8px;
  transform: translateY(-1px);
}
.page-header h1 .accent {
  background: var(--party-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 120% 100%;
}

/* Gradient accent bar used under hero */
.gradient-bar {
  height: 4px;
  width: 100%;
  background: var(--party-gradient);
  border-radius: var(--r-pill);
  margin: 28px 0 0;
}

/* ==========================================================================
   Stats grid
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 8px;
}
.stat {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.stat .val {
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat .sub { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.stat.accent-dawn  { border-top: 2px solid var(--dawn); }
.stat.accent-day   { border-top: 2px solid var(--day); }
.stat.accent-dusk  { border-top: 2px solid var(--dusk); }
.stat.accent-night { border-top: 2px solid var(--night); }

.stats-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.stats-6 .stat .val { font-size: 22px; }

/* Hero stat (single big number) */
.hero-stat {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.hero-stat .big {
  font-size: 64px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--party-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card h4 { margin-bottom: 8px; }
.card p  { color: var(--ink-soft); margin-bottom: 0; }

/* Callout box */
.callout {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 24px 0;
  position: relative;
  border-left: 3px solid transparent;
  border-image: var(--party-gradient) 1;
  border-image-slice: 1;
  box-shadow: var(--shadow-1);
}
.callout h4 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 14px 0 14px 24px;
  border-left: 3px solid var(--day);
  margin: 24px 0;
  max-width: 840px;
}
.pull .who {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-family: var(--mono);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--cream-soft);
  font-weight: 500;
}
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bars / funnels
   ========================================================================== */

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 72px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.bar-row:last-child { border-bottom: 0; }
.bar-row .name { font-size: 13px; color: var(--ink); font-weight: 520; }
.bar-row .val  { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }
.bar-track {
  height: 10px;
  background: var(--rule-soft);
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--party-gradient);
  border-radius: var(--r-pill);
  transition: width .6s ease;
}
.bar-fill.flat-day   { background: var(--day); }
.bar-fill.flat-dusk  { background: var(--dusk); }
.bar-fill.flat-night { background: var(--night); }
.bar-fill.flat-dawn  { background: var(--dawn); }

/* ==========================================================================
   Milestones list
   ========================================================================== */

.milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
}
.milestone {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.milestone:last-child { border-bottom: 0; }
.milestone .when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding-top: 2px;
}
.milestone h4 { margin-bottom: 4px; }
.milestone p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Flywheel diagram (shared)
   ========================================================================== */

.flywheel-diagram {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-2);
  margin: 20px 0;
  position: relative;
}
.flywheel-diagram svg { width: 100%; height: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  padding: 48px 0 64px;
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  color: var(--ink-mute);
  font-size: 13px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.site-foot .brand { display: flex; align-items: center; gap: 10px; }
.site-foot .brand .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--party-gradient) center/cover no-repeat;
  background-image: url("assets/app_icon-square.jpg");
}
.site-foot .links { display: flex; gap: 18px; }
.site-foot .links a { color: var(--ink-soft); }

/* ==========================================================================
   Password gate (client-side, soft gating only)
   ========================================================================== */

#gate {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--party-gradient);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
#gate .gate-card {
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 80px rgba(38,37,37,0.22);
  text-align: center;
}
#gate .gate-mark {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: var(--party-gradient) center/cover no-repeat;
  background-image: url("assets/app_icon-square.jpg");
  margin: 0 auto 20px;
  box-shadow: var(--shadow-gradient);
}
#gate h3 { font-size: 20px; margin-bottom: 6px; }
#gate p { color: var(--ink-mute); font-size: 13px; margin-bottom: 20px; }
#gate input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
#gate input:focus {
  border-color: var(--dusk);
  box-shadow: 0 0 0 3px var(--tint-dusk);
}
#gate button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  letter-spacing: 0.005em;
  transition: transform 120ms ease, opacity 120ms ease;
}
#gate button:hover { opacity: 0.9; }
#gate button:active { transform: scale(0.98); }
#gate .gate-err { color: var(--wine, #8b0f28); font-size: 12px; min-height: 16px; margin-bottom: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  h1 { font-size: 42px; }
  h2 { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-6 { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .section { padding: 40px 0; }
  .page-header { padding: 48px 0 36px; }
  h1 { font-size: 34px; }
  h2 { font-size: 22px; }
  .lede { font-size: 16px; }
  .hero-stat { grid-template-columns: 1fr; }
  .hero-stat .big { font-size: 48px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .nav-appstore img { height: 28px; }
  .nav-brand .brand-sub { display: none; }
  .milestone { grid-template-columns: 1fr; gap: 4px; }
  .bar-row { grid-template-columns: 120px 1fr 60px; }
}

@media (max-width: 480px) {
  .stats, .stats-6, .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}

/* ==========================================================================
   Flywheel case-study re-skin
   Applies to the legacy flywheel_<name>.html markup (.kpi-grid, .panel,
   .tl-*, .ppl-grid, .pc, .insight-*). Kept here so investor pages can
   share one stylesheet.
   ========================================================================== */

.flywheel-page body { font-family: var(--sans); }

/* KPI strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 24px 0 8px;
}
.kpi {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 18px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--party-gradient);
}
.kpi-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 680;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.kpi-value.accent {
  background: var(--party-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi-sub {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* Section wrappers on flywheel pages */
.flywheel-page section {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.flywheel-page section:first-of-type { border-top: 0; }
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.flywheel-page h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.section-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

/* Main grid (graph + timeline) */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 10px;
}
@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-1);
}
.panel-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.tl-scroll { max-height: 560px; overflow-y: auto; }

/* Legend */
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-mute);
}
.ld {
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

/* Timeline events */
.tl-event {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.tl-event:last-child { border-bottom: 0; }
.tl-dot {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--cream-soft);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  margin-top: 2px;
}
.tl-dot.h { background: var(--tint-day); color: var(--day); border-color: var(--day); }
.tl-dot.c { background: var(--tint-dusk); color: var(--dusk); border-color: var(--dusk); }
.tl-dot.n { background: var(--cream-soft); color: var(--ink-soft); border-color: var(--rule); }
.tl-date {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.tl-cam {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 540;
}
.tl-who {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tl-badge {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  border-radius: var(--r-pill);
  background: var(--cream-soft);
  color: var(--ink-mute);
  border: 1px solid var(--rule);
}
.tl-badge.h { background: var(--tint-day); color: var(--day); border-color: rgba(236,120,46,.3); }
.tl-badge.c { background: var(--tint-dusk); color: var(--dusk); border-color: rgba(127,90,192,.3); }
.tl-badge.v { background: var(--tint-night); color: var(--night); border-color: rgba(56,65,115,.3); }

.cam-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
}
.cam-link:hover { border-bottom-color: var(--day); color: var(--day); text-decoration: none; }

/* Flywheel SVG wrap */
.fw-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-2);
  text-align: center;
  margin-top: 10px;
}

/* People cards */
.ppl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.pc {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px 20px;
  box-shadow: var(--shadow-1);
  border-left: 3px solid var(--rule);
}
.pc.ph { border-left-color: var(--day); }
.pc.pv { border-left-color: var(--dusk); }
.pc.pn { border-left-color: var(--night); }

.pc-role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.pc-role.rh { color: var(--day); }
.pc-role.rv { color: var(--dusk); }
.pc-role.rn { color: var(--night); }

.pc-name {
  font-size: 16px;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.ps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: 11.5px;
}
.psl { color: var(--ink-mute); }
.psv { color: var(--ink); font-family: var(--mono); }

.pb {
  margin-top: 12px;
  background: var(--rule-soft);
  height: 3px;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.pbf { height: 100%; border-radius: var(--r-pill); }

.pnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pnote strong {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 0;
}

/* Insight cards */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.insight-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px 24px;
  box-shadow: var(--shadow-1);
  border-top: 3px solid var(--rule);
}
.insight-card.hi {
  border-top: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              var(--party-gradient) border-box;
  border: 1px solid transparent;
}
.insight-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.insight-card.hi .insight-label {
  background: var(--party-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.insight-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.insight-body strong {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 0;
}
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .main-grid { grid-template-columns: 1fr; }
}

