/* ROI calculator, muun.agency brand kit palette. Matches muun-agency/src/styles.css.
   Primary #000000, Secondary #fec700, Gray 3 #616161.
   Yellow never carries text on white: it fails contrast badly. It is the dot,
   the underline, and a button fill behind black text (14.9:1). */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --muted: #616161;
  --rule: #e5e5e5;
  --field: #767676;    /* input borders: 4.5:1 on white, above the 3:1 needed */
  --dot: #fec700;
  --focus: #000000;
  --error: #b00020;    /* 6.6:1 on white */
  --tint: #fafafa;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112.5%; }               /* 18px base */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Onest, Montserrat, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: .5rem; text-decoration: none;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- header ---------- */
.site-head { padding-block: 1.5rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand img { width: 2.1rem; height: 2.1rem; display: block; }
.brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }

.head-link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid var(--dot); padding-bottom: 2px;
}
.head-link:hover { border-bottom-color: var(--ink); }

/* ---------- intro ---------- */
main { flex: 1; padding-bottom: clamp(2.5rem, 7vh, 4rem); }
.intro { padding-block: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 4vh, 2.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--dot); flex: none;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 20ch;
}
h1 .dot { color: var(--dot); }

.lede {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- form and results ---------- */
.layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 52rem) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .results { position: sticky; top: 1.5rem; }
}

.panel {
  border: 1px solid var(--rule);
  border-radius: .9rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper);
}

fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend {
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em;
  padding: 0; margin-bottom: .25rem;
}
.group-hint { margin: 0 0 .25rem; color: var(--muted); font-size: .9rem; }

label { display: block; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

input {
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field);
  border-radius: .6rem;
}
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--dot); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: .7rem; border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(10,10,10,.12);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,10,10,.14); }

.error { color: var(--error); font-weight: 600; margin: 1rem 0 0; }
.error:empty { display: none; }

.results { background: var(--tint); }
.results h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 800; letter-spacing: -.02em;
}
.results h3 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.placeholder { margin: 0; color: var(--muted); }

.figures { margin: 0; }
.figures div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--rule);
}
.figures dt { color: var(--muted); font-size: .95rem; }
.figures dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

.figures .headline { border-bottom: 0; padding-top: .9rem; }
.figures .headline dt { color: var(--ink); font-weight: 600; }
.figures .headline dd {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  border-bottom: 3px solid var(--dot); line-height: 1.2;
}

.note { color: var(--muted); font-size: .85rem; margin: .75rem 0 0; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 1.5rem; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .9rem; color: var(--muted);
}
.site-foot small { font-size: inherit; }
.site-foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-foot a:hover { border-bottom-color: var(--ink); }

/* ---------- shared ---------- */
a:focus-visible, .btn:focus-visible, .skip:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: .3rem;
}
input:focus-visible { border-radius: .6rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
