::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--leaf); border: 2px solid var(--deep); }

/* ── TOOL PAGE OVERRIDES ─────────────────────────────────────────────────── */
/* Fix text color inheritance: body defaults to var(--frost) but .page uses linen bg */
.page, .page-wide { color: var(--text); }

/* General rule: all light-background containers use proper text colors */
.scale-card, .result-block, .breakdown-card, .compare-card,
.score-card, .cta-box, .cta-final { color: var(--text); }

/* Cards: dark deep background on all tool pages */
.card { background: var(--deep) !important; color: var(--frost); border-color: rgba(107,143,99,0.15); }

/* 2-col grid for card pairs */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 2rem; }
@media(max-width:700px) { .grid { grid-template-columns: 1fr; } }

/* Input labels */
.label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; display: block; margin-bottom: 0.8rem; }

/* Selects and number inputs inside dark cards */
.card select, .card input[type=number] {
  width: 100%; padding: 0.7rem 1rem; margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(107,143,99,0.2);
  color: var(--frost); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  font-weight: 300; outline: none; cursor: pointer; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.card select:focus, .card input[type=number]:focus { border-color: var(--sage); }
.card select option { background: var(--deep); color: var(--frost); }

/* Slider row (co2 / avkastning style — input directly in row) */
.slider-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.8rem; margin-bottom: 1.5rem; }
.slider-row input[type=range] { flex: 1; }
.slider-val { flex-shrink: 0; font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; color: var(--white); min-width: 60px; text-align: right; }

/* Note text in dark sections */
.comparison .note, .comparison p.note {
  color: rgba(168,196,160,0.4); font-size: 0.68rem; margin-top: 1.5rem;
  line-height: 1.6; font-style: italic;
}

/* Results panels */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  background: transparent; margin: 2rem 0; }
.res-cell { background: #243028; border:1px solid rgba(107,143,99,0.15); padding: 2rem 1.5rem; text-align: center; }
.res-label { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 0.5rem; }
.res-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem;
  font-weight: 300; color: var(--white); display: block; line-height: 1; }
.res-unit { font-size: 0.7rem; color: rgba(168,196,160,0.5); display: block; margin-top: 0.3rem; }
@media(max-width:700px) { .results { grid-template-columns: 1fr; } }

/* Species info */
.species-info { font-size: 0.82rem; color: var(--mist); line-height: 1.7;
  font-weight: 300; margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(107,143,99,0.15); opacity: 0.85; }

/* Comparison section */
.comparison { background: #243028; border: 1px solid rgba(107,143,99,0.15);
  padding: 2rem; margin-top: 1px; }
.comp-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 1.5rem; font-weight: 500; }
.comp-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.comp-icon { width: 32px; height: 32px; flex-shrink: 0; opacity: 0.7; }
.comp-text { font-size: 0.88rem; color: var(--mist); font-weight: 300; line-height: 1.5; }
.comp-text strong { color: var(--frost); font-weight: 400; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(107,143,99,0.1); margin: 2rem 0; }
.stat { background: #243028; border:1px solid rgba(107,143,99,0.12); padding: 1.5rem; text-align: center; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem;
  font-weight: 300; color: var(--white); display: block; line-height: 1; }
.stat-l { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); display: block; margin-top: 0.3rem; }
.stat-u { font-size: 0.75rem; color: rgba(168,196,160,0.5); }

/* Metrics row */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(107,143,99,0.1); margin: 2rem 0; }
.metric, .met { background: #243028; border:1px solid rgba(107,143,99,0.12); padding: 1.5rem; text-align: center; }
.metric-n, .met-n { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem;
  font-weight: 300; color: var(--white); display: block; line-height: 1; }
.metric-l, .met-l { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); display: block; margin-top: 0.3rem; }
.metric-u, .met-u { font-size: 0.72rem; color: rgba(168,196,160,0.5); }
@media(max-width:700px) { .stats, .metrics { grid-template-columns: 1fr; } }

/* Inputs section (avkastning) */
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(107,143,99,0.1); margin-bottom: 2rem; }
@media(max-width:600px) { .inputs { grid-template-columns: 1fr; } }
.inp-cell { background: #243028; border:1px solid rgba(107,143,99,0.12); padding: 1.5rem; color: var(--frost); }

/* Chart */
.chart-card { background: #1a2e1e; border: 1px solid rgba(107,143,99,0.15);
  padding: 2rem; margin: 2rem 0; }
.chart-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 1rem; font-weight: 500; }
.chart-wrap { position: relative; height: 280px; }
.legend { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1rem; }
.leg-item { display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--mist); font-weight: 300; }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Timeline */
.timeline { background: #1a2e1e; border: 1px solid rgba(107,143,99,0.15);
  padding: 2rem; margin: 1px 0; color: var(--frost); }
