/*
  TOYA design tokens translated from the Systeme page source.
  Flat surfaces only: no gradients and no drop shadows.
*/
:root {
  --toya-charcoal: #323130;
  --toya-ink: #1c232d;
  --toya-grey: #7d7c83;
  --toya-beige: #e1dbcc;
  --toya-sand: #eae6db;
  --toya-pale: #f7f6f2;
  --toya-off-white: #fcfbfa;
  --toya-line: #c5c5c5;
  --toya-white: #ffffff;
  --toya-danger: #9d3c2f;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
  --radius-panel: 10px;
  --radius-control: 6px;
  --site-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--toya-off-white); }
body {
  margin: 0;
  background: var(--toya-off-white);
  color: var(--toya-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
.site-width { width: min(var(--site-width), calc(100% - 40px)); margin-inline: auto; }

/* Header and intro */
.masthead { background: var(--toya-sand); }
.site-header { padding: 20px 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-block; line-height: 0; }
.brand img { display: block; width: 120px; height: auto; }

.hero { padding: 58px 0 72px; }
.kicker,
.step,
label > span:first-child,
.mode-picker legend,
.headline-result small,
.result-breakdown dt,
footer {
  font-family: var(--font-mono);
  font-weight: 500;
}
.kicker {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kicker-light { color: rgba(255, 255, 255, 0.78); }
h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: clamp(40px, 5.5vw, 54px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 22px;
  line-height: 36px;
}
.privacy-note {
  margin-bottom: 0;
  color: var(--toya-grey);
  font-size: 15px;
  line-height: 28px;
}

/* Shared buttons */
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--toya-grey);
  outline-offset: 2px;
}
.button-dark { background: var(--toya-charcoal); color: var(--toya-off-white); }
.button-dark:hover { background: var(--toya-grey); }
.button-beige { background: var(--toya-beige); color: var(--toya-charcoal); }
.button-beige:hover { background: var(--toya-sand); }
.button-grey { background: var(--toya-grey); color: var(--toya-white); }
.button-grey:hover { background: #68676d; }

/* Calculator */
.calculator-area { background: var(--toya-pale); padding: 50px 0; }
.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: start;
}
.calculator-form,
.results-panel {
  border-radius: var(--radius-panel);
  box-shadow: none;
}
.calculator-form { overflow: hidden; background: var(--toya-off-white); }
.form-section { padding: 40px; border-bottom: 1px solid var(--toya-sand); }
.section-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}
.step {
  margin: 0;
  color: var(--toya-grey);
  font-size: 14px;
  line-height: 19px;
}
.section-heading h2,
.time-note h2,
.results-panel h2,
.explanation-copy h2,
.training-inner h2 {
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 300;
  line-height: 36px;
}
.section-heading h2 strong { font-weight: 500; }
.section-intro { margin: 8px 0 0; font-size: 16px; line-height: 28px; }

.input-grid { display: grid; gap: 20px; }
.cost-grid,
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.volume-grid { grid-template-columns: 1.1fr 0.9fr 1.1fr; }
label > span:first-child,
label > small { display: block; }
label > span:first-child {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 21px;
}
label > small {
  margin-top: 7px;
  color: var(--toya-grey);
  font-size: 14px;
  line-height: 22px;
}
.input-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--toya-pale);
}
.prefix {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--toya-sand);
  font-family: var(--font-mono);
  font-size: 15px;
}
input,
select {
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 0;
  border-radius: var(--radius-control);
  outline: none;
  background: var(--toya-pale);
  color: var(--toya-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 25px;
}
.input-wrap input { min-width: 0; border-radius: 0; }
input:invalid { outline: 2px solid var(--toya-danger); }

.subtotals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}
.subtotals div,
.annual-classes {
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: var(--toya-sand);
}
.subtotals span,
.annual-classes span {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 21px;
}
.subtotals strong,
.annual-classes strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}

.mode-picker { margin: 0 0 28px 64px; padding: 0; border: 0; }
.mode-picker legend { margin-bottom: 10px; font-size: 14px; line-height: 21px; }
.mode-picker label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 15px 18px;
  border-radius: var(--radius-control);
  background: var(--toya-pale);
}
.mode-picker input {
  width: auto;
  min-height: auto;
  margin: 4px 0 0;
  accent-color: var(--toya-charcoal);
}
.mode-picker strong,
.mode-picker small { display: block; }
.mode-picker strong { font-family: var(--font-mono); font-size: 15px; font-weight: 500; line-height: 22px; }
.mode-picker small { margin-top: 3px; color: var(--toya-grey); font-size: 14px; line-height: 22px; }
.annual-classes { margin-top: 24px; background: var(--toya-beige); }

