/* The Automatable 80% audit. Mobile first. */

main.wrap { padding-top: 2rem; padding-bottom: 1rem; }

.step h1 { margin-top: 0.7rem; }
.step .lede { margin-bottom: 1.75rem; }

.actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.actions .btn:not(.ghost) { flex: 1; }

/* ---- step 1: task rows ---- */

.task-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-soft);
  border-radius: 2px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.task-row .top { display: flex; align-items: center; gap: 0.6rem; }
.task-row .idx { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 0.9rem; }
.task-row .kill {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.35rem; line-height: 1; padding: 0 0.25rem;
}
.task-row .kill:hover { color: var(--navy); }

input[type=text], input[type=email], select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem; /* 16px minimum, or iOS Safari zooms the page on focus */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.65rem;
  min-height: 2.9rem;
}
input:focus, select:focus { border-color: var(--gold-soft); outline: none; box-shadow: 0 0 0 2px rgba(212,176,106,.25); }

.task-row .name { margin-top: 0.6rem; }
.task-row .meta { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.task-row .meta label { flex: 1; min-width: 0; }
.task-row .meta span { display: block; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }

/* ---- step 2: the five signs ---- */

.sign {
  display: flex; align-items: flex-start; gap: 0.85rem;
  width: 100%; text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  font: inherit; color: var(--ink);
  transition: border-color .12s ease, background .12s ease;
}
.sign:hover { border-color: var(--gold-soft); }

.sign .box {
  flex: 0 0 auto; width: 1.35rem; height: 1.35rem; margin-top: 0.1rem;
  border: 1.5px solid var(--line); border-radius: 2px;
  display: grid; place-items: center;
  color: transparent; font-size: 0.85rem; line-height: 1;
}

.sign[aria-pressed="true"] { border-color: var(--gold); background: #fdfaf3; }
.sign[aria-pressed="true"] .box { background: var(--gold); border-color: var(--gold); color: #fff; }

.sign .txt strong { display: block; font-weight: 600; }
.sign .txt em { display: block; font-style: normal; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* ---- step 3: results ---- */

/* Georgia defaults to old-style figures, which drop 3/4/5 below the baseline.
   Every serif numeral on this page must use lining + tabular figures. */
.hours, .res .n, .task-row .idx {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.headline { text-align: center; padding: 1.5rem 0 0.5rem; }
.hours { font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--navy); }
.hours-unit { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.5rem; }
.hours-caption { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }

.group { margin-top: 2rem; }
.group h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.group .rule { height: 1px; background: var(--line); margin: 0.6rem 0 0.9rem; }
.group.automate h2 { color: var(--gold); }
.group.systematize h2 { color: var(--navy); }
.group.keep h2 { color: var(--muted); }

.res {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #efeae1;
}
.res:last-child { border-bottom: 0; }
.res .n { font-family: var(--serif); font-weight: 700; font-size: 0.85rem; color: var(--gold); flex: 0 0 1.6rem; }
.res .label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.res .cost { flex: 0 0 auto; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

.group.keep .res .n { color: var(--muted); }

/* ---- soft email gate: appears AFTER results, never gates them ---- */

.gate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  padding: 1.5rem 1.25rem;
  margin-top: 2.75rem;
}
.gate h2 { margin-top: 0.55rem; }
.gate .lede { margin-bottom: 1.25rem; font-size: 0.95rem; }

.fld { display: block; margin-bottom: 0.85rem; }
.fld > span { display: block; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.err { color: #a4342b; font-size: 0.85rem; margin-bottom: 0.75rem; }

#gate-submit { width: 100%; margin-top: 0.35rem; }

@media (min-width: 34rem) {
  .hours { font-size: 5.5rem; }
  .actions .btn:not(.ghost) { flex: 0 0 auto; }
}