.tl-bar-wrap { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.tl-bar { display: flex; align-items: center; gap: 1rem; }
.tl-bar-wrap .label { min-width: 60px; margin: 0; }
.tl-bar-fill { height: 8px; background: var(--leaf); border-radius: 1px; transition: width 0.5s; }

/* Bonitet */
.main { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 2rem; }
@media(max-width:700px) { .main { grid-template-columns: 1fr; } }
.result-panel { background: #243028; padding: 2rem; display: flex;
  flex-direction: column; justify-content: center; color: var(--frost); }
.si-card { text-align: center; padding: 1.5rem 0; }
.si-class { font-family: 'Cormorant Garamond', serif; font-size: 4rem;
  font-weight: 300; color: var(--white); line-height: 1; display: block; }
.si-desc { font-size: 0.82rem; color: var(--mist); margin-top: 0.5rem;
  font-weight: 300; line-height: 1.6; }
.metrics-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(107,143,99,0.1); margin-top: 1px; }
.info-box { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 1.5rem; margin-top: 1px; color: var(--muted); font-size: 0.88rem;
  line-height: 1.7; font-weight: 300; }
.scale-card { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 2rem; margin-top: 1px; }
.scale-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss); font-weight: 500; display: block; margin-bottom: 1rem; }
.scale-row { display: grid; grid-template-columns: 16px 1fr 80px 60px;
  gap: 0.5rem; align-items: center; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107,143,99,0.08); font-size: 0.8rem; color: var(--text); }
@media(max-width:500px) {
  .scale-row { grid-template-columns: 16px 1fr 60px; }
  .scale-row .scale-m3 { display: none; }
}
.scale-row.active { background: rgba(107,143,99,0.08); color: var(--forest); font-weight: 500; }
.scale-name { font-weight: 400; color: var(--muted); }
.scale-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.scale-bar-wrap { flex: 1; height: 4px; background: rgba(107,143,99,0.15); border-radius: 2px; }
.scale-m3 { font-size: 0.75rem; color: var(--muted); text-align: right; }
.scale-range { font-size: 0.8rem; color: var(--text); font-weight: 500; }

/* Värdering steps */
.step { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(107,143,99,0.1); }
.step:last-child { border-bottom: none; }
.step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.step-num { width: 36px; height: 36px; background: rgba(107,143,99,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--moss); }
.step-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 300; color: var(--forest); }
.result-block { background: var(--linen); border: 1px solid rgba(107,143,99,0.18);
  border-top: 2px solid var(--sage); padding: 2.5rem; text-align: center;
  margin: 2rem 0; display: none; }
.result-block.show { display: block; }
.res-eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--moss); display: block; margin-bottom: 1rem; font-weight: 500; }
.res-range { font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  font-weight: 300; color: var(--forest); line-height: 1; }
.res-sub { font-size: 0.82rem; color: var(--mist); margin-top: 0.5rem; font-weight: 300; }
.res-disclaimer { font-size: 0.72rem; color: var(--muted); margin-top: 1.5rem;
  font-style: italic; line-height: 1.6; }
.btn-calc { background: #5a9e2f; color: #fff; border: none;
  padding: 1rem 2.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  font-weight: 400; margin-top: 1.5rem; transition: background 0.3s; }
.btn-calc:hover { background: #3a6c1a; }
.cta-box { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 2.5rem; text-align: center; margin-top: 1px; }
.cta-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  font-weight: 300; color: var(--forest); margin-bottom: 0.5rem; }
.cta-title em { font-style: italic; color: var(--moss); }
.cta-sub { font-size: 0.88rem; color: var(--muted); font-weight: 300;
  line-height: 1.7; margin-bottom: 1.5rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.5rem; }
.contact-form textarea { grid-column: 1/-1; height: 100px; resize: none; }
@media(max-width:600px) { .contact-form { grid-template-columns: 1fr; } }

