
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbf8f1;
  --surface-alt: #f8f6f0;
  --text: #252b35;
  --muted: #6d7583;
  --line: #ddd4c4;
  --gold: #edbc43;
  --gold-dark: #705710;
  --dark: #252b35;
  --dark-2: #1e2430;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 22px 54px rgba(23, 31, 42, 0.08);
  --max: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: --bg;
/*    radial-gradient(circle at top left, rgba(237,188,67,0.10), transparent 30%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
*/
}

.is-hidden { display: none !important; }

.start-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.start-screen__card {
  width: 100%;
  max-width: var(--max);
  padding: 32px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.start-screen__field { margin-top: 24px; }

.tco {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, summary {
  font-family: "Bebas Neue", Inter, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

h1 { font-size: clamp(3rem, 6vw, 5.2rem); margin-bottom: 16px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 0; }
h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 16px; }

.lead {
//  max-width: 70ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card--light,
.machine-card,
.param-card,
.comparison,
.details,
.summary,
.hero__main,
.hero__aside {
  padding: 24px;
}

.card--dark,
.summary {
  background: linear-gradient(180deg, #2f3642 0%, var(--dark) 100%);
  border-color: var(--dark-2);
  color: #ffffff;
}

.hero {
  margin-bottom: 26px;
}

.hero__main {
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  width: 100%;
}

.hero__callout {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff4d7;
  border: 1px solid #f0d98c;
  border-radius: var(--radius-md);
  color: var(--gold-dark);
  line-height: 1.58;
}

.hero__aside {
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.select-field {
  display: grid;
  gap: 8px;
}

.select-field span {
  font-size: 0.96rem;
  font-weight: 700;
}

select,
button,
input {
  font: inherit;
}

select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cdc4b7;
  background: #ffffff;
  color: var(--text);
}

select:focus,
input:focus,
button:focus {
  outline: 2px solid rgba(237,188,67,0.55);
  outline-offset: 2px;
}

.helper {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.machine-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.machine-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.machine-card--wille {
  background: linear-gradient(180deg, #fffef9 0%, #faf8f2 100%);
}

.machine-card--compare {
  background: linear-gradient(180deg, #fbfbfb 0%, #f7f7f7 100%);
}

.machine-card__top {
//  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.machine-card__label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.machine-card h2 {
  font-size: clamp(1.95rem, 3vw, 2.55rem);
  margin-bottom: 12px;
}

.machine-card__image {
  display: block;
  width: 100%;
  max-width: 684px;
  height: auto;
  margin: 0 0 14px;
  object-fit: contain;
}

.machine-card__image[hidden] {
  display: none;
}

.tag {
/*  display: inline-flex; */
  align-items: center;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #efede6;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.tag--gold {
  background: #fff3cd;
  color: #705100;
}

.machine-card__meta {
  display: grid;
  gap: 0;
}

.mini-row,
.readonly-line,
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed #ddd5c7;
}

.mini-row span,
.readonly-line span,
.stat-row span { color: var(--muted); }
.mini-row strong,
.readonly-line strong,
.stat-row strong { text-align: right; }

.machine-card__note,
.param-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.button--primary {
  background: var(--gold);
  color: #241d10;
}

.button--secondary {
  background: #f1ede4;
  color: var(--text);
}

.button-right {
  float: right;
  margin-right: 16px;
}

.button--text {
  background: transparent;
  color: var(--gold-dark);
  padding-inline: 16px;
}

.params {
  margin-bottom: 26px;
}

.params__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.params__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.param-card {
  background: linear-gradient(180deg, #fffefb 0%, #ffffff 100%);
}

.readonly-line {
  margin-bottom: 14px;
}

.slider-field {
  margin-bottom: 18px;
}

.slider-field--last { margin-bottom: 0; }

.slider-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.slider-field__head label {
  font-weight: 700;
}

.slider-field__head strong {
  color: var(--gold-dark);
  font-weight: 800;
}

.slider-field__scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, #f6d97f 100%);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gold);
  box-shadow: 0 3px 10px rgba(0,0,0,0.16);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gold);
  box-shadow: 0 3px 10px rgba(0,0,0,0.16);
  cursor: pointer;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
}

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

.winner-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(237,188,67,0.12);
  border: 1px solid rgba(237,188,67,0.34);
  color: #ffd977;
  font-weight: 800;
  font-size: 0.92rem;
}

.summary__text {
  color: rgba(255,255,255,0.96);
  line-height: 1.72;
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.summary__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-box {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  padding: 16px;
}

.metric-box span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.76);
  font-size: 0.9rem;
}

.metric-box strong {
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 1.95rem;
  font-weight: 400;
}

.comparison {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
}

.comparison__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.stat-list {
  display: grid;
  gap: 0;
}

.details {
  margin-top: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
}

.details summary {
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}
/*.details summary::-webkit-details-marker { display: none; }*/
.details__content {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .hero,
  .machine-cards,
  .params__grid,
  .results-layout,
  .summary__metrics,
  .comparison__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tco { padding: 22px 14px 48px; }
  .start-screen__card { padding: 24px; }
  .machine-card__top,
  .params__header,
  .slider-field__head,
  .readonly-line,
  .mini-row,
  .summary__head,
  .stat-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-row { flex-direction: column; }
}
