/* Where the day goes, the savings calculator, the stress moments, and agents with limits.
   Builds on site.css tokens and type scale; breakpoints match it (1000 / 760 / 470). */

/* ---------- Where the day goes ---------- */
.time-section { background: #fff; }
.chores {
  list-style: none; margin: 0; padding: 0; background: #fff;
  border: 1px solid #e6eaf0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 22px 50px rgba(26, 43, 79, .05);
}
.chores-head, .chore { display: grid; grid-template-columns: 1fr 1fr; }
.chores-head { background: #f8fafc; border-bottom: 1px solid #eef1f5; }
.chores-head span {
  padding: 15px 30px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #98a2ae;
}
.chores-head span + span { color: #5677bb; }
.chore + .chore { border-top: 1px solid #eef1f5; }
.chore > div { padding: 22px 30px; }
.chore small { display: none; }
.chore p { margin: 0; font-size: 14px; line-height: 1.6; }
.chore-before p { color: #7a8390; }
.chore-after { position: relative; background: linear-gradient(90deg, #f6f9ff, #fff 80%); }
.chore-after p { color: #4d5767; padding-left: 30px; position: relative; }
.chore-after p::before {
  content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 50%; background: #e4f6ec; color: #399263;
  font-size: 11px; font-weight: 700;
}
.chore-after b { color: #1d2739; font-weight: 650; }

/* ---------- Savings calculator ---------- */
.savings-section { background: #f7f9fc; }
.calc {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px;
  max-width: 1040px; margin: auto; align-items: stretch;
}
.calc-inputs {
  display: grid; gap: 22px; align-content: start; margin: 0; padding: 32px 34px;
  background: #fff; border: 1px solid #e6eaf0; border-radius: 22px;
  box-shadow: 0 32px 70px rgba(32, 49, 82, .06);
}
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.calc-field label { font-size: 14px; font-weight: 600; color: #263144; }
.calc-field label small { display: block; font-weight: 400; font-size: 12px; color: #8b94a1; margin-top: 2px; }
.calc-field output { font-size: 16px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc-field input[type=range] { grid-column: 1 / -1; width: 100%; margin: 6px 0 0; accent-color: var(--blue); }
.calc-assumptions { border-top: 1px solid #eef1f5; padding-top: 18px; }
.calc-assumptions summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--blue); }
.calc-minutes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.calc-minutes label { display: grid; gap: 6px; font-size: 12px; color: #697382; }
.calc-minutes input {
  width: 100%; height: 40px; padding: 0 12px; font-size: 14px; color: #263144;
  background: #fff; border: 1px solid #e0e5ed; border-radius: 10px;
}
.calc-assumptions p { margin: 14px 0 0; font-size: 12px; color: #8b94a1; line-height: 1.55; }

.calc-result {
  display: flex; flex-direction: column; padding: 34px 34px 30px; color: #fff;
  background: radial-gradient(circle at 85% 0%, #1d3462, #111b2e 60%);
  border-radius: 22px; box-shadow: 0 30px 65px rgba(17, 27, 46, .22);
}
.calc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: #8eb0ff; }
.calc-hours { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 2px; }
.calc-hours strong {
  font-size: clamp(64px, 7vw, 94px); line-height: 1; font-weight: 650; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.calc-hours span { font-size: 17px; color: #aeb9cd; }
.calc-person { margin: 6px 0 24px; font-size: 15px; color: #c9d3e3; }
.calc-person b { color: #fff; }
.calc-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; }
.calc-figures div {
  padding: 14px 15px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px;
}
.calc-figures dt { font-size: 11px; line-height: 1.35; color: #9fb0c9; margin-bottom: 7px; }
.calc-figures dd { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-breakdown { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.calc-breakdown li {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #aeb9cd;
}
.calc-breakdown b { color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-note { margin: auto 0 0; font-size: 11px; line-height: 1.6; color: #8491a7; }

/* ---------- The stress moments ---------- */
.stress-section { background: #fff; }
.stress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stress-grid article {
  padding: 30px 30px 34px; border: 1px solid #e9edf2; border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcfe); transition: transform .2s, box-shadow .2s;
}
.stress-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 47, 75, .07); }
.stress-time {
  display: inline-block; padding: 5px 11px; border-radius: 30px; background: #fff2e8;
  color: #ac714a; font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.stress-grid h3 { margin: 20px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.04em; }
.stress-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: #7a8390; }

/* ---------- Agents with limits ---------- */
.agents-section { background: #f7f9fc; }
.agents-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.agents-copy h2 {
  margin: 17px 0 18px; font-size: clamp(42px, 4.8vw, 68px); line-height: 1.07;
  letter-spacing: -.065em; font-weight: 650;
}
.agents-copy h2 span { color: #969eaa; }
.agents-copy > p { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #697382; }
.agent-points { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid #e3e8ef; }
.agent-points li { padding: 14px 0; border-bottom: 1px solid #e3e8ef; font-size: 14px; line-height: 1.55; color: #7a8390; }
.agent-points b { color: #263144; font-weight: 650; }

.mandate-card {
  padding: 30px 32px; background: #fff; border: 1px solid #e6eaf0; border-radius: 22px;
  box-shadow: 0 32px 70px rgba(32, 49, 82, .09);
}
.mandate-head { display: flex; align-items: center; justify-content: space-between; }
.mandate-head .status { font-size: 11px; padding: 5px 10px; }
.mandate-card h3 { margin: 18px 0 6px; font-size: 27px; letter-spacing: -.05em; }
.mandate-card > p { margin: 0; font-size: 14px; color: #858e9b; }
.mandate-terms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; margin: 22px 0 8px; padding: 20px 0;
  border-top: 1px solid #e9edf2; border-bottom: 1px solid #e9edf2;
}
.mandate-terms dt { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a0a8b3; }
.mandate-terms dd { margin: 0; font-size: 13px; font-weight: 600; color: #263144; }
.mandate-log { padding-top: 10px; }
.mandate-log > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 13px; }
.mandate-log > div + div { border-top: 1px solid #f0f2f6; }
.mandate-log b, .mandate-log span small { display: block; }
.mandate-log span small { margin-top: 2px; font-size: 11px; color: #98a1ae; }
.mandate-log > div > small { margin-left: auto; font-size: 11px; color: #a3abb5; }
.actor {
  display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
}
.actor.agent { background: #e5edff; color: #2767f4; }
.actor.person { background: #e7f6ef; color: #388058; }

.human-list {
  display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; margin-top: 56px;
  padding: 28px 32px; background: #fff; border: 1px solid #e3e8ef; border-radius: 20px;
}
.human-list .kicker { padding-top: 3px; }
.human-list ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin: 0; padding: 0; }
.human-list li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.5; color: #4d5767; }
.human-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px;
  border: 2px solid #52b486; border-radius: 50%;
}

/* ---------- Developers: keys with limits ---------- */
.keys-section { background: #fff; border-top: 1px solid #eef1f5; }

@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; max-width: 640px; }
  .agents-layout { gap: 40px; }
}
@media (max-width: 760px) {
  .chores-head { display: none; }
  .chore { grid-template-columns: 1fr; }
  .chore > div { padding: 16px 22px; }
  .chore-before { padding-bottom: 6px !important; }
  .chore-after { background: #f6f9ff; }
  .chore small {
    display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #98a2ae;
  }
  .chore-after small { color: #5677bb; }
  .calc-inputs, .calc-result { padding: 26px 22px; }
  .stress-grid { grid-template-columns: 1fr; }
  .agents-layout { grid-template-columns: 1fr; }
  .agents-copy h2 { font-size: clamp(42px, 8vw, 60px); }
  .mandate-card { padding: 26px 22px; }
  .human-list { grid-template-columns: 1fr; padding: 24px 22px; margin-top: 36px; }
  .human-list ul { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .calc-figures { grid-template-columns: 1fr 1fr; }
  .calc-figures div:last-child { grid-column: 1 / -1; }
  .calc-minutes { grid-template-columns: 1fr; }
  .mandate-terms { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stress-grid article:hover { transform: none; }
}

.keys-section .preview-pill { margin-top: 18px; }

/* The hero progress bar starts at step 1 (no inline style, so a strict CSP holds); site.js moves it. */
.workflow-main .progress-track span[data-workflow-progress] { width: 25%; }