/* Markägare guide */
.progress-bar { background: rgba(107,143,99,0.12); height: 4px; margin-bottom: 3rem; }
.prog-track { height: 4px; background: rgba(107,143,99,0.12); }
.prog-fill { height: 100%; background: var(--leaf); transition: width 0.5s; }
.prog-label { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moss); display: block; margin-bottom: 0.5rem; font-weight: 500; }
.prog-count { font-size: 0.82rem; color: var(--mist); font-weight: 300; }
.phase { margin-bottom: 2.5rem; }
.phase-header { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1rem; padding-top: 3rem; border-top: 1px solid rgba(107,143,99,0.1); }
.phase:first-child .phase-header { border-top: none; padding-top: 0; }
.phase-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  font-weight: 300; color: rgba(90,158,47,0.45); line-height: 1; }
.phase-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 300; color: var(--forest); }
.phase-time { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--sage);
  text-transform: uppercase; margin-left: auto; flex-shrink: 0; }
/* Markägare — task row (outer container) */
.task { background: #fff; border: 1px solid rgba(107,143,99,0.15);
  padding: 1.2rem 1.5rem; margin-bottom: 1px; display: flex; align-items: flex-start;
  gap: 1.2rem; cursor: pointer; transition: background 0.2s; }
.task:hover { background: var(--parchment); }
.task.done { opacity: 0.55; }
.task.done .task-title { text-decoration: line-through; color: var(--mist); }

/* Markägare — checkbox SVG square (inner indicator) */
.checkbox { width: 20px; height: 20px; min-width: 20px;
  border: 2px solid rgba(61,92,56,0.25); border-radius: 3px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px; transition: all 0.2s; background: transparent; }
.task.done .checkbox { background: var(--moss); border-color: var(--moss); }
.checkbox svg { opacity: 0; transition: opacity 0.2s; }
.task.done .checkbox svg { opacity: 1; }

.task-title { font-size: 0.88rem; font-weight: 400; color: var(--forest);
  margin-bottom: 0.3rem; line-height: 1.4; }
.task-desc { font-size: 0.8rem; color: var(--muted); font-weight: 300; line-height: 1.6; }
.task-body { flex: 1; }
.task-tag { display: inline-block; font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; margin-top: 0.5rem; font-weight: 500; }
.tag-urgent   { background: rgba(184,64,64,0.1);   color: #b84040; }
.tag-legal    { background: rgba(107,143,99,0.15);  color: var(--sage); }
.tag-economy  { background: rgba(196,162,74,0.1);   color: var(--gold-lt); }
.tag-practical{ background: rgba(107,143,99,0.08);  color: var(--moss); }
.tag-renatum  { background: rgba(118,179,59,0.12);  color: #4a8a1e; }

.cta-final { background: var(--parchment); border: 1px solid rgba(107,143,99,0.15);
  border-top: 2px solid var(--sage); padding: 2.5rem; text-align: center; margin-top: 2rem; }
.btn-cta { display: inline-block; background: #5a9e2f; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.9rem 2.2rem; text-decoration: none;
  font-weight: 400; transition: background 0.3s; margin-top: 1rem; }
.btn-cta:hover { background: #3a6c1a; }

/* Prisvärdhet */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.2rem,4vw,3.2rem); color: var(--forest); margin-bottom: 0.5rem; }
.page-header h1 em { font-style: italic; color: var(--moss); }
.main-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1px;
  align-items: start; }
@media(max-width:900px) { .main-grid { grid-template-columns: 1fr; } }

/* Criteria list — dark deep background */
.criteria-list { background: var(--deep); border: 1px solid rgba(107,143,99,0.15); }
.property-name-bar { background: var(--ink); padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(107,143,99,0.12); }
.property-name-bar input { background: transparent; border: none;
  border-bottom: 1px solid rgba(107,143,99,0.3);
  color: var(--frost); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  width: 100%; padding: 0.3rem 0; outline: none; }
.property-name-bar input::placeholder { color: rgba(168,196,160,0.35); }

.criterion { background: var(--deep); border-bottom: 1px solid rgba(107,143,99,0.1); }
.criterion:last-child { border-bottom: none; }

.crit-header { padding: 1.2rem 1.5rem 0.5rem; display: flex;
  justify-content: space-between; align-items: baseline; }
.crit-name { font-size: 0.88rem; font-weight: 500; color: var(--frost); }
.crit-abbr { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--sage);
  text-transform: uppercase; }
.crit-desc { font-size: 0.78rem; color: var(--mist); line-height: 1.6;
  font-weight: 300; padding: 0 1.5rem 0.5rem; }
