/* =========================================================================
   FINNOMY™ MULTI-GOAL WEALTH PLANNER STYLESHEET
   Design System: Premium FinTech, Slate & Emerald accents, Poppins & Plus Jakarta Sans
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0B63D8;
  --blue-hover: #0952B5;
  --blue-light: #EFF6FF;
  --blue-subtle: #F4F8FE;
  --green: #00B37E;
  --green-hover: #00996B;
  --green-light: #ECFDF5;
  --navy: #0F172A;
  --navy-light: #1E293B;
  --slate-dark: #334155;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --rose: #EF4444;
  --rose-light: #FEE2E2;
  --purple: #8B5CF6;
  --purple-light: #F5F3FF;
  --cyan: #06B6D4;
  --cyan-light: #ECFEFF;

  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy-light);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   1. GLOBAL SECTION LAYOUT WRAPPERS
   ========================================================================= */
.landing-section-full {
  width: 100%;
  padding: 80px 20px;
  box-sizing: border-box;
}

.section-white {
  background-color: #FFFFFF;
}

.section-slate {
  background-color: var(--bg-subtle);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-main-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.section-main-subtitle {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================================
   2. SECTION 1: HERO SECTION
   ========================================================================= */
.hero-section {
  background-color: #FFFFFF;
  padding: 120px 20px 70px;
  width: 100%;
  box-sizing: border-box;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 18px 0;
  letter-spacing: -0.8px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--slate-dark);
  line-height: 1.65;
  margin: 0 0 28px 0;
  max-width: 580px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(11, 99, 216, 0.3);
}

.btn-hero-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 99, 216, 0.4);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

.hero-trust-item span {
  font-size: 15px;
}

.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-col img,
.hero-multigoal-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =========================================================================
   3. SECTION 2: WHY ISOLATED GOAL PLANNING FAILS (4-Card Grid)
   ========================================================================= */
.fails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fail-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.fail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.fail-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.fail-card-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.fail-card-icon.amber {
  background: var(--amber-light);
  color: var(--amber);
}

.fail-card-icon.green {
  background: var(--green-light);
  color: var(--green);
}

.fail-card-icon.purple {
  background: var(--purple-light);
  color: var(--purple);
}

.fail-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.fail-card-desc {
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* =========================================================================
   4. SECTION 3: UNDERSTANDING PORTFOLIO HEALTH & CASH-FLOW (Comparison Table)
   ========================================================================= */
.portfolio-scenario-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.portfolio-scenario-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.scenario-profile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.scenario-metrics-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.scenario-metric-badge {
  font-size: 13px;
  color: var(--slate-dark);
  font-weight: 600;
  background: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.scenario-metric-badge strong {
  color: var(--blue);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table thead th {
  background: #0F172A;
  color: #FFFFFF;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead th:last-child {
  border-right: none;
}

.comparison-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--slate-dark);
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-subtle);
}

.priority-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.priority-tag.essential {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #A7F3D0;
}

.priority-tag.important {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid #BFDBFE;
}

.priority-tag.lifestyle {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid #FDE68A;
}

.portfolio-summary-bar {
  background: #ECFDF5;
  border-top: 2px solid #10B981;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-summary-text {
  font-size: 14.5px;
  color: #065F46;
  font-weight: 600;
}

.portfolio-health-badge {
  background: #10B981;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   5. SECTION 4: HOW THE MULTI-GOAL MATRIX WORKS (Open Zig-Zag Flow)
   ========================================================================= */
.zigzag-flow-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 40px auto 20px;
  padding: 20px 0 40px;
}

.zigzag-svg-connector {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
}

.zigzag-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.zigzag-step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0 8px;
  transition: transform 0.3s ease;
}

.zigzag-step-item:nth-child(1),
.zigzag-step-item:nth-child(3) {
  margin-top: 55px;
}

.zigzag-step-item:nth-child(2),
.zigzag-step-item:nth-child(4) {
  margin-top: 0px;
}

.zigzag-step-item:hover {
  transform: translateY(-4px);
}

.zigzag-node-wrap {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}

.zigzag-node-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--blue);
  box-shadow: 0 4px 14px rgba(11, 99, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.zigzag-step-item:nth-child(2) .zigzag-node-badge {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 179, 126, 0.2);
}

.zigzag-step-item:nth-child(3) .zigzag-node-badge {
  border-color: #D97706;
  color: #D97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.zigzag-step-item:nth-child(4) .zigzag-node-badge {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 4px 14px rgba(0, 179, 126, 0.22);
}

.zigzag-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.5px;
}

.zigzag-step-item:nth-child(2) .zigzag-tag {
  color: var(--green);
  background: var(--green-light);
}

.zigzag-step-item:nth-child(3) .zigzag-tag {
  color: #D97706;
  background: #FEF3C7;
}

.zigzag-step-item:nth-child(4) .zigzag-tag {
  color: var(--green);
  background: var(--green-light);
}

.zigzag-step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.zigzag-step-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   6. SECTION 5: INTERACTIVE MULTI-GOAL PLANNER TOOL CENTERPIECE
   ========================================================================= */
.planner-widget-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 380px 1fr;
  overflow: hidden;
}

/* Left Column: Baseline Profile & Assumptions */
.planner-sidebar {
  background: #F8FAFC;
  border-right: 1px solid var(--border);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin: 0;
}

.input-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-dark);
}

.input-field-wrap {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  transition: border-color 0.2s;
}

.input-field-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 216, 0.1);
}

