/* FatFIRE Canada — style.css */

:root {
  --red: #D52B1E;
  --red-light: #f5e8e7;
  --red-dark: #b02318;
  --white: #ffffff;
  --grey-50: #f8f9fa;
  --grey-100: #f1f3f5;
  --grey-200: #e9ecef;
  --grey-300: #dee2e6;
  --grey-500: #adb5bd;
  --grey-700: #495057;
  --grey-900: #212529;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--grey-50);
  color: var(--grey-900);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 20px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.site-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-header h1 .maple {
  display: inline-block;
  margin-left: 6px;
}

.site-header p {
  font-size: 0.95rem;
  color: var(--grey-700);
  margin-top: 4px;
}

/* ── Layout ── */
.main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 32px;
  margin-bottom: 32px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  color: var(--red);
  font-size: 1.1rem;
}

/* ── Sliders ── */
.input-group {
  margin-bottom: 22px;
}

.input-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.input-label span:first-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-700);
}

.input-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  min-width: 80px;
  text-align: right;
}

.input-hint {
  font-size: 0.78rem;
  color: var(--grey-500);
  margin-top: 5px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--grey-200);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(213,43,30,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(213,43,30,0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(213,43,30,0.35);
}

/* Dynamic fill for range */
input[type="range"].filled {
  background: linear-gradient(to right, var(--red) 0%, var(--red) var(--fill), var(--grey-200) var(--fill), var(--grey-200) 100%);
}

/* ── Province Select ── */
.province-select-wrap {
  position: relative;
}

.province-select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-900);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 4l5 6 5-6' stroke='%23D52B1E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.province-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213,43,30,0.12);
}

.province-select:hover {
  border-color: var(--red);
}

/* ── Return Rate Toggle ── */
.toggle-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 6px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-700);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  line-height: 1.3;
}

.toggle-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.toggle-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Results ── */
.results-card {
  background: linear-gradient(135deg, #fff 60%, #fdf2f1 100%);
  border: 2px solid var(--red-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
}

.fatfire-number {
  text-align: center;
  margin-bottom: 24px;
}

.fatfire-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.fatfire-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fatfire-trajectory {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--grey-900);
  text-align: center;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}

.fatfire-trajectory em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

/* ── Progress Bar ── */
.progress-wrap {
  margin-bottom: 24px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--grey-700);
  margin-bottom: 6px;
}

.progress-bar-bg {
  background: var(--grey-200);
  border-radius: 6px;
  height: 12px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #e84c3d);
  border-radius: 6px;
  transition: width 0.5s ease;
  min-width: 4px;
}

/* ── Math Breakdown ── */
.math-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* Province item spans full width */
.math-item--province {
  grid-column: 1 / -1;
}

.math-item {
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.math-item .m-label {
  font-size: 0.76rem;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: 2px;
}

.math-item .m-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-900);
}

/* Province inline select inside breakdown box */
.province-select-inline {
  width: 100%;
  padding: 4px 28px 4px 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-900);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14'%3E%3Cpath d='M2 4l5 6 5-6' stroke='%23D52B1E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.province-select-inline:focus {
  color: var(--red);
}

/* ── Scroll Arrow (fixed right side, appears on scroll) ── */
.scroll-arrow-wrap {
  position: fixed;
  right: max(16px, calc(50% - 560px));
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: white;
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: 0 4px 20px rgba(213,43,30,0.25);
  cursor: pointer;
  width: 96px;
  box-sizing: border-box;
}

.scroll-arrow-wrap:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  transition: opacity 0.4s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-arrow-wrap.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-arrow-wrap.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
}

.scroll-arrow-words span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.6;
}

.scroll-arrow-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.scroll-arrow-chevron {
  animation: bounce-arrow 1.4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bounce-arrow {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(8px);
    opacity: 0.7;
  }
  55% {
    transform: translateY(8px);
    opacity: 0.7;
  }
}