.crit-scale-hint { font-size: 0.68rem; color: rgba(107,143,99,0.65); padding: 0 1.5rem 0.5rem; }
.inverted-note { font-size: 0.68rem; color: var(--gold-lt); padding: 0 1.5rem 0.3rem; }

/* Slider row */
.slider-row { display: flex; align-items: center; gap: 0; }
.slider-row .slider-wrap { flex: 1; border-bottom: none; }
.slider-val { width: 44px; flex-shrink: 0; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300;
  color: var(--white); padding-right: 1rem; line-height: 1; }

/* Score ring / breakdown */
.breakdown-card { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 1.5rem; }
.breakdown-title { color: var(--moss); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss); font-weight: 500; display: block; margin-bottom: 1rem; }
.breakdown-row { margin-bottom: 0.8rem; }
.br-name { font-size: 0.78rem; color: var(--muted); display: flex;
  justify-content: space-between; margin-bottom: 0.3rem; }
.br-val { color: var(--forest); font-weight: 500; }
.br-bar-wrap { height: 4px; background: rgba(107,143,99,0.12); border-radius: 2px; }
.br-bar { height: 4px; background: var(--leaf); border-radius: 2px; transition: width 0.4s; }

/* Compare panel */
.compare-card { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 1.5rem; margin-top: 1px; }
.compare-title { color: var(--moss); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss); font-weight: 500; display: block; margin-bottom: 1rem; }
.compare-list { display: flex; flex-direction: column; gap: 0.5rem; }
.compare-item { background:#fff; display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem; background: rgba(107,143,99,0.06);
  border: 1px solid rgba(107,143,99,0.1); }
.compare-item-name { font-size: 0.8rem; color: var(--muted); }
.compare-item-score { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem;
  font-weight: 300; color: var(--forest); }
.compare-item-del { background: none; border: none; color: rgba(107,143,99,0.4);
  cursor: pointer; font-size: 1rem; padding: 0 0.3rem; transition: color 0.2s; }
.compare-item-del:hover { color: var(--mist); }
.compare-empty { font-size: 0.8rem; color: rgba(107,143,99,0.6);
  font-style: italic; font-weight: 300; }
.action-btns { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-save, .btn-reset, .btn-export { font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; cursor: pointer; font-weight: 400; border: none; transition: all 0.2s; }
.btn-save { background: #5a9e2f; color: #fff; }
.btn-save:hover { background: #3a6c1a; }
.btn-reset { background: transparent; border: 1px solid rgba(107,143,99,0.3); color: var(--mist); }
.btn-reset:hover { border-color: var(--sage); color: var(--frost); }
.btn-export { background: transparent; border: 1px solid rgba(196,162,74,0.3); color: var(--gold-lt); }
.btn-export:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }


.footer { background: var(--ink); border-top: 1px solid rgba(107,143,99,0.08); padding: 4rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; max-width: 1140px; margin: 0 auto 3rem; }
.footer-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); display: block; margin-bottom: 0.8rem; }
.footer-tagline { font-size: 0.78rem; color: rgba(168,196,160,0.35); line-height: 1.7; font-weight: 300; }
.footer-col h4 { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.78rem; color: rgba(168,196,160,0.4); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--mist); }
.footer-bottom { border-top: 1px solid rgba(107,143,99,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; max-width: 1140px; margin: 0 auto; }
.footer-bottom p, .footer-bottom a { font-size: 0.68rem; color: rgba(168,196,160,0.25); font-weight: 300; text-decoration: none; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── PRISVARDHET: TOPBAR ──────────────────────────────────────────────────── */
.topbar { background: var(--ink); border-bottom: 1px solid rgba(107,143,99,0.12);
  padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between;
  position: relative; }
.topbar-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mist); text-decoration: none; }
.topbar-title { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; }
.topbar-back { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(168,196,160,0.5); text-decoration: none; transition: color 0.2s; }
.topbar-back:hover { color: var(--mist); }
@media(max-width:900px) {
  .topbar-title { display: none; }
  .topbar-back { display: none; }
}

/* ── PRISVARDHET: SCORE RING ──────────────────────────────────────────────── */
.score-card { background: var(--linen); border: 1px solid rgba(107,143,99,0.15);
  padding: 2rem; text-align: center; margin-bottom: 1px; }
