/* full-circle.css
 * Full Circle Audit Suite portal-wide overrides on top of main.css.
 * Keep this file small. Page-specific styling lives in assessment.css.
 */

:root {
  --fc-blade-width: 240px;
  --fc-header-offset: 90px;
  --fc-fixed-header-height: 78px;
  --fc-card-radius: 10px;
  --fc-good: #1f8a3b;
  --fc-warn: #c08a00;
  --fc-bad: #b1361e;
  --fc-critical: #7a1212;
}

@media (max-width: 991.98px) {
  :root { --fc-fixed-header-height: 64px; }
}

html { scroll-padding-top: var(--fc-fixed-header-height); }

/* Page-title block clears the fixed top header. */
body.fc-page > main.main > .page-title {
  padding-top: var(--fc-fixed-header-height);
}

/* Full Circle landing-page hero logo: hard-constrained per v1.3 visual review. */
.fc-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
}
.fc-logo-wrap img,
.fc-logo-wrap .fc-logo-img {
  display: block;
  width: clamp(120px, 22vw, 180px);
  height: auto;
  max-width: 180px;
  max-height: 172px;
}

/* Sticky-footer layout for Full Circle pages (mirrors arc-acct-page). */
body.fc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.fc-page > main.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.fc-page > footer {
  flex-shrink: 0;
}

/* The hero key-entry card on the landing page. */
.fc-key-card {
  max-width: 540px;
  margin: 0 auto;
  border-radius: var(--fc-card-radius);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(39, 61, 78, 0.08);
  padding: 2rem;
}

.fc-key-card .fc-buy-link {
  color: var(--accent-color, #0076d4);
  text-decoration: none;
  font-weight: 500;
}
.fc-key-card .fc-buy-link:hover {
  text-decoration: underline;
}

/* Modal copy-to-clipboard styling. */
.fc-key-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f4f6fa;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  word-break: break-all;
}