.input-currency {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate);
  margin-right: 4px;
}

.input-text-val {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
}

/* Custom Range Slider */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  outline: none;
  margin-top: 4px;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--blue);
  border: 2.5px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Surplus Highlight Card */
.surplus-highlight-box {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.surplus-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
}

.surplus-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #047857;
  margin-top: 2px;
}

/* Assumptions Grid */
.assumptions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.assumption-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assumption-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.assumption-input-row {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.assumption-input-row input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
}

.assumption-input-row span {
  font-weight: 700;
  color: var(--slate-light);
  font-size: 13px;
}

/* Right Column: Dashboard, Skyline & Goals */
.planner-main-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #FFFFFF;
}

/* Top Row Diagnostic Cards */
.top-diagnostics-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.portfolio-health-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.health-gauge-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.health-gauge-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.health-gauge-percent {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.health-gauge-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 2px;
}

.health-details {
  flex: 1;
}

.health-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px 0;
}

.health-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.health-stat-label {
  color: var(--slate);
}

.health-stat-val {
  font-weight: 700;
  color: var(--navy);
}

.health-progress-bar-bg {
  width: 100%;
  height: 7px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.health-progress-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--green);
  transition: width 0.4s ease, background-color 0.4s ease;
}

/* FinNomy Fix Card */
.finnomy-fix-card {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fix-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fix-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1E3A8A;
  margin: 0;
}

.fix-text {
  font-size: 13.5px;
  color: #1E40AF;
  line-height: 1.5;
  margin: 0;
}

/* Roadmap Skyline Chart Container */
.roadmap-skyline-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.roadmap-skyline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.skyline-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
}

.skyline-horizon {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}

/* Goals List Header */
.goals-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goals-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.btn-add-goal {
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-add-goal:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

/* Dynamic Goals Container */
.goals-grid-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.goal-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.goal-card-item.essential-goal {
  border-color: var(--green);
}

.goal-card-item.essential-goal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.goal-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.goal-name-input {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  border: none;
  border-bottom: 1.5px dashed var(--border);
  outline: none;
  background: transparent;
  padding: 2px 0;
  width: 220px;
  transition: border-color 0.2s;
}

.goal-name-input:focus {
  border-bottom-color: var(--blue);
}

.goal-badge-priority {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.goal-cost-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.cost-adjust-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--slate-dark);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.cost-adjust-btn:hover {
  background: var(--bg-subtle);
  border-color: #CBD5E1;
}

.goal-cost-input {
  width: 110px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #FEFCE8;
  padding: 4px 6px;
  text-align: center;
}

.goal-future-target-tag {
  font-size: 12px;
  color: var(--slate);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 1px dashed var(--border);
  margin-top: 8px;
}

.goal-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-select-priority,
.goal-select-status {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  border: 1px solid var(--border);
}

.goal-delete-btn {
  border: none;
  background: transparent;
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.goal-delete-btn:hover {
  color: #DC2626;
}

.goal-funding-card {
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.funding-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 8px;
}

.funding-progress-bg {
  width: 100%;
  background: var(--border);
  height: 9px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.funding-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background-color 0.4s ease;
}

.funding-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--slate);
}

/* Dynamic Did You Know Fact Card */
.planner-fact-card {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fact-icon {
  font-size: 22px;
  line-height: 1;
}

.fact-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  color: #92400E;
  margin-bottom: 2px;
}

.fact-content p {
  font-size: 13px;
  color: #B45309;
  line-height: 1.5;
  margin: 0;
}

/* Lead Capture "Send My Report" Container */
.lead-capture-form {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

.lc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #166534;
}

.lc-desc {
  font-size: 13.5px;
  color: #15803D;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.lc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 179, 126, 0.12);
}

.btn-submit-report {
  width: 100%;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.15s;
  margin-top: 8px;
}

.btn-submit-report:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.lc-success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #059669;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

/* =========================================================================
   7. SECTION 6: EXPLORE FINNOMY FINANCIAL SUITE (Static Grid & Carousel)
   ========================================================================= */
.carousel-outer-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 20px;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
  height: 8px;
}

.carousel-viewport::-webkit-scrollbar-track {
  background: #E2E8F0;
  border-radius: 4px;
}

.carousel-viewport::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}

.carousel-viewport::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.carousel-card {
  width: 290px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.carousel-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.carousel-card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.carousel-card-desc {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.carousel-card-cta {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   8. SECTION 7: FAQS ACCORDION WITH ACTIVE HIGHLIGHT
   ========================================================================= */
.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.faq-item.active {
  border-color: var(--blue);
  background-color: #F8FAFC;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 12px;
  color: var(--slate);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--slate-dark);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* =========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text-col {
    align-items: center;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .planner-widget-container {
    grid-template-columns: 1fr;
  }

  .planner-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .zigzag-step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .zigzag-step-item:nth-child(1),
  .zigzag-step-item:nth-child(3) {
    margin-top: 0;
  }

  .zigzag-svg-connector {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }

  .section-main-title {
    font-size: 26px;
  }

  .fails-grid {
    grid-template-columns: 1fr;
  }

  .top-diagnostics-row {
    grid-template-columns: 1fr;
  }

  .zigzag-step-grid {
    grid-template-columns: 1fr;
  }

  .planner-main-content {
    padding: 24px 18px;
  }

  .planner-sidebar {
    padding: 24px 18px;
  }

  .goal-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-name-input {
    width: 100%;
  }

  .lc-grid-2 {
    grid-template-columns: 1fr;
  }
}
