/* ==========================================================================
   MadeVisible Pro — page + component styles (builds on styles.css tokens)
   ========================================================================== */

/* Ensure the hidden attribute always wins over display-setting classes */
[hidden] { display: none !important; }

/* Grid/flex children must be allowed to shrink (prevents right-edge overflow) */
.feat-list > *, .kpi-grid > *, .metric-triple > *,
.compare-head > *, .compare-row > *, .hbar > * { min-width: 0; }
.feat-item .fi-t, .kpi .kpi-l, .cr-label { overflow-wrap: anywhere; }

/* ---- Pro hero ---- */
.pro-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(47,107,255,.18), rgba(47,107,255,0) 55%),
    linear-gradient(180deg, #F4F8FF 0%, #EAF1FF 100%);
  border: 1px solid #DCE7FF;
  box-shadow: var(--shadow-blue-glow);
  padding: 26px 22px 24px;
}
.pro-eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #2563FF, #2F6BFF); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
}
.pro-eyebrow-badge svg { width: 15px; height: 15px; }
.pro-hero > * { position: relative; z-index: 1; }
.pro-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; margin: 16px 0 0; color: var(--navy); max-width: 82%; }
.pro-hero .lead { font-size: 15.5px; color: var(--text-2); line-height: 1.55; margin: 12px 0 0; max-width: 90%; }
.pro-price { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.pro-price .amt { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--navy); }
.pro-price .lbl { font-size: 14px; font-weight: 650; color: var(--text-2); }
.pro-hero .fineline { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }
.pro-hero .cta-stack { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pro-hero .pro-emblem-lg {
  position: absolute; right: -6px; top: 12px; width: 92px; height: 92px; opacity: .95;
  pointer-events: none; z-index: 0;
}

/* Trust labels */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 18px; }
.trust-cell { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); font-weight: 550; }
.trust-cell .tc-i { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.trust-cell .tc-i svg { width: 13px; height: 13px; }

/* ---- Feature groups ---- */
.feat-group { }
.feat-group + .feat-group { margin-top: 14px; }
.feat-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feat-group-head .idx {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.feat-group-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff;
}
.feat-item .fi-i { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; }
.feat-item .fi-i svg { width: 17px; height: 17px; }
.feat-item .fi-t { font-size: 13.5px; font-weight: 650; line-height: 1.3; }
@media (max-width: 460px) { .feat-list { grid-template-columns: 1fr; } .feat-item { align-items: center; } }

/* ---- Comparison table ---- */
.compare { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.compare-head { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.compare-head > div { padding: 16px 14px; text-align: center; }
.compare-head .ch-label { text-align: left; display: flex; align-items: flex-end; font-weight: 700; font-size: 15px; }
.compare-head .ch-free { border-left: 1px solid var(--border); }
.compare-head .ch-pro { background: linear-gradient(180deg, #E6F0FF, #E3EDFF); }
.ch-pro .cap { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.ch-pro .price { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.ch-pro .once { font-size: 11px; color: var(--text-2); font-weight: 600; }
.ch-free .cap { font-size: 13px; font-weight: 700; color: var(--text-2); }
.compare-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-top: 1px solid var(--border-2); }
.compare-row > div { padding: 13px 14px; display: flex; align-items: center; justify-content: center; }
.compare-row .cr-label { justify-content: flex-start; text-align: left; font-size: 13.5px; color: var(--text); }
.compare-row .cr-pro { background: #F7FAFF; }
.compare-row .yes { color: var(--green); } .compare-row .yes svg { width: 19px; height: 19px; }
.compare-row .no { color: var(--text-3); } .compare-row .no svg { width: 16px; height: 16px; }
.compare-row .cr-note { font-size: 12px; color: var(--text-2); text-align: center; }
.compare-foot { padding: 16px 14px; background: #F7FAFF; border-top: 1px solid var(--border-2); }

/* ---- FAQ accordion ---- */
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; text-align: left; font-size: 15px; font-weight: 650; color: var(--text); }
.faq-q .chev { transition: transform .2s ease; color: var(--text-2); flex: 0 0 auto; }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 16px 16px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---- Fine print ---- */
.pro-fineprint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; text-align: center; padding: 0 8px; }

/* ---- Checkout sheet / modal ---- */
.pro-scrim { position: fixed; inset: 0; background: rgba(11,16,38,.42); backdrop-filter: blur(2px); z-index: 300; animation: fadeIn .18s ease; }
.pro-sheet {
  position: fixed; z-index: 301; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 460px; background: #fff;
  border-radius: 24px 24px 0 0; padding: 26px 22px calc(26px + var(--safe-bottom));
  box-shadow: 0 -12px 40px rgba(11,16,38,.24); animation: sheetUp .26s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 560px) { .pro-sheet { bottom: auto; top: 50%; transform: translate(-50%,-50%); border-radius: 24px; animation: fadeIn .2s ease; } }
.pro-sheet-x { position: absolute; top: 16px; right: 16px; color: var(--text-3); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pro-sheet-x:hover { background: #f0f2f6; } .pro-sheet-x svg { width: 20px; height: 20px; }
.pro-sheet-emblem, .pro-success-emblem {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563FF, #2F6BFF); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(20,99,255,.35);
}
.pro-sheet-emblem svg, .pro-success-emblem svg { width: 28px; height: 28px; }
.pro-sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; text-align: center; }
.pro-receipt { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0; }
.pro-receipt-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.pro-receipt-total { font-size: 16px; font-weight: 800; color: var(--navy); }
.pro-demo-note { margin: 12px 0 0; font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.5; }
.pro-spinner { width: 44px; height: 44px; margin: 4px auto 16px; border-radius: 50%; border: 4px solid var(--blue-soft); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.pro-success-emblem { width: 64px; height: 64px; } .pro-success-emblem svg { width: 32px; height: 32px; }
.pro-success-meta { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 16px; margin: 16px 0; display: grid; gap: 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pro badge chip ---- */
.pro-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px;
  border-radius: var(--r-pill); background: linear-gradient(135deg, #2563FF, #2F6BFF); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.pro-chip svg { width: 13px; height: 13px; }

/* ---- Locked (gated) overlay ---- */
[data-pro-lock] { position: relative; }
[data-pro-lock].is-locked > :not(.pro-lock) { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.pro-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pro-lock-inner { text-align: center; background: rgba(255,255,255,.7); backdrop-filter: blur(2px); padding: 18px 20px; border-radius: var(--r-lg); }
.pro-lock-badge { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 10px; background: linear-gradient(135deg,#2563FF,#2F6BFF); color: #fff; display: flex; align-items: center; justify-content: center; }
.pro-lock-badge svg { width: 20px; height: 20px; }
.pro-lock-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }

/* ---- Simple charts (dashboard) ---- */
.chart-card { }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 6px; }
.chart-bars .bar { flex: 1 1 0; background: linear-gradient(180deg, #2F6BFF, #2563FF); border-radius: 6px 6px 3px 3px; min-height: 6px; position: relative; transition: opacity .15s; }
.chart-bars .bar.alt { background: linear-gradient(180deg, #C7D9FF, #A9C4FF); }
.chart-bars .bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--text-3); }
.chart-x { display: flex; gap: 8px; margin-top: 24px; } .chart-x span { flex: 1 1 0; text-align: center; font-size: 10.5px; color: var(--text-3); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; }

/* Horizontal bar list (industries, titles, locations) */
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 118px 1fr 40px; align-items: center; gap: 10px; }
.hbar .hb-label { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .hb-track { height: 8px; background: var(--blue-soft); border-radius: var(--r-pill); overflow: hidden; }
.hbar .hb-fill { height: 100%; background: linear-gradient(90deg, #2F6BFF, #2563FF); border-radius: var(--r-pill); }
.hbar .hb-val { font-size: 12.5px; color: var(--text-2); text-align: right; font-weight: 650; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 108px; height: 108px; flex: 0 0 108px; border-radius: 50%; }
.donut-legend { display: grid; gap: 8px; }
.donut-legend .dl { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }

/* Score ring */
.score-ring { position: relative; width: 128px; height: 128px; flex: 0 0 128px; }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val b { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.score-ring .val small { font-size: 11px; color: var(--text-2); }

/* Strength rows */
.str-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.str-row .st-i { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; }
.str-row .st-i svg { width: 16px; height: 16px; }
.str-row .st-done { background: var(--green-soft); color: var(--green); }
.str-row .st-todo { background: #FDF3E9; color: var(--amber); }
.str-row .grow { min-width: 0; }
.str-row .st-t { font-size: 14px; font-weight: 600; }
.str-row .st-s { font-size: 12.5px; color: var(--text-2); }

/* KPI grid */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; background: #fff; }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; color: var(--navy); }
.kpi .kpi-l { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.kpi .kpi-trend { font-size: 11.5px; font-weight: 700; }
.kpi .kpi-trend.up { color: var(--green); } .kpi .kpi-trend.flat { color: var(--text-3); }

/* Section label */
.pro-section-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* Segmented toggle (Open to Work visibility) */
.seg { display: inline-flex; background: #eef1f6; border-radius: var(--r-pill); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-xs); }

/* Toggle switch */
.switch { width: 46px; height: 28px; border-radius: var(--r-pill); background: #d3d8e0; position: relative; flex: 0 0 46px; transition: background .18s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.switch.on { background: var(--blue); } .switch.on::after { transform: translateX(18px); }
