:root {
  --bg: #FEDBC4;
  --bg-deep: #F5CDB0;
  --card: #FEDBC4;
  --card-border: #F0C5A8;
  --text-dark: #1A1A1A;
  --text-body: #3D3530;
  --text-muted: #7A6B62;
  --text-dim: #A09187;
  --accent-rose: #E8998D;
  --green: #3D7A35;
  --green-bright: #4A9140;
  --gold: #B0820E;
  --coral: #D4756A;
  --input-bg: rgba(255, 255, 255, 0.55);
  --input-border: rgba(0, 0, 0, 0.1);
  --divider: rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-card-title: 'Libre Baskerville', Georgia, serif;
  --font-card-body: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─── HEADER ─── */
.header {
  text-align: center;
  margin-bottom: 56px;
}

.header .brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.25s;
}

.header h1 em {
  font-style: italic;
}

.header .subtitle {
  font-family: 'Space Grotesk' !important;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

/* ─── LAYOUT ─── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
}

@media (max-width: 820px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

.full-width {
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

/* ─── CARDS ─── */
.card,
.results-card,
.roi-card {
  background: #ffe5d3;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}

.card-title {
  font-family: 'Libre Baskerville' !important;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--text-dark);
}

/* ─── INPUTS ─── */
.input-group {
  margin-bottom: 20px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-family: var(--font-card-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  font-family: var(--font-card-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
  pointer-events: none;
}

.input-prefix {
  left: 14px;
}

.input-suffix {
  right: 14px;
}

.input-wrapper input[type="text"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-card-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.input-wrapper input[type="text"]:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(232, 153, 141, 0.2);
}

.input-wrapper input.has-prefix {
  padding-left: 28px;
}

.input-wrapper input.has-suffix {
  padding-right: 36px;
}

.input-hint {
  font-family: var(--font-card-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.5;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

/* ─── SLIDERS ─── */
.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: black;
  /* background: var(--accent-rose); */
  border-radius: 50%;
  border: 3px solid var(--card);
  box-shadow: 0 1px 6px rgba(232, 153, 141, 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

.slider-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.slider-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-rose);
  border-radius: 50%;
  border: 3px solid var(--card);
  cursor: pointer;
}

.slider-value {
  font-family: var(--font-card-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  min-width: 48px;
  text-align: right;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 24px 0;
}

/* ─── RESULTS ─── */
.result-hero {
  text-align: center;
  padding: 18px 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--divider);
}

.result-hero .label {
  font-family: var(--font-card-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.result-hero .value {
  font-family: var(--font-card-body);
  font-size: clamp(32px, 5.5vw, 46px);
  font-weight: 700;
  color: var(--green-bright);
  line-height: 1.1;
  transition: all 0.3s ease;
}

.result-hero .subtext {
  font-family: var(--font-card-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

.result-rows {
  display: flex;
  flex-direction: column;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--divider);
}

.result-row:last-child {
  border-bottom: none;
}

.result-row .rlabel {
  font-family: var(--font-card-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-row .rvalue {
  font-family: var(--font-card-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.result-row .rvalue.positive {
  color: var(--green-bright);
}

.result-row .rvalue.gold {
  color: var(--gold);
}

.result-row .rvalue.negative {
  color: var(--coral);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.warm {
  background: var(--accent-rose);
}

.dot.green {
  background: var(--green-bright);
}

.dot.gold {
  background: var(--gold);
}

.dot.coral {
  background: var(--coral);
}

/* ─── ROI TABLE ─── */
.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Grotesk' !important;
  font-size: 16px;
}

.roi-table th {
  text-align: right;
  padding: 10px 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--divider);
}

.roi-table th:first-child {
  text-align: left;
}

.roi-table td {
  padding: 9px 12px;
  text-align: right;
  color: var(--text-dark);
  font-weight: 400;
  border-bottom: 1px solid var(--divider);
}

.roi-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.roi-table .section-header td {
  font-weight: 600;
  color: var(--text-dark);
  padding-top: 16px;
  border-bottom: none;
}

.roi-table .total-row td {
  font-weight: 600;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  color: var(--text-dark);
}

.roi-table .positive {
  color: var(--green-bright);
}

.roi-table .negative {
  color: var(--coral);
}

.roi-table .highlight {
  font-weight: 700;
  font-size: 15px;
}

/* ─── SUMMARY BOXES ─── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-box {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.summary-box .sb-label {
  font-family: var(--font-card-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-box .sb-value {
  font-family: var(--font-card-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-bright);
}

.summary-box .sb-value.gold-val {
  color: var(--gold);
}

/* ─── ASSUMPTIONS ─── */
.assumptions {
  margin-top: 24px;
  padding: 18px 24px;
  background: #fed8bdd9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}

.assumptions h3 {
  font-family: var(--font-card-body);
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.assumptions p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.8s;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk';
  font-size: 16px;
  color: var(--text-dark);
  background: transparent;
  text-decoration: none;
  margin: 2rem 0;
  padding: 12px 28px;
  border: 1.5px solid var(--text-dark);
  border-radius: 50px;
  transition: all 0.25s;
}

.footer a:hover {
  background: var(--text-dark);
  color: var(--bg);
}

.footer .tagline {
  font-family: 'Libre Baskerville' !important;
  font-size: 24px;
  color: var(--text-dark);
}

.footer .credit {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-header-container {
  padding: 1rem;
  position: fixed;
  display: flex;
  justify-content: flex-start;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgb(254, 239, 219);
  transition: backdrop-filter 0.3s ease, background-color 0.3s ease;
}

/* When NOT at the top */
.logo-header-container.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Safari */
  background-color: rgba(254, 239, 219, 0.85);
  /* Slight transparency needed for blur */
}

.site-title {
  font-family: 'Libre Baskerville' !important;
}