.score-label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--moss); font-weight: 500; display: block; margin-bottom: 1.2rem; }
.score-ring { position: relative; display: inline-block; margin: 0 auto 1rem; }
.score-ring svg { display: block; }
.score-ring-bg { fill: none; stroke: rgba(107,143,99,0.12); stroke-width: 6; }
.score-ring-fill { fill: none; stroke-width: 6; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.6s ease; }
.score-number { position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center; }
.score-big { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem;
  font-weight: 300; color: var(--forest); line-height: 1; }
.score-max { font-size: 0.75rem; color: var(--muted); }
.score-verdict { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  font-weight: 300; color: var(--forest); margin-bottom: 0.3rem; }
.score-sub { font-size: 0.78rem; color: var(--muted); font-weight: 300; }

/* ── PRISVARDHET: SLIDERS & WEIGHTS ───────────────────────────────────────── */
.slider-wrap { padding: 0.8rem 1.5rem 1rem; border-bottom: 1px solid rgba(107,143,99,0.08); }
.slider-labels { display: flex; justify-content: space-between;
  font-size: 0.65rem; color: var(--muted); margin-top: 0.3rem; }
.weight-row { display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.6rem 1.5rem 0.8rem;
  background: rgba(0,0,0,0.15); border-top: 1px solid rgba(107,143,99,0.08); }
.weight-label { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; flex-shrink: 0; }
.weight-desc { font-size: 0.7rem; color: var(--sage); font-weight: 300; flex-shrink: 0; }
.weight-btns { display: flex; gap: 0.35rem; }
.weight-btn { background: rgba(107,143,99,0.08); border: 1px solid rgba(107,143,99,0.2);
  color: var(--mist); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif; font-weight: 400; }
.weight-btn:hover { background: rgba(107,143,99,0.2); border-color: var(--sage); color: var(--frost); }
.weight-btn.active { background: var(--moss); border-color: var(--moss); color: var(--white); }
/* Legacy selector fallback */
.weight-btns button { background: rgba(107,143,99,0.08); border: 1px solid rgba(107,143,99,0.2);
  color: var(--mist); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif; font-weight: 400; }
.weight-btns button:hover { background: rgba(107,143,99,0.2); border-color: var(--sage); color: var(--frost); }
.weight-btns button.active { background: var(--moss); border-color: var(--moss); color: var(--white); }

/* ── SHARED ALIASES & MISSING CLASSES ────────────────────────────────────── */

/* .sval — slider value display (bonitet, avkastning, vardering) */
.sval { flex-shrink: 0; font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; color: var(--white); min-width: 60px; text-align: right; }

/* Bonitet — result panel */
.si-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; display: block; margin-bottom: 1rem; }
.si-value { font-family: 'Cormorant Garamond', serif; font-size: 4rem;
  font-weight: 300; color: var(--white); display: block; line-height: 1; }
.si-unit { font-size: 0.85rem; color: var(--mist); display: block; margin-top: 0.3rem; }

/* Avkastning — timeline rows */
.tl-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); font-weight: 500; display: block; margin-bottom: 1rem; }
.tl-row { display: flex; align-items: center; gap: 1rem; padding: 0.4rem 0;
  border-bottom: 1px solid rgba(107,143,99,0.08); }
.tl-year { font-size: 0.68rem; color: var(--sage); min-width: 40px; font-weight: 500; }
.tl-row .tl-bar-wrap { flex: 1; height: 6px; background: rgba(107,143,99,0.12); border-radius: 3px; }
.tl-row .tl-bar { height: 6px; background: var(--leaf); border-radius: 3px; transition: width 0.4s; }
.tl-val { font-size: 0.82rem; color: var(--frost); min-width: 70px; text-align: right; }

/* Vardering — 2-col grid */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 2rem; }
@media(max-width:700px) { .grid2 { grid-template-columns: 1fr; } }