/* Hide on mobile — not enough room */
@media (max-width: 768px) {
  .scroll-arrow-wrap {
    display: none;
  }
}

/* ── Calculator 2 Intro ── */
.calc2-intro {
  font-size: 1rem;
  color: var(--grey-700);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
}

.calc2-intro strong {
  color: var(--grey-900);
}

/* ── Calculate Button ── */
.btn-calculate {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 12px rgba(213,43,30,0.3);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.btn-calculate:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(213,43,30,0.4);
}

/* ── Teaser Card ── */
.teaser-card {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.teaser-card-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin-bottom: 14px;
}

.teaser-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.teaser-row:last-child {
  margin-bottom: 0;
}

.teaser-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.teaser-line {
  font-size: 1rem;
  color: var(--grey-700);
  line-height: 1.4;
}

.teaser-line strong {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ── Blurred Report ── */
.blurred-report {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.blurred-report-inner {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.blur-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 16px;
}

.blur-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.blur-row span:last-child {
  color: var(--red);
}

.blur-divider {
  height: 1px;
  background: var(--grey-200);
  margin: 12px 0;
}

/* ── Email Gate B ── */
.email-gate-b {
  background: var(--grey-50);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 8px;
}

.email-gate-b h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--grey-900);
  letter-spacing: -0.01em;
}

.email-gate-b p {
  font-size: 0.92rem;
  color: var(--grey-700);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.gate-form input[type="text"],
.gate-form input[type="email"] {
  padding: 13px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
  color: var(--grey-900);
}

.gate-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(213,43,30,0.10);
}

.btn-gate {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 12px rgba(213,43,30,0.3);
}

.btn-gate:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--grey-500);
  margin-top: 4px;
}

/* ── Back Button ── */
.btn-back {
  background: none;
  border: none;
  color: var(--grey-500);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.btn-back:hover {
  color: var(--red);
}

/* ── Calculator 2 Results ── */
.hidden {
  display: none !important;
}

.calc2-inputs {
  margin-bottom: 28px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.scenario-card {
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--grey-200);
  background: var(--white);
}

.scenario-card.scenario-b {
  border-color: var(--red);
  background: linear-gradient(135deg, #fff 60%, #fdf2f1 100%);
}

.scenario-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-500);
  margin-bottom: 8px;
}

.scenario-card.scenario-b .scenario-label {
  color: var(--red);
}

.scenario-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey-900);
  margin-bottom: 14px;
  line-height: 1.3;
}

.scenario-age {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--grey-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.scenario-card.scenario-b .scenario-age {
  color: var(--red);
}

.scenario-sub {
  font-size: 0.82rem;
  color: var(--grey-700);
  margin-top: 6px;
}

/* ── Big Reveal ── */
.big-reveal {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.big-reveal .reveal-headline {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.big-reveal .reveal-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.gains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.gain-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
}

.gain-item .g-label {
  font-size: 0.74rem;
  color: var(--grey-700);
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.gain-item .g-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red);
  text-align: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red);
  border: none;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* ── Footer ── */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-500);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
}

.site-footer strong {
  color: var(--white);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  /* white logo on dark footer — no background needed */
}

.footer-text {
  color: var(--grey-300);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-divider {
  margin: 0 6px;
  color: var(--grey-500);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--grey-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  color: var(--grey-500);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 20px 16px 24px;
  }

  .math-breakdown {
    grid-template-columns: 1fr;
  }

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

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

  .toggle-group {
    flex-direction: column;
  }

  .fatfire-amount {
    font-size: 2rem;
  }

  .big-reveal .reveal-headline {
    font-size: 1.3rem;
  }

  .email-gate-b {
    padding: 24px 16px;
  }

  .teaser-card {
    padding: 20px 16px;
  }
}

@media (max-width: 400px) {
  .main-content {
    padding: 16px 10px 48px;
  }
}
