:root {
  --bg: #f2eee8;
  --ink: #191817;
  --muted: #706b66;
  --subtle: #918a82;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #fffdf9;
  --line: rgba(25, 24, 23, 0.13);
  --line-strong: rgba(25, 24, 23, 0.2);
  --blush: #d13b7c;
  --clay: #c7836d;
  --sky: #8fa9c8;
  --cream: #fff8ee;
  --shadow: 0 28px 90px rgba(54, 43, 35, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(232, 194, 176, 0.72), transparent 28rem),
    radial-gradient(circle at 72% 4%, rgba(143, 169, 200, 0.44), transparent 30rem),
    radial-gradient(circle at 92% 72%, rgba(209, 59, 124, 0.13), transparent 26rem),
    linear-gradient(135deg, #efe7dc, #f8f5ee 46%, #e8ddd3);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(25,24,23,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,24,23,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.page-shell {
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
  position: relative;
  padding: 22px 0 32px;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo, .contact-link, .primary-button, .platform-card a, .view-social { color: inherit; text-decoration: none; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 17px;
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(25,24,23,0.18);
  font-size: 13px;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.updated-pill, .contact-link, .view-social {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(18px);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(54,43,35,.08);
}
.updated-pill { color: var(--muted); }
.contact-link { background: var(--ink); color: #fff; border-color: var(--ink); }

.kit-card {
  min-height: calc(100vh - 54px);
  display: grid;
  grid-template-columns: minmax(360px, 0.47fr) minmax(560px, 0.83fr);
  gap: 18px;
  align-items: start;
  overflow: visible;
}

.profile-panel, .stats-panel, .below-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px);
}

.profile-panel {
  position: sticky;
  top: 22px;
  height: auto;
  padding: 28px 44px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-image-card {
  width: min(228px, 70%);
  aspect-ratio: 1;
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-radius: 999px;
  border: 8px solid #fff;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 18px 48px rgba(54,43,35,.22);
}
.profile-image-card::before,
.profile-image-card::after { display: none; }
.profile-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.image-badge {
  display: none;
}

.profile-copy {
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blush);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 950;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin: 0 0 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.location {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 760;
  font-size: 17px;
}
.bio {
  max-width: 470px;
  margin: 0 auto 22px;
  color: #34312e;
  font-size: 16px;
  line-height: 1.55;
}
.profile-cta { margin-top: 2px; }

.stats-panel {
  min-height: 0;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 18px;
  overflow: visible;
}
.insights-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.insights-head .eyebrow { margin: 0; }
.view-social { flex: 0 0 auto; }

.platform-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.total-card,
.platform-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(54,43,35,.08);
}
.total-card {
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 12%, rgba(209, 59, 124, .2), transparent 8rem),
    linear-gradient(135deg, #fff, #fff8ef);
}
.total-card p { color: var(--muted); margin-bottom: 12px; font-weight: 850; }
.total-card strong {
  display: block;
  font-size: clamp(46px, 4.5vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.085em;
}
.spark {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--blush);
  font-size: 30px;
}
.platform-card::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -82px;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  opacity: 0.24;
}
.platform-card.instagram::after { background: linear-gradient(135deg, #ffcf6b, #ff4fb8, #8b5cff); }
.platform-card.tiktok::after { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.platform-heading { display: flex; align-items: flex-start; gap: 12px; position: relative; z-index: 1; }
.platform-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-weight: 950;
}
.platform-card h2 { margin: 0 0 5px; font-size: 20px; letter-spacing: -0.045em; font-weight: 930; }
.platform-card a { color: var(--muted); font-size: 14px; font-weight: 800; }
.platform-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 22px;
  font-size: clamp(46px, 4.8vw, 74px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}
.platform-card p { position: relative; z-index: 1; margin: 8px 0 6px; font-weight: 920; font-size: 17px; }
.platform-card small { position: relative; z-index: 1; color: var(--muted); font-weight: 760; }

.insight-detail-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.detail-card {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  padding: 22px;
  box-shadow: 0 16px 42px rgba(54,43,35,.07);
}
.detail-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 930;
}
.metric-value {
  font-size: clamp(44px, 4vw, 72px) !important;
  line-height: .82 !important;
  letter-spacing: -0.085em !important;
}
.detail-card p:not(.mini-label) {
  margin: 12px 0 0;
  color: #46413d;
  font-size: 15px;
  line-height: 1.45;
}
.feature-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(143,169,200,.22), transparent 13rem),
    linear-gradient(135deg, #fff, #fff8ef);
}
.mini-label {
  margin: 0 0 12px;
  color: var(--blush);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 950;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(25,24,23,0.055);
  padding: 9px 12px;
  color: #34312e;
  font-size: 13px;
  font-weight: 830;
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  color: #fff;
}
.cta-card .mini-label { color: #f0b6cd; }
.cta-card h3 { font-size: clamp(20px, 1.65vw, 28px); }
.social-sections {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}
.social-detail-card,
.featured-panel,
.audience-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 42px rgba(54,43,35,.07);
}
.social-detail-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -82px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  opacity: .22;
}
.instagram-detail::after { background: linear-gradient(135deg, #ffcf6b, #ff4fb8, #8b5cff); }
.tiktok-detail::after { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.social-detail-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.social-detail-head .mini-label { margin-bottom: 4px; }
.social-detail-head a { color: var(--muted); text-decoration: none; font-weight: 850; }
.metric-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 12px;
}
.mini-stat {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(25,24,23,.035);
  padding: 14px;
}
.mini-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.metric-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.info-dot {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(25,24,23,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  cursor: help;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 0;
}
.info-tooltip {
  width: min(260px, 70vw);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  color: var(--ink) !important;
  padding: 10px 12px;
  box-shadow: 0 16px 36px rgba(54,43,35,.16);
  backdrop-filter: blur(18px);
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.35;
  text-align: left;
  transition: opacity 150ms ease, transform 150ms ease;
}
.info-dot:hover .info-tooltip,
.info-dot:focus-visible .info-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.info-tooltip span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.formula-platform {
  display: block;
  margin-bottom: 6px;
  color: var(--blush) !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px !important;
  font-weight: 950 !important;
}
.formula-line {
  display: block;
  color: #2f2c29 !important;
  font-size: 12px !important;
  font-weight: 780 !important;
  line-height: 1.35;
}
.mini-stat strong {
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: .86;
  letter-spacing: -.075em;
}
.hero-stat strong { font-size: clamp(38px, 3.6vw, 64px); }
.featured-panel,
.audience-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at 95% 5%, rgba(209,59,124,.12), transparent 13rem),
    #fff;
}
.audience-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 14px;
}
.audience-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(25,24,23,.028);
  padding: 18px;
}
.audience-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.audience-card h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 930;
}
.audience-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.gender-arc-wrap {
  display: grid;
  place-items: center;
  margin: 4px 0 10px;
}
.gender-arc {
  width: min(240px, 100%);
  height: auto;
  overflow: visible;
}
.gender-arc path {
  fill: none;
  stroke-width: 34;
  stroke-linecap: butt;
}
.gender-arc-base { stroke: #efb4cb; }
.gender-arc-men {
  stroke: var(--blush);
  stroke-dasharray: 52 100;
}
.audience-legend {
  border-top: 1px solid var(--line);
}
.audience-legend-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
}
.audience-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.audience-legend-row strong {
  font-size: 22px;
  letter-spacing: -.04em;
}
.dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 999px;
}
.men-dot { background: var(--blush); }
.women-dot { background: #efb4cb; }
.age-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.age-row { display: grid; gap: 7px; }
.age-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.age-meta span,
.age-meta strong {
  font-size: 17px;
  letter-spacing: -.04em;
  font-weight: 900;
}
.age-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25,24,23,.12);
}
.age-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blush), #ef7aab);
}

.featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.featured-head h3 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 930;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(25,24,23,.045);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.filter-pill:hover { transform: translateY(-1px); }
.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.featured-post-card {
  aspect-ratio: 4 / 5;
  min-height: 210px;
  display: block;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(209,59,124,.16), transparent 8rem),
    rgba(255,255,255,.78);
  color: #fff;
  text-decoration: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 220ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.featured-post-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
}
.featured-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.18) 42%, rgba(0,0,0,.72));
}
.featured-post-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(209,59,124,.38);
  box-shadow: 0 18px 38px rgba(54,43,35,.16);
}
.featured-post-card:hover img { transform: scale(1.06); filter: saturate(1.06); }
.featured-post-card[hidden] { display: none; }
.post-platform,
.post-category {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.post-platform {
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.post-category {
  top: 12px;
  right: 12px;
  background: rgba(209,59,124,.9);
  color: #fff;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
}
.post-open {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.featured-post-card:hover .post-open {
  opacity: 1;
  transform: translateY(0);
}
.featured-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  padding: 18px;
  font-weight: 800;
}
.primary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--blush);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(209,59,124,.18);
}
@media (max-width: 1020px) {
  .kit-card { min-height: auto; grid-template-columns: 1fr; overflow: visible; }
  .profile-panel, .stats-panel { min-height: auto; }
  .profile-panel { position: relative; top: auto; }
  .stats-panel { height: auto; overflow: visible; }
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-detail-grid { grid-template-columns: 1fr 1fr; }
  .metric-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding: 10px 0 18px;
  }
  .topbar { min-height: 74px; }
  .updated-pill { display: none; }
  .kit-card { gap: 12px; }
  .profile-panel,
  .stats-panel {
    border-radius: 26px;
    padding: 18px;
  }
  .profile-panel {
    padding: 22px 24px 30px;
  }
  .stats-panel { gap: 14px; }
  .profile-image-card { width: min(188px, 64%); }
  .profile-copy { margin-top: 22px; }
  h1 { font-size: clamp(34px, 10vw, 42px); }
  .location { font-size: 15px; }
  .bio {
    font-size: 15px;
    line-height: 1.5;
  }
  .primary-button { width: min(100%, 320px); }
  .insights-head { flex-direction: column; }
  .platform-grid,
  .insight-detail-grid,
  .metric-row { grid-template-columns: 1fr; }
  .mini-stat { min-height: 88px; }
  .social-sections { grid-template-rows: auto; }
  .social-detail-card,
  .featured-panel,
  .audience-panel { padding: 18px; }
  .featured-head { flex-direction: column; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card-head { flex-direction: column; }
  .featured-grid { grid-template-columns: 1fr; }
  .total-card, .platform-card { min-height: 170px; }
  .total-card strong { font-size: 64px; }
}

@media (max-width: 420px) {
  .page-shell { width: min(100% - 12px, 1180px); }
  .profile-panel,
  .stats-panel,
  .social-detail-card,
  .featured-panel,
  .audience-panel { border-radius: 22px; }
  .profile-panel { padding: 20px 18px 28px; }
  .profile-image-card { width: min(174px, 62%); border-width: 7px; }
  h1 { font-size: clamp(31px, 10vw, 38px); }
  .metric-row { gap: 10px; }
  .mini-stat strong { font-size: 34px; }
  .hero-stat strong { font-size: 42px; }
  .featured-post-card { min-height: 230px; }
}
