/* Financial Cheq Redesign - Design Token Overlay */
/* This file adds the new design system ON TOP of your existing styles.css */
/* Import this AFTER styles.css in your HTML files */

@import url("https://rsms.me/inter/inter.css");

:root {
  /* NEW COLORS - Override old variables with refined palette */
  --sage: #6B8F71;           /* Muted sage (was brighter before) */
  --mint: #8DBF8F;           /* Keep mint accent */
  --mist: #E8F0E8;           /* Keep mist */
  --charcoal: #1F2A22;       /* Darker, richer charcoal */
  --warm-white: #FBFCFA;     /* Warmer off-white (was #F5F2EA) */
  --border: rgba(31, 42, 34, 0.10);  /* Semi-transparent sage-tinted border */
  --muted: #8A9890;          /* Sage-tinted muted text */
  
  /* NEW TYPOGRAPHY */
  --font-sans: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  
  /* REFINED SHADOWS - Softer, sage-tinted */
  --shadow-sm: 0 1px 2px rgba(31, 42, 34, 0.04);
  --shadow-md: 0 2px 4px rgba(31, 42, 34, 0.04), 0 8px 16px rgba(31, 42, 34, 0.04);
  --shadow-lg: 0 4px 8px rgba(31, 42, 34, 0.04), 0 12px 24px rgba(31, 42, 34, 0.06);
}

/* Apply Inter font globally */
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  background: var(--warm-white);
  color: var(--charcoal);
}

/* Update button styles with new colors */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background: var(--sage);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: #5A7A60; /* sage-600 */
}

.btn-primary:active {
  background: #46624C; /* sage-700 */
  transform: scale(0.98);
}

/* Update secondary button borders */
.btn-secondary,
button.btn-secondary {
  border-color: var(--border);
  font-family: var(--font-sans);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: rgba(31, 42, 34, 0.16);
  background: rgba(31, 42, 34, 0.02);
}

/* Refine input fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-sans);
  border-color: var(--border);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 143, 113, 0.15);
  outline: none;
}

/* Update cards and containers */
.card,
.score-card,
.roadmap-card {
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 42, 34, 0.06);
}

/* Refine headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

/* Update monospace numbers */
.score-num,
.metric-value,
.currency,
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* Soften borders throughout */
.form-group,
.step-content,
.report-section {
  border-color: var(--border);
}

/* Update link colors */
a {
  color: var(--sage);
}

a:hover {
  color: #5A7A60;
}

/* Refine the nav */
.nav {
  background: rgba(251, 252, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(31, 42, 34, 0.06);
}

/* Update progress bars */
.progress-bar,
.score-bar {
  background: rgba(31, 42, 34, 0.06);
}

.progress-fill,
.score-fill {
  background: var(--sage);
}

/* Refine table styling */
table {
  font-family: var(--font-sans);
}

th {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Update status colors */
.status-good,
.pill-success {
  background: #E8F0E8;
  color: #46624C;
}

.status-warn,
.pill-warn {
  background: #FAEEDA;
  color: #854F0B;
}

.status-danger,
.pill-danger {
  background: #FCEBEB;
  color: #A32D2D;
}

/* Pricing cards on light background */
.bg-mist .pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-standard);
}

.bg-mist .pricing-card--featured {
  background: #FFFFFF;
  border: 2px solid var(--sage-500);
}

.bg-mist .pricing-tier {
  color: var(--fg-1);
}

.bg-mist .pricing-amount {
  color: var(--fg-1);
}

.bg-mist .pricing-unit {
  color: var(--fg-3);
}

.bg-mist .pricing-custom {
  color: var(--fg-1);
}

.bg-mist .pricing-feature {
  color: var(--fg-2);
}

.bg-mist .btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--border-standard);
  color: var(--fg-1);
}

.bg-mist .btn-ghost-dark:hover {
  background: var(--bg-panel);
  border-color: var(--border-strong);
}

/* ---------- FC Nav (Homepage Style) ---------- */
.fc-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(251, 252, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 42, 34, 0.06);
  font-family: var(--font-sans);
}

.fc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.4px;
  text-decoration: none;
}

.fc-mark {
  width: 26px;
  height: 26px;
  background: var(--sage-500);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fc-mark svg {
  display: block;
}

.fc-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.fc-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-nav-links a:hover {
  color: var(--fg-1);
}

.fc-nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Pricing cards on light background */
.bg-mist .pricing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-standard);
}

.bg-mist .pricing-card--featured {
  background: #FFFFFF;
  border: 2px solid var(--sage-500);
}

.bg-mist .pricing-tier,
.bg-mist .pricing-amount,
.bg-mist .pricing-custom {
  color: var(--fg-1);
}

.bg-mist .pricing-unit,
.bg-mist .pricing-feature {
  color: var(--fg-2);
}

.bg-mist .btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--border-standard);
  color: var(--fg-1);
}

.bg-mist .btn-ghost-dark:hover {
  background: var(--bg-panel);
  border-color: var(--border-strong);
}
