:root {
  --c-primary:      #1A9B8A;
  --c-primary-dark: #13756A;
  --c-primary-mid:  #2CB8A5;
  --c-primary-light:#E4F5F3;
  --c-navy:         #0C1B34;
  --c-body:         #2E3A50;
  --c-muted:        #7A8699;
  --c-bg:           #F0F8F7;
  --c-white:        #FFFFFF;
  --c-border:       #C8E5E1;
  --c-today:        #059669;
  --c-today-bg:     #ECFDF5;
  --c-daily:        #10B981;
  --c-weekly:       #F59E0B;
  --c-shadow:       0 1px 3px rgba(12,27,52,.07), 0 4px 16px rgba(26,155,138,.07);
  --c-shadow-lg:    0 4px 12px rgba(12,27,52,.12), 0 8px 32px rgba(26,155,138,.1);
  --r:              16px;
  --r-sm:           10px;
  --r-xs:           6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c-bg);
  color: var(--c-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────── */
header {
  background: var(--c-navy);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.header-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.14);
}

.header-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .01em;
}

.header-version {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── TAB BAR ─────────────────────────────────────────── */
.tab-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0 40px;
  display: flex;
  gap: 0;
  position: sticky;
  top: 60px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.tab {
  padding: 0 24px;
  height: 52px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  user-select: none;
}

.tab:hover { color: var(--c-primary); }

.tab.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.tab-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tab-pill.green  { background: rgba(16,185,129,.12); color: var(--c-daily); }
.tab-pill.amber  { background: rgba(245,158,11,.12);  color: #D97706; }
.tab-pill.gray   { background: #F0EFF9; color: var(--c-muted); }

/* ── MAIN ────────────────────────────────────────────── */
main {
  background: #f3f4f6;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.view { display: none; animation: fadeIn .22s ease; }
.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION LABEL ───────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  margin-bottom: 18px;
}

/* ── OVERVIEW HERO ───────────────────────────────────── */
.ov-hero {
  background: linear-gradient(140deg, #0C1B34 0%, #0D2A40 55%, #13756A 100%);
  border-radius: var(--r);
  padding: 48px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.ov-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.ov-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 28%;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.ov-hero h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 12px;
  letter-spacing: -.4px;
  position: relative;
}

.ov-hero p {
  font-size: 15px;
  line-height: 1.65;
  opacity: .8;
  max-width: 560px;
  position: relative;
}

.ov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  position: relative;
}

.ov-chip {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── SAD VISION CARDS ────────────────────────────────── */
.sad-vision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.sad-vis-card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
}

.sad-vis-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.icon-see { background: #E8F4FF; }
.icon-ask { background: #FFF3E8; }
.icon-do  { background: #E8FFF3; }

.sad-vis-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.sad-vis-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ── OVERVIEW MATRIX ─────────────────────────────────── */
.card {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 4px;
}

.matrix-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: left;
  padding: 0 14px 14px 14px;
  border-bottom: 1px solid var(--c-border);
}

.matrix-table th:first-child { padding-left: 0; }

.matrix-table td {
  padding: 14px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

.matrix-table td:first-child { padding-left: 0; }
.matrix-table tr:last-child td { border-bottom: none; }

.int-name {
  font-weight: 600;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.int-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--c-bg);
  flex-shrink: 0;
}

.persona-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.persona-tag.legal   { background: var(--c-primary-light); color: var(--c-primary); }
.persona-tag.biz     { background: #FFF4E5; color: #B45309; }

.persona-tag[data-goto] {
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
}
.persona-tag[data-goto]:hover { opacity: .75; box-shadow: 0 0 0 2px currentColor; }

.sad-pills {
  display: flex;
  gap: 5px;
}

.sad-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.sad-pill.see { background: #E8F4FF; color: #1D6FA4; }
.sad-pill.ask { background: #FFF3E8; color: #B45309; }
.sad-pill.do  { background: #E8FFF3; color: #166534; }

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.surface-card {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 16px;
  border: 1px solid var(--c-border);
}

.surface-card .sc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 6px;
}

.surface-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* ── PERSONA HERO ────────────────────────────────────── */
.persona-hero {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  padding: 36px;
  margin-bottom: 24px;
}

.ph-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -.4px;
  margin-bottom: 4px;
}

.ph-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  margin-bottom: 18px;
}

.ph-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-body);
  border-left: 3px solid var(--c-primary);
  padding-left: 16px;
  font-style: italic;
}

.ph-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-tile {
  background: var(--c-primary-light);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-primary-mid);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── DESIGN NOTE ─────────────────────────────────────── */
.design-note {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--r-sm);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.design-note-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }

.design-note p {
  font-size: 13px;
  line-height: 1.55;
  color: #92400E;
}

.design-note strong { font-weight: 700; }

/* ── REACH SECTION ───────────────────────────────────── */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.reach-tile {
  border-radius: var(--r-sm);
  padding: 18px 12px;
  text-align: center;
  border: 1px solid var(--c-border);
  transition: box-shadow .18s;
}

.reach-tile.daily  { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.03); }
.reach-tile.weekly { border-color: rgba(245,158,11,.3);  background: rgba(245,158,11,.03); }
.reach-tile.oos    { background: #F9FAFB; opacity: .55; }

.reach-tile-icon { font-size: 24px; margin-bottom: 10px; }

.reach-tile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.reach-tile.oos .reach-tile-name { color: var(--c-muted); }

.freq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.freq-badge.daily  { background: rgba(16,185,129,.12); color: #059669; }
.freq-badge.weekly { background: rgba(245,158,11,.12);  color: #D97706; }
.freq-badge.oos    { background: #F0EFF9; color: var(--c-muted); }

.freq-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.freq-dot.daily  { background: var(--c-daily); }
.freq-dot.weekly { background: var(--c-weekly); }
.freq-dot.oos    { background: #D1D5DB; }

.reach-tile-value {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ── SAD CARDS ───────────────────────────────────────── */
.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--c-muted);
}

.uc-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.uc-badge.today   { background: var(--c-today-bg); color: var(--c-today); }
.uc-badge.opp     { background: #F0EFF9; color: #8B91A8; }
.uc-badge.partial { background: #FEF9C3; color: #854D0E; border: 1px dashed #FCD34D; }

.sad-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.sad-card {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  overflow: hidden;
  transition: box-shadow .18s;
}

.sad-card:hover { box-shadow: var(--c-shadow-lg); }

.sad-card-hd {
  padding: 20px 22px 18px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background .15s;
  border-radius: var(--r) var(--r) 0 0;
}

.sad-card-hd:hover { background: var(--c-bg); }

.sad-card-hd:hover .expand-btn {
  background: var(--c-primary);
  color: #fff;
}

.sad-card-title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sad-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sad-card-icon.see { background: #E8F4FF; }
.sad-card-icon.ask { background: #FFF3E8; }
.sad-card-icon.do  { background: #E8FFF3; }

.sad-card-label { font-size: 17px; font-weight: 700; color: var(--c-navy); }
.sad-card-sub   { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.expand-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .2s, background .18s;
}

.sad-card.open .expand-btn {
  transform: rotate(45deg);
  background: var(--c-primary);
  color: #fff;
}

/* Preview (collapsed state) */
.sad-preview {
  padding: 0 22px 20px;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
}

.sad-preview-meta { display: none; }

.sad-preview-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-body);
}

/* Items (expanded state) */
.sad-items {
  display: none;
  padding: 0 22px 20px;
  border-top: 1px solid var(--c-border);
  padding-top: 4px;
}

.sad-card.open .sad-items   { display: block; }
.sad-card.open .sad-preview { display: none; }

.uc-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.uc-item:last-child { border-bottom: none; padding-bottom: 0; }

.uc-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-body);
}

/* ── ACCORDION ───────────────────────────────────────── */
.accordion {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.acc-hd {
  padding: 18px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background .15s;
}

.acc-hd:hover { background: var(--c-bg); }

.acc-title { font-size: 14.5px; font-weight: 600; color: var(--c-navy); }

.acc-arrow {
  color: var(--c-muted);
  font-size: 18px;
  transition: transform .2s;
  flex-shrink: 0;
}

.accordion.open .acc-arrow { transform: rotate(180deg); }

.acc-body {
  display: none;
  padding: 4px 28px 24px;
  border-top: 1px solid var(--c-border);
}

.accordion.open .acc-body { display: block; }

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.bullet-list li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-body);
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--c-primary-mid);
  font-weight: 700;
}

.nuance-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.nuance-card {
  background: var(--c-bg);
  border-radius: var(--r-sm);
  padding: 16px;
  border: 1px solid var(--c-border);
}

.nuance-card h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 7px;
}

.nuance-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--c-body);
}

/* ── OUT-OF-SCOPE VIEW ───────────────────────────────── */
.oos-intro {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  padding: 22px 28px;
  margin-bottom: 24px;
}

.oos-intro h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 5px;
}

.oos-intro p {
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.5;
}

.oos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.oos-card {
  background: var(--c-white);
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
  padding: 26px;
  transition: box-shadow .18s;
}

.oos-card:hover { box-shadow: var(--c-shadow-lg); }

.oos-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  background: #F0EFF9;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.oos-status.champion {
  background: #FFF4E5;
  color: #B45309;
}

.oos-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 4px;
}

.oos-card .oos-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.oos-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-body);
}

/* ── UTILITY ─────────────────────────────────────────── */
.mb-24 { margin-bottom: 24px; }