/* Score chips on the results page. */
.fc-score-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}
.fc-score-pill.tier-mature { background: #e6f4ec; color: var(--fc-good); }
.fc-score-pill.tier-operational { background: #eaf3fb; color: var(--accent-color, #0076d4); }
.fc-score-pill.tier-foundational { background: #fbf2dd; color: var(--fc-warn); }
.fc-score-pill.tier-not-ready { background: #fbe6e1; color: var(--fc-bad); }

/* Severity badges. */
.fc-sev {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fc-sev.low { background: #eaf3fb; color: var(--accent-color, #0076d4); }
.fc-sev.medium { background: #fbf2dd; color: var(--fc-warn); }
.fc-sev.high { background: #fbe6e1; color: var(--fc-bad); }
.fc-sev.critical { background: #f7d3cc; color: var(--fc-critical); }

/* Results: framework heatmap legend. */
.fc-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--heading-color, #273d4e);
}
.fc-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* Toast strip for the auto-save indicator. */
.fc-autosave {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--heading-color, #273d4e);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
  z-index: 1080;
}
.fc-autosave.show { opacity: 0.95; }

/* v1.3 Results page polish */
.fc-exec-summary { max-width: 80ch; }
.fc-framework-focus .fc-fw-score-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.fc-framework-focus .fc-fw-readiness-table th,
.fc-framework-focus .fc-fw-readiness-table td {
  padding: 0.45rem 0.6rem;
}
.fc-objective-status {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fc-objective-status.met     { background: #e6f4ec; color: var(--fc-good); }
.fc-objective-status.partial { background: #fbf2dd; color: var(--fc-warn); }
.fc-objective-status.gap     { background: #fbe6e1; color: var(--fc-bad); }

/* v1.4: native-unit pill on the framework focus card */
.fc-native-pill {
  font-size: 1.6rem;
  padding: 0.45rem 1rem;
  display: inline-block;
  font-weight: 700;
}

/* v1.4 OTP modal overlay */
.fc-otp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.fc-otp-card {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: var(--fc-card-radius);
}

/* v1.5 section-complete celebration overlay */
.fc-celebrate-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}
.fc-celebrate-inner {
  position: relative;
  text-align: center;
  animation: fc-celebrate-fade 1.7s ease both;
}
.fc-celebrate-label {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--heading-color, #273d4e);
  background: rgba(255,255,255,0.92);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  display: inline-block;
}
.fc-celebrate-logo-img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 118, 212, 0.55));
  animation: fc-celebrate-pulse 1.6s ease both;
}
.fc-celebrate-check-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #2f8f5e;
  color: #fff;
  font-size: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: fc-celebrate-pop 1.6s ease both;
}
.fc-celebrate-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 96px; height: 96px;
  border: 3px solid #2f8f5e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: fc-celebrate-ring 1.6s ease both;
  pointer-events: none;
}
@keyframes fc-celebrate-fade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fc-celebrate-pulse {
  0%   { transform: scale(0.6); }
  40%  { transform: scale(1.08); }
  60%  { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes fc-celebrate-pop {
  0%   { transform: scale(0.4); }
  40%  { transform: scale(1.1); }
  60%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes fc-celebrate-ring {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* v1.5 Risk snapshot card and per-section severity-mini badge */
.fc-risk-snapshot canvas { max-width: 100%; }
.fc-sev-mini {
  background: #fbf2dd;
  color: var(--fc-warn);
  font-weight: 600;
}

/* v1.5 About-the-Business currency + contract-list controls */
.fc-contract-list .fc-contract-rows .row { align-items: center; }
.fc-contract-list .fc-contract-rows .row input,
.fc-contract-list .fc-contract-rows .row select { font-size: 0.9rem; }

/* v1.5 OTP QR display */
.fc-otp-qr {
  display: flex;
  justify-content: center;
  margin: 0.4rem 0 0.6rem;
}
.fc-otp-qr svg {
  border: 1px solid #e2e6ec;
  border-radius: 6px;
  background: #fff;
}

/* v1.5 Results page revenue-at-risk hero strip */
.fc-revenue-hero {
  background: linear-gradient(135deg, rgba(0,118,212,0.05), rgba(0,118,212,0.0));
  border: 1px solid #e2e6ec;
  border-radius: var(--fc-card-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.fc-revenue-hero .fc-rev-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fc-bad);
}
.fc-revenue-hero .fc-rev-num.fc-rev-all { color: var(--fc-warn); }

/* v2.0 results: legal exposure and audit assurance */
.fc-reg-scroll { max-height: 360px; overflow-y: auto; }
.fc-reg-bar { height: 8px; background: #dde3eb; border-radius: 99px; overflow: hidden; min-width: 90px; }
.fc-reg-bar > span { display: block; height: 100%; border-radius: 99px; }
.fc-assurance-index { font-size: 2.6rem; font-weight: 700; color: var(--heading-color, #273d4e); line-height: 1; }
.fc-assurance-stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #dde3eb; }
.fc-assurance-stack > span { display: block; height: 100%; }
.fc-chip { display: inline-block; border-radius: 99px; padding: 1px 8px; font-size: .75rem; font-weight: 600; background: #e9eff7; color: #273d4e; }
.fc-chip.screening { background: #f7ecd2; color: #87590a; }
.fc-chip.confirmed { background: #dcefe5; color: #2f8f5e; }

/* Non-Disclosure Agreement step and signed copy */
.fc-nda-text { white-space: pre-wrap; font-family: inherit; font-size: .9rem; max-height: 22rem; overflow-y: auto; background: #f4f7fa; border: 1px solid #dde3eb; border-radius: 6px; padding: 1rem; }
.fc-nda-name { max-width: 28rem; }

/* Classes that replace inline style attributes (the page policy forbids them). */
.fc-select-narrow { max-width: 320px; }
.fc-chart-box { position: relative; height: 360px; }
.fc-score-value { font-size: 1.6rem; font-weight: 700; color: var(--heading-color, #273d4e); }
.fc-legend-swatch-blue { background: rgba(0, 118, 212, 0.6); }
.fc-progress-thin { height: 0.5rem; }
