/* ============================================================
 * caller-profile.css
 *
 * Stylesheet for the full Caller Profile demo page (loaded into
 * an iframe modal from index.html). Uses Geist / Geist Mono to
 * match the parent site's typography. The font files are shared
 * with the parent page, so when the iframe loads they're already
 * cached and the modal opens with zero font fetches.
 *
 * This file replaces the 398-line inline <style> block that
 * previously lived in caller-profile.html. Extracting it:
 *   - removes brand-font split (was Inter / JetBrains Mono)
 *   - eliminates Google Fonts requests entirely
 *   - lets the browser cache this stylesheet across visits
 * ============================================================ */

/* Brand fonts — same .woff2 files as the parent site, served
   from the same path so the browser reuses the cached copies. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #1B1814;
  --green: #4FBFA8;
  --green-soft: #133028;
  --blue-soft: #1A2238;
  --amber-soft: #2E2614;
  --radius: 16px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 22px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
.profile-card {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 64px -28px rgba(17, 24, 39, 0.35);
}
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 32px 32px 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 26, 0.12), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(255, 106, 26, 0.06), transparent 45%),
    linear-gradient(135deg, #f7f8fb, #fff);
}
.hero-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
  object-fit: cover;
  background:
    linear-gradient(135deg, #fbd3b4, #d98558),
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.56), transparent 55%);
  background-blend-mode: screen;
  position: relative;
  flex: 0 0 96px;
}
.avatar-lg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(18% 22% at 35% 40%, rgba(30, 20, 10, 0.45), transparent 65%),
    radial-gradient(18% 22% at 65% 40%, rgba(30, 20, 10, 0.45), transparent 65%),
    radial-gradient(40% 20% at 50% 75%, rgba(30, 20, 10, 0.25), transparent 70%);
}
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-text h1 span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #4b5563;
  font-size: 14px;
}
.score {
  text-align: center;
  background: var(--green-soft);
  border: 1px solid rgba(15, 157, 88, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 6px;
}
.score .value {
  font-family: var(--mono);
  color: var(--green);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
}
.score .label {
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  background: #fff;
}
.tab-btn {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 18px;
  white-space: nowrap;
  cursor: pointer;
}
.body {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas: "main sidebar";
  gap: 0;
}
.main {
  grid-area: main;
  padding: 24px;
  border-right: 1px solid var(--line);
  max-height: 68vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.main::after {
  content: "";
  display: block;
  height: 60vh;
  min-height: 280px;
}
.sidebar {
  grid-area: sidebar;
  padding: 24px;
  background: #fcfcfd;
}
.panel {
  display: block;
  margin-bottom: 16px;
  scroll-margin-top: 14px;
}
.panel:last-child { margin-bottom: 0; }
.section {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.section:last-child { margin-bottom: 0; }
.section h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b7280;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.grid-2, .grid-3 {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell {
  background: #fff;
  padding: 10px 12px;
  min-height: 64px;
}
.k {
  display: block;
  font-size: 10px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.v {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
  line-height: 1.35;
  font-family: var(--mono);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.tag-blue { background: var(--blue-soft); color: #2563eb; border-color: rgba(37, 99, 235, 0.2); }
.tag-green { background: var(--green-soft); color: var(--green); border-color: rgba(15, 157, 88, 0.2); }
.tag-amber { background: var(--amber-soft); color: #b45309; border-color: rgba(180, 83, 9, 0.2); }
.property {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  display: block;
}
.property:last-child { border-bottom: 0; }
.property .addr { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.property .meta2 { font-size: 12px; color: #4b5563; font-family: var(--mono); line-height: 1.45; }
.family-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.family-item:last-child { border-bottom: 0; }
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
  background: linear-gradient(135deg, #d4b596, #b8886a);
}
.fname { font-size: 13px; font-weight: 700; }
.frel { font-size: 12px; color: #6b7280; }
.timeline { padding: 12px; }
.timeline-item {
  border-left: 2px solid #e5e7eb;
  padding: 0 0 12px 12px;
  margin-left: 4px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: #fff;
}
.timeline-item:last-child { padding-bottom: 0; }
.date { font-size: 11px; color: #6b7280; font-family: var(--mono); margin-bottom: 2px; }
.event { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.detail { font-size: 12px; color: #4b5563; }
.sbox {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}
.sbox:last-child { margin-bottom: 0; }
.s-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 10px;
}
.stat { margin-bottom: 8px; }
.stat:last-child { margin-bottom: 0; }
.stat .lk { font-size: 11px; color: #6b7280; margin-bottom: 2px; }
.stat .lv { font-size: 18px; font-family: var(--mono); font-weight: 700; }
.stat .ls { font-size: 11px; color: #6b7280; margin-top: 2px; }
.sbox-compact { padding: 10px 10px 11px; }
.sbox-compact .s-title { margin-bottom: 8px; }
.sbox-compact .stat { margin-bottom: 6px; }
.sbox-compact .stat .lk { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; }
.sbox-compact .stat .lv { font-size: 14px; }
.sbox-compact .stat .ls { display: none; }
.split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.split .lk { margin: 0; }
.split .lv { margin-left: auto; text-align: right; }
.lead-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  color: #374151;
}
.badge-good { background: var(--green-soft); color: var(--green); border-color: rgba(15, 157, 88, 0.22); }
.badge-warm { background: var(--amber-soft); color: #b45309; border-color: rgba(180, 83, 9, 0.18); }
.badge-info { background: var(--blue-soft); color: #2563eb; border-color: rgba(37, 99, 235, 0.18); }
.bio-text { padding: 12px 14px; font-size: 13px; color: #374151; line-height: 1.55; }
.social-list { padding: 8px 12px; display: grid; gap: 0; }
.social-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.social-item:last-child { border-bottom: 0; }
.social-item .svc {
  font-weight: 800; min-width: 110px;
  text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em;
  color: #6b7280;
}
.social-item a {
  color: #2563eb; text-decoration: none; word-break: break-all;
  font-family: var(--mono); font-size: 12px;
}
.social-item a:hover { text-decoration: underline; }
.badge-recommended {
  display: inline-block; margin-left: 6px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--green-soft); color: var(--green);
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  vertical-align: middle;
}
.job-list, .edu-list { padding: 0; }
.job-item, .edu-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.job-item:last-child, .edu-item:last-child { border-bottom: 0; }
.job-title, .edu-school { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.job-company, .edu-degree { font-size: 12px; color: #4b5563; }
.job-meta, .edu-meta {
  font-size: 11px; color: #6b7280;
  font-family: var(--mono); margin-top: 4px;
}
.metadata-footer {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafafa;
  font-size: 11px; color: #6b7280;
  font-family: var(--mono); line-height: 1.6;
}
.metadata-footer .row { display: flex; justify-content: space-between; gap: 12px; }
.metadata-footer .lbl { color: #9ca3af; }
@media (max-width: 1024px) {
  .tabs { display: none; }
  .body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
  }
  .main {
    border-right: 0;
    border-top: 1px solid var(--line);
    max-height: none;
    overflow-y: visible;
  }
  .main::after { display: none; }
}
@media (max-width: 720px) {
  body { padding: 10px; }
  .hero { padding: 18px 16px 14px; }
  .main, .sidebar { padding: 16px; }
  .tabs { padding: 0 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .social-item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .social-item .svc { min-width: 0; }
}