/* Vardering — calculate button */
.btn { background: #5a9e2f; color: #fff; border: none; padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer; font-weight: 400; transition: background 0.3s; }
.btn:hover { background: #3a6c1a; }

/* ── CONTRAST FIXES ──────────────────────────────────────────────────────── */

/* Page header body text (prisvardhet, linen bg) */
.page-header p { color: var(--muted); }

/* Info/scale box text (bonitet, linen bg) */
.info-box p, .info-box h3, .info-box h4, .info-box strong { color: var(--muted); }
.scale-card p, .scale-card { color: var(--text); }

/* Note paragraphs on linen pages */
.page > .page > p.note, p.note { color: var(--muted); font-style: italic; }
.card p.note, .card .note { color: rgba(168,196,160,0.5); }

/* Step number (vardering, linen bg — was var(--mist) which is too light) */
.step-num { color: var(--moss); }

/* Selects on linen bg (vardering .step and .grid2) */
.step select, .grid2 select, .step input[type=number], .grid2 input[type=number] {
  width: 100%; background: rgba(26,46,30,0.05); border: 1px solid rgba(61,92,56,0.25);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  padding: 0.7rem 1rem; outline: none; margin-top: 0.4rem;
  -webkit-appearance: none; appearance: none; }
.step select:focus, .grid2 select:focus { border-color: var(--sage); }

/* ── TOOL LEAD FUNNEL ────────────────────────────────────────────────────── */
.tool-lead { border-top: 2px solid var(--sage); background: var(--linen); padding: 3rem 2.5rem; margin-top: 1px; text-align: center; }
.tool-lead-eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--moss); font-weight: 500; display: block; margin-bottom: 1rem; }
.tool-lead-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 300; color: var(--forest); margin-bottom: 0.8rem; line-height: 1.2; }
.tool-lead-p { font-size: 0.88rem; color: var(--muted); font-weight: 300; line-height: 1.7; max-width: 480px; margin: 0 auto 2rem; }
.tool-lead-form { display: flex; gap: 0.5rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.tool-lead-form input[type=email] { flex: 1; min-width: 200px; padding: 0.85rem 1rem; border: 1px solid rgba(61,92,56,0.25); background: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--text); outline: none; }
.tool-lead-form input[type=email]:focus { border-color: var(--sage); }
.tool-lead-form button { background: #5a9e2f; color: #fff; border: none; padding: 0.85rem 1.5rem; font-family: 'DM Sans', sans-serif; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; font-weight: 400; white-space: nowrap; transition: background 0.3s; }
.tool-lead-form button:hover { background: #3a6c1a; }
.tool-lead-trust { display: block; margin-top: 1rem; font-size: 0.72rem; color: var(--muted); font-weight: 300; }

/* Process steps block */
.tool-lead-process { margin: 1.8rem auto 0; max-width: 360px; text-align: left; }
.tool-lead-process-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moss); font-weight: 500; display: block; margin-bottom: 0.7rem; }
.tool-lead-steps { margin: 0; padding: 0 0 0 1.2rem; list-style: decimal; }
.tool-lead-steps li { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.6; margin-bottom: 0.25rem; }

/* Benchmark message (co2 tool — below results grid) */
.results-note { font-size: 0.68rem; color: rgba(168,196,160,0.45); text-align: center;
  margin: 0.4rem 0 0; font-style: italic; font-weight: 300; }
.benchmark-msg { font-size: 0.85rem; font-weight: 300; line-height: 1.6;
  padding: 0.6rem 1rem; text-align: center; min-height: 0; transition: color 0.3s; }
.benchmark-msg:empty { display: none; }
.benchmark-high { color: #3d7a1e; font-weight: 500; }
.benchmark-mid { color: var(--muted); }
.benchmark-low { color: var(--muted); }

/* Tool lead — areal select + phone + alt CTA */
.tool-lead-select { flex: 1; min-width: 160px; padding: 0.85rem 1rem;
  border: 1px solid rgba(61,92,56,0.25); background: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--text);
  outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.tool-lead-select:focus { border-color: var(--sage); }
.tool-lead-phone { flex: 1 1 100%; width: 100%; padding: 0.85rem 1rem;
  border: 1px solid rgba(61,92,56,0.25); background: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--text); outline: none; }
.tool-lead-phone:focus { border-color: var(--sage); }
.tool-lead-alt-cta { font-size: 0.85rem; color: var(--moss); font-weight: 500;
  text-decoration: none; transition: color 0.2s; }
.tool-lead-alt-cta:hover { color: var(--leaf); }

/* Inputs in cta-box and contact-form (linen bg) */
.cta-box input[type=text], .cta-box input[type=email], .cta-box input[type=tel],
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel] {
  width: 100%; background: rgba(26,46,30,0.05); border: 1px solid rgba(61,92,56,0.25);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  padding: 0.7rem 1rem; outline: none; box-sizing: border-box; }
.cta-box input:focus, .contact-form input:focus { border-color: var(--sage); }