.time-note {
  margin: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  border-radius: var(--radius-panel);
  background: var(--toya-beige);
}
.time-note h2 { margin-bottom: 8px; }
.time-note p { margin-bottom: 8px; }
.time-note ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 28px;
}

.results-panel {
  position: sticky;
  top: 20px;
  padding: 32px;
  background: var(--toya-charcoal);
  color: var(--toya-white);
}
.results-panel h2 { margin-bottom: 18px; }
.headline-result {
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.headline-result span {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(52px, 6vw, 74px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
}
.headline-result small { display: block; margin-top: 7px; font-size: 13px; line-height: 19px; }
.result-message { min-height: 4em; margin: 20px 0; color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 25px; }
.result-breakdown { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.result-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.result-breakdown dt { max-width: 68%; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 19px; }
.result-breakdown dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 14px; line-height: 21px; }
.guidance-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-control);
  background: var(--toya-beige);
  color: var(--toya-charcoal);
}
.guidance-box h3 { margin-bottom: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 21px; }
.guidance-box p { margin: 0; font-size: 14px; line-height: 22px; }
.result-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }
.copy-status { min-height: 1.5em; margin: 8px 0 0; color: var(--toya-beige); font-size: 13px; line-height: 21px; }

/* Explanation and CTA */
.how-it-works { background: var(--toya-off-white); padding: 70px 0; }
.explanation-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.explanation-copy h2 { margin-bottom: 20px; }
.explanation-copy p { font-size: 16px; line-height: 28px; }
.formula { display: grid; gap: 10px; }
.formula div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-control);
  background: var(--toya-pale);
}
.formula div span { font-family: var(--font-mono); color: var(--toya-grey); font-size: 14px; line-height: 21px; }
.formula p { margin: 0; font-family: var(--font-mono); font-size: 15px; line-height: 23px; }
.formula b { text-align: center; font-family: var(--font-mono); font-weight: 400; }
.formula .formula-result { background: var(--toya-sand); }

.training-section { background: var(--toya-grey); color: var(--toya-white); padding: 50px 0; }
.training-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
}
.training-inner h2 { margin-bottom: 12px; }
.training-inner p:not(.kicker) { max-width: 760px; margin-bottom: 0; font-size: 18px; line-height: 28px; }
.training-button { min-width: 220px; align-self: end; }

footer { background: var(--toya-charcoal); color: rgba(255, 255, 255, 0.72); }
.footer-inner {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  line-height: 19px;
}
.footer-inner p { margin: 0; }
.footer-inner p:first-child { font-family: var(--font-sans); font-weight: 400; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .calculator-shell { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .explanation-grid { grid-template-columns: 1fr; gap: 40px; }
  .volume-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #workingWeeksField { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .site-width { width: min(100% - 24px, var(--site-width)); }
  .site-header { padding: 14px 0; }
  .brand img { width: 108px; }
  .header-button { display: none; }
  .hero { padding: 42px 0 50px; }
  h1 { font-size: 40px; line-height: 48px; }
  .hero-copy { font-size: 18px; line-height: 29px; }
  .calculator-area { padding: 24px 0; }
  .form-section { padding: 30px 22px; }
  .section-heading { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .section-heading h2,
  .time-note h2,
  .results-panel h2,
  .explanation-copy h2,
  .training-inner h2 { font-size: 24px; line-height: 32px; }
  .cost-grid,
  .two-columns,
  .volume-grid,
  .subtotals { grid-template-columns: 1fr; }
  .full-width,
  #workingWeeksField { grid-column: auto; }
  .mode-picker { margin-left: 0; }
  .time-note { margin: 12px; padding: 24px 20px; grid-template-columns: 1fr; }
  .results-panel { padding: 28px 22px; }
  .how-it-works { padding: 50px 0; }
  .training-inner { grid-template-columns: 1fr; gap: 24px; }
  .training-button { justify-self: start; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .masthead,
  .calculator-form,
  .how-it-works,
  .training-section,
  footer,
  .result-actions { display: none !important; }
  .calculator-area { padding: 0; background: white; }
  .site-width { width: 100%; }
  .calculator-shell { display: block; }
  .results-panel { position: static; color: black; background: white; }
}
